Webmastersite.net
Register Log In

Toplist no longer works on details page

Comments on Toplist no longer works on details page

babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 20, 2009 - 6: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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 21, 2009 - 9: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

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 22, 2009 - 12:43 AM:

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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 23, 2009 - 6:27 AM:

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

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

Created an admin login for you at your forum profile email.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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