[RC] Prime Post Revisions - View all edits to posts

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
updown
Registered User
Posts: 542
Joined: Sat Jan 05, 2008 6:53 am

Re: [RC] Prime Post Revisions - View all edits to posts

Post by updown »

ibelphegor wrote:manually execute the sql from the instructions file,
Do you think that is a phpadmin config problem?
Seems so... In phpmyadmin, klick to the "Operations"-Tab at top right, then find the "Colation"-Field at the bottom of the page, and select "utf8_bin" and press OK
User avatar
primehalo
Former Team Member
Posts: 2910
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Post Revisions - View all edits to posts

Post by primehalo »

ibelphegor wrote:Some question and request :)
Who can see now the edit? i think only admin, correct?
For Delete history need to enter to specific post?

If all above correct i think option to delete automatic after X days will be great
and option to add permission to who can see edit history.
Anyone who has permission to view the post information can view the post history. If you want to let the post author view the history, then you can set that option inside the includes/prime_post_revisions.php file. You will see some other permissions and options there as well:

Code: Select all

/**
* Permissions
*/
define('APPROVE_VIEWING_POSTER', false);        // Can the post author view the revisions?
define('APPROVE_REMOVAL_POSTER', false);        // Can the post author remove revisions?
define('APPROVE_REMOVAL_EDITOR', false);        // Can the post editor remove their revision?
define('APPROVE_REMOVAL_MODERATOR', true);        // Can moderators (with the ability to delete posts) remove revisions?

/**
* Options
*/
define('ENABLE_POST_REVISIONS', true);            // Enable this MOD?
define('SUBJECT_CHANGE_REVISION', true);        // Store a revision when only the subject has been changed?
define('REVISION_PAGE_HEADER', true);            // Display the explanation about the viewing revisions page?
define('REVISION_POST_HEADERS', true);            // Display the revision number in the posts' subject area?
define('REVISION_SIGNATURES', true);            // Display signatures while viewing revisions?  
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
ibelphegor
Registered User
Posts: 453
Joined: Wed Oct 24, 2007 8:37 am

Re: [RC] Prime Post Revisions - View all edits to posts

Post by ibelphegor »

Thanks primehalo for the info and useful mod it's work great.
What about the auto delete after X days?

Regards,
uzi
User avatar
primehalo
Former Team Member
Posts: 2910
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Post Revisions - View all edits to posts

Post by primehalo »

ibelphegor wrote:Thanks primehalo for the info and useful mod it's work great.
What about the auto delete after X days?

Regards,
uzi
It's something I would like to do, but I have other things I must get to first.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
ibelphegor
Registered User
Posts: 453
Joined: Wed Oct 24, 2007 8:37 am

Re: [RC] Prime Post Revisions - View all edits to posts

Post by ibelphegor »

OK thanks.
This mod and Prime Trash Bin are really great mod, thanks a lot!
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [RC] Prime Post Revisions - View all edits to posts

Post by IPB_Refugee »

Hi Ken,

there's a small bug in function prime_post_revisions. Change

Code: Select all

			global $db, $auth, $user, $php_root_path, $phpEx;
to

Code: Select all

			global $db, $auth, $user, $phpbb_root_path, $phpEx;
Regards
Wolfgang
User avatar
primehalo
Former Team Member
Posts: 2910
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Post Revisions - View all edits to posts

Post by primehalo »

Thanks, I just got it fixed.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
demon327
Registered User
Posts: 847
Joined: Thu Nov 16, 2006 2:16 pm

Re: [RC] Prime Post Revisions - View all edits to posts

Post by demon327 »

primehalo, i just noticed it does not parse the default bbcodes in the revision...

the revision now looks like this:

Code: Select all

ik wil even vermelden dat wij [b]geen[/b] reclame toestaan volgens [url=http://ashladan.be/forum/viewtopic.php?p=233#p233]onze regels[/url], ik zal dit door de vingers zien indien u een linkje naar onze website plaatst [code]<a href="http://www.ashladan.be">De Belgische <strong>Metal Community</strong> Website</a>
[/code]

edit: when you deleted all the revisions it not showing that the posts has bin edited unless you type a reason why you edited the post..
User avatar
primehalo
Former Team Member
Posts: 2910
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Post Revisions - View all edits to posts

Post by primehalo »

It parses exactly the same way normal posts get parsed. Maybe the option to disable BBCodes was enabled for your posts.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
demon327
Registered User
Posts: 847
Joined: Thu Nov 16, 2006 2:16 pm

Re: [RC] Prime Post Revisions - View all edits to posts

Post by demon327 »

primehalo wrote:It parses exactly the same way normal posts get parsed. Maybe the option to disable BBCodes was enabled for your posts.
strange.., but it works again now like it must :)
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: [RC] Prime Post Revisions - View all edits to posts

Post by DoYouSpeakWak »

This could be quite usefull. But had i have a problem. Installed the files,uploaded the edits. Ran the db_install file. Purshed cache. Got a db error when entering a post, uninstalled with db_uninstall. Cache again. ran the sql commands manually. cache. Then the board gave no errors in anyway, but as before the features added very not showing, in acp or in viewtopic. No extra links,pics etc. Ran the db_insall again to se if that did any change. cache, but still the same. no errors and no features.

Were should the mod be controlled from and how do i check if my db changes have gone good ?

DYSW
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
User avatar
primehalo
Former Team Member
Posts: 2910
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Post Revisions - View all edits to posts

Post by primehalo »

Permission and options are controlled from within the includes/prime_post_revisions.php file. It should begin to work as soon as it's installed. Nothing happens after you edit a post? What kind of SQL error did you get? The SQL adds a new table to the database called phpbb_post_revisions.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
ricky92
Registered User
Posts: 32
Joined: Mon Dec 11, 2006 4:43 pm
Location: Naples, Italy
Contact:

Re: [RC] Prime Post Revisions - View all edits to posts

Post by ricky92 »

First of all, thanks for this great mod, it's an awesome addition to my board! Then I would ask you if it's possible to edit the AJAX quickedit file to store a post edit even using that. I tried, but I couldn't make it work... Could you please help me?
User avatar
RMcGirr83
Former Team Member
Posts: 21826
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [RC] Prime Post Revisions - View all edits to posts

Post by RMcGirr83 »

Not for anything but I would like to see an entry made into the log tables when a user (or anyone) edits a post. Possibly with a link to the post?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
primehalo
Former Team Member
Posts: 2910
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Post Revisions - View all edits to posts

Post by primehalo »

The board already logs edits when a post is edited by someone other than the original poster. If you want it to log every edit, then find this code in functions_posting.php:

Code: Select all

            if ($user->data['user_id'] != $poster_id)
            {
                $log_subject = ($subject) ? $subject : $data['topic_title'];
                add_log('mod', $data['forum_id'], $data['topic_id'], 'LOG_POST_EDITED', $log_subject, (!empty($username)) ? $username : $user->lang['GUEST']);
            } 
And change the first line to this:

Code: Select all

            if ($user->data['user_id'] != $poster_id || true) 
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
Locked

Return to “[3.0.x] MODs in Development”