PDA

View Full Version : Display total number of listings for each main category


suzkaw
09-29-2005, 06:08 PM
This modification has been removed by suzkaw, sorry.

David
09-29-2005, 08:27 PM
Cool, thank you very much! 8)

otilia
10-26-2005, 07:28 PM
Thank you so so much!!!
That actually solved a big issue for me, for which I have posted a question on the board and got no answer: how to show next to the main categories only the number of links within, and not the number of subcats.

Again, thanks a lot!!!

Palyriot
10-27-2005, 06:42 AM
Thanks a lot for this script. It works great.

ChrilleK
11-02-2005, 09:49 AM
Content visible to registered users only.



otilia, I'm trying to do just that bu tI can't get it right. How did you do it?


And how do I display the results from this mod?

digitome@comcast.net
11-03-2005, 02:31 AM
I got this to work in the version 2 script but it doesn't seem to work in the new script any ideas?

digitome@comcast.net
11-03-2005, 02:50 AM
I figured it out.

Thanks

Chenka
11-06-2005, 07:33 PM
I can't seem to get it working....
{email address removed}, can you tell me how you did it?

Chenka
11-06-2005, 08:11 PM
Never mind, got it fixed as well. Though I have no clue what I did. I just combined the information from this topic with {old topic removed}.

Syphon
01-10-2006, 12:05 AM
THANK YOU SO MUCH!

FB
01-10-2006, 06:51 AM
Curious...which directory is functions.php located? I looked in my main directory and admin and functions.php is not there.


Nevermind...it's located in the include directory.

FB
01-10-2006, 07:02 AM
Content visible to registered users only.

can you explain what you did? nothing is showing on mine.

Funky Monk
01-28-2006, 02:15 PM
I applied this MOD but now it seems to have doubled the number. Shows 6 when there are 3 links.

euwebdirectory
03-01-2006, 04:52 PM
Hi.

I need to show in index after the categories, number of subcategories and links in this categories. Such as this ...

Art (12 / 45)
Computers (21 / 67)

Is it posible?

thx :shock:

neurosis4u
03-17-2006, 06:06 PM
how can i implement this mod into version 3.0.3??
Does anyone know it?

anon
03-17-2006, 06:34 PM
Content visible to registered users only.

follow the instructions in the initial post.

Neticus
03-17-2006, 07:20 PM
Content visible to registered users only.

For 3.03

Do as instructed in first post for functions.php
then in index.php look for (this is the last instance of this code pattern near the end of file)

Content visible to registered users only.


After add

Content visible to registered users only.


-

neurosis4u
03-17-2006, 07:25 PM
many thanks...
now it works. ( i put the code at the wrong place before)

anon
03-19-2006, 08:09 PM
now that's what i love to see. someone who actually tries and digs away until it works ;)

Steven Myers
05-24-2006, 05:48 PM
Can we get an update on this? if not can it be removed from the Complete Mod List.

neurosis4u
05-24-2006, 08:07 PM
why removing??
at least its running on all versions

anon
05-24-2006, 10:28 PM
yea, i didn't get why he posted that. 0_o

neurosis4u
05-25-2006, 12:31 AM
hm... i think he posted it because of the code is deleted from the first post^^
i have the code implemented, but i dont know if i can post the code again here, when the first poster have deleted it^^

Steven Myers
05-25-2006, 07:03 PM
Sorry about that guys, I should've been more clear. Yes, the code was removed from the first post, which I'd LOVE to have right now, would look better showing the number of links then next to it the number of categories.

links / categories putting that next to the main category. If we could get the full code again that would be excellent.

neurosis4u
05-27-2006, 11:22 AM
okay... here isthe code for showing number of links next to categories..
open include/functions.php
and insert this code right above from ?> (at the end of the file):

Content visible to registered users only.
then open your index.php and find

Content visible to registered users only. (this is the last instance of this code pattern near the end of file)

after this code add:
Content visible to registered users only. This code workes for me in all versions (2.0 , 3.04 and 3.05)

dedoo
05-29-2006, 12:55 PM
Great Mod but does not work completely right?

When there is a category deeper in the subcategory it does not count those links?

Category
sub category
subsub category (links not counted)

jaffa
06-04-2006, 10:35 AM
Thank you for posting the code again neurosis4u.
Very cool mod. Works good for me on version 3.05 using template RealBlue.:)

Steven Myers
07-20-2006, 02:45 PM
Just a quick note that this DOES work on 3.06 as well.

Great impliment!

neurosis4u
07-20-2006, 08:27 PM
Hm.. i found out, that this mod only counts regular links in the directory... the featured links are not in
:eek::rolleyes:

Steven Myers
07-21-2006, 06:26 PM
Very interesting, is there a line to impliment a line for the

if $featured ?

Nerz
08-10-2006, 05:42 AM
Id love this mod to include featured and a correct count on links within subcategories if possible :)

Any takers?

linkfisch
11-12-2006, 04:32 AM
hi there,

thanks a lot for this nice mod, it works well in 3.06 and if you find a way to count the featured links - i will be happy !!

Thanks

mphmi
12-05-2006, 11:52 PM
This line in the code posted by neurosis4u:
Content visible to registered users only.

should be changed to:
Content visible to registered users only.

I had a problem where links in just one of my categories weren't being counted on the main page (although they were being counted on subpages). That one little code edit fixed it for me.

neurosis4u
12-06-2006, 09:15 AM
This Mod works for me in Version 3.1


@mphmi : for me it works correct without any changes

mphmi
12-06-2006, 01:19 PM
It was working just fine for me too, until I got my first listing in one certain category, and it inexplicably wasn't counted on the main page. I tried other things to solve it-- even creating a new category and moving the link into it, but it still wasn't counted. As soon as I changed that 1 to a 0, the problem was fixed.

stake
12-09-2006, 12:43 PM
Help!
[Sat *** 0 10:00:00 2006] [error] PHP Fatal error: Call to undefined function get_ids() in /home/www/index.php on line 307

Tim_Myth
12-09-2006, 03:21 PM
Check to make sure you added the function get_ids to your functions.php file. That error means its not finding the function, so check get_ids function for errors (semi-colons, right number of braces, etc.)

Jarakeltor
01-18-2007, 02:21 PM
Bonjour miteinander.

Wollte mich vorstellen, nettes Forum habe gefunden indem ich nach "http://www.phplinkdirectory.com/foru...8ostcount=25" gesucht habe.. Und finds ganz interessant hier..

Salut, Jara

twentygirl
01-18-2007, 04:17 PM
This place seems to have a lot of nuts. Ok if I join too?


C ya later

Mary
01-31-2007, 09:49 AM
Version 3.1

I have do this:
http://www.phplinkdirectory.com/forum/showpost.php?p=21208&postcount=25

but I have a problem where links in just one of my categories weren't being counted on the main page
although they were being counted on subpages.

I have changed the code (include/function.php)
Line 2591
if (count($arr_new) >= '1')

changed to
if (count($arr_new) >= '0')

but it doen´t work. edit: fixed

dojo
08-04-2007, 09:07 PM
Working. Just put the

Content visible to registered users only.

AFTER: the } that ends the

Content visible to registered users only.

Someone forgot to put } in the code to be followed by the lines we paste.Works now for me too

neurosis4u
01-23-2008, 04:27 PM
This mod is working also in 3.3 :)

DirkE
03-07-2008, 11:46 AM
Hello,

I do have also the prblem, that this mod does not count the featured links.
Is there as workaround for this?
I did made all listed changes.

Thanks

Dirk

You can see/count the problem on: www.anthroinfo.de

thefandango
05-21-2008, 01:12 AM
I have tried everything mentioned in this thread and no numbers showing up anywhere! Does it work with 2.1.2 please and if so could someone tell me how they did it?

Thanks.


Content visible to registered users only.

shadav
05-21-2008, 08:53 PM
did you try
http://www.phplinkdirectory.com/forum/showthread.php?p=21208#post21208

thefandango
05-21-2008, 09:46 PM
Hi

Yes, did as stated in that post and then the additional bit later in the thread and made sure it was pasted after the bracket as stated :-(

thefandango
05-26-2008, 04:10 PM
This is really odd now! Two different servers, same 2.1.2 both in sub-directories, have triple checked code addition is exactly the same - and it works on one site but not the other!! Could it be a skin problem as they are different skins? Any help appreciated!

Thanks

Jason

shadav
05-26-2008, 04:28 PM
could be skin or maybe something in the servers...maybe some crazy mod_Sec rule that the one server has that the other doesn't...

Psycoach
08-24-2008, 10:49 AM
Warning : for a completely mysterious reason, when I used this code (modified function.php and index.php), all the caracter encoding went weird on my pages, including in the admin area (I'm french and use accents).

I run the 3.3

Anybody has a clue what it can be, and/or is there a mean to simply get the count of links inside of the subcategory near the subcategory name ?

ardo
10-22-2008, 10:51 AM
This Mod is working on Run Fat Cat including the change of 1 to a 0

Thanks

David M