Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Post Edit History (PEH) Details »»
Post Edit History (PEH)
Version: 1.5.0 B 3, by Surviver Surviver is offline
Developer Last Online: May 2020 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.8 Rating:
Released: 11-27-2006 Last Update: 10-26-2007 Installs: 186
DB Changes Uses Plugins Template Edits
Additional Files Translations Is in Beta Stage  
No support by the author.

Edithistory (1.5.0 B 3)

What does this Modification?
This Modification saves a version of a post if someone edits it. If there are saved edits for a post, you can view the "Post History" and you are able to restore old posts.
Also you can compare saved versions of a post.

Installation
Installation-Instructions are included in the zip-File

What's new in Version 1.5.0 B 2?

In this version i made a lot of improvement: eg. I've overwritten the code, the Ajax Compare function now works properly (Screen #3) and I implented a function to mass restore posts of a user. (Screen #6)

Screenshots

#1
Attachment 71292

#2
Attachment 71293

#3 (Compare saved version)
Attachment 71294

#4 (Usergroup Permissions)
Attachment 71295

#5
Attachment 71296

#6 (Mass Restore posts of a user)
Attachment 71297

Not translated yet
- Admin Help

[HR]ss[/HR]
I only get a blank page after the update, waht can I do?

See the new FAQ
[HR]ss[/HR]

Regards
Surviver

PS: I'm very sorry about my bad english

PPS:If you use it, please klick install!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #132  
Old 08-13-2007, 10:14 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great hack, but the templates that go along with it have some slight design issues inside them and (in my opinion) are not visually appealing at all.

I have a few questions:
  1. Why does the username of the thread starter appear two times in the edit_history_view template? This is redundant. The second username should be the username of the post creator.
  2. What is the variable #$i? I cannot figure out what this is, as it is just displaying a useless number...
  3. What conditions must be met in order to show the compare link? I can't find any way to configure it.
  4. Why are there colspan="2" attributes on everything in the editbit template? These aren't necessary as there are only three columns in the table, and there are three columns in every row...
  5. What is the purpose of the CSS in the edit_history_view template?
and a few suggestions:
  1. Add a conditional so that if there is no post title, the "" won't display in the phrase "Edithistory of post "X" in thread "Y." This makes the text ridiculous by showing an unfilled set of quotation marks.
  2. When there is no title for the post, the "Post" row will just show a link that says "(Post)." This looks a little redundant, having "Post: (Post)." You should use a conditional to remove the parentheses when there is no post title, and also, I think, change the phrase text to "Show Post."
  3. The title row should not show when there are no titles to display.
  4. The reason row should not show when there are no reasons to display.
  5. The edit time of the post should have a <span class="time"> on it, to keep with vB standards and also to set apart the time itself.
  6. Remove the closing </span> tag within the compare conditional. There is no opening tag for this so it shouldn't be there.
  7. Why is the phrase "cancle_compare" spelled "cancle?" The proper spelling is "cancel," unless there's some foreign version that I'm unaware of.
  8. The "message" text TD should have a valign="top" on it, since it looks a little out of place in the middle of a large post.
  9. The last two rows of the editbit table look really unorganized. You should try to configure them differently for a better-looking effect.
  10. Sometimes you write "Edit History," and other times as "Edithistory." Why the two versions? You should choose one (may I suggest "Edit History").
  11. You have an ampersand that's not encoded in the link of the "Delete All Edits of This Post" link.
Thanks for listening to me rant. Just some constructive criticism.

For anyone who's interested in applying the changes I suggested and removing the unnecessary stuff, I've attached my two templates and two screenshots (one for a post with a title and reason, and one for a post without them) as well. Feel free to use them (They are XHTML 1.0 valid, by the way). Keep in mind that if you use them, you must add two phrases: edithistory_of_post_in_thread_x (Text: Edit History of post in thread "{1}") and show_post (Text: Show Post). Enjoy.
Reply With Quote
  #133  
Old 08-17-2007, 09:50 PM
BobbyBig BobbyBig is offline
 
Join Date: Mar 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, installed this for our community Forum.
Please get the User Mass Restore Option implemented, it is required badly

Gute Arbeit.

regards
Reply With Quote
  #134  
Old 08-21-2007, 12:33 PM
Pottsy Pottsy is offline
 
Join Date: Sep 2006
Location: UK
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help!!

I have uninstalled this product, but in my usergroup options there is a table left behind. No title, 7 blank Yes/No options, no description.

If I try to change any usergroup options, I get an error (below).

How can I remove PEH from my forum? I have tried installing again, then removing, but still the same. Pleeeeeease help!

Error:

Code:
Database error in vBulletin 3.6.8:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
	`title` = 'Dealers',
	`description` = '',
	`usertitle` = 'Commercial user',
	`opentag` = '',
	`closetag` = '',
	`passwordexpires` = '0',
	`passwordhistory` = '0',
	`ispublicgroup` = '0',
	`canoverride` = '0',
	`mgccustomusergroupperms` = '0',
	`nbmsgshowchatbox` = '10',
	`allowhtmlpermissions` = '0',
	`edithistorypermissions` = '0',
	`vbwikiroles` = '',
	`vbwikipermissions` = '63',
	`forumpermissions` = '782591',
	`genericpermissions` = '505943751',
	`attachlimit` = '0',
	`pmquota` = '750',
	`pmpermissions` = '3',
	`pmsendmax` = '5',
	`calendarpermissions` = '63',
	`wolpermissions` = '1',
	`adminpermissions` = '0',
	`genericoptions` = '62',
	`profilepicmaxwidth` = '100',
	`profilepicmaxheight` = '100',
	`profilepicmaxsize` = '65535',
	`avatarmaxwidth` = '90',
	`avatarmaxheight` = '90',
	`avatarmaxsize` = '20000',
	`signaturepermissions` = '136703',
	`sigpicmaxwidth` = '1',
	`sigpicmaxheight` = '1',
	`sigpicmaxsize` = '1',
	`sigmaxrawchars` = '1000',
	`sigmaxchars` = '500',
	`sigmaxlines` = '5',
	`sigmaxsizebbcode` = '4',
	`sigmaximages` = '0'
WHERE usergroupid=10;

MySQL Error  : Unknown column 'edithistorypermissions' in 'field list'
Error Number : 1054
Date         : Tuesday, August 21st 2007 @ 02:28:04 PM
Script       : http://www.mydomain.com/forum/admincp/usergroup.php?do=update
Referrer     : http://www.mydomain.com/forum/admincp/usergroup.php?do=edit&usergroupid=10
IP Address   : x.x.x.x
Username     : Pottsy
Classname    : vb_database
Reply With Quote
  #135  
Old 08-21-2007, 01:04 PM
Pottsy Pottsy is offline
 
Join Date: Sep 2006
Location: UK
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, panic over - I read this.
Reply With Quote
  #136  
Old 08-25-2007, 06:01 AM
Surviver's Avatar
Surviver Surviver is offline
 
Join Date: Feb 2006
Location: Bonn, Germany
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gray Matter View Post
This is a great hack, but the templates that go along with it have some slight design issues inside them and (in my opinion) are not visually appealing at all.

I have a few questions:
  1. Why does the username of the thread starter appear two times in the edit_history_view template? This is redundant. The second username should be the username of the post creator.
  2. What is the variable #$i? I cannot figure out what this is, as it is just displaying a useless number...
  3. What conditions must be met in order to show the compare link? I can't find any way to configure it.
  4. Why are there colspan="2" attributes on everything in the editbit template? These aren't necessary as there are only three columns in the table, and there are three columns in every row...
  5. What is the purpose of the CSS in the edit_history_view template?
and a few suggestions:
  1. Add a conditional so that if there is no post title, the "" won't display in the phrase "Edithistory of post "X" in thread "Y." This makes the text ridiculous by showing an unfilled set of quotation marks.
  2. When there is no title for the post, the "Post" row will just show a link that says "(Post)." This looks a little redundant, having "Post: (Post)." You should use a conditional to remove the parentheses when there is no post title, and also, I think, change the phrase text to "Show Post."
  3. The title row should not show when there are no titles to display.
  4. The reason row should not show when there are no reasons to display.
  5. The edit time of the post should have a <span class="time"> on it, to keep with vB standards and also to set apart the time itself.
  6. Remove the closing </span> tag within the compare conditional. There is no opening tag for this so it shouldn't be there.
  7. Why is the phrase "cancle_compare" spelled "cancle?" The proper spelling is "cancel," unless there's some foreign version that I'm unaware of.
  8. The "message" text TD should have a valign="top" on it, since it looks a little out of place in the middle of a large post.
  9. The last two rows of the editbit table look really unorganized. You should try to configure them differently for a better-looking effect.
  10. Sometimes you write "Edit History," and other times as "Edithistory." Why the two versions? You should choose one (may I suggest "Edit History").
  11. You have an ampersand that's not encoded in the link of the "Delete All Edits of This Post" link.
Thanks for listening to me rant. Just some constructive criticism.

For anyone who's interested in applying the changes I suggested and removing the unnecessary stuff, I've attached my two templates and two screenshots (one for a post with a title and reason, and one for a post without them) as well. Feel free to use them (They are XHTML 1.0 valid, by the way). Keep in mind that if you use them, you must add two phrases: edithistory_of_post_in_thread_x (Text: Edit History of post in thread "{1}") and show_post (Text: Show Post). Enjoy.


At first thank you for your post!

1.)That seems to be the bug - once it should be the threadstarter and the other should be the postauthor!
2.)Where did you finde it?
3.)You have to set the usergroup permissions. If this does not work, check if the templates are ok.
4.)You're right
5.)This is the CSS for comparing the edits

1.)Noticed for future Versions
2.)Noticed for future Versions
3.)Noticed for future Versions
4.)Noticed for future Versions
5.)Noticed for future Versions
6.)Noticed for future Versions
7.)This happens if i write very fast Maybe i will change this
8.)Noticed for future Versions
9.)The Problem is i'm not a designer I will try to find a better solution
10.)hehe, ok i will use "Edut History" in future
11.)Noticed for future Versions


Thank you for your particural suggestions!
That's nice feedback

Greetings Surviver
Reply With Quote
  #137  
Old 10-16-2007, 12:25 PM
edgecutioner edgecutioner is offline
 
Join Date: Jul 2007
Location: Qatar
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SDB View Post
Right.

THis is urgent.

I now have a problem, as this install script didn't fully run, and I now can't make changes to my usergroups as it throws up a db error :

Code:
MySQL Error  : Unknown column 'edithistorypermissions' in 'field list'
Error Number : 1054
whenever I try to update the usergroup.

Please help asap - first of all to remove this problem.
Quote:
Originally Posted by Surviver View Post
Yes, ist works with 3.6.8

If the System is enabled and you have the permissions to view and the templateedits are done - in postbit/_legacy
It has bugs when you uninstall it namely the quote posted post above

Quote:
Originally Posted by Pottsy View Post
Help!!

I have uninstalled this product, but in my usergroup options there is a table left behind. No title, 7 blank Yes/No options, no description.

If I try to change any usergroup options, I get an error (below).

How can I remove PEH from my forum? I have tried installing again, then removing, but still the same. Pleeeeeease help!

Error:

Code:
Database error in vBulletin 3.6.8:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
    `title` = 'Dealers',
    `description` = '',
    `usertitle` = 'Commercial user',
    `opentag` = '',
    `closetag` = '',
    `passwordexpires` = '0',
    `passwordhistory` = '0',
    `ispublicgroup` = '0',
    `canoverride` = '0',
    `mgccustomusergroupperms` = '0',
    `nbmsgshowchatbox` = '10',
    `allowhtmlpermissions` = '0',
    `edithistorypermissions` = '0',
    `vbwikiroles` = '',
    `vbwikipermissions` = '63',
    `forumpermissions` = '782591',
    `genericpermissions` = '505943751',
    `attachlimit` = '0',
    `pmquota` = '750',
    `pmpermissions` = '3',
    `pmsendmax` = '5',
    `calendarpermissions` = '63',
    `wolpermissions` = '1',
    `adminpermissions` = '0',
    `genericoptions` = '62',
    `profilepicmaxwidth` = '100',
    `profilepicmaxheight` = '100',
    `profilepicmaxsize` = '65535',
    `avatarmaxwidth` = '90',
    `avatarmaxheight` = '90',
    `avatarmaxsize` = '20000',
    `signaturepermissions` = '136703',
    `sigpicmaxwidth` = '1',
    `sigpicmaxheight` = '1',
    `sigpicmaxsize` = '1',
    `sigmaxrawchars` = '1000',
    `sigmaxchars` = '500',
    `sigmaxlines` = '5',
    `sigmaxsizebbcode` = '4',
    `sigmaximages` = '0'
WHERE usergroupid=10;

MySQL Error  : Unknown column 'edithistorypermissions' in 'field list'
Error Number : 1054
Date         : Tuesday, August 21st 2007 @ 02:28:04 PM
Script       : http://www.mydomain.com/forum/admincp/usergroup.php?do=update
Referrer     : http://www.mydomain.com/forum/admincp/usergroup.php?do=edit&usergroupid=10
IP Address   : x.x.x.x
Username     : Pottsy
Classname    : vb_database
I get the same DB error. any suggestions?
Reply With Quote
  #138  
Old 10-17-2007, 07:04 PM
Surviver's Avatar
Surviver Surviver is offline
 
Join Date: Feb 2006
Location: Bonn, Germany
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I get the same DB error. any suggestions?
Just reaf the thread - but will be fixed in the next realease (will be released in the next days )

https://vborg.vbsupport.ru/showpost....&postcount=109
Reply With Quote
  #139  
Old 10-17-2007, 07:56 PM
CDarklock CDarklock is offline
 
Join Date: Apr 2007
Location: Puyallup, WA
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this mod, made the template changes, edited a post... and, um, nothing. I can't seem to find any difference. There's no link to a change history. Is this mod working as expected with 3.6.8?

I also have some suggestions for enhancements, when time is available for such things... I'd like the history extended to deleted posts, so when you can see a deleted post slug you can click a link to see what was deleted and still have access to the full history, and also the ability to revert a deleted post to any selected historical copy of that post without damaging the history.
Reply With Quote
  #140  
Old 10-17-2007, 11:28 PM
FleXy FleXy is offline
 
Join Date: Dec 2006
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this mod

1) can i administrate mass all history... purge all history from administrator panel?

2) will it drop all tables if i need uninstall?

thanks.
Reply With Quote
  #141  
Old 10-21-2007, 07:11 PM
Surviver's Avatar
Surviver Surviver is offline
 
Join Date: Feb 2006
Location: Bonn, Germany
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*** Update ***
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07160 seconds
  • Memory Usage 2,336KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete