Gossamer Forum
Home : Products : Links 2.0 : Discussions :

customized category display

Quote Reply
customized category display
1) when click on a category, it displays
o Actors and Actresses (0)

o Amusement Parks (0)

o Animation and Comics (0)

o Astrology (0)

i cant seem to find which file and line to edit so that there is no spacing here? <li> and </li> i suppose.

2) For the category display in the frontpage, 2 columns, how to set the column width? eg.

Society and Lifestyles (47)
Environment, Government,
Politics, ...

i want to increase the column width so that politics will show on the line above and not word wrapped to next row.

3) I saw in some of the sites that below the categories page etc, there are "related categories", how to set those up and how to set so that those related categories are shown in that particular page?

thanks a lot, help appreciated!
Quote Reply
Re: customized category display In reply to
any help?
Quote Reply
Re: customized category display In reply to
1) Edit the sub site_html_print_cat routine in the site_html_templates.pl file. Delete the <BR><BR> codes after the line that has $description in it.

2) Edit the <td> codes in the same sub-routine mentioned in number 1.

3) Related categories are printed into Categories by using the following tag in the category.html file:

Code:
<%Related%>

You will have to add Related Categories in the LINKS MANAGER (admin.cgi) by modifying categories.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: customized category display In reply to
takes me one day to find the solution and it takes you a few sec to tell me the solution, thanks a lot :0)

The 1) part not work yet, i suppose this is what u mean?

$output .= qq|<br><span class="descript"><font size="2">$description </font></span>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;

i do not have <br> here, any other clue?

2) works great now, change 80% to 100% to fit into my pre-set table width.

3) gonna try it
thx
Quote Reply
Re: customized category display In reply to
Just delete all the <dl>, <dt> and </dl>, </dl> codes, which will remove the definition list.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: customized category display In reply to
hi antho,

i removed all those, and the outcome is all a mess. I also tried to del some of them, no luck either.

basically i just want to make the catgories section display line after line with no line in beween, like yahoo style i suppose.

This is what i got now:

$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong>|;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<br><span class="descript"><font size="2">$description </font></span>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;

further help?
Quote Reply
Re: customized category display In reply to
UGH...LEARN SOME HTML!

Use these codes instead of what you have:

Code:
$output .= qq|<a class="link" href="$url">$category_name</a> ($numlinks)</font>|;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|<BR><span class="descript"><font size="2">$description</font></span>| if (!($description =~/^[\s\n]*$/));
}

Also, what is probably throwing off your coding is the blasted .css (class codes), which I do not use.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: customized category display In reply to
yes i tried that one before ..

Arts and Entertainment(7)
Games, Movies, Television, ...Automotive(7)
Accessories, Buying, Manufacturers, ...Business and Finance(30)
Banking, Insurance, Real Estate, ...Computer and Internet(15)
Hardware, Internet, Software, ...Education and Reference(27)
Colleges and Universities, High School, Publications, ...Health and Fitness(2)
Fitness, Medicine, Nutrition, ...Home and Family(0)
Holidays, Sports and Recreation, Free_Stuff, ...

this is what we got. all mess up.

i also tried to get rid of all the class stuff (i didnt add these i dunno whcih templates i use which add all these class), same thing.

other clue?
Quote Reply
Re: customized category display In reply to
Well, do you want a damn space between your categories or not. From what you wrote in your first POSTING, it looks like you wanted the categories to be underneath each other.

If you want ONE space between the Categories, then edit the last set of codes I gave you to look like the following:

Code:
$output .= qq|<a class="link" href="$url">$category_name</a> ($numlinks)</font>|;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|<BR><span class="descript"><font size="2">$description</font></span><BR>| if (!($description =~/^[\s\n]*$/));
}

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: customized category display In reply to
ok this is basically what i want for the subcategory page:

$output .= qq|<a href="$url"><b>$category_name</b></a>($numlinks)</font>|;
$output .= qq|<br><small><sup >new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|<br><span><font size="2">$description</font></span>| if (!($description =~/^[\s\n]*$/));
$output .= qq|<br>|;

but the main page category will display all without a line in between categories. Any way i can change it to make it work both way?
Quote Reply
Re: customized category display In reply to
ok sorry for my bad english. i see what you get me wrong now.

i want the main page, which display the category part, eg.

Arts and Entertainment(7)
Games, Movies, Television, ...

Automotive(7)
Accessories, Buying, Manufacturers, ...

like this, yes a space a between.

I also want in the subpages, say for arts and entertainment, eg.
Actors and Actresses(0)
Amusement Parks(0)
Animation and Comics(0)
Astrology(0)
Books(0)

display like this without a space in between.

sorry for my bad english again Smile
Quote Reply
Re: customized category display In reply to
Uh..I answered your duplicate/redundant Thread:

Go to these Topics to get what you want:

http://www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/001487.html
http://www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/004270.html
http://www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/004044.html
http://www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/004980.html

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: customized category display In reply to
i am sorry i am really bad in searching as i dont know what terms to search for.

thank you for your patience, really apprecaited it.

Will check those links out.
Quote Reply
Re: customized category display In reply to
You're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: customized category display In reply to
sorry, its me again, .... be patient ...

i solve the font display problem, numlink problem. But this category one still not yet, the links you gave me not quite related to what i intend to do ..

further help? or i go ahead and do the searching again?
Quote Reply
Re: customized category display In reply to
 
Quote:
i want the main page, which display the category part, eg.

Arts and Entertainment(7)
Games, Movies, Television, ...

Automotive(7)
Accessories, Buying, Manufacturers, ...

like this, yes a space a between.

I also want in the subpages, say for arts and entertainment, eg.
Actors and Actresses(0)
Amusement Parks(0)
Animation and Comics(0)
Astrology(0)
Books(0)

To have two different formats, one for the main page, and then a different for the category pages (subpages)...The codes in the Threads I gave you W I L L do this!

All you have to do is in the sub site_html_print_cat is leave it as it is with the exception of the changes you've already made to it (with the spaces and also the $numlinks). THEN in the sub site_html_print_subcat routine, you completely delete out out the codes that prints the SUBCATEGORIES.

Look at my site:

vlib.anthrotech.com

Click on one of the categories. See the difference in fonts between the Home Page and the Category Pages.

Please RE-READ the Threads I provided in my recent REPLY.

Wink *sigh*

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: customized category display In reply to
oops sorry didnt think about that as i use that method to solve the numlink part only .. hehe ... forgive me ..

you solve all my problems so far in less than 3 hours !!

will you marry me Mr? you da the man i been looking for ... Smile
Quote Reply
Re: customized category display In reply to
Glad you finally figured it out.

And...you're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums