PDA

View Full Version : Changing Forum Rules


Eniyi
06-03-2002, 05:56 AM
How do I change the structure of

You may post new threads
You may post replies
You may post attachments
You may edit your posts

Normally, nothing is displayed next to "may" when something is enabled, but when something is not enabled, "may not" is displayed. Becuse nothing is displayed next to "may," it is not possible to translate that section from the template. Which file do I edit to change this?

Admin
06-03-2002, 01:10 PM
Edit this part from functions.php:
$notword = 'not';
$rules['postnew']=iif($permissions['canpostnew'],'',$notword);
$rules['postreply']=iif($permissions['canreplyown'] or $permissions['canreplyothers'],'',$notword);
$rules['edit']=iif($permissions['caneditpost'],'',$notword);
$rules['attachment']=iif($permissions['canpostattachment'] and ($permissions['canpostnew'] or $permissions['canreplyown'] or $permissions['canreplyothers']),'',$notword);
I'm not sure what it is you are trying to accomplish, so I can't help further.

Eniyi
06-03-2002, 01:42 PM
Thanks. This is what I wanted. I wanted to change that "notword".

Chris M
06-04-2002, 01:29 AM
Cool...

Satan