Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 10 Apr 2015, 19:52
MacroPhotoPro MacroPhotoPro is offline
 
Join Date: Feb 2012
User Re-Direct to NO PERMISSIONS

Have the following code to specify which users can use a custom page of mine:


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

This directs people to the payments.php page, but I have one "Administrative Only" page, where I don't want to direct them to payments.php, but where I want to elicit a No Permission message, so how do I code the above to accomplish this?

Thanks!!
Reply With Quote
  #2  
Old 10 Apr 2015, 20:24
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
You can call the function print_no_permission(), no parameters, like:

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

Reply With Quote
  #3  
Old 10 Apr 2015, 20:34
MacroPhotoPro MacroPhotoPro is offline
 
Join Date: Feb 2012
Okay so, code it like:


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

Or do I do something different?

Thank you again for your help.
Reply With Quote
  #4  
Old 10 Apr 2015, 20:39
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Well, more like this:

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

Also, I just remembered that there's a function called exec_header_redirect() that takes the url as a parameter, which you might want to use for your other redirects since it ends the script instead of going on and generating the rest of the page. To use that you'd 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.

Reply With Quote
  #5  
Old 10 Apr 2015, 20:58
MacroPhotoPro MacroPhotoPro is offline
 
Join Date: Feb 2012
Awesome, that did the trick, thank you

--------------- Added 10 Apr 2015 at 20:59 ---------------

Much appreciated!!
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Direct Link to User's ACP Profile in Postbit for Admins N9ne vBulletin 2.x Full Releases 19 04 Jun 2003 16:04



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 22:18.

Layout Options | Width: Wide Color: