Gossamer Forum
Home : Products : Links 2.0 : Discussions :

How do I get this to do this?

Quote Reply
How do I get this to do this?
Okee .... let me try to explain what I need -- my link list to show sub categories.

Let me explain a bit more.

Right now mine shows like this:

CATEGORY NAME (number) description, i.e. MOVIES (17) Reviews of mainstream movies.

What I'd like is this:

CATEGORY NAME sub category sub category sub category ...

i.e. MOVIES

(smaller print) Comedy, Action, Drama, Lousy ...

Help!



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] How do I get this to do this? In reply to
Try this:

http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=109383#109383


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] How do I get this to do this? In reply to
So I either use some code that may or not work, or I beg someone named Jerry to release a mod he refuses to release?



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] How do I get this to do this? In reply to
The code works fine, and it's simple chnage. Look at the last post in the thread I linked, add the red part to your file, and presto! This is the same 'Yahoo' mod I use on my site, with the additional hack of making it use the nonenglish mod.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] How do I get this to do this? In reply to
Ok, I'll try it and hope it doesn't break things. Just in case I put out the job for a modification as a project on my freelancer's site.


Edit: Looking at his site, it's not what I want. The sub-categories he has are not linkable ... the other sites I've seen with a modification like that have each sub-category clickable



I'd like to be alone in a room, and enjoy the company.

Last edited by:

hairy: Jan 17, 2004, 5:24 AM
Quote Reply
Re: [hairy] How do I get this to do this? In reply to
The basic mod will have the categories linked; I didn't want them to be, so I changed the code on mine. This is a simple drop-in-place change, can't mess up too bad...


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] How do I get this to do this? In reply to
Well, I added that in, and absolutely nothing has changed on my main page. I see no place for me to add any sub categories and absolutely nothing has changed



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] How do I get this to do this? In reply to
You did rebuild (Build All), didn't you?


You may need to add this to subroutine:

my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i, $subcatsub);


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Jan 17, 2004, 1:55 PM
Quote Reply
Re: [PerlFlunkie] How do I get this to do this? In reply to
Where, specifically, would I add that?



I'd like to be alone in a room, and enjoy the company.
Quote Reply
Re: [hairy] How do I get this to do this? In reply to
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, $subcatsub);
my ($half) = int (($#subcat+2) / 2);

# Print Header.



Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] How do I get this to do this? In reply to
Did absolutely nothing.

Ended up buying Links Pro 3.0 rather than wasting time trying to make it do something it obviously does not want to do.



I'd like to be alone in a room, and enjoy the company.