miniBB Support Forums
|
Forums
|
Register
|
Reply
|
Search
|
Statistics
|
Manual
|
miniBB Support Forums
/
Master Class
/
Add-on condition: checking if user has logged in
Anonymous
Guest
#1
|
Posted: 5 May 2004 21:57
Hey there.
First off, great board.
I've got a custom upload script that I'd like to use. I'd like to restrict access to it to registered users that are allowed access to my private forum.
What I'm curious is what do I have to include in that will allow me to check login state?
I've searched the forums, but haven't found anything of use.
Thanks very much!
Team
#2
|
Posted: 6 May 2004 10:11
You need to include it... hmm, depends on script itself :) Actually, somewere in the middle of index.php, there is a definition of User ID ($user_id variable), so you need to catch this var and get on it...
Anonymous
Guest
#3
|
Posted: 6 May 2004 22:04
Well, it's just an image upload script. I'd like to allow my registered users who are allowed access to the private forums access.
What I'm having trouble finding is the function that checks to see if a user is in that array.
Team
#4
|
Posted: 7 May 2004 10:25
If $user_id!=0 - then this is logged & registered user.
miniBB Support Forums
/
Master Class
/ Add-on condition: checking if user has logged in
↑
Top
Your Reply
Short link for this topic:
?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.
Before posting, make sure your message is compliant with our
forum posting rules
. If not, it may be locked or deleted with no explanation.
News & Announcements
FAQ
How To
Bugs
The Other
Official Addons and Solutions
Custom Tutorials and Modifications
Master Class
Specific
Re-cycled
Suggestions
Testimonials
qwerty
Features
Requirements
Demo
Download
Showcase
Gallery of Arts
Compiler
Premium Extensions
Premium Support
License
Contacts
Did you know that you may be allowed to hide miniBB credits
and
remove miniBB's copyright notice
?