PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
prekill
Worker
Worker


Joined: Oct 22, 2005
Posts: 186

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

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: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
jakec
Site Admin


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

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

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
Worker
Worker


Joined: Oct 22, 2005
Posts: 186

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

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=\"modules.php?name=Your_Account\" 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?
View user's profile Send private message
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum