[ABD] Prime Post Revision

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew

[ABD] Prime Post Revision

Post by Bruninoit »

Description: it saves all version of edited posts and users with permission can see them and restore.

TOPIC INFO
Image

Features:
  • OK save edited posts
  • OK view edit history
  • OK restore old versions
  • OK delete old versions
Last edited by Bruninoit on Tue Feb 16, 2016 7:48 pm, edited 4 times in total.
David B
Registered User
Posts: 130
Joined: Thu Apr 26, 2012 10:58 pm

Re: [DEV] Prime Post Revision

Post by David B »

Bruninoit wrote:Description: it saves all version of edited posts and users with permission can see them and restore.

Download: soon
Great! I've been looking for someone to do this. I wanted to do it myself, but I do not understand the new extensions API.
Nadleeh
Registered User
Posts: 30
Joined: Tue Jan 27, 2015 12:55 pm
Location: The Netherlands
Name: Mark

Re: [DEV] Prime Post Revision

Post by Nadleeh »

Can't wait!
Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew

Re: [BETA] Prime Post Revision

Post by Bruninoit »

First BETA version with 2/4 of features.
Nadleeh
Registered User
Posts: 30
Joined: Tue Jan 27, 2015 12:55 pm
Location: The Netherlands
Name: Mark

Re: [BETA] Prime Post Revision

Post by Nadleeh »

Tested the beta and get this error when editing a post and pressing submit.

Code: Select all

phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 2416: Cannot modify header information - headers already sent by (output started at [ROOT]/ext/bruninoit/ppr/event/main_listener.php:186)
The edited post is saved, but viewing the edits result in an empty screen.

Screenshot
Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew

Re: [BETA] Prime Post Revision

Post by Bruninoit »

Oh thanks... My error... I've updated the package
To simple update:
Open file event/main_listener.php
Search and remove all lines

Code: Select all

var_dump($event['data']);
Nadleeh
Registered User
Posts: 30
Joined: Tue Jan 27, 2015 12:55 pm
Location: The Netherlands
Name: Mark

Re: [BETA] Prime Post Revision

Post by Nadleeh »

Works like a charm now, thanks.

The page to view the edits is not implemented I guess? Just wondering :).

If you need a Dutch translation, let me now.

Edit: tested on 3.1.6 and 3.1.7-pl1 btw.
Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew

Re: [BETA] Prime Post Revision

Post by Bruninoit »

The page to view old version is enable... Don't you see it? There is a Button on every post that has been modified.

Thanks for all tests.
Nadleeh
Registered User
Posts: 30
Joined: Tue Jan 27, 2015 12:55 pm
Location: The Netherlands
Name: Mark

Re: [BETA] Prime Post Revision

Post by Nadleeh »

I saw the new button indeed. Clicking it gives no errors, but it shows nothing, except who made the extension :). See the screenshot below.

Image
Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew

Re: [BETA] Prime Post Revision

Post by Bruninoit »

Umh, can you see with phpmyadmin, table phpbb_ppr which is the situation?
Nadleeh
Registered User
Posts: 30
Joined: Tue Jan 27, 2015 12:55 pm
Location: The Netherlands
Name: Mark

Re: [BETA] Prime Post Revision

Post by Nadleeh »

Ofcourse.

Image

Image

Don't mind the garbage, just smashed on my keyboard for some random text.
Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew

Re: [BETA] Prime Post Revision

Post by Bruninoit »

Which is the link that appear when you click the button on revision?
Nadleeh
Registered User
Posts: 30
Joined: Tue Jan 27, 2015 12:55 pm
Location: The Netherlands
Name: Mark

Re: [BETA] Prime Post Revision

Post by Nadleeh »

http://localhost/forum_test/app.php/ppr/view/883727
David B
Registered User
Posts: 130
Joined: Thu Apr 26, 2012 10:58 pm

Re: [BETA] Prime Post Revision

Post by David B »

I've got the same issue. The edits are being saved to the database, but the page to view the changes is just displaying blank page.
Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew

Re: [BETA] Prime Post Revision

Post by Bruninoit »

Nadleeh wrote:http://localhost/forum_test/app.php/ppr/view/883727
Try this: http://localhost/forum_test/app.php/ppr/view/860013

Please, verify also if the post you have edited has id 860013 or 883727

Return to “Abandoned Extensions”