Gossamer Forum
Home : Products : Links 2.0 : Customization :

I need help with something that probably can be fixed easily.

Quote Reply
I need help with something that probably can be fixed easily.
Hi!

I just deleted the links.css file, because I have been having a lot of problems with my table cells Everything looks like it is working fine except that I want to make the "new" word beside the category bigger and a different color. Where would I have to go to change those things. I might as well ask how would I change the Category text attributes and everything else like the Site Title, Category Headers, etc....?

Thanks!

Chris Roane

------------------
Web Site Resource
http://www.wsresource.com
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
All these can be done by editing the templates if you are using them or site_html.pl if you are not.

With templates, just add the appropriate font tags at the appropriate places... You'll understand when you look at the templates. They are basically just HTML files.

I don't know anything about site_html.pl since I don't use it.
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
Well, I know the way the site looks can be changed either using the templates or the site_html.pl file, but that was not my question. As you probably know, when you have added a link to a category, the program puts the word "new" beside that category. I want to make the word "new" larger and also make it a different color. You cannot change that attribute in the templates and I tried changing it in the site_html.pl and it did not work either. When I insert the <%category%> tag, and change the font and color attributes, it changes all the categories. I just want to change the "new" and that's it. Does anyone know how I can do that?

Thanks!

Chris Roane

------------------
Web Site Resource
http://www.wsresource.com
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
I have modified mine so much, I really do not remember. But if I remember correctly, check the site_html_tempaltes.pl all the way down, in the category area, there is a bunch of code. You edit that section to change the looks.
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
No problem. WYSIWYG Editors, like Front Page, are very nice and time savers. HOWEVER, when it comes to programming and designing effective web pages, you really need to learn HTML codes.

Nice job.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
Your right. What is the easiest way that I can learn html?

Thanks!

Chris Roane

------------------
Web Site Resource
http://www.wsresource.com
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
I looked in the site_html_template.pl file, but I did not see anything having to do with the text attributes of the word "new" is there anyone out there that knows how to do this?
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
It is in the templates. Do you see the tag <%new%> (or something like that)? Just put the font tags around it.
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
t-dog et al,

You have to edit the "New" tags in the site_html_templates.pl file. Putting font tags around the <%new%> doesn't make a difference. I've tried it and it does not work.

wsresource

Look for the following set of codes in the site_html_templates.pl:

Code:
# 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>|;
}
# Don't forget to end the unordered list.. $output .= "</td></tr></table></div>\n"; return $output;
}

See, all the "class" codes (which are style sheet codes)...Delete them and make appropriate changes between the qq| |;
codes. (Note: I have bolded the line where the "New" codes are located.)

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
Thanks!

It worked! But there is one other little problem, the categories are on the left side of the page. I want them to be centered and I would also like to make the categories a little bit larger. I already tried to put tags around the <%categories%> tag, but that did not work. I think I have to edit something somewhere in this code which is at the very end of site_html_template.pl:
_______________________________

sub site_html_print_cat {
# --------------------------------------------------------
# This routine determines how the list of categories will look.
# We now use a table to split the category name up into two columns.
# For each category you can use the following variables:
#
# $url : The URL to go to that category
# $category_name : The category name with _ and / removed.
# $category_descriptions{$subcat}: The category description (if any).
# $numlinks : The number of links inside that category (and subcategories).
# $mod : The newest link inside of that category.
#

my (@subcat) = @_;
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i);
my ($half) = int (($#subcat+2) / 2);

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

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

# First let's get the name, number of links, and last modified date...
$url = "$build_root_url/" . &urlencode($subcat) . "/";
if ($subcat =~ m,.*/([^/]+)$,) { $category_name = &build_clean($1); } else { $category_name = &build_clean($subcat); }
$numlinks = $stats{"$subcat"}[0];
$mod = $stats{"$subcat"}[1];

# We check to see if we are half way through, if so we stop this table cell
# and begin a new one (this lets us have category names in two columns).
if ($i == $half) {
$output .= qq|</td><td class="catlist" valign="top">\n|;
}
$i++;

# 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|<font color="#0000A0"><medium><sup class="new">new</sup></medium></font>| 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>|;
}

# Don't forget to end the unordered list..
$output .= "</td></tr></table></div>\n";
return $output;
}

1;
___________________________

I would really appreciate it if someone could help me by letting me know how I can make the categories bigger.

Thanks!

Chris Roane

------------------
Web Site Resource
http://www.wsresource.com
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
Again, you can take out all the "class" coding and insert the HTML codes!

Example (for Categories):

You have:

Code:
$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;

Try this:

Code:
$output .= qq|<dl><dt>
<font size="4"><strong>
<a href="$url">$category_name</a>
</strong></font> <small>$numlinks)</small> |;

You can insert ANY regular HTML codes between the qq| |; codes.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
I got the category thing fixed and they are the way I want them to look. But, for some reason, the word "new" is below the category instead of being beside the category. You can see what I am talking about by going to "http://www.wsresource.com/links/pages/". You should notice that the word "new" is below the category "Site Tools" when it should be beside it. Here is some of the code for the word "new" near the bottum of site_html_templates.pl:

________________________________
$output .= qq|<p align="center"><font color="#0000A0"><medium>new</medium></font></p>| if (&days_old($mod) < $db_new_cutoff);
___________________________________

Thanks!

Chris Roane


------------------
Web Site Resource
http://www.wsresource.com
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
Nevermind the last message I posted. I fixed that problem. I need to learn my html tags a lot better. I use Frontpage way to much. Thanks for all your Eliot! I really appreciate it.

Chris Roane

------------------
Web Site Resource
http://www.wsresource.com
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
Well, the reason is that you have <p align="center"> in your codes. If you want the new statement next to your Category Name, then take out this code!

You have:

Code:
$output .= qq|<p align="center"><font color="#0000A0"><medium>new</medium></font></p>| if (&days_old($mod) <$db_new_cutoff);

Try this:

Code:
$output .= qq|
<font color="#0000A0"><medium>new
</medium></font>| if (&days_old($mod) <$db_new_cutoff);

Then in the previous lines where you have the category references, make sure you have a SPACE at the end of the following line before the |;

Code:
$output .= qq|<dl><dt><font size="4"><strong>
<a href="$url">$category_name</a>
</strong></font> <small>$numlinks)</small> |;

Smile

BTW: The trick to get LINKS working is NOT in the program, but using good web design techniques...H T M L!

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
Just Update the link.html file. Make sure if and enif statments are on their own line if using an editor. If you are not using templates letme know and ill show you how to fix this.

email wazza@flatrate.net.au


------------------
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
There are many tutorials in the WWW. Search for some. I learned from a webmaster who served as my guru for two years. He made me learn raw coding before using editors. And even when I moved to editors, he always made me go back to raw coding so that I would not forget.

Good luck.

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: I need help with something that probably can be fixed easily. In reply to
Thanks!

I am going to start learning all the tags now. Thanks for everything!

Chris Roane

------------------
Web Site Resource
http://www.wsresource.com