Gossamer Forum
Home : Products : Links 2.0 : Customization :

templates by alex krohn

Quote Reply
templates by alex krohn
I'm trying to find this mod that's needed to run this template... i can't find it on the mod section (yes i'm prolly blind but it's 6:30 am ;p) .. somebody please help?

-cherie


# Script Resource Section Templates
# Created by: Alex Krohn (alex@gossamer-threads.com)
# Version: 1.0 (May 10, 1999)

To use these templates, you'll need to install the Nested If modification
that allows <%include filename.txt%> tags to include other files. You can
find this, and other mods at:

http://gossamer-threads.com/scripts/resources/Links/Modifications

These templates use a common header and footer found in header.txt and
footer.txt that you can edit to your liking.

Let me know if you have any problems.

Alex


Quote Reply
Re: templates by alex krohn In reply to
Did you check the Templates sub-section of LINKS 2.0 in the Resource Center?

I betcha it's in there!

Regards,

Eliot Lee
Quote Reply
Re: templates by alex krohn In reply to
whatcha mean? i checked the templates section for the MOD yes.. i didn't find it there.. nor where it is on the README file.. if u seen it and i'm just blind please point it out to me on where the MOD is :) for this template..

-cherie

Quote Reply
Re: templates by alex krohn In reply to
Time for you to see the eye doctor!

Wink

I found the Template you are looking for in the following web page!

http://www.gossamer-threads.com/...ces/Links/Templates/

Which is linked off the Links section in the Resource
Center
!!

The Template is located here:

http://www.gossamer-threads.com/...rces/jump.cgi?ID=146

Low and behold...Look at the link description....

Code:
Script Resource Center Templates - These are the templates that this directory is using!
Created By: Alex Krohn
(Added: 1999-05-10 Hits: 3454 Rating: 7.00 Votes: 11) Rate It
I also conducted a search of the Resource Center using "Alex template"
and the above link came up in the search results.

Try using the Resource Center search engine found at:

http://www.gossamer-threads.com/...resources/search.cgi

And there are also search boxes at the bottom of every page in the
Resource Center.

Wow! Tongue

Good luck!

Regards,

Eliot Lee
Quote Reply
Re: templates by alex krohn In reply to
no no no.. i'm looking for the MOD for the template not the template itself! :P (as specified on the README file)

Quote Reply
Re: templates by alex krohn In reply to
Oh...the old name of this "Mod" was called Enhanced Template.pm, which seems to have been deleted.

But you can use the New parse Mod, which will accomplish the same goal...and THIS MOD IS LINKED in the Modification section of LINKS 2.0 in the Resource Center.

Regards,

Eliot Lee
Quote Reply
Re: templates by alex krohn In reply to
thanks :) now if i can just get sub categories to work.. (with the widgets one)

keeps saying..
Error including libraries: Missing right bracket at /home/cherie/www/cgi-bin/admin/site_html_templates.pl line 457, at end of line
syntax error at /home/cherie/www/cgi-bin/admin/site_html_templates.pl line 457, at EOF

Make sure they exist, permissions are set properly, and paths are set correctly

::keeps trying::

Quote Reply
Re: templates by alex krohn In reply to
Welp, you probably have not added a closing right bracket, or you have not added the complete codes from the Mod instruction page.

Regards,

Eliot Lee
Quote Reply
Re: templates by alex krohn In reply to
'k i've been at this for hrs... do u see anything wrong? i copied and pasted what's on his .txt file

or if u can..please copy and paste your code.. cause i see there's a lot of ppl saying his code is a bit messed up? =\


# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<a class="catlist" href="$url">$description</a> <font class="catlist">($numlinks)</font>$
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|<BR>|;

if ($subcatstyle =~ m,^\(([^\)]+)\)(\d)$, && $#{$subcategories{$subcat}} >= 0) {
($subcatstyle, $style) = ($1, $2);
$s = 0;
@subcatsub = split (/\|/, $subcatstyle);
$output .= qq~ ~ if ($style eq "1");
foreach $category_name (@subcatsub) {
foreach (sort @{$subcategories{$subcat}}) {
($subcatstyle eq "ALL" && $#subcatsub == 0) ?
($_ =~ m,.*/([^/]+)$, and $category_name = &build_clean($1)) :
($_ eq "$subcat/$category_name" or next);
if ($style eq "1") {
$length += length($category_name);
($length > $subcat_length) and last;
}
if ($s > 0) {
$output .= qq~, ~ and $length += 2 if ($style eq "1");
$output .= qq~ ~ if ($style eq "2");
}
$url = "$build_root_url/" . &urlencode($_) . "/";
$output .= qq~<LI>~ if ($style eq "2");
$output .= qq~<a class="subcat" href="$url">$category_name</a>~;
$s++;
last if ($subcatstyle ne "ALL" && $#subcatsub > 0);
}
}
undef $length;
if ($s < $#{$subcategories{$subcat}}) {
$output .= qq~...~ if ($style eq "1");
}
$output .= qq~<BR>~;
}
else { }}

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

Quote Reply
Re: templates by alex krohn In reply to
oh yeah.. the error that it gives me is this:

Error including libraries: Unmatched right bracket at /home/cherie/www/cgi-bin/admin/site_html_templates.pl line 458, at end of line
syntax error at /home/cherie/www/cgi-bin/admin/site_html_templates.pl line 458, near "}"

Make sure they exist, permissions are set properly, and paths are set correctly

Quote Reply
Re: templates by alex krohn In reply to
Look at the following codes:

Code:

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


Do you see the problem??? I do...I am seeing double. You only need one of these set of codes NOT two. By putting in two sets of:

Code:

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


You are getting that error message!

Regards,

Eliot Lee
Quote Reply
Re: templates by alex krohn In reply to
no error message now... but now..i get these:

(1) new
(0)
(0)

no category names! argh =\


Quote Reply
Re: templates by alex krohn In reply to
*sigh*

Change the following codes:

Code:

|<a class="catlist" href="$url">$description</a>


to the following codes:

Code:

|<a class="catlist" href="$url">$category_name</a>


BTW: This solution has been posted a few times in other Threads in this forum...please try searching the forums in the future.

Regards,

Eliot Lee
Quote Reply
Re: templates by alex krohn In reply to
ahh.. sorry.. i'm kinda tired been trying to fix this all day.

Thanks for your patience and help =) really appreciated.