You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 124 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Your_Account not finding user [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
sleepingkiller
Private
Private


Joined: Sep 19, 2004
Posts: 41


PostPosted: Fri Aug 12, 2005 7:13 pm Reply with quoteBack to top

ok i was adding some mods/hacks to my forums and wanted to test one. so i log out... i couldnt so i clear all my cookies and im finally logged out
i test the new mod and it worked good for guests.

i go to log in and it will not let me log in using Your Account...

well it logs in but it just shows my user information as if im a guest viewing it

so i add something to the lines to check my cookies

Code:

   if((strtolower($username) == strtolower($cookie[1])) AND ($userinfo[user_password] == $cookie[2])) {
      echo "<font class=\"option\">$username, "._WELCOMETO." $sitename!</font><br><br>";
      echo "<font class=\"content\">"._THISISYOURPAGE."</font></center><br><br>";
      nav(1);
      echo "<br><br>";
   } else {
      echo "<font class=\"title\">"._PERSONALINFO.": $username</font></center><br><br>";
      echo "Your are user:$cookie[1] under password: $cookie[2]";
   }


what comes up is

Your are user: under password:


this is making me mad. but yet the login block goes away and when i view forums it is showing me logged in.

i removed forums module and replaced with a new one thinking something i did in forums is causing this but nothing....

so i add a fresh install of phpnuke and set up the config to read my data.
some blocks broken but my your account works

i go back to old one and its not working....



i hope i didnt confuse you guys and you can help me get this fixed...
i dont know what could cause this as i havnt edited the Your_Account Module
Find all posts by sleepingkillerView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12342


PostPosted: Fri Aug 12, 2005 8:37 pm Reply with quoteBack to top

Looks like $cookie isn't being decoded maybe.
Try
Code:

cookiedecode($user);

before that block of code

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
sleepingkiller
Private
Private


Joined: Sep 19, 2004
Posts: 41


PostPosted: Sun Aug 14, 2005 12:18 pm Reply with quoteBack to top

it is but

Code:
if(!bypass) cookiedecode($user);


that was causing errors. i removed the if statement and left just cookiecode and it worked. but i put it back and did this

Code:

$UserCheck = cookie[1];
$PassCheck = cookie[2];
.....
   if((strtolower($username) == strtolower($UserCheck)) AND ($userinfo[user_password] == $PassCheck)) {
Find all posts by sleepingkillerView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.177 Seconds - 274 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::