Joined: Sep 19, 2003 Posts: 95 Location: St. Louis, MO
Posted:
Sun Jun 20, 2004 12:12 pm
Hey,
I went to test a banner I had installed and it opened a 404 when I clicked it. Just for the sake of trying I thought it might have something to do with me being logged as an admin. so I logged out and clicked the banner again, this time it worked. So whatever it is... only happens when I'm admin.
I opened my theme.php and found a "if (!is_admin($admin)" function, I wonder if that might be where the problem is?
I'm using a bit of an older theme but it seems to be working well... other than this of course. I'm not actually sure the theme is related to the bug, but it's my hunch.
Here's the function themeheader from my theme.
Code:
function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous;
if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
/* Get a random banner if exist any. */
/* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Mon Jun 21, 2004 6:40 am
I don't think that's the problem. That piece of code simply tells the system to only update the impressions counter if the person clicking on it is NOT an admin.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum