Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to use actual URL for links, not through jump.cgi

Quote Reply
How to use actual URL for links, not through jump.cgi
I would like to have my links show and use the actual URL of the linked website, instead of using the %db_cgi_url%>/jump.cgi?ID=<%ID%>

I don't wish to keep track of the hits per site, or use the popular page. I know I can modify the links.html template, but I'm not sure which variable to use.

I'm using Links 2 and templates.

P.S.This forum is extremely helpful to me as a non-programmer. Thanks to all of you that help out and answer questions.
Quote Reply
Re: How to use actual URL for links, not through jump.cgi In reply to
There has been posts earlier, so try a search.....

As far as I can remember you would replace all of that with %URL%.
Quote Reply
Re: How to use actual URL for links, not through jump.cgi In reply to
Thanks for the tip - it worked Smile I hadn't been able to find anything in the forum for it. It's also case sensitive, in case anyone else comes here looking for how to do this.

<a href="<%URL%>"><%Title%></a>
Quote Reply
Re: How to use actual URL for links, not through jump.cgi In reply to
Another solution is to modify
the subroutine in site_html.pl that
generate the links. I added a JavaScript command of "onMouseOver" so that when
the visitor put the mouse on the links it
will show the real address of the link.
However, if they click it, I will still be able to record at as it still uses the jump.cgi to go to the real URL.

Hope it helps. Sorry for my poor English.

Almas
Quote Reply
Re: How to use actual URL for links, not through jump.cgi In reply to
Hey, great idea! But how you do this "onMouseOver" java thingy? Is it something like:

<a href="http://www.url.com" onMouseOver="Click here now!">http://www.url.com</a>

Is it?

------------------
-[ It's just another night; good morning Webmasters! ]-
Quote Reply
Re: How to use actual URL for links, not through jump.cgi In reply to
It's :

<A HREF="http://www.yoursite.com/cgi-bin/links/jump.cgi?ID=someID"
onMouseOver="window.status='http://www.realURL';return true">Site Title</A>

almas
Quote Reply
Re: How to use actual URL for links, not through jump.cgi In reply to
can you tell me how you did the javascript thing in links? What would you put where? and would you replace RealURL with %url%? Let me know! Thanks! :~)
Quote Reply
Re: How to use actual URL for links, not through jump.cgi In reply to
Hi all,

To show the actual links and but still
can monitor the number of clicks on the
links, do the following:

(I'm still using Links 1.1. But I believe
you can apply the same thing to 2.0)

Go to site_html.pl and replace

********************************************************

sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like. It's a little complex looking just because we have to
# check for blank entries..

my (%rec) = @_;

$output = qq|
<ul type=disc><li><$font><a href="$build_jump_url?$db_key=$rec{$db_key}">$rec{'Title'}</a></font>|;

********************************************************

with

********************************************************

sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like. It's a little complex looking just because we have to
# check for blank entries..

my (%rec) = @_;

$output = qq|
<ul type=disc><li><$font><a href="$build_jump_url?$db_key=$rec{$db_key}" onMouseOver="window.status='$rec{'url'}'; return true">$rec{'Title'}</a></font>|;

**********************************************************

It works perfectly with me.

Almas

[This message has been edited by almas (edited February 27, 1999).]