Gossamer Forum
Home : Products : Links 2.0 : Discussions :

add image

Quote Reply
add image
how i can add folder image before category name!! on main page or on sub category


Thanks

Quote Reply
Re: add image In reply to
Just insert the image into the sub_print_cat routine in site_html_templates.pl (if you use templates) or site_html.pl.

Thomas
http://www.japanreference.com
Quote Reply
Re: add image In reply to
You mean sub site_html_print_cat

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: add image In reply to
Correct Paul, that's indeed what I meant.

Thomas
http://www.japanreference.com
Quote Reply
Re: add image In reply to
Thanks for your help man , but i find this code on site_html_templates.pl


my (@subcat) = @_;
# ***************************************** nonenglish modification - begin ****************
# my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i);
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i, $nonenglish);
# ***************************************** nonenglish modification - end ******************
my ($half) = int (($#subcat+2) / 2);

# Print Header.
$output = qq|<div class="margin"><table width="70%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">\n|;

foreach $subcat (sort @subcat) {
($description) = @{$category{$subcat}}[2];

==============


i don't know where to but the html code : src="../images/icon_fol.gif"

i try to add him near : foreach $subcat (sort @subcat) {

but it's didn't work can you give me the right code to be add!!

Regards..


Quote Reply
Re: add image In reply to
Wrong set of codes you posted...

Look for the following:

Code:

<a href="$url">$category_name</a>


Regards,

Eliot Lee
Quote Reply
Re: add image In reply to
where exactly!!!!
this is the stander code :

# Print Header.
$output = qq|<div class="margin"><table width="70%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">\n|;

foreach $subcat (sort @subcat) {
($description) = @{$category{$subcat}}[2];




Quote Reply
Re: add image In reply to
Keep going...USE the Find function in your TEXT EDITOR...basic computer skills here needed.

Regards,

Eliot Lee
Quote Reply
Re: add image In reply to
I have more then basic computer skills .. but this option can't find it and you can see above that i try to make it but it's give me Errors.


Quote Reply
Re: add image In reply to
Did you even TRY searching your site_html_templates.pl file for the string of codes I GAVE??????????

HTML 101:

You would put your image codes before the codes I gave you...like the following:

Code:

<img src="/images/image.gif" alt="" width="" height="" border=""><a href="$url">$category_name</a>


You aren't trying hard enough.

Good luck!

Regards,

Eliot Lee
Quote Reply
Re: add image In reply to
it's work 100%
Thanks alot sir for you Help..