Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Restrict/allow users/groups - non vb pages Details »
Restrict/allow users/groups - non vb pages
Mod Version: 1.00, by VirtualBurn (Member) VirtualBurn is offline
Developer Last Online: Apr 2006 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.8 Rating: (0 vote - 0 average) Installs: 8
Released: 31 Jul 2005 Last Update: Never Downloads: 1
Not Supported  

This hack will enable you to;
  • Stop Guests viewing non-vb pages
  • Stop Registered users viewing non-vb pages
  • Prompt with custom information
  • Allow 'specified' Group to access

For example:

This code stops my guests (ID:0) and my registered users (ID:2) from accesing the non-vb pages but with let the 'Premium Member' group (ID:9) walk right in.

####################################################

1. Create new phrase [ACP --> Lang & Phrases --> Phrase Manager --> Add New Phrase]

Phrase Type: Permissions
Varname: nonvb_restrict
Text: Your Message

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

####################################################

2. Create new Template [ACP --> Styles & Templates --> Style Manager --> Add new template]

Style: Default style
Title: nonvb_restrict
template: Copy below
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

####################################################

3. Protect Pages

In each of the non-vb pages you wish to protect find:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add the following code after:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

change the numbers in red as you desire.
  • 0 = user ID 'Guest'
  • 2 = group ID 'Registered'
  • 9 = group ID 'Premium'

This has been tested, implemented and working.

Original code by 'Gary King' although his hack was different, various questions and suggestions throughout the thread prompted me to put this together.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	nonvb_restrict.jpg
Views:	106
Size:	197.8 KB
ID:	32666  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 01 Aug 2005, 06:48
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
AWESOME JOB! I have an irc chat page which is not integrated with vb so this helps alot.
Reply With Quote
  #3  
Old 01 Aug 2005, 06:49
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Oh and could you please attach a zip file with the instructions please?
Reply With Quote
  #4  
Old 02 Aug 2005, 01:55
VirtualBurn VirtualBurn is offline
 
Join Date: Nov 2003
All the instructions are above.

That is the same reason I put this together, I have a live support page which uses PJirc, I also use it to restrict groups to the ticket support system.

Once you have configured the last bit of code, you can insert it into any of your vb or non-vb pages so they will see your custom message instead of the standard vb 'you do not have permission to view this page'
Reply With Quote
  #5  
Old 02 Aug 2005, 02:34
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Just a note:

You can remove:

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

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

with

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

as vBulletin does this for you.
Reply With Quote
  #6  
Old 02 Aug 2005, 03:34
VirtualBurn VirtualBurn is offline
 
Join Date: Nov 2003
That's real good of you to advise some changes, thanks alot.
Reply With Quote
Reply


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

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 12:13.

Layout Options | Width: Wide Color: