logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

total links in subcategory
to show at main

Version:


total links in subcategory
peumus
Forum Regular
Avatar

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 137
Total Posts: 358
Posted 02/03/08 - 04:20 AM:
quote post
#1
I need to present the total links each subcategories have. This at main.tpl .

At the moment we have as manual explains :

{CATNUMLINKS} - Number of links in the category plus all its subcategories.
{CATLINKSHERE} - Number of links in the category excluding subcategories.

but none of them works for my purpose. Is it a way to present the number of links for each subcategory , but at main.tpl ?

Do I need to request a {SUBCATNUMLINKS} ?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5726
Posted 02/04/08 - 01:55 PM:
quote post
#2
Additional fields can be supported in the subcategories on main page area using the $subhtmlfields tweak: http://scripts.webmastersite.net/wsnlinks/wsnmanu...

In this case, $subhtml = 'numlinks,linkshere';
peumus
Forum Regular
Avatar

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 137
Total Posts: 358
Posted 02/07/08 - 07:17 PM:
quote post
#3
Thanks,

It works, but it need categories to be regenerated to update on new links added.

I notice that by sating at tweaks.php : " $dontcachesubcats = true; " , the 'catnumlinks' variable works online.

But as you say that by do not cacheing subcats we can have a server risk,
so could it be possible to have
an online value of 'catnumlinks' on subcats this working with cacheing subcats but without the need for regeneration ?

Best Regards,
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5726
Posted 02/08/08 - 10:27 PM:
quote post
#4
Adding detection of that when adding links now.
peumus
Forum Regular
Avatar

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 137
Total Posts: 358
Posted 02/13/08 - 03:56 PM:
quote post
#5
Paul,
Please also consider decriment detection when links get expired/deleted/hidden

Thanks,
peumus
Forum Regular
Avatar

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 137
Total Posts: 358
Posted 02/17/08 - 08:58 PM:
quote post
#6
Paul,

At what ver. can I expect this feature? Just checked 4.1.30 and it does not have it.

Thanks,
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5726
Posted 02/20/08 - 08:53 AM:
quote post
#7
It was supposed to work. I see it only refreshes the subcats html of the category the link is submitted to, not the levels above. Fixing.
peumus
Forum Regular
Avatar

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 137
Total Posts: 358
Posted 02/28/08 - 06:16 PM:
quote post
#8
I now see it working perfect.

I do have a doubt on how to deal with the hidden links.
{CATNUMLINKS} counts the presented and hidden links, I believe this is correct, but I would like a way to count the hidden links in order to deduct them and to show the number of presented but not hidden links, so maybe a {CATNUMHIDDENLINKS} to deduct or a direct {CATNUMNOHIDDENLINKS}. What do you think ?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5726
Posted 03/05/08 - 01:26 AM:
quote post
#9
Best post it in feature suggestions so I don't forget it.
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.