Page 1 of 1

[Solved] disabling the [ you ] command

PostPosted: Thu May 03, 2007 10:19 am
Author: fua
Your phpBB Version: 2.0.19
phpBB Type: Integramod 140
MODs: No
Your knowledge: Beginner
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

Hello again.

Is there a way to disable the "you" command (which results in this --> [you]) only in the shoutbox? I'm having a few problems controling small kids from miss-using it with bad intentions.

Thanks.

Re: disabling the [ you ] command from the shoutbox

PostPosted: Thu May 03, 2007 10:36 am
Author: Whisky
Not sure this will work because I've only tried with a IM 1.4.1 board and the Advanced BBcode box as been added to package...

To remove the button only:

OPEN templates/yourtheme/posting_body.tpl

DELETE LINE]
Code: Select all
<td><img></td>


[u]To disable completely the [b]you
bbcode function]

OPEN includes/bbcode.php

FIND]
Code: Select all
$bbcode_tpl['you'] = str_replace('{YOU}', '"' . $userdata['username'] . '"', $bbcode_tpl['you']);

[b][color=green]
REPLACE WITH]

Code: Select all
$bbcode_tpl['you'] = str_replace('{YOU}', '', $bbcode_tpl['you']);


this will just display nothing if [ you] is inserted

Re: disabling the [ you ] command from the shoutbox

PostPosted: Thu May 03, 2007 7:14 pm
Author: Helter
you can also go to acp/General Admin/Configuration
and add

you,

to "Disallowed other BBCodes"

Re: disabling the [ you ] command from the shoutbox

PostPosted: Fri May 04, 2007 12:03 pm
Author: fua
Firstly I tryed what Helterskelter pointed, but it didn't work, with or without the brackets.

Secondly, since I still have 1.4.0 and I have no idea what button was Whisky referring to, I used the second option that he pointed out, and it seems to work fine. :)

Re: disabling the [ you ] command from the shoutbox

PostPosted: Fri Nov 02, 2007 9:17 am
Author: gcomfx.com
"HelterSkelter";p="24781" wrote:you can also go to acp/General Admin/Configuration
and add

you,

to "Disallowed other BBCodes"


Mine didn't work either. I did it manually as Whisky posted. Worked just fine in 1.4.1. I wish it was as easy as the configuration page. <img>