vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to make things like this? (https://vborg.vbsupport.ru/showthread.php?t=325102)

koplak.kapok 05-18-2017 09:24 PM

How to make things like this?
 
1 Attachment(s)
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

z3r0 05-20-2017 09:27 AM

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>


koplak.kapok 05-28-2017 08:36 AM

Thanks, this helps me a lot

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

Quote:

Originally Posted by z3r0 (Post 2586715)
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?

Stratis 05-28-2017 10:51 AM

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

In Omnibus 05-28-2017 11:12 AM

Quote:

Originally Posted by Stratis (Post 2587047)
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

z3r0 05-28-2017 04:20 PM

Quote:

Originally Posted by koplak.kapok (Post 2587042)
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>



All times are GMT. The time now is 01:47 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.01113 seconds
  • Memory Usage 1,722KB
  • 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)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