vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Remove Banned Users Avatars and other postbit info (https://vborg.vbsupport.ru/showthread.php?t=76013)

BamaStangGuy 02-09-2005 06:05 AM

Remove Banned Users Avatars and other postbit info
 
How would I go about hiding a banned users avatar post count and all that other information in their postbit from all the other users on the forum?

Craigr 02-09-2005 11:50 AM

You could simply delete the avatar and post count via the admin-cp.

BamaStangGuy 02-09-2005 06:04 PM

Quote:

Originally Posted by Craigr
You could simply delete the avatar and post count via the admin-cp.

I don't want to do this as some members are only banned for a few days. I want that information to be invisible for the days that they are banned. When unbanned I want it to reappaer.

Jolten 02-09-2005 08:16 PM

Add a conditional to the postbit template.

Code:

<if condition="$bbuserinfo[usergroupid] != 'bannedusergroup']">
    avatar and other information here
</if>


trackpads 02-09-2005 08:31 PM

Quote:

Originally Posted by Jolten
Add a conditional to the postbit template.

Code:

<if condition="$bbuserinfo[usergroupid] != 'bannedusergroup']">
    avatar and other information here
</if>


Yup, this is how I remove that info for guests as well. good post jolten!!

BamaStangGuy 02-10-2005 12:47 AM

I still think you guys are missing what I am wanting to do.

If I ban user XXX I want their postbit information removed. Only theirs. I don't want registered, moderators or admin users to see their postbit.

The above code it looks like you are making it so the banned usergroup can't see the postbit info correct?

and if that is the correct code I am doing something wrong because it still shows the banned users avatar and other postbit info

Jolten 02-10-2005 04:16 AM

Actually, you're right... technically it should be something like this:

Code:

<if condition="$post[usergroupid] != 'bannedusergroup']">
    avatar and other information here
</if>

that's untested

BamaStangGuy 02-10-2005 04:31 AM

Quote:

Originally Posted by Jolten
Actually, you're right... technically it should be something like this:

Code:

<if condition="$post[usergroupid] != 'bannedusergroup']">
    avatar and other information here
</if>

that's untested

:D

That worked! Thanks alot for your help

btw:
Code:

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

Code:

<if condition="$post[usergroupid] != 'bannedusergroup'">
No ] at the end

Jolten 02-10-2005 06:03 AM

yup...typo..sorry

indie 02-16-2005 03:56 PM

What if we wanted to use this for a usergroup, since when you disable avatars for a usergroup, they still show if they had them before you disabled them...
Would you have to hard code the usergroup number in, or could you have the code detect the avatar settings, to disallow avatars if they are not allowed in permissions?

Can anyone post an example code?

Great, thanks!


All times are GMT. The time now is 01:37 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.01050 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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