[MODDB] Topic Age Warning

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
romeo_piter
Registered User
Posts: 83
Joined: Mon Nov 09, 2009 7:11 pm
Location: Russia

Re: [BETA] Topic Age Warning

Post by romeo_piter »

Has anyone tried it on 3.0.5 ?
User avatar
imkingdavid
Former Team Member
Posts: 2672
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [BETA] Topic Age Warning

Post by imkingdavid »

romeo_piter wrote:Has anyone tried it on 3.0.5 ?
I have not tested it on that version.

Because Quick Reply was added in 3.0.6, if you wish to install it on an earlier version, such as 3.0.5, you will need to omit the edits that have to do with Quick Reply.

Although it is recommended that you update to 3.0.7-PL1.
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
romeo_piter
Registered User
Posts: 83
Joined: Mon Nov 09, 2009 7:11 pm
Location: Russia

Re: [BETA] Topic Age Warning

Post by romeo_piter »

It works on 3.0.5
Thanks for this mod.

But I found a little problem, it works when answering but doesn't work when quoting.
I mean when link looks like following: mode=reply it works, but when mode=quote it doesn't.


It has something to do with quick answer?
User avatar
imkingdavid
Former Team Member
Posts: 2672
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [BETA] Topic Age Warning

Post by imkingdavid »

romeo_piter wrote:It works on 3.0.5
Thanks for this mod.

But I found a little problem, it works when answering but doesn't work when quoting.
I mean when link looks like following: mode=reply it works, but when mode=quote it doesn't.


It has something to do with quick answer?
I will look into that. Thanks for reporting it, and it's good to know that it works on 3.0.5.
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
romeo_piter
Registered User
Posts: 83
Joined: Mon Nov 09, 2009 7:11 pm
Location: Russia

Re: [BETA] Topic Age Warning

Post by romeo_piter »

I seem to solve the problem.

In posting.php

Code: Select all

//! Topic Age Warning - imkingdavid
if($mode == 'reply')
{
	include($phpbb_root_path . 'includes/functions_taw.' . $phpEx);
	//calls taw::__construct() which in turn calls taw::go()
	$taw = new taw($post_data);
}
//! END Topic Age Warning - imkingdavid
should be like:

Code: Select all

//! Topic Age Warning - imkingdavid
if($mode == 'reply' or $mode == 'quote')
{
	include($phpbb_root_path . 'includes/functions_taw.' . $phpEx);
	//calls taw::__construct() which in turn calls taw::go()
	$taw = new taw($post_data);
}
//! END Topic Age Warning - imkingdavid
It seems to work :D
User avatar
imkingdavid
Former Team Member
Posts: 2672
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [BETA] Topic Age Warning

Post by imkingdavid »

romeo_piter wrote:I seem to solve the problem.

In posting.php

Code: Select all

//! Topic Age Warning - imkingdavid
if($mode == 'reply')
{
	include($phpbb_root_path . 'includes/functions_taw.' . $phpEx);
	//calls taw::__construct() which in turn calls taw::go()
	$taw = new taw($post_data);
}
//! END Topic Age Warning - imkingdavid
should be like:

Code: Select all

//! Topic Age Warning - imkingdavid
if($mode == 'reply' or $mode == 'quote')
{
	include($phpbb_root_path . 'includes/functions_taw.' . $phpEx);
	//calls taw::__construct() which in turn calls taw::go()
	$taw = new taw($post_data);
}
//! END Topic Age Warning - imkingdavid
It seems to work :D
Thank you for taking the time to look into it.
I'll add that in the next version. :)
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
lovelysummer
Registered User
Posts: 437
Joined: Fri Mar 20, 2009 1:49 pm

Re: [BETA] Topic Age Warning

Post by lovelysummer »

Bookmark this topic. Nice ! :D
User avatar
imkingdavid
Former Team Member
Posts: 2672
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [BETA] Topic Age Warning

Post by imkingdavid »

As a bit of an update, I have fixed the quote thing as said above, and I have submitted this to the MOD DB.

I did not think to include instructions for updating from the latest version, and I don't remember what all has changed since then. It may be best to simply undo the file edits and then redo them. to make sure you're not missing anything if/when it is released.

In any case, the only thing I can remember changing was the quote bug mentioned and fixed above and updating UMIL.
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
nalioth
Registered User
Posts: 7
Joined: Wed Mar 05, 2008 3:22 am

Re: [BETA] Topic Age Warning

Post by nalioth »

This is the answer to many people's prayers.

I think you'll have lots more interest in this when it becomes available for production machines.
User avatar
Jorup16
Registered User
Posts: 424
Joined: Sun Dec 14, 2008 5:13 am
Location: Zacapa, Guatemala
Name: Jorge
Contact:

Re: [BETA] Topic Age Warning

Post by Jorup16 »

Spanish Translation:

language/ES/common.php

Code: Select all

//Spanish Translation by Jorup16 - www.FIFA-Guate.com
//! Topic Age Warning - imkingdavid
	'TOPIC_AGE_WARNING'	=> 'Estas tratando de responder a un tema que tiene %s de publicado. En vez de hacerlo, por favor inicia un nuevo tema, o haz una busqueda de otro tema relacionado que ademas pueda ser adecuado a tu necesidad.',
	'TOPIC_AGE_WARNING_LOCK'	=> 'Este tema tiene %s de publicado. El administrador del foro ha elegido que los temas muy antiguos son bloqueados cuando se intenta enviar una respuesta en ellos. Por favor crea un nuevo tema o usa la opcion de busqueda para encontrar temas similares pero mas recientes.',
	//! END Topic Age Warning - imkingdavid

language/ES/acp/board.php

Code: Select all

//Spanish Translation by Jorup16 - www.FIFA-Guate.com
//! Topic Age Warning - imkingdavid
	'TOPIC_AGE_WARNING'				=> 'Opciones de Advertencia de Edad del Tema',
	'TAW_INTERVAL'					=> 'Intervalo Advertencia de Edad del Tema',
	'TAW_INTERVAL_EXPLAIN'			=> 'Numero de dias, meses o años para que un usuario reciba una advertencia de la edad del tema. <strong>Si se elige 0, el MOD sera deshabilitado.</strong>',
	'TAW_LOCK'						=> 'Cerrar temas antiguos',
	'TAW_LOCK_EXPLAIN'				=> 'En caso de elegir \'Si\', los temas que un usuario intente responder despues de un cierto intervalo de tiempo, seran cerrados de manera automatica.',
	'TAW_AUTHOR_EXEMPT'				=> 'Excluir al autor del tema de la advertencia de la edad de creacion del mismo',
	'TAW_AUTHOR_EXEMPT_EXPLAIN'		=> 'En caso de elegir \'Si\', el autor del tema estara habilitado para responder en sus propios temas, incluso despues de que el intervalo del tiempo de advertencia se haya cumplido.',
	'TAW_LAST_POST'					=> 'Usar la ultima vez que se respondio',
	'TAW_LAST_POST_EXPLAIN'			=> 'En caso de elegir \'Si\', los temas antiguos seran determinados usando el tiempo de la ultima respuesta en el tema. En caso de elegir \'No\', los temas antiguos seran determinados usando el tiempo de la creacion del tema.',
	'TAW_QUICKREPLY'				=> 'Permitir respuesta rapida (donde este habilitada) en temas antiguos',
	'TAW_QUICKREPLY_EXPLAIN'		=> 'En caso de elegir \'Si\', la respuesta rapida sera permitida de utilizar en los temas antiguos (donde este habilitada). En caso de elegir \'No\', la respuesta rapida no sera visible en los temas antiguos, incluso si esta disponible en ese foro.',
	'MONTHS'						=> 'Meses',
	'YEARS'							=> 'Años',
	//! END Topic Age Warning - imkingdavid
Spanish Translations for Ext phpBB :D - Traducciones al español para Ext phpBB :)
>>>>> https://github.com/Jorup16 <<<<<
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: [BETA] Topic Age Warning

Post by DoYouSpeakWak »

subsilver2 edits for this mod.

Open: styles/subsilver2/template/posting_body.html
Find:

Code: Select all

<!-- IF ERROR -->
	<tr>
		<td class="row2" colspan="2" align="center"><span class="genmed error">{ERROR}</span></td>
	</tr>
<!-- ENDIF -->
Add-after

Code: Select all

<!-- IF S_TOPIC_AGE_WARNING -->
	<tr>
		<td class="row2" colspan="2" align="center"><span class="genmed error">{TOPIC_AGE_WARNING}</span></td>
	</tr>
<!-- ENDIF -->
Open: styles/subsilver2/template/quickreply_editor.html
Find:

Code: Select all

<form method="post" action="{U_QR_ACTION}">
Add-before

Code: Select all

<!-- IF not S_DISABLE_QR -->
Find:

Code: Select all

		<tr>
			<th align="center" colspan="2">{L_QUICKREPLY}</th>
		</tr>
Add-after

Code: Select all

		<!-- IF S_TOPIC_AGE_WARNING -->
		<tr>
			<td class="row2" colspan="2" align="center"><span class="genmed error">{TOPIC_AGE_WARNING}</span></td>
		</tr>
		<!-- ENDIF -->
Find:

Code: Select all

</form>
<br clear="all" />
Add-after:

Code: Select all

<!-- ENDIF -->
Good luck on validation.
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
User avatar
Jorup16
Registered User
Posts: 424
Joined: Sun Dec 14, 2008 5:13 am
Location: Zacapa, Guatemala
Name: Jorge
Contact:

Re: [BETA] Topic Age Warning

Post by Jorup16 »

This mod would be nice to have something like this:

Image

This image is of a vBulletin forum.
Basically the user dials means accepting that the issue is old, then if not accepting the answer mark can not be sent.
Spanish Translations for Ext phpBB :D - Traducciones al español para Ext phpBB :)
>>>>> https://github.com/Jorup16 <<<<<
User avatar
imkingdavid
Former Team Member
Posts: 2672
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [BETA] Topic Age Warning

Post by imkingdavid »

Thank you for the request. I will take this into consideration possibly for the next version. However, I am currently working on getting the current version validated.
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
User avatar
Hippie459MN
Registered User
Posts: 948
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [BETA] Topic Age Warning

Post by Hippie459MN »

Thanks for this!! :D Just what I needed.
User avatar
Jorup16
Registered User
Posts: 424
Joined: Sun Dec 14, 2008 5:13 am
Location: Zacapa, Guatemala
Name: Jorge
Contact:

Re: [BETA] Topic Age Warning

Post by Jorup16 »

imkingdavid wrote:Thank you for the request. I will take this into consideration possibly for the next version. However, I am currently working on getting the current version validated.

I wish and if you add that to your mod would be even better:)
Spanish Translations for Ext phpBB :D - Traducciones al español para Ext phpBB :)
>>>>> https://github.com/Jorup16 <<<<<
Locked

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