Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Banned users have no profile page Details »»
Banned users have no profile page
Version: 1.01, by djdonx djdonx is offline
Developer Last Online: Jan 2009 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.8 Rating:
Released: 10-21-2007 Last Update: 10-23-2007 Installs: 44
Template Edits
Translations  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 10-18-2009, 08:48 PM
ricardoNJ ricardoNJ is offline
 
Join Date: Sep 2008
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No work! 3.8.4
Reply With Quote
  #33  
Old 01-31-2011, 11:42 AM
furnival furnival is offline
 
Join Date: Mar 2008
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #34  
Old 01-31-2011, 12:29 PM
furnival furnival is offline
 
Join Date: Mar 2008
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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')">
Reply With Quote
  #35  
Old 03-27-2012, 08:33 AM
yankidank's Avatar
yankidank yankidank is offline
 
Join Date: Dec 2005
Location: San Francisco, CA
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>&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:
Code:
</vb:if>
Reply With Quote
  #36  
Old 07-04-2013, 01:41 PM
D3m0n h311ra153's Avatar
D3m0n h311ra153 D3m0n h311ra153 is offline
 
Join Date: Sep 2012
Location: Newcastle / UK
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>&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)
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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04217 seconds
  • Memory Usage 2,261KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete