Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

How do I remove the links count on home.html?

Quote Reply
How do I remove the links count on home.html?
When you create a new category on home.html it looks like this:

Category (0)

How do I remove the links count so that is just looks like this:

Category

Thanks!


Quote Reply
Re: How do I remove the links count on home.html? In reply to
site_html_print_cat as discussed many times

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Why do you have to have such an attitude? In reply to
Not all of us have made close to 4,000 posts like you Mr. Wilson.
This is a HELP forum..not a place to come and be ridiculed.

I have read countless posts where you berate other posters
because they don't know the answers. UH..this is a HELP
forum! We wouldnt come here if we knew the answers.

Of course people will ask the same questions over and over..
don't answer the question if it bothers you so much. There
are worse crimes in this world, Mr. Wilson.

YES I already tried searching on my topic..or I would
NOT have posted.

It is obvious you aren't here to help people, but to post
your URL all over this board.

You sure live up to the stereotype of the English...
what ashame.

And your post did not help me at all..but I am suppose to know
everything like you I presume?

Thanks for making this board such an enjoyable place where
you are afraid to ask questions..



Quote Reply
Re: Why do you have to have such an attitude? In reply to
Did I ridicule you?...no
Did I patronise you?...no
Was I rude?...no
Did I tell you the answer?...(as good as)
Has this question been answered many times before as I said?...yes

Therefore in conclusion my post was valid.

As far as posting my URL goes, then yes I do post my url because that is where people can DOWNLOAD LINKS2 MODS - IT BENEFITS ME IN NO WAY BECAUSE THEY ARE FREE (apart from one).


Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Why do you have to have such an attitude? In reply to
Yeah Im a racist..get real.

Were you rude? - YES..there was no need for your comment..

Did you answer my question- NO...u put a file name that
I have no clue about. I haven't made 4000 posts like you
and know Links inside and out as you do.

Are you rude to others on this board- YES..Go look at
your previous posts and how you treat others. I am not
the first poster you upset..

Please don't tell me you get nothing out of posting your
URL..

"IT BENEFITS ME IN NO WAY BECAUSE THEY ARE
FREE (apart from one). "

And you don't benefit from this right? Done out of the kindness
of your heart? Sorry, you don't strike me as the type.

You obviously don't come here to help people..because
75% of your posts I read have snide remarks to them.

I remember who you are because everytime I read a rude
comment on this board it is almost always you..

I thought to myself..this Paul Wilson is obnoxious, he
is always putting new posters on this board down.

Keep your comments to yourself, because there is no
need to treat people in this manner.

As I said before..if we knew all the answers, we wouldn't
come here.





Quote Reply
Re: How do I remove the links count on home.html? In reply to
Jasont,

Your outrage is unfounded. Yes this is a Help forum (among other things) and you asked for help and Paul responded. If the answer he gave you was insufficient for your needs all that was necessary was to further your inquiry. I'm not defending Paul one way or the other but he does help a lot of people with his mods and suggestions.

Meanwhile if you go the subroutine inside of your site_html_templates.cgi that Paul recommended you will find the html contained therein to make the changes you were asking about. If you need further guidance ask. If somebody here tells you to look it up or search it's because the question has been dealt with many, many times and probably was answered extremely well earlier.

On the otherhand even the gruffest of posters here will give an answer if your persistent and refrain from instigating an argument.

Quote Reply
Re: How do I remove the links count on home.html? In reply to
My comments to Paul were well deserved...

While reading through numerous posts he was the only named
I remembered because he was so rude to MANY MANY posters..

I am not upset with his answer, even if it was vague. I am upset
at his comments..when people like him act that way, it makes you
hesitant to ask any more questions.

There was no need for him to make that comment..and usually
I would have let it go, but as I said before, I recognized his name
because he is so rude to others on this board. He makes alot
of underhanded comments that aren't nec.

I am not the only poster he has upset..as I previously stated.

If he doesn't like my question..DONT answer it. No need to
be rude..



Quote Reply
Re: How do I remove the links count on home.html? In reply to
Jason... Looks like u still don't have your answer so I'll have a go at it, just for the hell of it...

In the "admin" directory there's a file called site_html_template....

Right near the bottom of that file, you should see this:

########################################################################################
# THE FOLLOWING DETERMINES YOUR CATEGORY LISTING, IT'S NOT TEMPLATE BASED (YET)! #
########################################################################################

...Just below it on the next line you should see:

sub site_html_print_cat

...a tad further down you'll see this:
# 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];


I know you gotta remove this line:

$numlinks = $stats{"$subcat"}[0];

...but I'm not sure about the one that follows....

You might want to "trial and error" it... :)




Quote Reply
Re: How do I remove the links count on home.html? In reply to
IMHO you have been undeservedly unfair to me. I NEVER knowingly am rude and still don't feel I was with my response to your question. All you needed to say was "Please expand" if I didn't provide the answer you wanted.

Let's let the matter lie and I apologise if I offended you and I hope you will apologise for the way you spoke to me also.


Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: How do I remove the links count on home.html? In reply to
Sorry ed you are incorrect.

All he needs to do is remove:


($numlinks)



Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: How do I remove the links count on home.html? In reply to
cool... :-)

Quote Reply
Re: How do I remove the links count on home.html? In reply to
Acttually Paul if your referring the removal of the $numlinks tag in these two lines:
$numlinks = $stats{"$subcat"}[0];
$mod = $stats{"$subcat"}[1];

...That's not correct either, cuz I tried it on a site that I'm playing around with now and it caused an internal server error when I went to rebuild it....

But if I remove the whole line or both lines I get no error... What I do get is the empty brackets showing up in the subcategories and the total amount of links still showing on the home page...

....Sooooooo not being an exspurt in these matters, I assume there is more to this than meets the eye than just the removal of this tag $numlinks from the area specified...

Hummmmm????... whut to do???...whut to do???.... <:-)



Quote Reply
Re: How do I remove the links count on home.html? In reply to
Code:
$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: How do I remove the links count on home.html? In reply to
Oh wow...look for the $output .=
Code:
<FONT SIZE="2" FACE="Verdana, Arial" COLOR="000000">
<b><a href="$url">$category_name</a></b> <small>($numlinks)</small>
Quote Reply
Re: How do I remove the links count on home.html? In reply to
Just too slow on the trigger ... I'll quit trying.

Quote Reply
Re: How do I remove the links count on home.html? In reply to
Gee thanks fellas for jumping on board and taking care of Jason's dilemma......

Now that didn't take very much effort and sure saved a load of useless banter amongst all...

<:-)

Oh... Yeah and Jason... That ammendment that Paul kindly posted is just a few lines lower than where I was playing around...:-))))

# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<font face="verdana, arial, tahoma" size="2"><a class="link" href="$url"><b>$category_name</b></a></strong> <font color="#00009f" size="1">($numlinks)</font> |;

(That's offa my page...)

<<:-)
Quote Reply
Re: How do I remove the links count on home.html? In reply to
You think Im stupid don't you ed?

I know you and I knew that was your plan all along and so I was just going along with it.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: How do I remove the links count on home.html? In reply to
>>>You think Im stupid don't you ed? <<<<

ABSOLUTELY NOT!!!!.... and nowhere and at no time have I ever inferred it or stated it..

<:-(



Quote Reply
Re: How do I remove the links count on home.html? In reply to
You see how things can be easily misinterpreted on these forums.

I was only joking.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: How do I remove the links count on home.html? In reply to
I think you stupid

lol

<stu adds a spanner in the works, quickly grabs his coat and leaves ==} ==} ==}

The joys of the internet

Stu2000 - The Ultimate World
http://www.world-porn.org/worldhackerz/