Hello, my first time and post here. I have Links 2.0 installed and all is well except for the templates. I don't like all my categories to look like the same. I have a design to use all I want to do is add different links and adds on each category. So I guess I need to know the easiest way to change the templates? Sorry all new to link 2.0 and cgi all I know is html. Thanks in advance if anyone can help me!
Apr 6, 2005, 10:51 AM
Novice (9 posts)
Apr 6, 2005, 10:51 AM
Post #1 of 6
Views: 3577
Hello, my first time and post here. I have Links 2.0 installed and all is well except for the templates. I don't like all my categories to look like the same. I have a design to use all I want to do is add different links and adds on each category. So I guess I need to know the easiest way to change the templates? Sorry all new to link 2.0 and cgi all I know is html. Thanks in advance if anyone can help me!
Apr 7, 2005, 10:59 AM
Novice (9 posts)
Apr 7, 2005, 10:59 AM
Post #2 of 6
Views: 3530
Hi, sorry for that question! I did a search and found out the template mod. and I installed it in the place it told me to. While reading in the search I didn't find what else I need to do. This is what I put in the file site_html_templates.pl this is all I have done so far. So I need to change Category 1 to my first category right? Now my first category is Amateur and when I added it I named it Amateur.html. So would Amateur in the category_name then Amateur.html in the template line be what I have to change? I'm trying to take this step by step so I don't mess anything up. Do I have to change any thing anywhere else to make this work? Sorry I'm a true newbie thanks for your patience and help!
my $template;
# Set the appropriate template file to load
if ($category_name =~ /^Category1/) {
$template = "cat1.html"; }
elsif ($category_name =~ /^Category2/) {
$template = "cat2.html"; }
elsif ($category_name =~ /^Category3/) {
$template = "cat3.html"; }
else { $template = "category.html"; }
my $template;
# Set the appropriate template file to load
if ($category_name =~ /^Category1/) {
$template = "cat1.html"; }
elsif ($category_name =~ /^Category2/) {
$template = "cat2.html"; }
elsif ($category_name =~ /^Category3/) {
$template = "cat3.html"; }
else { $template = "category.html"; }
Apr 8, 2005, 10:04 AM
Veteran / Moderator (3111 posts)
Apr 8, 2005, 10:04 AM
Post #3 of 6
Views: 3518
Apr 8, 2005, 9:20 PM
Novice (9 posts)
Apr 8, 2005, 9:20 PM
Post #6 of 6
Views: 3503
Hey Bobsie, this is the code I put in and the Amateur and Anime categories are just a blank page now. When I hit build all it say error can't find category Amateur. Thanks!
# This rountine will build a page based for the current category.
my $template;
# Set the appropriate template file to load
if ($category_name =~ /^Amateur/) {
$template = "Amateur.html"; }
elsif ($category_name =~ /^Anal/) {
$template = "Anal.html"; }
elsif ($category_name =~ /^Anime/) {
$template = "Anime.html"; }
elsif ($category_name =~ /^Asian/) {
$template = "Asian.html"; }
elsif ($category_name =~ /^BBW/) {
$template = "BBW.html"; }
elsif ($category_name =~ /^Bisexual/) {
$template = "Bisexual.html"; }
elsif ($category_name =~ /^Boobs/) {
$template = "Boobs.html"; }
elsif ($category_name =~ /^Butts/) {
$template = "Butts.html"; }
else { $template = "category.html"; }
return &load_template ( $template, {
# This rountine will build a page based for the current category.
my $template;
# Set the appropriate template file to load
if ($category_name =~ /^Amateur/) {
$template = "Amateur.html"; }
elsif ($category_name =~ /^Anal/) {
$template = "Anal.html"; }
elsif ($category_name =~ /^Anime/) {
$template = "Anime.html"; }
elsif ($category_name =~ /^Asian/) {
$template = "Asian.html"; }
elsif ($category_name =~ /^BBW/) {
$template = "BBW.html"; }
elsif ($category_name =~ /^Bisexual/) {
$template = "Bisexual.html"; }
elsif ($category_name =~ /^Boobs/) {
$template = "Boobs.html"; }
elsif ($category_name =~ /^Butts/) {
$template = "Butts.html"; }
else { $template = "category.html"; }
return &load_template ( $template, {