Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
prekill
Worker
Worker



Joined: Oct 22, 2005
Posts: 201

PostPosted: Wed Apr 16, 2008 7:19 pm Reply with quote

Hey,

Many of my users reported that after they login, as they are surffing the website, in the login block the user name is changing to some other user...

after surfing to other pages this error is gone and they see thier user again..

what could case this? how to I fix this?

I Thought maybe caching but I am using no caching program/script.

maybe a cookie error? or bad your_account module? Rolling Eyes
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Apr 16, 2008 8:16 pm Reply with quote

Is this the default user info block that ships with nuke or a third party block you have added?
 
View user's profile Send private message Send e-mail
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Thu Apr 17, 2008 12:12 am Reply with quote

Are these users from the same work place, school, or something similar? If they are it might be that they are being cached by the organisations server. I have seen this happen at my work place.
 
View user's profile Send private message
prekill







PostPosted: Thu Apr 17, 2008 1:53 am Reply with quote

jakec I think not, there are all kind of users reporting this.

Guardian2003 its a login block I have created (or copied I cant recall exactly) which apears in the theme.php file:

Code:
/* Start Log-in block top left */    

    $uresult = $db->sql_query("select user_id from ".$user_prefix."_users where username='$username'");
    list($uid) = $db->sql_fetchrow($uresult);
    $presult = $db->sql_query("SELECT privmsgs_to_userid FROM ".$prefix."_bbprivmsgs WHERE privmsgs_to_userid='$uid' AND (privmsgs_type='5' OR privmsgs_type='1')");
    $pnumrow = $db->sql_numrows($presult);
   
        $priv_msgs = "<a href=\"messages.html\"><font color=\"red\"><b>$pnumrow</b></font> äåãòåú çãùåú</a>";

        if ($username == "Anonymous") {
   $theuser = "<form action=\"account.html\" method=\"post\"><b>ùí îùúîù:</b><br><input class=\"headerinputtext\" type=\"text\" name=\"username\" value=\"ùí îùúîù\" onFocus=\"if(this.value=='ùí îùúîù')this.value='';\" style=\"width:100;height:16;border:1px solid blue;\"><br><b>ñéñîà:</b><br><input class=\"headerinputtext\" type=\"password\" name=\"user_password\" value=\"password\" onFocus=\"if(this.value=='password')this.value='';\" value style=\"width:100;height:16;border:1px solid blue;\"><input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><input type=\"hidden\" class=headertextinput name=\"gfx_check\" value=\"$code\"><input type=\"hidden\" name=\"op\" value=\"login\"><br><input type=\"image\" value=\"login\" src=\"themes/Preflight/images/login.gif\" class=\"inputimage\">&nbsp;&nbsp;<a href=\"account-new_user.html\"><img src=\"themes/Preflight/images/register.gif\" border=\"0\" alt=\"äéøùí\"></a></form>";
    } else {
        $theuser = "<center><font color=\"blue\"><b>áøåê äáà!</b></font><br><b>$username</b></center><hr>$priv_msgs<br><a href=\"forum-editprofile.html\">ùéðåé äâãøåú ôøåôéì</a><br><a href=\"account-logout.html\">äúðú÷</a>\n";
    }
/* End Log-in block top left */


I use $theuser in header.html file.

This code might be wrong?
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©