Hey Glenn,
So I run the forums of a gaming community. In Milsim style we have a sit rep report. If someone does something good, or something bad there is a report someone can fill out and only certain people can see it in the forums. All the posting and stuff I have working (Thank you). So I was creating the form in a php module. I have a link on the submenu that calls it.
However, I was so used to calling ./global.php from vb4 days I did it instinctively.
What I found out is. When you do call ./global.php. It actually kills the user session.
$vbulletin->userinfo['userid'] would = 0. I was losing my mind cause I was sure I fixed the posting code but it came up with no permissions. Well that was because it was having the userid, and session removed.
All I had to do was remove the ./global.php include and everything worked. But I'm finding the more I post in here after I can't figure it out, its usually a few min later I figure it out on my own.
|