Gossamer Forum
Home : Products : Links 2.0 : Customization :

Banners with the links

Quote Reply
Banners with the links
I was wondering is anyone knew hot to add banners above the links. I thought it would be a pretty cool option to have .

Does anyone know where I would need to start ?


Thank You and Have A Great Day,
Lpluby Smile


------------------


Quote Reply
Re: Banners with the links In reply to
Go to site_html.pl and add the code to the html where you want it. If you need more help just email me.
Quote Reply
Re: Banners with the links In reply to
Thank you for responding to the question I had. I know how to do that what I would like to do is to add a field of a url of banner to the link that will appear before the description of the link. Any ideas ?


Thanks,
Lpluby
Quote Reply
Re: Banners with the links In reply to
Yes their is a way, go to Bears Guide To Add A Field at members.xoom.com/bear118 follow his instucstions and call it banner now open your site_html.pl under sub site_html_link { right above <ul type=disc><li><$font><a href="$build_jump_url?$db_key=$rec{$db_key}">$rec{'Title' }</a></font>|; (if you want it above the title) put
<a href="$build_jump_url?$db_key=$rec{$db_key}"><IMG SCR="$rec{'banner'}" Alt="$rec{'Title'}"></a>|;

Joey Bost
jbost@sheltonbbs.com
P.S. This will cause you to have allot of imgages on your pages, are you sure you want to do this?

[This message has been edited by jbost (edited December 05, 1998).]
Quote Reply
Re: Banners with the links In reply to
Thank You for responding. I was wondering if there was a way to have only the administrator to have the option to add a banner above the link.

Thanks,
lpluby
Quote Reply
Re: Banners with the links In reply to
Do like what my above message said, and add a new field called ShowBanner but change
<a href="$build_jump_url?$db_key=$rec{$db_key}"><IMG SCR="$rec{'banner'} Alt="$rec{'Title'}"></a>|;
to
if ($rec{'ShowBanner'} eq "Yes") { $output .= qq~ <a href="$build_jump_url?$db_key=$rec{$db_key}"><IMG SCR="$rec{'banner'}" Alt="$rec{'Title'}"></a>~; }
Then if you wanted to show a banner in the ShowBanner field check/put in Yes(depending on how you make the field, i.e out it radio buttons or checkboxexs youlld have to check one, or put them in a select field, Make the default No that way you dont get any blanks in there
Thanks
Joey

[This message has been edited by Joey Bost (edited December 25, 1998).]
Quote Reply
Re: Banners with the links In reply to
hmmm, you can just add the http for the banner inside the description of the link. Would that do the trick. I haven't tried it but maybe you can insert the code for the title of the link, then it would be above the description. Keith