Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

top 10 links on a different page

Quote Reply
top 10 links on a different page
I want to be able to call the top ten links global on a page that is not part of LinksSQl but on the same website using SSI and I am not sure how to do that.

Say I have the top ten links on my homepage of the Links SQL, I want it to appear on a subdomain on the website but that subdomain has no LINKS SQL installed on it, how do I do that
Quote Reply
Re: [Abusaki] top 10 links on a different page In reply to
This should work;

1) Setup the global, and test it on your site.
2) Once it all works, make a new template, called "remote_top10"
3) Place the <%top_10%> global tag in there (or whatever you called it), and run it from the browser with;

page.cgi?p=remote_top10

4) If the above works, then you should be able to just use an IFRAME;

<IFRAME width=xx height=xx src="http://www.yoursite.com/cgi-bin/page.cgi?p=remote_top10">SOrry, you don't seem to support IFRAMES</IFRAME>

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] top 10 links on a different page In reply to
Thanks Andy

I named the template (forindex) and run it from my browser as

http://www.yoursite.com/.../page.cgi?p=forindex

I got this error


A fatal error has occured:
Invalid Site HTML method: site_html_forindex (forindex.html). Most likely template does not exist in default. at /xxxxxxxxxxxxxxxxxxxxxxxx/cgi-bin/admin/Links/SiteHTML.pm line 208.Please enable debugging in setup for more details.
Quote Reply
Re: [Abusaki] top 10 links on a different page In reply to
Did you name it forindex.html, or just forindex?

You need the first one.

The error message you posted, is basically saying that the template doesn't exist where its meant too... Tongue

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] top 10 links on a different page In reply to
I used both forindex and for index.html and I put them in this directory templates/default/local/
Quote Reply
Re: [Abusaki] top 10 links on a different page In reply to
Andy is right... it is not in the right place.

Put it in the templates/default/ directory. :)

Vishal

Vishal
-------------------------------------------------------

Last edited by:

NeedScripts.Com: Sep 24, 2004, 1:14 PM
Quote Reply
Re: [NeedScripts.Com] top 10 links on a different page In reply to
Thanks Vishal,
I just did that but it is still not working
Quote Reply
Re: [Abusaki] top 10 links on a different page In reply to
I managed to get it working without the .html and chmod-ing it to rw-rw-rw-,

it is working fine but I do not want the Iframes, is there anyway I can call it using SSI instead
Quote Reply
Re: [Abusaki] top 10 links on a different page In reply to
Quote:
it is working fine but I do not want the Iframes, is there anyway I can call it using SSI instead

Not unless you are very good with Javascript ;)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Abusaki] top 10 links on a different page In reply to
Having never used SSI I'm not quite sure why I'm replying Tongue - but going from previous posts, I think you should be able to use this:

<!--#include virtual="/cgi-bin/page.cgi?p=remote_top10"-->
Quote Reply
Re: [afinlr] top 10 links on a different page In reply to
Thanks afinir,
did not work and now google has droped my page rank i guess because of the frames

Any other ideas.

I have the linkssql installed in a subdomain http://xxxx.mydomain.com and I want the top links to appear on my http://www.mydomain.com
Quote Reply
Re: [Abusaki] top 10 links on a different page In reply to
I'm not sure this will help but here goes.

When I was using virtual SSI code like this on a "virtual server" the virtual part needed to be modified in order to be taken from the root of the server and not the virtual server for example :
/usr/home/sitename/virtual (or something similar depending on how it's done)
rather than just :
virtual
in the code you provided.

But if you are on a physical server this won't help you much...

John
Significant Media
Quote Reply
Re: [Jag] top 10 links on a different page In reply to
Thanks Jag,
I did not exactly understand that, could please give me an example of the command
Quote Reply
Re: [Abusaki] top 10 links on a different page In reply to
I've just been going over my emails but they don't go back that far. I've got this in my bookmarks : http://hoohoo.ncsa.uiuc.edu/...orials/includes.html and I think now that I've looked at it that I was using this virtual command on a file and not a cgi script.
It was something like <!--#include /home/servername/virtual etc.

I suppose it depends whether you are calling this from within LinksSQL pages or on a static page ?

However I was under the impression that the include virtual was for documents and that for cgi scripts you used something like this :
<!--#exec cgi="/cgi-bin/whatever.cgi"-->

Sorry I've learnt all this the hard way so I'm not really a reference on this. You'll need somebody with a techy background to point you in the right direction. Take a look at the above link though it gives examples and trying <!--#exec cgi=" in google.

John
Significant Media

Last edited by:

Jag: Oct 7, 2004, 2:17 PM
Quote Reply
Re: [Jag] top 10 links on a different page In reply to
Thanks John,
I tried the exec command before but it did not work.
my cgi-bin is located in another folder because it is a sub domain.
I tried the path as well as url but still not getting it to work.

I hope anyone with SSI experience out here can help me.
Quote Reply
Re: [Abusaki] top 10 links on a different page In reply to
Is there a way to call the page http://www.yoursite.com/...e.cgi?p=remote_top10 not in IFRAME, so google can read the html code and not somting like that <IFRAME width=xx height=xx src="http://www.yoursite.com/cgi-bin/page.cgi?p=remote_top10">SOrry, you don't seem to support IFRAMES</IFRAME>