The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#32
|
|||
|
|||
No work! 3.8.4
|
#33
|
|||
|
|||
I think the person above means it doesn't work on VB 3.8.x.
Actually it does; to get it to work you just have to change $post to $userinfo, as mentioned on page 2 of this discussion. Thanks to the developer and all those who contributed |
#34
|
|||
|
|||
I edited the first line of the template edit to still display the member's user profile if the person viewing is a super moderator or administrator:
Code:
<if condition="(is_member_of($userinfo, 8)) AND ($vbulletin->userinfo['usergroupid'] != '5') AND ($vbulletin->userinfo['usergroupid'] != '6')"> |
#35
|
||||
|
||||
Here's the updated version for those who want to use this on 4.1.x. Place these in the same spots as mentioned in the original txt file.
Code:
<vb:if condition="is_member_of($userinfo, 8)"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center"> <tr> <td class="tcat">Banned User</td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <blockquote> <p> </p> <p><strong>This user has been banned.</strong></p> <p class="smallfont">This member has been banned and their profile page is no longer accessible.</p> <div> </div> </blockquote> </div> </td> </tr> </table> <vb:else /> Code:
</vb:if> |
#36
|
||||
|
||||
Installed
I have posted this here because I feel wrong posting this in the Vb4 template modifications forum, as I did not originally write the code, nor amended it for vB4.x. Maybe a Super Moderator could move the necessary posts to where it would be more suited. Thanks in advance Firstly I'd like to thank djdonx for the original code, yankidank for his vB4.x updated code, and furnival for his addition to allow Admins and Super Mods access to blocked User Profiles, which have all been implemented in the following code, with the addition of my own modification With my modification, I have separated the code for different usergroups, this was implemented so I can have different Profile messages for 'Banned Members' and 'Users Awaiting Email Confirmation' I am fairly new to all of this, so I hope I haven't stepped on anyone's toes, or forgot to give credit where it's due. Please either replace or add the code as follows, or follow djdonx's original text file as it's pretty much the same. Find in the template MEMBERINFO:- Code:
<body> {vb:raw header} {vb:raw navbar} {vb:raw memberinfo_customize} And below it add:- Code:
<vb:if condition="is_member_of($userinfo, 8) AND ($vbulletin->userinfo['usergroupid'] != '5') AND ($vbulletin->userinfo['usergroupid'] != '6')"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center"> <tr> <td class="tcat" align="center" ><span style="color:Red"><b>Banned User</b></span></td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <blockquote> <p> </p> <p><b>This user has been banned.</b></p> <p class="smallfont">Their profile page is not accessible at this time. Please check back later to see if the ban has been lifted. </p> <div> </div> </blockquote> </div> </td> </tr> </table> <vb:else /> <vb:if condition="is_member_of($userinfo, 3) AND ($vbulletin->userinfo['usergroupid'] != '5') AND ($vbulletin->userinfo['usergroupid'] != '6')"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center"> <tr> <td class="tcat" align="center" ><span style="color:Red"><b>Users Account Not Verified</b></span></td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <blockquote> <p> </p> <p><b>This user has not yet verified their account.</b></p> <p class="smallfont">Their profile page is not accessible at this time. Please check back later once they have verified their account. </p> <div> </div> </blockquote> </div> </td> </tr> </table> <vb:else /> Also find in the template MEMBERINFO (Which is almost at the bottom) Code:
{vb:raw footer} And add above it add:- Code:
</vb:if></vb:if> That's pretty much it, now members who try to access blocked profiles, they will either see a message for Banned Users or a message for 'Users Awaiting Email Confirmation'. Of course you can change all of this to whatever user groups you like, add more, and have different messages for all. See attachments |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|