Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Does anyone else have this problem?

Quote Reply
Does anyone else have this problem?
I've always had some odd problems with Links SQL and was wondering if anyone else did as well. One of the odder problems is this:

I run my site dynamically. I've noticed that when I want to link to a static page I cannot have the www in the url. IE: instead of www.fanficweb.net it always has to be fanficerb.net. Does anyone else have this problem and what could cause it?

On a sidenote, what are nph_headers and what do that do?
Quote Reply
Re: [rayhne] Does anyone else have this problem? In reply to
When you run dynamically, Links will translate certain links on your pages. Namely, whenever a link contains 'build_root_url' (in your case probably something like <a href="http://www.fanficweb.net/">) it will translate it to something like 'db_cgi_url/page.cgi'.

In order to prevent this happing, I suggest that you use links like <a href="/mypage.html"> i.e. that you leave out everything that comes before the first /

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Does anyone else have this problem? In reply to
The files are in a totally different directory (not templates) so I need to use the complete url.
Quote Reply
Re: [rayhne] Does anyone else have this problem? In reply to
>>>On a sidenote, what are nph_headers and what do that do? <<<

These are headers sent by the script. It helps to stop script timeouts, by delivering the content in real time (i.e nph-build.cgi). Certain servers, such as Cobalt RaQ's don't like NPH headers, so you need to turn it off in cases like that. Thats all it is Smile

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: [rayhne] Does anyone else have this problem? In reply to
If they are on the same domain, then you don't need the

http://www.domain.com/

stuff.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Does anyone else have this problem? In reply to
That doesn't seem to work though. The only way I've been able to get the static pages to come up is to use the whole url but without the www
Quote Reply
Re: [Andy] Does anyone else have this problem? In reply to
I was on a Cobalr machine but am now on a non-Cobalt machine. Should I turn the nph_headers back on?
Quote Reply
Re: [rayhne] Does anyone else have this problem? In reply to
Can you give me an example of a link you are using.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Does anyone else have this problem? In reply to
http://fanficweb.net/...anficdir/awards.html

to get to an Awards page.
Quote Reply
Re: [rayhne] Does anyone else have this problem? In reply to
So if you use

<a href="/directory/fanficdir/awards.html">Awards</a>

it doesn't work?

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Does anyone else have this problem? In reply to
Okay, that would work. But the big problem is this: I am using User Monitor and want to use the Top 5 feature. The code to create the link is

<a href="$CFG->{build_root_url}/users/profiles/$active_user.html">$active_user</a><br>~;

which tries to build the static link

http://www.fanficweb.net/...r/users/profiles/etc

and it can't. Instead it builds:

http://www.fanficweb.net/...rayhnee.html&d=1

which doesn't work. I have to go in and change the code to:

<a href="http://fanficweb.net/directory/fanficdir/users/profiles/$active_user.html">$active_user</a><br>~;

in order to have the link work properly. Does anyone else have this problem?
Quote Reply
Re: [rayhne] Does anyone else have this problem? In reply to
Then change that link to

/directory/fanficdir/users/profiles/etc

Ivan
-----
Iyengar Yoga Resources / GT Plugins