![]() |
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.
|
Code:
eval("standarderror(\"".gettemplate("error_inactiveusers")."\");"); |
Thx Xenon, where do I insert this code ? I mean which .php file do I edit ?
|
Ok, I think I must edit member.php If my $usergroupid=140 what exactly are the changes that I must make ?
|
Find in member.php:
PHP Code:
PHP Code:
- miSt |
]Gives me a parse error. And if I change it to another location it works but gives all users the inactivity error :(
|
Eek i didn't close the statement. use this instead:
PHP Code:
- miSt |
]Thx but parse error again :(
|
Code:
if ($bbuserinfo['usergroupid']=[high]=[/high]140) { also i'd put this at the end of global.php so every file is protected :) |
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.
|
well if you put it directly after
PHP Code:
|
]Ok it works now :) One last question, what's the code for a user to logout ? I want to insert it in my template. Thx for your help :)
Edit: I have tried the "action logout" but it doesn't work. It just sits there without login out. I would like to logout and clear the cookies. |
hmm, you can do it with a javascript redirect to call the logoutpage :)
|
All times are GMT. The time now is 03:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|