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

{LINKPARENTID}
not working?

Version:


{LINKPARENTID}
peumus
Forum Regular
Avatar

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 136
Total Posts: 350
Posted 02/03/08 - 11:11 AM:
quote post
#1
Paul,

Please review if this variable is working.

I need to make toplists of links from my main categories, (links published at their subcategories) but this variable seems to be not working .
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 02/04/08 - 01:21 PM:
quote post
#2
There is no such {LINKPARENTID} variable and never has been. Link variables: http://scripts.webmastersite.net/wsnlinks/wsnmanu...

Presumably you want either {LINKCATID} or {LINKCATPARENTID}.
peumus
Forum Regular
Avatar

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 136
Total Posts: 350
Posted 02/07/08 - 07:42 PM:
quote post
#3
Thanks but it seems that there's an error that's arising presumably with 'catparentid' from my toplist at main.tpl:

Query 22: SELECT `id`,`title`,`url`,`description`,`rating`,`votes`,`validated `,`catid`,`sumofvotes`,`email`,`time`,`hits`,`numcomments`,` hide`,`ownerid`,`voterips`,`voterids`,`lastedit`,`type`,`not ify`,`suspect`,`pendingedit`,`funds`,`suspended`,`alias`,`ex pire`,`ip`,`inalbum`,`typeorder`,`recipurl`,`hitsin`,`recipw ith`,`hitsinips`,`hitsoutips`,`lastcomment`,`related`,`inhid den`,`viewers`,`threadviewers`,`hitsintemp`,`hitsouttemp`,`o rigtype`,`importance`,`parentids`,`timesdead`,`timesemailed` ,`threadclosed`,`threadposters`,`lastposterid`,`lastposterna me`,`ownername`,`deleted`,`deletionreason`,`movedto`,`delete dby`,`timevalidated`,`filefield`,`message`,`sticky`,`downloa ds`,`pollid`,`posticon`,`savedby`,`validatedemail`,`unpaid`, `recipverified`,`effectivetime`,`sugcatid`,`pagerank`,`wysih tml`,`movedid`,`unrevised`,`feedurl`,`feedcache`,`feedcachet ime`,------------`timedeleted` FROM econo_links WHERE validated=1 AND hide=0 AND deleted=0 AND inhidden=0 AND (type != "prioridad_maxima" and catparentid =185 AND invisibleto NOT LIKE '%|3|%') AND effectivetime < 1202441767 AND alias=0 AND inalbum=0 ORDER BY id DESC LIMIT 0,35


Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\proyects\nndomain\nndomain\databases\mysqli. php on line 20

Number of rows is Unknown column 'catparentid' in 'where clause'



Also, pleas note that 'catparentid' does not appears at the toplist list of link variables nor at the add fields list of link variables.

Edited by peumus on 02/07/08 - 07:57 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 02/08/08 - 01:17 PM:
quote post
#4
It isn't a field, it's just a template variable, so you can't sort a toplist by it. Unless it's a category toplist in which case you use parent, of course.
peumus
Forum Regular
Avatar

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 136
Total Posts: 350
Posted 02/08/08 - 03:11 PM:
quote post
#5
OK I have it finally working by using parentids LIKE '%|||1|||%' as explained at:
http://scripts.webmastersite.net/wsnlinks/wsnmanu...

Thanks.
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.