Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Changing Fonts

Quote Reply
Changing Fonts
I'm new at Links SQL, and I've been trying to find "sub site_html_templates.pl" to change fonts of the categories. I've searched my files and GT forums but can't find the file location or folder. Please help.



RoyceCrazy
Quote Reply
Re: [Royce] Changing Fonts In reply to
Copy subcategory.html from ../admin/templates/default folder to ../admin/templates/default/local and make desired changes.
Quote Reply
Re: [Payooo] Changing Fonts In reply to
Smile Hey Payooo,

Thanks for the reply, I'll be trying that tonight.
Quote Reply
Re: [Royce] Changing Fonts In reply to
In Reply To:
I'm new at Links SQL, and I've been trying to find "sub site_html_templates.pl" to change fonts of the categories. I've searched my files and GT forums but can't find the file location or folder. Please help.

Its amazing how much more advanced LSQL is Sly

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Changing Fonts In reply to
Hey Andy,

Good to talk to you again. I found the file thanks to Payoo and I was able to change the font. However, there continued to be quite a bit of space between the categories (vertically). In addition, the categories all centered underneath each other (I want them to align left). I was played around further and removed the <dl> and </dl> tags. The large vertical space then was reduced to what I would consider normal and looks ok. However, my questions are:

1. What do I need to do (exactly) to the subcategory.html in order to left align my categories.
2. Is there a negative consequence of removing the <dl> and </dl> tags?
3. How do I increase by a couple of spaces the horizontal distance from the catagory names and number of links? For example: Business and Economy(302) change to Business and Economy (302)

Thanks

Royce
Quote Reply
Re: [Royce] Changing Fonts In reply to
Could anyone help me on this one please?
Quote Reply
Re: [Royce] Changing Fonts In reply to
Quote:
1. What do I need to do (exactly) to the subcategory.html in order to left align my categories.

I think you have to actually modify a .pm file, cos the main category table alignment stuff is *not* template based. I can't remember which file needs editing though.

Quote:
3. How do I increase by a couple of spaces the horizontal distance from the catagory names and number of links? For example: Business and Economy(302) change to Business and Economy (302)

I was trying to find the global that pugdog wrote for this a while back. Otherwise, you could try something like this in subcategory.html;

Code:
new_cat_title =>

sub {

my $Title = shift;
$Title =~ s,\(, \(,g;
return $Title;

}

Then call it with something like <%new_cat_title($Title)%> to get the modified title field.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Royce] Changing Fonts In reply to
Hi!

Try removing following code from your subcategory.html




<%-- This is only useful if you have added an Image column to your category table --%>
<%if Image%>
<td width=30 align=center valign=top>
<img src="<%build_images_url%>/default/<%Image%>" border=0></td>
<%else%>
<td width=25>&nbsp;</td>
<%endif%>



Of course, if you are not using images ...


Additionally check Setup > Setup > build_category_table

This is the main category table.



>>>>> How do I increase by a couple of spaces the horizontal distance from the catagory names and number of links

Try inserting few &nbsp; &nbsp; 's in front of (<%Number_of_Links%>)

Last edited by:

Payooo: Jul 29, 2003, 5:45 AM
Quote Reply
Re: [Payooo] Changing Fonts In reply to
Eh Payoo,

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

<%-- This is only useful if you have added an Image column to your category table --%>
<%if Image%>
<td width=30 align=center valign=top>
<img src="<%build_images_url%>/default/<%Image%>" border=0></td>
<%else%>
<td width=25>&nbsp;</td>
<%endif%>
------------------------------------------------

I don't have this in my subcategory.html file so this won't work for me ...your second suggestion of:

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

"Additionally check Setup > Setup > build_category_table

This is the main category table.

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

There wasn't anything there that could do the job that I needed also.

However, the suggestion of how to increase the spaceing btw categories worked. I am pulling out my hair however trying to figure out how to align left my categories...you would think that you would have a choice on initial setup to do this. Anymore ideas on how to do this and where to go?
Quote Reply
Re: [Royce] Changing Fonts In reply to
How does it look now, can you post your complete code for category?
Quote Reply
Re: [Royce] Changing Fonts In reply to
Can you give a url of a category page so we can see. I'm not sure why your categories are centered but this should be simple to change - it must either be in category.html or subcategory.html.
Quote Reply
Re: [afinlr] Changing Fonts In reply to
Hi Afinir, I'll pm you with my site url, thanks.

Royce