The Work Censor Don't Work »  Show posts from    to     

Icy Phoenix


Old Support Topics - The Work Censor Don't Work



Zuker [ Wed 27 Jun, 2007 17:09 ]
Post subject: Re: The Work Censor Don't Work
so that fields it's on the db but doesn't make anithing

btw, it isn't difficult to deny users to disable censor

open usercp_register.php
Code: [Hide] [Select]
this line

$allowswearywords = ( isset($_POST['allowswearywords']) ) ? ( ($_POST['allowswearywords']) ? true : 0 ) : 0;

replace with

$allowswearywords = TRUE;


and then run this sql

UPDATE phpbb_users SET user_allowswearywords='1',

i didn't try it, but i think that users won't be allow to change the value, despite they see the field on profile for changing it


Corporacion-Umbrella [ Wed 27 Jun, 2007 20:09 ]
Post subject: Re: The Work Censor Don't Work
Zuker the value is 0 and False.

Code: [Hide] [Select]
$allowswearywords = FALSE;


And the SQL:

Code: [Hide] [Select]
UPDATE ip_users SET user_allowswearywords='0'


But the users can change the value in Profile, there are anyway to avoid that switch?

Thanks


Zuker [ Wed 27 Jun, 2007 20:46 ]
Post subject: Re: The Work Censor Don't Work
I put true, as an example
I don't know if u want to allow all or deny all. it's your matter

if u change that code in usercp_register, they still will see the field for alowing or not swearywords, but it won't be "changed", it won't work

You can remove it from profile_add_body.tpl


Corporacion-Umbrella [ Wed 27 Jun, 2007 22:20 ]
Post subject: Re: The Work Censor Don't Work
Thanks Zuker, now is solved.

For the all user that want do the same:

In, /your template/profile_add_body.tpl.

Find and Delete:

Code: [Hide] [Select]
<tr>
<td class="row1"><span class="gen">{L_ALWAYS_ALLOW_SWEARYWORDS}:</span></td>
<td class="row2">
<label><input type="radio" name="allowswearywords" value="1" {ALWAYS_ALLOW_SWEARYWORDS_YES} />
<span class="gen">{L_YES}</span></label>&nbsp;&nbsp;
<label><input type="radio" name="allowswearywords" value="0" {ALWAYS_ALLOW_SWEARYWORDS_NO} />
<span class="gen">{L_NO}</span></label></td>
</tr>


With the earlier steps, the users can't change the value.

Thanks for your help friends.


Zuker [ Wed 27 Jun, 2007 23:45 ]
Post subject: Re: The Work Censor Don't Work
ur welcome

cyas




Powered by Icy Phoenix