![]() |
Request - Users can edit a post, until an Admin notifies it is not editable?
Ive got a Request...
Normally, if you didnt want users to edit their posts, you would turn the settings off... Now...I could go and invidually disallow them to edit posts in that forum, but that isnt what I want either... I want a little Tick Box to appear in Edit Post, and when an Admin or a Mod ticks it, the user cannot edit that post again until it is un-ticked... Now...Can this be done? Satan |
hmm, i hope i can code it without testing it :)
first of all make a new fiel in the post-table called editable small int standart 1 then open your editpost.php find this: PHP Code:
PHP Code:
PHP Code:
PHP Code:
create new template $admineditpost contains: Code:
<tr> PHP Code:
PHP Code:
|
Am I to asume this is the Query I was to run?
[sql]ALTER TABLE `thelyceu_vbulletin`.`post` ADD `editable` SMALLINT(1) NOT NULL;[/sql] Our db is called thelyceu_vbulletin... Satan |
yes except the standart value should be set to 1 :)
|
1 Attachment(s)
All seems well...
It just kinda seems to cause weird errors when I add $admineditpost to the Editpost template... See below : Satan |
Ah right...
Changed that... Satan |
Code:
<tr> edit: oh, seen yourself ;) |
I changed the template there...
Checking to see how it looks:) Satan |
1 Attachment(s)
|
hehe you're welcome :)
it seems i have talent in posting hacks without even tested them *gg* |
All times are GMT. The time now is 03:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|