Gossamer Forum
Home : Products : Links 2.0 : Customization :

Link Table Help

Quote Reply
Link Table Help
I have looked in site_html.pl and thought I found where to edit in order to make each link appear in its own table. Here is what I have:

$build_detailed ?
($output = qq~<table border="0" cellpadding="0" cellspacing="0" bgcolor="#C0C0C0"><tr><td><a class="link" href="$build_detail_url/$rec{$db_key}$build_extension">$rec{'Title'}</a>~) :
($output = qq~<a class="link" href="$build_jump_url?$db_key=$rec{$db_key}">$rec{'Title'}</a></tr></td>~);

if ($rec{'Description'}) { $output .= qq~ <span class="descript">- $rec{'Description'}</span>\n~; }
if ($rec{'isNew'} eq "Yes") { $output .= qq~ <small><sup class="new">new</sup></small>~; }
if ($rec{'isPopular'} eq "Yes") { $output .= qq~ <small><sup class="pop">pop</sup></small>~; }

$output .= qq~ <small class="date">(<b>Added</b>: $rec{'Date'} <b>Hits</b>: $rec{'Hits'} <b>Rating</b>: $rec{'Rating'} <b>Votes</b>: $rec{'Votes'}) <a href="$build_rate_url?ID=$rec{'ID'}"><img src="http://stangusa.hypermart.net/images/rateit.gif"></a></small></table>

~;

return $output;
}


But everytime I try to build the page, It doesnt put them in tables. Also, the Rate-It image isnt loading. Instead, it still says Rate-It. Please help. You can view it at http://stangusa.hypermart.net/links2/pages/
Quote Reply
Re: Link Table Help In reply to
Here:

Code:

$build_detailed ?
($output = qq~<table><tr><td><a class="link" href="$build_detail_url/$rec{$db_key}$build_extension">$rec{'Title'}</a>~) :
($output = qq~<table><tr><td><a class="link" href="$build_jump_url?$db_key=$rec{$db_key}">$rec{'Title'}</a>~);

if ($rec{'Description'}) { $output .= qq~ <span class="descript">- $rec{'Description'}</span>\n~; }
if ($rec{'isNew'} eq "Yes") { $output .= qq~ <small><sup class="new">new</sup></small>~; }
if ($rec{'isPopular'} eq "Yes") { $output .= qq~ <small><sup class="pop">pop</sup></small>~; }

$output .= qq~ <small class="date">(Added: $rec{'Date'} Hits: $rec{'Hits'} Rating: $rec{'Rating'} Votes: $rec{'Votes'}) <a href="$build_rate_url?ID=$rec{'ID'}">Rate It</a></small>
</td></tr></table>
~;

return $output;
}

... just add your images. Smile


Regards,

Pasha

------------------
webmaster@find.virtualave.net
http://find.virtualave.net
Quote Reply
Re: Link Table Help In reply to
Ok, I did that, but it only works when I turn off the templates. Is there a way I can do it using templates?

------------------
Josh
Webmaster
http://stangusa.hypermart.net
Quote Reply
Re: Link Table Help In reply to
Josh,

If you are using templates, then why are you looking in site_html.pl? You need to use site_html_templates.pl with templates along with the link.html template file.