PDA

View Full Version : User Banned


Benjamin-P
04-17-2008, 07:30 PM
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!

Lynne
04-17-2008, 08:13 PM
Do you always want it to say the exact same thing?
<if condition="is_member_of($vbulletin->userinfo, x)">
This user has been banned due to abuse.
</if>
Where x is the usergroup id of the banned group (8 ?)

(I think that's it.)

Benjamin-P
04-17-2008, 08:22 PM
I have added the code in the appropriate place in MEMBERINFO but it does not show on a banned user's profile.

--------------- Added 1208467494 at 1208467494 ---------------

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.

Lynne
04-17-2008, 08:27 PM
It may be just $userinfo, not $vbulletin->userinfo . I can never remember which is which! (I need to write myself a cheat sheet!)

Boofo
04-17-2008, 08:42 PM
I think Lynne is right. It should be:

<if condition="is_member_of($userinfo, 8)">
This user has been banned due to abuse.
</if>

Benjamin-P
04-17-2008, 09:17 PM
Your help has been much appreciated and the code works perfectly.

I have modified the profile a little bit which looks like this.

http://img175.imageshack.us/img175/2195/profilerm4.png

I just wanted it to remove GENERAL INFORMATION and $customfields and replace it with the code you provided.

Boofo
04-17-2008, 09:33 PM
Nice looking profile page. It that 3.6?

Benjamin-P
04-17-2008, 09:37 PM
Thank you,

Yeah, it's 3.6

Boofo
04-17-2008, 09:38 PM
If you come up with a nice one for 3.7, I would be interested.

Benjamin-P
04-17-2008, 09:40 PM
So you would like it to be exactly the same, just updated with 3.7?

Boofo
04-17-2008, 09:52 PM
Well, now you have tabs to deal with. And the boxes on th side. I'm not sure how you could do it with those.

Benjamin-P
04-17-2008, 10:32 PM
I haven't decided to use vBulletin 3.7 until the official release is out and stable.

I shall see what I can do.

Boofo
04-17-2008, 11:12 PM
Please PM me when you look at it and see what you think. ;)