Gossamer Forum
Home : Products : Links 2.0 : Customization :

Help On Categories and Subcategories - Please!

Quote Reply
Help On Categories and Subcategories - Please!
Hello,

I want to know how to make the category text on the main page a bigger font size.

I would also like to know how to align the subcategories directly under the categories, instead of indented.

Help is much appreciated! Thanks!

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
As mentioned about five times in the past three days (and many more over the past three years), you need to edit the HTML codes within the $output statements in the sub site_html_print_cat subroutine in the site_html_templates.pl file.

Did you even search the forums???

Regards,

Eliot Lee
Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
Yes, but I didn't find anything. Maybe I wasn't searching for the right thing.

Please do not be mad at me, I am sorry :(

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
What do I edit? :confused:

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
READ the following Threads, please:

* http://www.gossamer-threads.com/...w=collapsed&sb=5

* http://www.gossamer-threads.com/...ew=&sb=&vc=1

* http://www.gossamer-threads.com/...ew=&sb=&vc=1

These threads provide EXAMPLES of how to EDIT the HTML in the
subroutine I already mentioned!

And there are a lot more...search for print cat or category font or category layout or categories for that matter...

HTML for Dummies is a good starting point...Wink

Regards,

Eliot Lee
Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
Thanks a bunch! I have the font sizes and tables correct, now I want to know how to take away the indent from the subcategories - I want the subcategories to start directly below the categories.

Any help is appreciated, thanks.


Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
UH...Learn some HTML...You need to delete the definition listing codes (<dl><dt></dt></dl>) codes in the $output statement, as mentioned quite a few times in this forum in the past!

Regards,

Eliot Lee
Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
Sorry, I'm just not used to looking at HTML in other programming :(

I'm trying the best I can! Thanks anyway :) !

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
Don't pay any attention shock, you are doing just fine.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
Thanks Paul, I think I finally have it now! You guys are all a really big help!

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
I'm still a bit confused...

I deleted the dl and dt tags, and overwrote it. Thn I Built all (in the administration panel). It still doesn't change anything.



Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
And did you upload your edited site_html_templates.pl file to your web server, before re-building your directory? If not, then that's your problem...

Regards,

Eliot Lee
Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
Well Duh , Of course!

Do you think I'm a complete idiot?

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
No...but you would be surprised how many people complain that code hacks do not work and then they realized that they did NOT upload edited files, and sheepishly admit it later on..so, therefore, I believe my question was quite legitimate...take or leave my advice, buddy.

Regards,

Eliot Lee
Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
LOL...okay, well I am not your average idiot.

I'm just no programmer. I'm a really great digital artist/web designer.

Anyway, I took out the <dt><dl></dt></dl> tags.

I wanted to know if you meant take out the entire line including the $output with the dt and dl tags, or just the tags themselves.

I tried both, and when I just took out the tags, then uploaded the files and built all in the admin CP, it didn't change anything.

When I took out the whole line, then uploaded and built all, it crammed all the categories and subcategories together in one jumbled mess.

So, anyway, I'm still a bit confused because I'm not sure which perl coding i can take out or now and which to modify.

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
please can someone help??

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
If the line is just like:

$output .= qq|</dt>|;

you can delete the whole thing but obviously just delete the tag if there is other important code on the line.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
I did exactly what you said and it didn't work :(

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
What does your code look like now?

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
Hi there,

In sub site_html_print_cat { (site_hite templates)
delete the red tags:-

# 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>|;

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
Try:

# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<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|<span class="descript">$description </span>| if (!($description =~ /^[\s\n]*$/));

....and rebuild.






Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
Thanks a ton!!

You guys are the biggest help on this planet!

If I were gay I would hug you!

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
You don't have to be gay to hug another man do you?....*^&^* that means I must be gay then Frown Smile

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Help On Categories and Subcategories - Please! In reply to
Time too come out of the closet...

Ahhhhhhh big hugs anyone !!!!!!!