The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#132
|
|||
|
|||
I thought that was possible via the admincp, but it doesn't seem to be. Maybe, it might be worth searching for another hack that does it.
The only way I can see to get it to work would be modify the can_moderate function. The problem is that there is only 1 hook in can_moderate (in 3.5.1 anyway) and it is not in a useful position. In a later version, they may have added more hooks. The code required is pretty simple. In /includes/functions.php there is a section of code: PHP Code:
You then need to add PHP Code:
PHP Code:
What is really annoying is that the hook is in exactly the right place, but it doesn't get activated unless the if branch is true. NOTE: the . in the above php snippets are just for formatting, they shouldn't be copied into the code. |
#133
|
|||
|
|||
Quote:
Others functions are well.... Click install, but wait version for vB 3.6.1 |
#134
|
|||
|
|||
Quote:
Have you tried browsing to /admincp/index.php?do=buildbitfields on your server? It could be just that the postbit template are not setup/working correctly. Can you post the postbit and postbit_legacy templates. Alternatively, if you add <<Insert Post History>> into the postbit and postbit legacy templates at the appropriate position, it should also work. Finally, can you try browsing to: your_server/showthread.php?p=95518&prev_postid=95518&prev_edit num=0#post95518 replace 95518, in all 3 places, with the postid of a post you have edited since installing the hack. It should show the original version of the post. Unfortunately, I haven't got 3.6.x installed on any test forums, otherwise, I could check myself. It would be a great help if you could answer this questions. |
#135
|
|||
|
|||
Quote:
Before I try it I just want to check if this will only allow others to edit the post without the rest of moderating options such move, delete etc. ??? |
#136
|
|||
|
|||
Hmm, actually, it grants all mod rights.
For just editing rights, it would be: PHP Code:
|
#137
|
|||
|
|||
Great, that is what I thought. Thank you for your solution and thank you for picking-up this great add-on again :-)
If you will got some sparetime i have something to think of. I suggest that moderator or owner (if permission is granted) will be able to delete desired part of history of the post. Those kinds like grammar edit etc. .-) Also short description option for post history version will just do fine .-) Also I have suggestion for colaborative use of it in the thread. After first post there can be second post (produced automatically and simultaneosly with first post) dedicated to colaborative answer with history option - editable by anybody. Then from 3rd post discussion may start. Anybody willing to contribute to colaborative solution in the second post will be welcomed .-) Second post - if empty yet should be rolled up - saving some space.... Thank you! |
#138
|
|||
|
|||
this does not work on 3.6.1 just FYI
|
#139
|
|||
|
|||
Quote:
Also, do the options appear in the usergroup manager and forum manager, in admincp, after you install the hack. |
#140
|
||||
|
||||
Nice hack Lieva,
We could use this very well for WiKi forums. The logs do not contain info about who edited (while the field is there). I guess there should be a bit in plugin POST-HIST: record_edits Code:
$query = "INSERT INTO `" . TABLE_PREFIX . "post_edits` ( postid, editnum, message ) VALUES ( " . $postinfo['postid'] . " , " . ($postinfo['numedits']) . " , '" . addslashes($postinfo['pagetext']) . "' ) "; Code:
$query = "INSERT INTO `" . TABLE_PREFIX . "post_edits` ( postid, editnum, message, editor ) VALUES ( " . $postinfo['postid'] . " , " . ($postinfo['numedits']) . " , '" . addslashes($postinfo['pagetext']) . "' , " . ($postinfo['edit_username']) . " ) "; |
#141
|
||||
|
||||
Quote:
Code:
if($foruminfo['histstatus'] == 1){ .. .. and close the whole block: } Quote:
It's a great hack that has many possible applications: thanks Lieva. P.S. maybe I just wrecked my installation and encounter errors that aren't there Logged the id and name of the editor now. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|