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.4
Author Message
Cirque
Hangin' Around



Joined: Oct 10, 2004
Posts: 35

PostPosted: Sat Nov 20, 2004 8:26 am Reply with quote

[ Only registered users can see links on this board! Get registered or login! ]

I am having this problem with 7.4 and 2.6 chatserve patch. Any help would be great.
 
View user's profile Send private message
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Sat Nov 20, 2004 11:35 am Reply with quote

What block are you using, the user_info block included with the patch or another? Can you post a url?
 
View user's profile Send private message Visit poster's website
Cirque







PostPosted: Sat Nov 20, 2004 5:59 pm Reply with quote

Using the "User Info" block that came from this site available in the downloads here and used on this site. I do have subscription info worked into my theme (milo, modified), but that always seems to display properly. And as a user my info displays properly, its only when on as admin that the code freaks out. It relies on is_admin($admin). So I put in a check to the IF paid() AND !is_admin and then If Paid() AND is_admin and it seemed to help a little but still wrong.

If you look into Your_Account\index.php at "userinfo()", is it just me or does that section of code use diffrent methods to figure out who's info should be seen? In some parts its $userinfo[cookie1] or cookie0 and others its $username[user_name] or $userinfo[user_id], just glancing at it, it seems like its not very uniform in trying to determin who's info should be displayed. Also the IF routine seems a bit screwy. Almost like the admin sub info is really the users and the users is the admins (when viewing from an admin account and looking at a users). And of course the points are showing as mine also if I am in on admin..

I tried editing and moving the brackets around to restrucure that section of Your_Account userinfo(), and write it so that each condition had its own section (ie. not paid, paid but not admin, paid and admin), but I dont have enough knowlage to know what it all means so I always end up going back to where I started Sad
 
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.4

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 ©