php forum
php mysql forum
php mysql smarty
 
Topic Options
#43942 - 01/14/02 09:20 PM prevent edit...
joking-down Offline
deutscher moderator / v5 specialist

Registered: 12/24/00
Posts: 712
Loc: Germany
pervent edit when the user has no write privilegs...


backup ang open posting.cgi

search in sub SubmitEdit
Code:
[/code]
and replace with
[code]


[edit]correcting code

<font color="#000000" size="1">[ 01-14-2002 09:22 PM: Message edited by: joking-down ]</font>
_________________________
UBB-Admin ( kids-hotline.de )


join Team UBBDev

I have [img]http://www.ubbdev.com/ud/?s=1&u=joking-down[/img] Points.

Top
#43943 - 01/14/02 10:53 PM Re: prevent edit...
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Nice hack JD. <img src="smile.gif" border="0" alt="" />

Top
#43944 - 01/14/02 10:57 PM Re: prevent edit...
svr Offline
Member

Registered: 09/28/01
Posts: 189
Hmm is this a bug in 5.47e that it allows edit for people who have not originated the topic? I kinda don't understand this hack. Could some1 explain plz.?

Top
#43945 - 01/14/02 10:57 PM Re: prevent edit...
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
Just a quick note
in your last few lines of code,
the line
Code:
[/code]

should be

[code]
_________________________
I can't afford a good signature editor frown

Top
#43946 - 01/14/02 11:04 PM Re: prevent edit...
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by svr:
Hmm is this a bug in 5.47e that it allows edit for people who have not originated the topic? I kinda don't understand this hack. Could some1 explain plz.?</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">

He said it prevents people editing with no writing privelages. So that might be editing their own message when their posting abilities have been disabled. I'm not too sure myself.

Top
#43947 - 01/14/02 11:38 PM Re: prevent edit...
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
Its a bug, if a persons posting rights are removed they are still able to edit their own posts.
This hack prevents them from editing their post while their posting permissions are diabled.
_________________________
I can't afford a good signature editor frown

Top


Who's Online
0 registered (), 29 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
Today at 02:58 PM
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks