![]() |
No work! 3.8.4
|
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 |
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')"> |
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)"> Code:
</vb:if> |
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> And below it add:- Code:
<vb:if condition="is_member_of($userinfo, 8) AND ($vbulletin->userinfo['usergroupid'] != '5') AND ($vbulletin->userinfo['usergroupid'] != '6')"> 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 :) |
All times are GMT. The time now is 03:38 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:
|