SOLVED The Work Censor Don't Work


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: [Download] [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

Subject: Re: The Work Censor Don't Work
Zuker the value is 0 and False.

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


And the SQL:

Code: [Download] [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

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

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: [Download] [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.

Subject: Re: The Work Censor Don't Work
ur welcome ;)

cyas


Page 2 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1986s (PHP: 9% SQL: 91%)
SQL queries: 10 - Debug Off - GZIP Enabled