PDA

View Full Version : How to make things like this?


koplak.kapok
05-18-2017, 09:24 PM
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:-
$post[message]

And replace with:-

<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 1495969001 at 1495969001 ---------------

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

In your postbit_legacy template, search for:-
$post[message]

And replace with:-

<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
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
Thanks, this helps me a lot

--------------- Added 1495969001 at 1495969001 ---------------




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


For vb4 this should work.

In postbit_legacy search for:
{vb:raw post.message}

Replace with:-
<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>