Member Log In
Site Navigation
Latest Modifications
- [vB 3.6.x] StopSpam
By: flappi282 - [vB 3.8.x] vBulletin Chat Addon for...
By: 123flashchat - [vB 3.5.x] 404 Page Redirect To...
By: Ak Worm - [vB 3.8.x] 404 Page Redirect To...
By: Ak Worm - [vB 4.0.x] 404 Page Redirect To...
By: Ak Worm
Latest Template Mods
- [vB 3.8.4] Images PassWordBox...
By: cRs!MP - [vB 3.8.4] Footer Follow Ups
By: Ak Worm - [vB 3.7.2] Worldofwarcraft blue...
By: Mikeyodesigns - [vB 3.7.0] My Links
By: blind-eddie - [vB 3.7.0] Pop-Up Warning Before...
By: Thelonius Beck
Latest Styles
- [vB 3.8.4] CompletevB - Skylight
By: DreadKnight - [vB 3.8.3] [vB 3.8.4] Barcelona...
By: hoiquantinhoc.com - [vB 3.8.3] Natures Walk by vBSkin...
By: Chri5 - [vB 3.8.3] Green Theme
By: Robdog - [vB 3.8.2] Unreal T 3 - vB3.8.x
By: Butcher
Latest Graphics
- [vB ] [anim.]Team Ranks
By: cRs!MP - [vB ] Abstract Circles (3...
By: cRs!MP - [vB ] PlayStation Rank Images
By: cRs!MP - [vB 3.6.12] Heavy Stroked Button...
By: Shelley - [vB ] Minature Ranks.
By: Shelley
![]() |
| | #1 |
| |
Status: Offline Basically what i want to do is display a page only to people who can acess the admin cp otherwise it leaves and error message sayin gyou can't access this. Error message like this: when you try and reply to a post in the paid request section if your not a super mod or charter member. Regards, Nick. |
|
| | #2 | |||||||||
Location: Israel Age: 29 ![]() |
Status: Offline what about just adding under the correct template thing like: Code: <if condition="$show['admincplink']"> your normal page <else /> $some_php_var_passed_from_php_code </if> Regards, Idan. * Support will only be given via forums ! * If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here | |||||||||
|
| | #3 |
| |
Status: Offline Do know which template it uses for the error message? Is the $show['admincplink'] global? Last edited by Nick R; 07-10-2006 at 08:31 AM. |
|
| | #4 | |||||||||
Location: Israel Age: 29 ![]() |
Status: Offline as far as i recall it's global for any template. just 1 things needs to be checked is that var named is identical for both 3.0.x & 3.5.x since i know for 100% it's named like this in 3.0.xx, but not sure for 100% it same with the 3.5.x. Regards, Idan. * Support will only be given via forums ! * If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here Last edited by Idan; 07-10-2006 at 08:33 AM. | |||||||||
|
| | #5 |
| |
Status: Offline Thanks, Do know which template it uses for the error message? |
|
| | #6 | |||||||||
Location: Israel Age: 29 ![]() |
Status: Offline it has global error template all it needs is new phrase added. just need to make new phrase for error, and then from php code sent to template using: Code: eval(print_standard_error('error_YourNewPhraseName'));
Regards, Idan. * Support will only be given via forums ! * If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here | |||||||||
|
| | #7 |
| |
Status: Offline ok so i'll stick that in php then ![]() PHP Code: |
|
| | #8 | |||||||||
Location: Israel Age: 29 ![]() |
Status: Offline EDIT: well..., sole check inside php always work, assuming thats unique php that belongs only for the page & not common for other pages just needs to check which globar var state your admin status. as well, this way you can even redirect him from php with no template with something like: PHP Code: PHP Code: i was thinking about something like: 1. add to the template that shows the correct page you want: Code: <IF condition="$show['admincplink']"> <else /> $some_dummy_var </if> anyway i was thinking about something like this (into php code that goes with that template): PHP Code: Regards, Idan. * Support will only be given via forums ! * If this post solved/aided your problem, please click "mark as aid" / "mark as solution" as explained in here Last edited by Idan; 07-10-2006 at 09:01 AM. | |||||||||
|
| | #9 |
| |
Status: Offline If you're using php, i think that what you guys want is the print_no_permission(); function. |
|
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Only admin and Mod forum !!! | cyberman | vBulletin Modification Requests | 6 | 11-25-2006 08:36 AM |
All times are GMT. The time now is 08:06 AM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.




























