vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Profile Enhancements - Banned users have no profile page (https://vborg.vbsupport.ru/showthread.php?t=160852)

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:
Code:

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

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:-
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 :)


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
  • Page Generation 0.00977 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete