Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: [Andy] Mixed | Direct and Jump links

Quote Reply
Re: [Andy] Mixed | Direct and Jump links
My question is similar to the one posted here. I use Gossamer as a site directory rather than a links engine. Therefore, I want the links to show up as the actual url rather than a jump link with corresponding ID #. Does that make sense? Is there an easy fix for this? FYI (not sure if this is even relevant) but I don't use templates, I edit site_html.pl to make design changes. Also, I am running Links 2.0

So for example, when here: http://www.familycorner.com/dir/Kitchen_and_Home/Crafts/Home_Decor/ when you roll over the first link (titled "A New Twist in Vegetables") instead of the url being http://www.familycorner.com/cgi-bin/dir/jump.cgi?ID=9624 I want it to be the actual url of the article which is http://www.familycorner.com/homegarden/crafts/paper_vegetables.shtml

Thank you for any help you can provide!

Last edited by:

FamilyCorner: Mar 26, 2008, 5:52 PM
Quote Reply
Re: [FamilyCorner] Mixed | Direct and Jump links In reply to
Hi,

Sure, all you would do is edit link.html so it looks like:

Code:
<%config.db_cgi_url%>/jump.cgi?ID=<%ID%>

..to:

Code:
<%URL%>

Please note, you won't get hits counted doing it this way, as its not going through jump.cgi =)

Hope that helps

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] Mixed | Direct and Jump links In reply to
Thanks Andy, I appreciate the reply!

Is there possibly another way to do this? Editing that file doesn't do anything because I'm not using templates. I make all my design changes by edited the site_html.pl file. I went into the site_html.pl and found the following, maybe something here needs to be adjusted?

Quote:
##########################################################
## A Link ##
##########################################################

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) = @_;

$build_detailed ?
($output = qq~<ul><li><a class="link" href="$build_detail_url/$rec{$db_key}$build_extension">$rec{'Title'}</a>~) :
($output = qq~<ul><li><a class="link" href="$build_jump_url?$db_key=$rec{$db_key}"><font face="verdana" size=2>$rec{'Title'}</font></a>~);
if ($rec{'Description'}) { $output .= qq~ <span class="descript"><font face="verdana" size=2>- $rec{'Description'}</font></span>\n~; }
if ($rec{'isNew'} eq "Yes") { $output .= qq~ <font face=verdana size=2 color=#ff0080><sup class="new"><img src=http://www.familycorner.com/gif/new1.gif border=0></sup></font>~; }
if ($rec{'isPopular'} eq "Yes") { $output .= qq~ <font face=verdana size=2 color=#0076ec><sup class="pop"><B>pop</b></sup></font>~; }

$output .= qq~ <small class="date">(Added: $rec{'Date'} Hits: $rec{'Hits'}) </small></ul>~;return $output;
}
Quote Reply
Re: [FamilyCorner] Mixed | Direct and Jump links In reply to
Hi,

Erm, your in the wrong forum :P (this is Gossamer Links [SQL]), not Links 2 - flatfile =) - I'll move it to the right forum for you.


You should be able to do it in Links2, with changing:

Code:
($output = qq~<ul><li><a class="link" href="$build_jump_url?$db_key=$rec{$db_key}"><font face="verdana" size=2>$rec{'Title'}</font></a>~);

..to:

Code:
($output = qq~<ul><li><a class="link" href="$rec{'URL'}" target="_blank"><font face="verdana" size=2>$rec{'Title'}</font></a>~);

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] Mixed | Direct and Jump links In reply to
OMG that did it! Thank you so much for your help!!

And sorry about posting in the wrong place :)

YOU ROCK :)
Quote Reply
Re: [FamilyCorner] Mixed | Direct and Jump links In reply to
Hi,

Glad it worked :)

Quote:
And sorry about posting in the wrong place :)

No problem.

Quote:
YOU ROCK :)

Angelic

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] Mixed | Direct and Jump links In reply to
I just wanted to post an update on this. Since I made this change at the end of March, the google indexing of my articles has doubled. This did the trick, thank you!
Quote Reply
Re: [FamilyCorner] Mixed | Direct and Jump links In reply to
Glad to hear it helps 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!