vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can we hide banned users avatar? (https://vborg.vbsupport.ru/showthread.php?t=107426)

Robbed 02-07-2006 11:49 PM

How can we hide banned users avatar?
 
Sorry for the double post, i posted the other thread in the wrong forum..

How would I hide banned users avatars.

From searching I found this code

<if condition="$post[usergroupid] != 'bannedusergroup'">

What would i put after it?

Rich 02-08-2006 12:17 PM

Hello,

You don't have to use that I don't believe. can't you just disable avatars and profile pics for the banned usergroup in the acp? That SHOULD take care of that for you. You may need to run the updates after you change the setting.

davidw 02-08-2006 01:47 PM

For my banned members, I just go to their profile and change their avatar to one has a picture of Banned or something to the like. :) It's an idea.

Smiry Kin's 02-08-2006 01:57 PM

maybe theres away to make a default avatar for banned group... hmm request it made? im sure its simple

Robbed 02-09-2006 10:06 PM

It is possible but you have to remove their old one.

So this is what I did, Used ranks and assigned a pic then i added code to postbit_legacy

Quote:

<if condition="$show['avatar']AND is_member_of($post, 6,2,7,5,12,11,9)">
It hides their current avatar and only the one from the ranks show up then if the ban is removed they get their old avatar back.

Nullifi3d 02-09-2006 10:59 PM

You could also use <if condition="$show['avatar'] AND !is_member_of($post, 8)">. And you can put an <else /> in between to have two actions (displaying a seperate avatar for banned members maybe).


All times are GMT. The time now is 09:43 AM.

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.00956 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete