Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Jul 2008, 18:52
KaivanRijswijk KaivanRijswijk is offline
 
Join Date: Jul 2008
Lightbulb Using vbulletin as login for custom pages

I have created a few custom pages that are only accesable for administrators, i want to use vbulletin to check if a person is a administrator or not or if he is logged in or not.

I know phpbb has these scripts, but i cant find them from vbulletin. Is there anybody that can help me??

Thanx
Reply With Quote
  #2  
Old 22 Jul 2008, 21:36
Milad's Avatar
Milad Milad is offline
 
Join Date: May 2005
Real name: Milad
include global.php
Reply With Quote
  #3  
Old 23 Jul 2008, 12:18
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
If they are custom scripts already including global.php, you can use this to check. (Put this after your call to global.php.)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #4  
Old 23 Jul 2008, 12:23
KaivanRijswijk KaivanRijswijk is offline
 
Join Date: Jul 2008
So if i include global.php and that code its only accesable as administrator?

Because i dont need the template to be included
Reply With Quote
  #5  
Old 23 Jul 2008, 12:31
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Yes.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #6  
Old 23 Jul 2008, 12:32
KaivanRijswijk KaivanRijswijk is offline
 
Join Date: Jul 2008
Originally Posted by Dismounted View Post
Yes.
Thank you very much for this info
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:22.

Layout Options | Width: Wide Color: