[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!
Suggested Hosts
Locked
User avatar
katib
Registered User
Posts: 562
Joined: Thu Jun 26, 2008 12:27 pm

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

Post by katib »

Great Mod like all other Primehalo Mods
Should go into phpbb default features !!!
Forumtreff wrote:Whoever the editor Vim or gvim used, can be use following easily replaced commands for this mod.
Thank you very much
I didnot get the idea from the beginning !!! :)
I had to read throught your post several times to get the idea behind !!
- open the required files, by vim or gevim under linux
- copy paste instructions !!
So the given insrtuctions will make the editing much simpler :D
JerryEvo
Registered User
Posts: 13
Joined: Mon Apr 13, 2009 9:00 pm

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

Post by JerryEvo »

This mod has problems with forums based on UTF8 encoding. Tables created by it has text strings in Latin1 inestead of UTF8_BIN - so when edited post has national characters which will be UTF8 encoded error appears.
User avatar
primehalo
Former Team Member
Posts: 2904
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 »

Perhaps you didn't have utf8 set as your default character set.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
Ilsagon
Registered User
Posts: 58
Joined: Sun Mar 08, 2009 7:11 pm

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

Post by Ilsagon »

DoYouSpeakWak wrote:And i also saw those magic words to delete all revisions. how does that work, that solution could be a good way if no extra features are added to come around this.
BumP ;) I would be glad if anyone could explain how to remove all revisions :)
fasko
Registered User
Posts: 185
Joined: Wed Jan 28, 2009 9:49 am

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

Post by fasko »

Thank you :D

Slovak translation

Code: Select all

<?php
/**
*
* prime_post_revisions [Slovak]
*
* @package language
* @version $Id: prime_post_revisions.php,v 1.2.0 2008/07/21 13:45:00 primehalo Exp $
* @copyright (c) 2007-2008 Ken F. Innes IV
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, array(
	// Viewing posts
	'PRIME_POST_REVISIONS_VIEW'				=> 'Zobraziť historiu príspevku.',	// Text for the link to view the revision history

	// Viewing revisions
	'PRIME_POST_REVISIONS_VIEWING'			=> 'Zobrazenie post histórie',
	'PRIME_POST_REVISIONS_VIEWING_EXPLAIN'	=> 'Táto stránka zobrazuje všetky verzie prispevku, počínajúc najaktuálnejšie verzia.',
	'PRIME_POST_REVISIONS_TITLE'			=> 'Zobrazenie historie prispevku: %s',	// The %s is the post title
	'PRIME_POST_REVISIONS_FIRST'			=> 'Original prispevok: %s',			// The %s is the post title
	'PRIME_POST_REVISIONS_FINAL'			=> 'Aktuálny prispevok: %s',			// The %s is the post title
	'PRIME_POST_REVISIONS_COUNT'			=> 'Uprava %d: %s',			// The %s is the post title
	'PRIME_POST_REVISIONS_INFO'				=> 'Upravil %1$s on %2$s.',
	'PRIME_POST_REVISIONS_NO_SUBJECT'		=> '[no subject]',	

	// Delete a revision
	'PRIME_POST_REVISIONS_DELETE'			=> 'Odstrániť Upravu',
	'PRIME_POST_REVISIONS_DELETE_CONFIRM'	=> 'Ste si istí, že chcete zmazať túto upravu?',
	'PRIME_POST_REVISIONS_DELETE_DENIED'	=> 'Nemate potrebné povolenia na odstránenie tejto upravy.',
	'PRIME_POST_REVISIONS_DELETE_FAILED'	=> 'Došlo k chybe pri pokuse o vymazanie upravy.',
	'PRIME_POST_REVISIONS_DELETE_SUCCESS'	=> 'Uprava bola úspešne odstránená.',
	'PRIME_POST_REVISIONS_DELETE_INVALID'	=> 'Žiadne upravy neboli vybrané na odstránenie.',

	// Delete all revisions
	'PRIME_POST_REVISIONS_DELETES'			=> 'Zmazať všetky upravy.',
	'PRIME_POST_REVISIONS_DELETES_CONFIRM'	=> 'Ste si istí, že chcete zmazať tieto upravy?',
	'PRIME_POST_REVISIONS_DELETES_DENIED'	=> 'Nemate potrebné povolenia na odstránenie tejto upravy.',
	'PRIME_POST_REVISIONS_DELETES_FAILED'	=> 'Došlo k chybe pri pokuse o vymazanie upravy.',
	'PRIME_POST_REVISIONS_DELETES_SUCCESS'	=> 'Uprava bola úspešne odstránená.',
	'PRIME_POST_REVISIONS_DELETES_INVALID'	=> 'Žiadne upravy neboli vybrané na odstránenie.',
));

?>
Last edited by fasko on Wed Jun 03, 2009 9:33 am, edited 1 time in total.
Sorry for my english
Ilsagon
Registered User
Posts: 58
Joined: Sun Mar 08, 2009 7:11 pm

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

Post by Ilsagon »

No support left for this mod?
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 »

Hello Ilsagon,

1. make a backup of your database
2. in phpMyAdmin run the following command (if your table's prefix is not phpbb_, then alter the command accordingly) :

Code: Select all

TRUNCATE TABLE phpbb_post_revisions;
3. Purge the cache on main page in ACP or by deleting all files from cache folder (except .htaccess and index.html).

Regards
Wolfgang
Ilsagon
Registered User
Posts: 58
Joined: Sun Mar 08, 2009 7:11 pm

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

Post by Ilsagon »

All right, that actually works great, thank you :)

Got another question. I read something about the magic word "-1" (In the Config File), that makes the last edit dissapear and lets the post appear as it was before editing it. Can anyone explain, how and where to use this command?
ZDarkness
Registered User
Posts: 45
Joined: Sun Oct 14, 2007 2:39 am
Location: Brasil, SP, Sorocity
Contact:

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

Post by ZDarkness »

Full pt_br translation:

Code: Select all

<?php
/**
*
* prime_post_revisions [Portuguese(pt_br) - Português do Brasil]
*
* @pacote de linguagem
* @versão $Id: prime_post_revisions.php,v 1.2.4 2009/06/01 00:14:00 ZDarkness Exp $
* @copyright(direito de cópia) (c) 2009 Marcelo T. P. da Cruz
* @licensa http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* NÃO ALTERAR
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// ATENÇÃO DESENVOLVEDORES
//
// Todos os arquivos devem usar linguagem UTF-8 como a sua codificação e os arquivos não devem conter um BOM. 
//
// Espaços, podem conter agora, informação de ordem, por exemplo, ao invés vez de 
//"Página %s de %s' você poderá (e deveria) escrever 'Page %1$s of %2$s', isso permite 
// a tradutores re-ordenar a saída de dados, enquanto garante que continue correta
//
// Você não precisa disso onde espaços únicos são usados, por exemplo, 'Message %d' está bom
// igualmente, onde uma string contem apenas dois espaços que são usados para ajustar o texto
// numa url você também não precisa especificar uma ordem, por exemplo, 'Click %sHERE%s' está bom
//
// Alguns carácteres que você pode querer copiar&colar:
// ’ » “ ” …
//

$lang = array_merge($lang, array(
	// Observando a mensagem
	'PRIME_POST_REVISIONS_VIEW'				=> 'Observar hist&oacute;rico da mensagem..',	// Texto para o link de observar o histórico de revisões

	// Observando revisões
	'PRIME_POST_REVISIONS_VIEWING'			=> 'Observando hist&oacute;rico da mensagem.',
	'PRIME_POST_REVISIONS_VIEWING_EXPLAIN'	=> 'Esta p&aacute;gina mostra todas as vers&otilde;es da mensagem, come&ccedil;ando da mais atual.',
	'PRIME_POST_REVISIONS_TITLE'			=> 'Observando hist&oacute;rico da mensagem: %s',	// O % é o título da mensagem
	'PRIME_POST_REVISIONS_FIRST'			=> 'Mensagem original: %s',			// O % é o título da mensagem
	'PRIME_POST_REVISIONS_FINAL'			=> 'Mensagem atual: %s',			// O % é o título da mensagem
	'PRIME_POST_REVISIONS_COUNT'			=> 'revis&atilde;o %d: %s',			// O % é o título da mensagem
	'PRIME_POST_REVISIONS_INFO'				=> 'Editado por %1$s on %2$s.',
	'PRIME_POST_REVISIONS_NO_SUBJECT'		=> '[sem assunto]',	

	// Apagar uma revisão
	'PRIME_POST_REVISIONS_DELETE'			=> 'Apagar Revis&atilde;o',
	'PRIME_POST_REVISIONS_DELETE_CONFIRM'	=> 'Quer realmente apagar esta revis&atilde;o?',
	'PRIME_POST_REVISIONS_DELETE_DENIED'	=> 'Voc&ecirc; n&atilde;o tem as permiss&otilde;es necess&aacute;rias para eliminar esta revis&atilde;o.',
	'PRIME_POST_REVISIONS_DELETE_FAILED'	=> 'Ocorreu um erro ao tentar apagar a revisão.',
	'PRIME_POST_REVISIONS_DELETE_SUCCESS'	=> 'Revis&atilde;o removida com sucesso.',
	'PRIME_POST_REVISIONS_DELETE_INVALID'	=> 'Nenhuma revis&atilde;o selecionada para remo&ccedil;&atilde;o.',

	// Apagar todas revisões
	'PRIME_POST_REVISIONS_DELETES'			=> 'Apagar todas as revis&otilde;es.',
	'PRIME_POST_REVISIONS_DELETES_CONFIRM'	=> 'Quer realmente apagar estas revis&otilde;es?',
	'PRIME_POST_REVISIONS_DELETES_DENIED'	=> 'Voc&ecirc; n&atilde;o tem as permiss&otilde;es necess&aacute;rias para remover estas revis&otilde;es.',
	'PRIME_POST_REVISIONS_DELETES_FAILED'	=> 'Ocorreu um erro ao tentar apagar estas revis&otilde;es.',
	'PRIME_POST_REVISIONS_DELETES_SUCCESS'	=> 'Revis&otilde;es removidas com sucesso.',
	'PRIME_POST_REVISIONS_DELETES_INVALID'	=> 'Nenhuma revis&atilde;o selecionada para remo&ccedil;&atilde;o.',
));

?>
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

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

Post by ChriZathens »

Primehalo... after updating my test board to 3.0.5 I 've experienced a small problem when using the post revisions...
If I edit a post and also add a reason for editing, it shows that the post is edited and there is - correctly - a link to view post revisions. If I delete all revisions, it writes at the bottom of the post "Last edit by Guest ...."
If I click edit and then save without doing anything, it then displays my name correctly. This happens after the upgrade to 3.0.5 (I tried to replicate this behaviour on my live 3.0.4 board but it works correcly)
But, to be honest, this does not happen everytime... :?
Anyways, I thought I should mention this to you in case you can spot a problem easily... ;)
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
t3odor
Registered User
Posts: 2
Joined: Thu Jun 04, 2009 11:53 am

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

Post by t3odor »

Usefull feature, thanks.

Installed using automod - and one of edit's required small modification. Automod continues its search from where last find reached. Now, two of viewtopic.php find's looks for the same line "// Posts are stored in the $rowset".

So, I had to drop that line from second find

Code: Select all

<edit>
<find><![CDATA[// and the global bbcode_bitfield are built
while ($row = $db->sql_fetchrow($result))
{
]]></find>
<action type="after-add"><![CDATA[//-- mod: Prime Post Revisions -----$
        $prime_post_revisions->merge_revision_info($post_list, $result, $row); 
//-- end: Prime Post Revisions ----------------------------------------------//
]]></action>
</edit>
User avatar
primehalo
Former Team Member
Posts: 2904
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 »

Ilsagon wrote:All right, that actually works great, thank you :)

Got another question. I read something about the magic word "-1" (In the Config File), that makes the last edit dissapear and lets the post appear as it was before editing it. Can anyone explain, how and where to use this command?
That is not a command. There is no need to be concerned about the magic number. If you delete the most recent revision on the post history page then the next most recent will take its place.
ChriZathens wrote:Primehalo... after updating my test board to 3.0.5 I 've experienced a small problem when using the post revisions...
If I edit a post and also add a reason for editing, it shows that the post is edited and there is - correctly - a link to view post revisions. If I delete all revisions, it writes at the bottom of the post "Last edit by Guest ...."
If I click edit and then save without doing anything, it then displays my name correctly. This happens after the upgrade to 3.0.5 (I tried to replicate this behaviour on my live 3.0.4 board but it works correcly)
But, to be honest, this does not happen everytime... :?
Anyways, I thought I should mention this to you in case you can spot a problem easily... ;)
I have not updated to 3.0.5 yet, but I know that sometimes when updating some of the edits get left out, so you may want to go over the edits manually to see if they are all still there.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

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

Post by ChriZathens »

No, the update did not harm any file...
Never mind, Ken... I cannnot even reproduce it... Anyways, if there is really a problem, somebody else will have problems, too... :)
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
Giace
Registered User
Posts: 9
Joined: Sun Mar 15, 2009 5:53 pm

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

Post by Giace »

Maybe a really stupid question, sorry for that but...
I uploaded all the files, did the code changes and I inserted the SQL query in the database, but where is the style edit? I don't see a line like 'View post history'

EDIT: oops bump :?
Nevermind that, got it
indijanac
Registered User
Posts: 105
Joined: Wed Jan 14, 2009 1:10 am

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

Post by indijanac »

Is there some quick edit to change permission from "permissions allowing them to view the post information" to "Can change post author" ?!
Locked

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