Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Change Gif new

Quote Reply
Change Gif new
Hi

I wanted to know from where I can change the gif (WEW) when they insert a new links with this new gif

thanks

http://lnx.nauticalink.it/links/
- - - - - - - - - -- - - - - -
DirectoryNautica-Italia
http://www.nauticalink.it

Last edited by:

blecchi: Dec 27, 2003, 5:41 AM
Quote Reply
Re: [blecchi] Change Gif new In reply to
Look in site_html_templates.pl, pretty much at the bottom of the script. There is a part in there that has something like;

<small>new</small>

...and just add in your HTML for the .gif you want to display.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Change Gif new In reply to
You can explain better me
thanks



# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;
}
- - - - - - - - - -- - - - - -
DirectoryNautica-Italia
http://www.nauticalink.it
Quote Reply
Re: [blecchi] Change Gif new In reply to
$output .= qq|<img src="/images/new.gif">| if (&days_old($mod) < $db_new_cutoff);

Make the code point to wherever you will store the image. You could also include the height and width tags.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Change Gif new In reply to
OK Wink
- - - - - - - - - -- - - - - -
DirectoryNautica-Italia
http://www.nauticalink.it
Quote Reply
Re: [PerlFlunkie] Change Gif new In reply to
Now like I must have the New gifs and POp changed you see example
http://lnx.nauticalink.it/links/Cool



thanks
- - - - - - - - - -- - - - - -
DirectoryNautica-Italia
http://www.nauticalink.it
Quote Reply
Re: [blecchi] Change Gif new In reply to
Make the same changes to the link.html template:

<%if isNew%>
<small><sup class="new">new</sup></small>
<%endif%>


<%if isPopular%>
<small><sup class="pop">pop</sup></small>
<%endif%>


to:

<%if isNew%>
<img src="/images/new.gif">
<%endif%>

<%if isPopular%>
<img src="/images/pop.gif">
<%endif%>



Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Change Gif new In reply to
Ok New gif and Pop

Now like I must have the subcategories inserted in the link.

thanks
- - - - - - - - - -- - - - - -
DirectoryNautica-Italia
http://www.nauticalink.it