[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!
Ideas Centre
Locked
User avatar
Acorn
Registered User
Posts: 402
Joined: Tue Sep 26, 2006 8:11 am
Location: UK
Contact:

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

Post by Acorn »

This is a fantastic mod - thanks very much.

I gather that you can restrict the ability to view post history to just admins rather than admins and moderators, but I can't see how to change this. Apologies if this is obvious to others - I'm only just getting used to phpBB3.

Thanks.
Getting braver all the time. :D
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 »

Acorn wrote:This is a fantastic mod - thanks very much.

I gather that you can restrict the ability to view post history to just admins rather than admins and moderators, but I can't see how to change this. Apologies if this is obvious to others - I'm only just getting used to phpBB3.

Thanks.
the settings are in the included fucntions file :)
User avatar
Acorn
Registered User
Posts: 402
Joined: Tue Sep 26, 2006 8:11 am
Location: UK
Contact:

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

Post by Acorn »

Aah - I've got it. It's in /includes/prime_post_revisions.php - beautifully clear. Thanks. 8-)
Getting braver all the time. :D
User avatar
Acorn
Registered User
Posts: 402
Joined: Tue Sep 26, 2006 8:11 am
Location: UK
Contact:

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

Post by Acorn »

I've changed
define('APPROVE_REMOVAL_MODERATOR', true); // Can moderators (with the ability to delete posts) remove revisions?
in /includes/prime_post_revisions.php to
define('APPROVE_REMOVAL_MODERATOR', false); // Can moderators (with the ability to delete posts) remove revisions?
but my global moderator can still view post history.

Is there something else I need to do? :?
Getting braver all the time. :D
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

As the comment next to that define indicates, changing it will only affect whether or not moderators have the ability to delete the post history. It has no effect on whether they can see it or not. The way it is currently set up, moderators that can view the post's information can also view the history.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
Acorn
Registered User
Posts: 402
Joined: Tue Sep 26, 2006 8:11 am
Location: UK
Contact:

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

Post by Acorn »

Can I prevent moderators from seeing the post history?
Getting braver all the time. :D
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

You would need to change this line to something else:

Code: Select all

            if (($this->approve_viewing = $auth->acl_get('m_info', $forum_id)) || APPROVE_VIEWING_POSTER) 
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
Acorn
Registered User
Posts: 402
Joined: Tue Sep 26, 2006 8:11 am
Location: UK
Contact:

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

Post by Acorn »

Brilliant - that seems to have sorted it.

For anyone else wanting to do the same thing, I changed

Code: Select all

if (($this->approve_viewing = $auth->acl_get('m_info', $forum_id)) || APPROVE_VIEWING_POSTER) 

in /includes/prime_post_revisions.php to

Code: Select all

if (($this->approve_viewing = $auth->acl_get('a_')) || APPROVE_VIEWING_POSTER) 
Getting braver all the time. :D
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,

I think this setting doesn't work as it should:

Code: Select all

define('SUBJECT_CHANGE_REVISION', false);		// Store a revision when only the subject has been changed?
I changed only the title of an old topic a few minutes ago and the revision has been stored. (Or has something else also changed automatically and I didn't notice it? The board is upgraded from phpBB 2.0.23.)

Regards
Wolfgang
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

Got it fixed in version 1.2.3.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
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,

thank you! It's much better now but unfortunately still not perfect.

Example: I changed the title of an old topic and no revision has been stored. A minute later I changed the title back to the original one and this time the revision has been stored. Both times I just changed the topic's title.

Regards
Wolfgang
User avatar
Daan1992
Registered User
Posts: 40
Joined: Wed Dec 13, 2006 12:17 pm

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

Post by Daan1992 »

Is it possible to compare the the original and the most recent post en making the differents in another color?
Above message may contain errors in spelling, grammar or other language issues. My apologies in advance.
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

Daan1992 wrote:Is it possible to compare the the original and the most recent post en making the differents in another color?
Not for me. I don't have the time to write that kind of algorithm.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
DoYouSpeakWak
Registered User
Posts: 2311
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 »

Hey primehalo (and everybody else)

We have used this mod for the past month or so and it works great. But i was wondering if you could have a button besides the Edit button that only showed if the post had a history to read. Just like the text link now, but without the text in front of it and as a image. The move should be to hard.

DYSW
Whatever you share comes back. Support the phpBB Communities
Offering paid services. 15+ years of experience with phpBB3 and server management.
User avatar
primehalo
Former Team Member
Posts: 2988
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 »

I don't think I would do that personally, as I hate having to create images for each separate style. But it shouldn't be too hard to implement if you want to attempt it yourself.
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”