WebmasterSite.net

Toplist no longer works on details page

Version: 5.0.45
URL:

PrintPrint


Toplist no longer works on details page
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 392
Total Posts: 1287
quote post #1
Posted 04/20/09 - 3:17 AM:

I have a toplist in my wrapper and it has always worked well on all my sites.

<!-- BEGIN TOPLIST -->
<CONFIG>links,rand(),1,descending,longbanner !='',,,0,0,0,0,0,0,,0</CONFIG>
<a href="link.php?id={LINKID}" {EXTERNALLINKS}>{LINKLONGBANNER}</a>&# 60;br >
<!-- END TOPLIST -->

I have just noticed that this no longer displays on the details page. In checking, it appears that it has ignored longbanner not null, and is in fact trying to display that field for the link it is on. This isn't too bad (although not what I want) when that link had a longbanner, but when it doesn't there is of course nothing displayed.

I am not sure when this stopped working but, going through my sites, definitely from 5.0.41
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 04/21/09 - 6:48 PM:

Check wsnlinks_links in phpmyadmin. Does the longbanner field have NOT NULL set, and a default value of blank... or NULL set with a default value of NULL? It should be the former, the latter woudl cause the condition to not work.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 392
Total Posts: 1287
quote post #3
Posted 04/21/09 - 9:43 PM:

Paul wrote:
Check wsnlinks_links in phpmyadmin. Does the longbanner field have NOT NULL set, and a default value of blank... or NULL set with a default value of NULL? It should be the former, the latter woudl cause the condition to not work.




The former - Null is set to NotNull and default2 is blank
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #4
Posted 04/23/09 - 3:27 AM:

If I understood you, you're seeing something when there's nothing in the longbanner field. I'm not.

http://sandbox.webmastersite.net/w...operating-days-test-8.html

Created an admin login for you at your forum profile email.

Edited by Paul on 04/23/09 - 3:30 AM
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.