Welcome, Guest. Please Login or Register.
June 26, 2024, 01:15:06 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Are there anyway to... « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Are there anyway to...  (Read 502 times)
add_effect
Full Member
***
Posts: 140


heh heh

Are there anyway to...
« on: January 01, 2002, 04:49:58 AM »
Reply with quote

to.. disable user to modify posted replies function/delete?
Logged

:: Innocence and Experience ::
alexrolko
Guest
Re:Are there anyway to...
« Reply #1 on: January 01, 2002, 05:24:16 AM »
Reply with quote

No easy way no...

Edit the code  :P

the modify and delete functions are located in the ModifyMessage.php sourcefile.


------

Ok i have some code for you...

In ModifyMessage.php right below this line:
Quote$modifymessageplver="YaBB SE";

add this:
QuoteFunction DiabledFeature() {
    fatal_error("This feature has been disabled");
}

Save & Close.

now in index.php, search for these 2 lines.

Quoteif ($action == 'modify') { include_once ("$sourcedir/ModifyMessage.php"); ModifyMessage(); }
      else if ($action == 'modify2') { include_once ("$sourcedir/ModifyMessage.php"); ModifyMessage2(); }
      

coment them out.. put 2 // (forward slashes) in begining of their lines... now right below the lines... paste these in.

Quoteif ($action == 'modify') { include_once ("$sourcedir/ModifyMessage.php"); DisabledFeature(); }
      else if ($action == 'modify2') { include_once ("$sourcedir/ModifyMessage.php"); DisabledFeature(); }
      

Save & Close

now replace the files on your server.


------

Oh and the above code will completely diabled the features in there entirity, but its a quick fix.
« Last Edit: January 01, 2002, 05:50:04 AM by Alex Rolko » Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Are there anyway to...
« Reply #2 on: January 01, 2002, 04:21:24 PM »
Reply with quote

Heh, I was going to say... ;)

I think we'll add some kind of option for this.  It's pretty much 50-50 for people liking and disliking this.
Logged

add_effect
Full Member
***
Posts: 140


heh heh

Re:Are there anyway to...
« Reply #3 on: January 01, 2002, 04:38:25 PM »
Reply with quote

cool, thx for that

but if only allow admin to modify /  delete replies that would be better
« Last Edit: January 01, 2002, 04:49:52 PM by add_effect » Logged

:: Innocence and Experience ::
alexrolko
Guest
Re:Are there anyway to...
« Reply #4 on: January 01, 2002, 11:24:50 PM »
Reply with quote

Yes but as i said it completely disables the features as a quick fix. I just quickly thought of a way to disable it. i think i could do a proper MOD job. but im a lazy ass ****er and thats why i never helped with YaBB SE's code.
Logged
add_effect
Full Member
***
Posts: 140


heh heh

Re:Are there anyway to...
« Reply #5 on: January 02, 2002, 01:11:28 PM »
Reply with quote

That might be true. Now it's jeff's job.
Logged

:: Innocence and Experience ::
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Are there anyway to... « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.054 seconds with 20 queries.