![]() |
Post Edit History Viewer
When someone edits a post, the old message is stored in another table before the new one overwrites the old message.
Posts that have been edited will have "view edit history" displayed below the post count in the postbit. Clicking "view edit history" allows previous versions of a post to be seen. The postbit and postbit_legacy templates are altered using a similar method to the one used in the vbshout extension by Zero Tolerance, i.e. a search and replace. This means that no manual alterations to these templates are required. Normally, everyone can see the post history for all the posts, however, the XML file post_hist_mods_only.xml restricts it to mods only (and the poster themselves). (Both versions should not be installed at the same time). -------------------------------- Updated: use post-hist_1_1b.zip Changes - 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) The options are controlled by admincp. By default, nobody can see any of the histories. At minimum, you should set the admin usergroup to see all histories. Request I don't know how 3.6.x products work, but if someone tries it on 3.6.x and it works, that would be good to know. I don't actually have 3.6 on our own forums, so can't test it. Also, if you find out any bugs for < 3.6, that would be good to know too. Install Info The zip file contains: bit_field_post_hist.xml -> XML for permissions post_hist_1_1.xml -> product file To install: copy bit_field_post_hist.xml to /includes/xml and install the product. In theory, this should work as an upgrade to the previous version. However, I haven't tested that. If you uninstall the old version and install the new version, you will lose any saved post histories. Troubleshooting bitfield cache You might have to open: yourserver.com/admincp/index.php?do=buildbitfields This re-calculates the bitfields that have been altered. On some versions, the product installer will automatically do it. Moderators The postbits determine if a post is a person's own post by seeing if they have permission to edit the post. This means that if you give mods the rights to see their own post histories, then they will be able to click to see everyone elses post histories as they have the rights to edit all posts. However, the link won't have any effect as the actual viewer is restricted based on actual poster. Usage The XML file should add 2 options that can be set when setting up a usergroup and 1 new option for each forum. New options for each usergroup: Can See Post History (Yes/No) ---- Allows members of this usergroup to see all post histories Can See Own Post History (Yes/No) ---- Allows members of this usergroup to see their own post history New option for each forum: Post History Displayed (Yes/No) ---- Shows post history for every post in this forum |
Where is the file?
oh and I love the sound of this!!1 |
Sorry forgot to include it :p
Have attached it now. |
Thanks, sounds wonderful!
But I am confused, does all moderators and administrators see this or? and can you decide who is able? |
Quote:
|
Oh.....
Well are you able to code it so only administrators and/or moderators are able to see the before edited posts, this is what I am looking for and I am sure more wants the same :) I hate when I see a member has edited his/her's post and not knowing the original post :( |
Quote:
|
nice mod will check later for out of beta version .
|
I have the Moderator 1 installed yet i cannot view my edits as a Admin nor as a MOD, do i need to do anything else other than install??
|
Quote:
same situation here, cant see anything |
nice hack as they said it has a proplem plz fix to install it
|
Seriously something that should be standard in vB 3.5, I'll try it out later this week, thanks a lot!
|
thanks lieva, can we delete the histories by this hack??
|
Quote:
Another possibility is that you have edited the postbit template. The system works by searching for a string the the postbit template and replacing it. |
Quote:
|
Just tried the standard 1, still nothing....
but to be honest i aint sure where im meant to be looking, Is it where it tells you that the post has been editied? |
Quote:
for example: Join Date: Feb 2003 Posts: 621 View Edit History: It also only appears if the post has been editted since the plugin was installed (as previous edits aren't recorded). If that doesn't help, could you post the contents of your postbit template. |
no, still aint showing....I will post my post bit after you have seen my
postbit working ;) Take a gander HERE If ya still want me postbit i wil post when ya ask again :) |
Quote:
The plugin searches for "<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>" and adds code for the history link after that section. I assume that section doesn't exist for your forum (or is changed) ? Another possibility is that the default template is different in 3.5.3 |
I am 90% sure that is there...2 secs, gonna check...
here ya go..this is mine, copied exact as i see it Although a search didnt bring it up.... Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> Quote:
|
heres my full postbit ;)
Code:
<!-- post #$post[postid] --> |
Quote:
Is "$post[skypeicon]" a mod that you made or is it a change that was made to the default since v3.5.0 ? I was looking through the template trying to find a more stable insert point. |
I think that was default in 3.5.2?
|
Quote:
|
elxcellent m8, so just redownload ya plugin and overwrite?
|
yeah, you have to uninstall the first one.
Also, to test make sure you edit a post after installing as it doesn't store old edits. |
ok m8 will do, thanks alot! :)
|
Quote:
|
Ok done this, it now shows View Edit History: 0 1 2
I made 3 seperate edits, click each edite number and no edit history shows? I have a feeling it just aint gonna play ball for me pmsl |
Quote:
|
i m8, we is getting somewhere lol
|
Quote:
|
Yes it just shows the most recent edit,
all 3 links show the same, the latest edit. When i edited the post i changed it from say 123456789 (orginal) to 12345 and then 1234 and saved each time... Does this make sense lol |
Quote:
|
Just tried it again with 6 changes this time and it worked...
|
Quote:
Anyway, have updated the non-mod version too. |
Quote:
|
No m8 it dont...
I have a feeling its because i have installed the Prefix hack since creating that thread and when i edited it it asked for a prefix, i think this is why i aint showing the edits. Just a hunch mind, Im gonna try 1 that dont require a prefix |
Seems to work 100% when it dont ask for a prefix during the edit :)
Gonna make the prefixes not mandatory i think although most sections arnt anyway!! So other than that, all is well m8, tis a great idea, well done and thanks for you time :) |
Quote:
|
All times are GMT. The time now is 07:54 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:
|