Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-18-2017, 09:24 PM
koplak.kapok's Avatar
koplak.kapok koplak.kapok is offline
 
Join Date: Mar 2014
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to make things like this?

How to make things like this

I have long been looking for ways to make like this but I did not meet

This example I show
Attached Images
File Type: jpg Screenshot_4.jpg (17.7 KB, 0 views)
Reply With Quote
  #2  
Old 05-20-2017, 09:27 AM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this (assuming you are using the standard postbit legacy).

In your postbit_legacy template, search for:-
Code:
$post[message]
And replace with:-

Code:
<if condition="$post['usergroupid'] == 8">
<div style="background-color:red;color:#fff;">This user has been banned and all posted content hidden</div>
<else />
$post[message]
</if>
Reply With Quote
  #3  
Old 05-28-2017, 08:36 AM
koplak.kapok's Avatar
koplak.kapok koplak.kapok is offline
 
Join Date: Mar 2014
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, this helps me a lot

--------------- Added [DATE]1495969001[/DATE] at [TIME]1495969001[/TIME] ---------------

Quote:
Originally Posted by z3r0 View Post
Try this (assuming you are using the standard postbit legacy).

In your postbit_legacy template, search for:-
Code:
$post[message]
And replace with:-

Code:
<if condition="$post['usergroupid'] == 8">
<div style="background-color:red;color:#fff;">This user has been banned and all posted content hidden</div>
<else />
$post[message]
</if>

If for version 4.xx, is it the same?
Reply With Quote
  #4  
Old 05-28-2017, 10:51 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for interfering...
If we restrict everything from banned users, in other words we urge them to make a new registration,
something that we do not want.
Reply With Quote
Благодарность от:
In Omnibus
  #5  
Old 05-28-2017, 11:12 AM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stratis View Post
Sorry for interfering...
If we restrict everything from banned users, in other words we urge them to make a new registration,
something that we do not want.
I agree. It makes more sense to place them in global ignore or to use something like Joe's Miserable Users mod and redirect them to a site they can't spam like google.com
Reply With Quote
Благодарность от:
Stratis
  #6  
Old 05-28-2017, 04:20 PM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by koplak.kapok View Post
Thanks, this helps me a lot

--------------- Added [DATE]1495969001[/DATE] at [TIME]1495969001[/TIME] ---------------




If for version 4.xx, is it the same?

For vb4 this should work.

In postbit_legacy search for:
Code:
{vb:raw post.message}
Replace with:-
Code:
<vb:if condition="$post['usergroupid'] == 8">
<div style="background-color:red;color:#fff;">This user has been banned and all posted content hidden</div>
<vb:else />
{vb:raw post.message}
</vb:if>
Reply With Quote
Reply


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 07:30 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.04770 seconds
  • Memory Usage 2,240KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (2)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete