![]() |
Find and Replace
I recently formatted my computer and lost a bunch of my stuff. I haven't made any modifications in awhile and can't remember squat. I like to do my template edits with a script since I have like 4 styles. I can't remember the script so I was hoping someone could help me out maybe one of you guys have a better script than I had before. Any help would be appreciated.
|
TMS (Template Modification System) by [s]Kirby[/s] Andreas?
Or do you mean: [How-To] Plugins for Template Edits (Adv. Version) |
The second one, thanks very much Dismounted.
EDIT: I just tried something really simple and it didn't work for me: Code:
<hookname>global</hookname> |
"global" is not a hook. I suggest you do it via the Admin CP.
|
Quote:
Edit: If conditionals are giving me trouble. Here's the code I am using, but it keeps replacing it even if they aren't banned. Code:
<plugin active="1" executionorder="1" product="vbulletin"> |
The template is already parsed into raw PHP in the cache. You need to do the same. Or you could just put the conditional outside and save yourself some processing.
PHP Code:
|
is_member_of($userinfo, 8) doesn't work, that will only display the message if the member is banned and viewing their profile. I need the message to display on profiles that are banned.
I'm trying to make this as less of a template edit as possible since I have 4 styles. Is there anyway to include the conditional and let it work or no? |
is_member_of($userinfo, 8) should work to display something if the user who's profile you are looking at is a member of usergroup 8. If that is your banned group, then the condition should be true if you are viewing a profile of a banned member.
|
Quote:
|
Try $prepared instead of $userinfo.
|
All times are GMT. The time now is 05:46 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:
|