Message Text |
I'm creating a custom page, but some of the variables that should work aren't.
First, I created a file called submissions.php that looks like this:
<?php $custom = 'yes'; $TID = 'custom/submissions'; require 'index.php'; ?>
Then in a custom template called submissions.tpl I have this toplist:
<CONFIG>links,time,10,descending,validated='no' and ownerid={MEMBERID},,,1,0,0,0</CONFIG>
WSN Links doesn't like the MEMBERID variable though. If I try to access that page, I get this error:
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/gamelinks.com/httpdocs/classes/database.php on line 226
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/gamelinks.com/httpdocs/classes/database.php on line 82
But when I place that toplist into a pre-existing template, like profile.tpl, the toplist works fine. Also, when I replace {MEMBERID} with a number, it also works correctly and creates a toplist of that member's ID. Therefore it doesn't seem like any variables are working properly in these custom pages the way I'm using them. Is this a bug, or is it supposed to not work this way, or am I doing something wrong? How do I work around this?
Ultimately, my goal is to have a page that'll show a member all his submitted links that are NOT validated yet - basically a pending submissions page.
Adam |