![]() |
Banned users have no profile page
Non-Accesible User Profiles
What does this do? This Mod means that members who belong to the banned usergroup no longer have a profile and their profile will then become accessible once they have been removed from the banned usergroup. (Usergroup ID: 8) How do I install this? Follow the template changes which are shown in the file below. Support is given to those who click install! I must say that this is based hugely on the ideas that cheat-master30 has been posting although I hope he wasn't planning on releasing this.. |
First post reserved
|
Pity I cannot quote the modification post for some reason, but this reminds me of something I saw on a board I used to visit. It had the same outcome to a good degree, and if this is the first mod of this, then it's something that should have been made ages ago.
Either way, while I won't be installing this, it seems like a pretty useful idea for a modification depending on forum. Edit: I was not planning on releasing this. |
Hey great idea.
Installed. Thanks for offering it up. Simple and effective. My one issue is that the backgrounds dont match my template... Wonder if anyone has any suggestions... here is the example link... http://www.ddsog.com/forums/member.php?u=211 |
Nice mod will concider installing it soon.
|
Great mod. Installed. Tweaked it a bit to look more like standard VB. Hope you like.
In step 1, replace djdonx's code with this: Code:
<if condition="is_member_of($post, 8)"> |
Really nice modification. I am still having an issue in it fitting in, not sure why, example:
http://www.ddsog.com/forums/member.php?u=212 |
This mod does not work correctly unless you use the new edited code posted in my above reply. The banned box shows in ALL users profiles if you don't. Please update the first post with that code. You may want to update the screen so it reflects my code as well.
BTW, Dr. Death--we can't see a profile unless we log in. |
Doctor Death that looks to be a problem with your template, not the code. Paste the end of your MEMBERINFO template please, you may have placed the </if> in the wrong place..
|
Quote:
EDIT: I was such an idiot, used the wrong code. Apologies for any problems any of you had. New file uploaded, apply the appropriate changes... |
I updated the code and it appears to work great...
Thanks for the turnaround on this. Great idea. |
Quote:
Thanks for the mod. |
Quite useful. Thank you!
|
Sweet, thanks dude.
*Installed* |
Worked like a charm
|
Glad to hear it worked good ;)
|
I just installed it and I get the default banned message. Do I have to change anything in the CP?
|
You want to change the error message displayed? You will need to edit the template, find
Code:
<blockquote> |
I have that code in there. But I get the stand vb banned screen. I have checked the mod 3 times. I must be missing something.
|
what exactly is it you want to do? you want to change the text that is displayed? tell me how you want it to look and i will sort it...
|
I want it to look like your screen shot. I sent you a pm with the website and login.
|
Nevermind.. I understand now.. thanks
|
Thanx for the sharing ;)
Jacquii. |
works like a charm...
but I would like to hide it only for my other usergroups...my staff (admin, mods, sup mods etc..) should be able to view the banned users profile page. Can you tell me how to do that, plz? |
Worked well in vB 3.7, just had to change $post to $userinfo. Also, you can make it hide profiles for more that one group.
Code:
Change: |
Perfect - exactly what I was looking for, and with the new code, works splendidly!
|
Installed, had to use raywjohnson edits and works perfectly. Great simple MOD!
|
Quote:
|
Quote:
|
Quote:
|
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 06:05 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:
|