The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 |
#2
|
||||
|
||||
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> <td bgcolor="#DFDFDF" nowrap><normalfont><b>Post editable</b> <input type="radio" name="editable" value="yes"> yes <input type="radio" name="editable" value="no"></normalfont></td> </tr> PHP Code:
PHP Code:
|
#3
|
||||
|
||||
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 |
#4
|
||||
|
||||
yes except the standart value should be set to 1
|
#5
|
||||
|
||||
All seems well...
It just kinda seems to cause weird errors when I add $admineditpost to the Editpost template... See below : Satan |
#6
|
||||
|
||||
Ah right...
Changed that... Satan |
#7
|
||||
|
||||
Code:
<tr> <td bgcolor="{ firstaltcolor }" nowrap><normalfont><b>Post editable:</b></normalfont></td><td bgcolor="{ firstaltcolor }" nowrap><normalfont> <input type="radio" name="editable" value="yes"> yes <input type="radio" name="editable" value="no">no</normalfont></td> </tr> edit: oh, seen yourself |
#8
|
||||
|
||||
I changed the template there...
Checking to see how it looks Satan |
#9
|
||||
|
||||
It loots great...
Thanks Satan |
#10
|
||||
|
||||
hehe you're welcome
it seems i have talent in posting hacks without even tested them *gg* |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|