The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User Banned
Hello,
I would like a small hack which will show This user has been banned due to abuse. on a user profile which has been banned. Thanks! |
#2
|
||||
|
||||
Do you always want it to say the exact same thing?
HTML Code:
<if condition="is_member_of($vbulletin->userinfo, x)"> This user has been banned due to abuse. </if> (I think that's it.) |
#3
|
|||
|
|||
I have added the code in the appropriate place in MEMBERINFO but it does not show on a banned user's profile.
--------------- Added [DATE]1208467494[/DATE] at [TIME]1208467494[/TIME] --------------- Ok, I have noticed the message shows to people who belong to the usergroup ID in the code. I would like it to show to everybody whenever they view a user profile which is banned. |
#4
|
||||
|
||||
It may be just $userinfo, not $vbulletin->userinfo . I can never remember which is which! (I need to write myself a cheat sheet!)
|
#5
|
||||
|
||||
I think Lynne is right. It should be:
<if condition="is_member_of($userinfo, 8)"> This user has been banned due to abuse. </if> |
#6
|
|||
|
|||
Your help has been much appreciated and the code works perfectly.
I have modified the profile a little bit which looks like this. I just wanted it to remove GENERAL INFORMATION and $customfields and replace it with the code you provided. |
#7
|
||||
|
||||
Nice looking profile page. It that 3.6?
|
#8
|
|||
|
|||
Thank you,
Yeah, it's 3.6 |
#9
|
||||
|
||||
If you come up with a nice one for 3.7, I would be interested.
|
#10
|
|||
|
|||
So you would like it to be exactly the same, just updated with 3.7?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|