vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Prison Bars on Banned Users Avatars (https://vborg.vbsupport.ru/showthread.php?t=177980)

Chris583 05-27-2008 05:21 PM

I am having trouble getting this to work. When a person is banned their avatar dissapears, is there a usergroup setting to change that?

rungok 05-29-2008 08:57 PM

Quote:

Originally Posted by DiverTree
shows up good on the profile and in posts. thanks.

if its not to much to ask, how bout the members list?

also, can i specify two different user groups if i seperate them with a comma or comma/space?

A user that is temporary banned like this does not show any avatar i members list in the first place, so that won't be possible without modifying code (and that we should not do).

I don't know if "or" works in the templates. It could look like this:

Code:

<if condition="is_member_of($post, 73) or condition="is_member_of($post, 74)">
<table $post[avwidth] $post[avheight] border="0" cellspacing="0" cellpadding="0" background="$post[avatarurl]">
  <tr>
    <td><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="images/misc/cell.gif" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
  </tr>
</table>
<else />
<a href="member.php?$session[sessionurl]u=$post[userid]">
<img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />
</a>
</if>

or something like this:
Code:

<if condition="is_member_of($post, 73)">
<table $post[avwidth] $post[avheight] border="0" cellspacing="0" cellpadding="0" background="$post[avatarurl]">
  <tr>
    <td><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="images/misc/cell.gif" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
  </tr>
</table>
<or condition="is_member_of($post, 73)">
<table $post[avwidth] $post[avheight] border="0" cellspacing="0" cellpadding="0" background="$post[avatarurl]">
  <tr>
    <td><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="images/misc/cell.gif" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
  </tr>
</table>
<else />
<a href="member.php?$session[sessionurl]u=$post[userid]">
<img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />
</a>
</if>

You can test these two approaches and report back to us if it works.

rungok 05-29-2008 09:01 PM

Quote:

Originally Posted by Chris583 (Post 1533153)
I am having trouble getting this to work. When a person is banned their avatar dissapears, is there a usergroup setting to change that?

No it does not disappear. Are you sure you haven't actuallly deleted the user? Try a temporary ban of a couple of days and check if that works better.

Mrdby 05-31-2008 02:52 PM

3.7.1?

hsv z clubbie 06-02-2008 09:19 AM

Quote:

Originally Posted by Chris583 (Post 1533153)
I am having trouble getting this to work. When a person is banned their avatar dissapears, is there a usergroup setting to change that?

I had the same prob till I ticked Keep Custom Avatar, then the avatar came back with the bars (3.7.1)

rungok 06-09-2008 12:57 PM

Quote:

Originally Posted by Mrdby (Post 1537097)
3.7.1?

I don't think you should be scared about trying this in such a minor release. It's just a couple of template edits. Easy to revert.

Mrdby 06-09-2008 10:13 PM

Great!

Captain Tycoon 06-17-2008 09:22 AM

Marked and Installed! Pretty neat!

Chris583 06-24-2008 01:45 PM

Can this work with multiple groups? I have a temporary banned grouped which is hooked to the infraction system like the banned group... i did group number ex. 7,13 or 7, 13 the bars show up in temp banned profile but not in postbit. Any ideas?

FazerPaint 06-30-2008 07:34 PM

I like this a lot..............clicked Installed


All times are GMT. The time now is 02:23 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.01032 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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