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

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

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 » Mon Jul 16, 2012 5:01 am

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 » Mon Jul 16, 2012 5:52 am

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

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: 2833
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 » Fri Oct 05, 2012 3:49 am

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

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

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

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: 247
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.
Contact:

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

Post by draky » Mon Mar 24, 2014 7:58 am

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

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

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: 247
Joined: Tue Dec 10, 2002 2:04 pm
Location: France
Name: Gilles W.
Contact:

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

Post by draky » Thu Jul 17, 2014 7:17 am

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

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: 2833
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 » Thu Jul 17, 2014 3:22 pm

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!

Locked

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