![]() |
As I said, the template update occurs in the "POST-HIST: modify postbits" plugin.
You could post the 2 templates, postbit and postbit_legacy templates and It should be possible to create new search strings. I haven't 3.6.0 on my server. The real problem is that vbulletin has not put in markers or hooks in the templates. SnickersTK, I am not sure what is causing your error. The code is: PHP Code:
You could maybe use isset outside the if statement above, e.g. if( isset( $_REQUEST['prev_postid'] ) && isset( $_REQUEST['prev_editnum'] ) ) { <the above code> } |
Ok, I decided to just update the modification rather than people trying to figure out how to mod it themselves.
It now supports: - Enable/Disable by forum -- On/Off by forum - Enable/Disable by usergroup -- Can see own history: Yes/No -- Can see everyone's history: Yes/No - Indicates who made the edit (if it wasn't the original author) - Workaround for unknown templates -- Insert <<Insert Post History>> into postbit and postbit_legacy templates -- (This is only for templates where the auto-match doesn't work) |
Btw, is the customary to create a new thread for an upgrade ?
|
Hmm, 12 downloads and no comments. Must mean my reliability has increased since the last version :).
Has anyone tried it on 3.6 ? |
Thank you Lieva for upgrade.
I can not find where to admin this add-on in admincp? Can you post it in your first post? |
Done.
There is no specific post history menu. I added new options that can be set using the usergroup manager and also the forum manager. For usergroup settings, it's usergroups -> usergroup manager -> edit usergroup and similar for forums |
Sorry lieva, I do not see any options there...can you be more specific?
I do not see anythink like related to post-history in usergroup settings. I only see can edit own thread. I do not see "Can edit others thread" or "Can see others post history"... Maybe I am missing something.... also you are saying this: "By default, nobody can see any of the histories. At minimum, you should set the admin usergroup to see all histories." But I didnt changed any option and users can see history... Thank you .-) |
Did you upload the XML file from the zip file to
/includes/xml ? Also, did you try opening yourserver.com/admincp/index.php?do=buildbitfields ? It looks like the options aren't being added. |
Thanks for the update Lieva! Im really thankfull
|
uff, you are right ... somehow I downloaded just post-hist.xml not the zip file... and thought that you are saying to installed it from includex/xml location ... didnt understand why... etc etc... my fault .. I was too quick to install it :-)
....... Now I see the options :-) ............ QUESTION: how would I set up for certain forum so that any user can edit post?...AKA WIKI ? |
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. |
Quote:
Others functions are well.... Click install, but wait version for vB 3.6.1 |
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. |
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. ??? |
Hmm, actually, it grants all mod rights.
For just editing rights, it would be: PHP Code:
|
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! |
this does not work on 3.6.1 just FYI :)
|
Quote:
Also, do the options appear in the usergroup manager and forum manager, in admincp, after you install the hack. |
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:
Code:
$query = "INSERT INTO `" . TABLE_PREFIX . "post_edits` |
Quote:
Code:
if($foruminfo['histstatus'] == 1){ 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. |
Did you accomplished that you see who edited? I do not :-( Can you help?
Thank you! |
Yes, some extra code has to be added and you need to add at least 1 extra field to the post_edit table (I did that with a SQL edit tool, rather than XML import).
I'm half sleeping now, I'll post tomorrow (unless someone else got better, which is very possible). |
:( Sorry for being slow.
Use a sql editor and change in table post_edits Code:
varchar(50) to varchar(100) Add field: Code:
editorid mediumint(10) UNSIGNED NULL Def NULL Code:
if($foruminfo['histstatus'] == 1){ The content of plugin POST-HIST: update showthread becomes: Code:
//global $permissions; |
Any news on a version for 3.6 of this mod???
|
If you have this running with no problems on 3.6.2 let us know.
thanks. |
it does say who editted when someone other than the original poster does the editting. However, it places it on the old version of post.
E.g. if you go to version 2, it would say "xxx edited this post" and then version 3 would be the editted version. I realised that the other way was better but didn't bother :p. [edit] Hmm, I seem to have uploaded the wrong file (as my local copy did show who edited the posts). The 1_1b zip file shows who editted the posts. |
Man oh man, I'd love to have this for 3.6.2. :o
|
Quote:
|
Quote:
admincp->styles and templates->style manager Press the << >> button for the default style The click on postbit templates postbit (It might be different in 3.6.2) Post the contents of the template or PM them to me and unless they seriously changed the format, I should be able to update it. |
Quote:
|
Lieva if possible I would love to have your add-on have ability to:
- reserv 2nd post for colaborative answer (trigger second post right after 1st post has been made) - grant access (usergroup permission) to colaborate (edit the post) in 2nd post on the answer (only for the second post not the other posts where discussion will follow) - reveal who edited and show edit versions only for second post Control this option per-forum basis in admincp Is this possible Lieva? I will be happy to pay for it .-) |
Quote:
postbit_legacy... Code:
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center"> |
Had to make it 2 posts... too many characters...
postbit... Code:
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> |
Does anyone know if that besides the template editing (which I can easily do myself), the rest of this is 3.6.x compatible?
EDIT: Dur, I'll just go install it on my localhost test install. heh EDIT #2: It works 'cept for a kinda big bug. Viewing old posts results in "matched change post" as the content. |
Same here!
|
I downloaded the version contained in "post hist 1 1b.zip"; looking through the code, why is there a plugin titled "Allows Everyone to edit posts"? Is it supposed to be in there?
|
There is now a 3.6 version of this hack here:
https://vborg.vbsupport.ru/showthread.php?t=132708& Awesomesauce. |
Still no luck in 3.5.8 :-(
|
All times are GMT. The time now is 11:10 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:
|