PDA

View Full Version : Profile Enhancements - Banned users have no profile page


djdonx
10-21-2007, 10:00 PM
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..

djdonx
10-22-2007, 05:50 PM
First post reserved

cheat-master30
10-22-2007, 06:01 PM
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.

Doctor Death
10-22-2007, 09:06 PM
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

bada_bing
10-23-2007, 03:05 PM
Nice mod will concider installing it soon.

glorify
10-23-2007, 05:56 PM
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:

<if condition="is_member_of($post, 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>&nbsp;</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. Please check back once the ban has been lifted.</p>
<div>&nbsp;</div>
</blockquote>

</div>
</td>
</tr>
</table>
<else />

Doctor Death
10-23-2007, 08:49 PM
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

glorify
10-23-2007, 10:52 PM
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.

djdonx
10-24-2007, 06:25 PM
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..

djdonx
10-24-2007, 06:32 PM
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.

I have just tried my code on both the standard vBulletin skin and a custom skin. This does work.

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...

Doctor Death
10-24-2007, 07:31 PM
I updated the code and it appears to work great...

Thanks for the turnaround on this. Great idea.

glorify
10-24-2007, 11:35 PM
I have just tried my code on both the standard vBulletin skin and a custom skin. This does work.

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...

;)

Thanks for the mod.

Snake
10-25-2007, 03:43 PM
Quite useful. Thank you!

Magnumutz
10-26-2007, 05:46 AM
Sweet, thanks dude.
*Installed*

momo2
10-26-2007, 12:51 PM
Worked like a charm

djdonx
10-26-2007, 02:21 PM
Glad to hear it worked good ;)

Dialtone98
10-26-2007, 05:03 PM
I just installed it and I get the default banned message. Do I have to change anything in the CP?

djdonx
10-26-2007, 09:30 PM
You want to change the error message displayed? You will need to edit the template, find
<blockquote>
<p>&nbsp;</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. Please check back once the ban has been lifted.</p>
<div>&nbsp;</div>
</blockquote>
and you will need to change the text 'This member has been banned and their profile page is no longer accessible. Please check back once the ban has been lifted.' to whatever you want it to say...

Dialtone98
10-28-2007, 07:38 PM
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.

djdonx
10-28-2007, 07:53 PM
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...

Dialtone98
10-28-2007, 07:58 PM
I want it to look like your screen shot. I sent you a pm with the website and login.

Dialtone98
10-28-2007, 08:01 PM
Nevermind.. I understand now.. thanks

PoetJA-1975
10-28-2007, 10:53 PM
Thanx for the sharing ;)

Jacquii.

anwar.abdullakh
11-09-2007, 03:24 PM
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?

raywjohnson
05-17-2008, 09:01 PM
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.

Change:
<if condition="is_member_of($userinfo, 8)">
To:
<if condition="is_member_of($userinfo, array(8,#,#,etc))">

--RayJ

potocki99
04-10-2009, 11:48 PM
Perfect - exactly what I was looking for, and with the new code, works splendidly!

ewelin
05-06-2009, 03:15 PM
Installed, had to use raywjohnson edits and works perfectly. Great simple MOD!

students_forum
08-20-2009, 02:43 AM
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?
me too, and I think that requires an actual hack.

s-p0k
08-20-2009, 07:45 AM
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:

<if condition="is_member_of($post, 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>&nbsp;</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. Please check back once the ban has been lifted.</p>
<div>&nbsp;</div>
</blockquote>

</div>
</td>
</tr>
</table>
<else />


i get this when i try to use this one ^^^ any help on this plzz

students_forum
08-20-2009, 03:12 PM
i get this when i try to use this one ^^^ any help on this plzz
did you place the </if> tag at the end above the $footer at the end of the template?

ricardoNJ
10-18-2009, 08:48 PM
No work! 3.8.4

furnival
01-31-2011, 11:42 AM
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

furnival
01-31-2011, 12:29 PM
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:
<if condition="(is_member_of($userinfo, 8)) AND ($vbulletin->userinfo['usergroupid'] != '5') AND ($vbulletin->userinfo['usergroupid'] != '6')">

yankidank
03-27-2012, 08:33 AM
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.
<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>&nbsp;</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>&nbsp;</div>
</blockquote>

</div>
</td>
</tr>
</table>
<vb:else />
At footer:</vb:if>

D3m0n h311ra153
07-04-2013, 01:41 PM
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:-
<body>
{vb:raw header}
{vb:raw navbar}
{vb:raw memberinfo_customize}


And below it add:-

<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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</div>
</blockquote>

</div>
</td>
</tr>
</table>
<vb:else />



Also find in the template MEMBERINFO (Which is almost at the bottom)
{vb:raw footer}


And add above it add:-
</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 :)