Page 20 of 21

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

Posted: Fri Jun 15, 2012 7:38 am
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)

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

Posted: Fri Jul 13, 2012 6:59 am
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.

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

Posted: Mon Jul 16, 2012 5:01 am
by MasterClaus
Well...
I don't know how to use this mod

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

Posted: Mon Jul 16, 2012 5:52 am
by hywel
primehalo wrote:I updated the version on my site to include those instructions.
Thanks for your time and help!
Cheers

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

Posted: Mon Sep 24, 2012 10:48 pm
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?

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

Posted: Fri Oct 05, 2012 3:49 am
by primehalo
Thanks!

It's phpbb_post_revisions.

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

Posted: Thu Nov 22, 2012 8:41 pm
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!

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

Posted: Thu Nov 22, 2012 9:31 pm
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?

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

Posted: Mon Nov 26, 2012 6:07 am
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.

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

Posted: Mon Mar 24, 2014 7:58 am
by draky
Hello.

Is this MOD ok for 3.0.12 ? :)

Thanks !

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

Posted: Thu Jul 17, 2014 5:57 am
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 :/

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

Posted: Thu Jul 17, 2014 6:49 am
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.

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

Posted: Thu Jul 17, 2014 7:17 am
by draky
Will you adapt it to phpBB 3.1 ?

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

Posted: Thu Jul 17, 2014 8:54 am
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;
			}

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

Posted: Thu Jul 17, 2014 3:22 pm
by primehalo
It doesn't say Add After, it says Add Before.