vBulletin Modifications

Only certian users can view this page

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 03-18-2006, 08:15 PM   #1
Junior Member
Join Date: Nov 2005
salman is on a distinguished road

Default Only certian users can view this page

Is there a php script which ic an use that will show an HTML page taht only selected users or users from a specific usergroup can view the page...LIKE THIS i got made earlier in which only LOGGED IN people can view the PAGE...but i dont wnat logged in users i want only users from A SPECIFIC group like moderators, or administrators to be able to view the page...


You must first be a registered member to view any code.

so i basically instead of having ALL logged in members view the poage i want only people from a specific group...is taht possible??




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 03-18-2006, 08:20 PM   #2
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

I guess you can use

if (!$vbulletin->userinfo['usergroupid'] == 6)

6 = admin




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-18-2006, 08:41 PM   #3
Junior Member
Join Date: Nov 2005
salman is on a distinguished road

Default

thanks but that didnt work if i do that now
You must first be a registered member to view any code.
no matter what... it goes to the page that only admins should be able to view....even if im logged out it goes to that page :S




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-18-2006, 08:54 PM   #4
Coder
Junior's Avatar
Join Date: Nov 2004
Real Name: jr
Location: U.S.A
Junior is on a distinguished road

Default

try
You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-18-2006, 09:16 PM   #5
Junior Member
Join Date: Nov 2005
salman is on a distinguished road

Default

ya that makes more sense then what i tried LOL thanks it works!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-18-2006, 09:27 PM   #6
Coder
Junior's Avatar
Join Date: Nov 2004
Real Name: jr
Location: U.S.A
Junior is on a distinguished road

Default

np glad to help ;)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-19-2006, 08:16 AM   #7
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

Lol i didnt see the !
I just copied your code and added the usergroup bit hehe not really suprised it didnt work hehe




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Top X Users Statistics. Developer vBulletin 3.5 / 3.6 Hack Releases 15 11-11-2007 12:55 PM
Ony Logged in memebrs can view the page salman General vBulletin Support 14 02-02-2006 04:17 AM
vBulletin 3.0.2 Released Ryan Ashbrook Announcements 8 07-06-2004 12:51 PM


All times are GMT -3. The time now is 12:39 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)