[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
Kaiser Orn
Registered User
Posts: 13
Joined: Thu May 24, 2012 9:58 am

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

Post by Kaiser Orn »

Is it possible remove possibility ot delete revions to moderators? I want that only Admin can see and delete revisions, is it possible?

thx in advance

Edit: Resolved

define('APPROVE_REMOVAL_MODERATOR', false);

AND

old ----> if (($this->approve_viewing = $auth->acl_get('m_info', $forum_id)) || APPROVE_VIEWING_POSTER)
new ---> if (($this->approve_viewing = $auth->acl_get('a_')) || APPROVE_VIEWING_POSTER)
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

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

Post by primehalo »

hywel wrote:Hi Prime, could we please have an update 1.2.7 to 1.2.8.xml contrib walkthrough?
Thanks for your time!
Cheers
I updated the version on my site to include those instructions.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
MasterClaus
Registered User
Posts: 68
Joined: Sun Feb 19, 2012 6:41 am
Location: Việt Nam

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

Post by MasterClaus »

Well...
I don't know how to use this mod
hywel
Registered User
Posts: 51
Joined: Mon Jul 12, 2010 12:53 pm

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

Post by hywel »

primehalo wrote:I updated the version on my site to include those instructions.
Thanks for your time and help!
Cheers
David B
Registered User
Posts: 130
Joined: Thu Apr 26, 2012 10:58 pm

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

Post by David B »

This is probably the only MOD, besides the ABBC3 MOD, that I installed with 0 problems. Nice work!

P.S.: What is the name of the database table where you store the backups?
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

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

Post by primehalo »

Thanks!

It's phpbb_post_revisions.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
Big_Red_777
Registered User
Posts: 79
Joined: Mon Jul 16, 2012 8:45 pm

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

Post by Big_Red_777 »

Hi, all your mods are awesome, thank you!

I have installed post revisions on php 3.0.11 and all goes well until I click on "view post history' and I get this error:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/prime_post_revisions.php on line 436: array_merge() [function.array-merge]: Argument #2 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4719: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3828)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4721: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3828)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4722: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3828)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4723: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3828)
I appreciate your help!
Big_Red_777
Registered User
Posts: 79
Joined: Mon Jul 16, 2012 8:45 pm

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

Post by Big_Red_777 »

BTW, I installed this with Automod and all went well except the last line:

Find:

Code: Select all

page_header($user->lang['VIEW_TOPIC']
Add after:

Code: Select all

//-- mod: Prime Post Revisions ----------------------------------------------//
$prime_post_revisions->assign_template_variables($viewtopic_url, $viewtopic_title);
//-- end: Prime Post Revisions ----------------------------------------------//

The "find" line did not exist, but this one did, so I added it after this:

Code: Select all

page_header($topic_data['topic_title'] . (($start) ? ' • ' . sprintf($user->lang['PAGE_NUMBER'], floor($start / $config['posts_per_page']) + 1) : '') . ' • ' . $topic_data['forum_name'], true, $forum_id);
Maybe thats the problem?
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

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

Post by primehalo »

I don't think that would have anything to do with it, but it may be another MOD you have installed is conflicting.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
draky
Registered User
Posts: 250
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.

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

Post by draky »

Hello.

Is this MOD ok for 3.0.12 ? :)

Thanks !
UKN0WN
Registered User
Posts: 45
Joined: Wed Jul 16, 2014 9:53 pm

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

Post by UKN0WN »

draky wrote:Hello.

Is this MOD ok for 3.0.12 ? :)

Thanks !
[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 1743: array_merge(): Argument #2 is not an array
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4808: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4810: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4811: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4812: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)


Heres what I got for newest version.

Sadly :/
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

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

Post by primehalo »

I am running 3.0.12 and it works fine on my board.

Is your viewtopic.php line #1743 this:

Code: Select all

		$postrow = array_merge($postrow, $cp_row['row']);
Argument #2 is $cp_row['row'] but Prime Post Revisions does not modify or otherwise use that variable. Sounds like something else is changing that variable.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
draky
Registered User
Posts: 250
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.

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

Post by draky »

Will you adapt it to phpBB 3.1 ?
UKN0WN
Registered User
Posts: 45
Joined: Wed Jul 16, 2014 9:53 pm

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

Post by UKN0WN »

primehalo wrote:I am running 3.0.12 and it works fine on my board.

Is your viewtopic.php line #1743 this:

Code: Select all

		$postrow = array_merge($postrow, $cp_row['row']);
Argument #2 is $cp_row['row'] but Prime Post Revisions does not modify or otherwise use that variable. Sounds like something else is changing that variable.
no, line 1743 is this:

Code: Select all

 			}
probably when it told me to do this
find:

Code: Select all

	if (isset($cp_row['row']) && sizeof($cp_row['row']))
add after:

Code: Select all

//-- mod: Prime Post Revisions ----------------------------------------------//
	$prime_post_revisions->update_postrow($post_list, $i, $rowset, $postrow);
//-- end: Prime Post Revisions ----------------------------------------------//

I think its probably in here
1722-1743

Code: Select all

if (isset($cp_row['row']) && sizeof($cp_row['row']))
	//-- mod: Prime Post Revisions ----------------------------------------------//
	$prime_post_revisions->update_postrow($post_list, $i, $rowset, $postrow);
   //-- end: Prime Post Revisions ----------------------------------------------//
	{
		$postrow = array_merge($postrow, $cp_row['row']);
	}

	// Dump vars into template
	$template->assign_block_vars('postrow', $postrow);
	// Start UPS Easy Shop
	if ($sig_shelf)
	{
		$j = 0;
		foreach ($items as $item)
		{
			$j++;

			if ($j > $config['shop_shelf_size_sig'])
			{
				break;
			}
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

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

Post by primehalo »

It doesn't say Add After, it says Add Before.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

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