Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 2 of 2
Goto page Previous  1, 2
 
Reply with quote Download Post 
Post 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
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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
 



 
Corporacion-UmbrellaSend private messageSend e-mail to user  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
Corporacion-UmbrellaSend private messageSend e-mail to user  
Back to topPage bottom
Reply with quote Download Post 
Post Re: The Work Censor Don't Work 
 
ur welcome

cyas
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 2 of 2
Goto page Previous  1, 2


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron