The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Calling a custom template
]I have made a group called "Inactive users". In this group I move all the users that have been inactive for a long time (of course ). Now at my question, if I make a custom template named "error_inactiveusers" how I call it when an inactive user tries to login ? (I don't let them see the forum). I just want to tell them to contact the admin if they want their account to be active again.
|
#2
|
||||
|
||||
Code:
eval("standarderror(\"".gettemplate("error_inactiveusers")."\");"); |
#3
|
||||
|
||||
Thx Xenon, where do I insert this code ? I mean which .php file do I edit ?
|
#4
|
||||
|
||||
Ok, I think I must edit member.php If my $usergroupid=140 what exactly are the changes that I must make ?
|
#5
|
||||
|
||||
Find in member.php:
PHP Code:
PHP Code:
- miSt |
#6
|
||||
|
||||
]Gives me a parse error. And if I change it to another location it works but gives all users the inactivity error
|
#7
|
||||
|
||||
Eek i didn't close the statement. use this instead:
PHP Code:
- miSt |
#8
|
||||
|
||||
]Thx but parse error again
|
#9
|
||||
|
||||
Code:
if ($bbuserinfo['usergroupid']=[high]=[/high]140) { eval("standarderror(\"".gettemplate("error_inactiveusers")."\");"); } also i'd put this at the end of global.php so every file is protected |
#10
|
||||
|
||||
aaaah, are you sure guys it's the right place to insert the code ? I still get the default "no permission to access this page" error.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|