Page 1 of 3

Quote to new topic

Posted: Thu Oct 30, 2008 10:06 am
by Extensions Robot
Modification name: Quote to new topic
Author: Erik Frèrejean
Modification description: This MOD adds a additional quote button to view topic, that allows users to start a new topic with the quoted post.
Modification version: 2.0.0
Tested on phpBB version: 3.0.6

Download file: quote_to_new_topic.zip
File size: 37.07 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--

Quote to new topic

Posted: Thu Oct 30, 2008 10:06 am
by Paul
Modification validated/released

Notes:

Quote to new topic

Posted: Thu Oct 30, 2008 10:06 am
by Erik Frèrejean
Thanks for the validation :).

Re: Quote to new topic

Posted: Thu Oct 30, 2008 10:07 am
by 3Di
that's good, thanks. :)

Re: Quote to new topic

Posted: Thu Oct 30, 2008 11:43 am
by Dugi
that's a great mod. thanks :)

Re: Quote to new topic

Posted: Fri Oct 31, 2008 4:09 pm
by spicyapple
Tested on phpBB version: See below
:?:

Re: Quote to new topic

Posted: Fri Oct 31, 2008 6:59 pm
by Erik Frèrejean
3.0.2 ;).

Re: Quote to new topic

Posted: Fri Oct 31, 2008 11:57 pm
by DoYouSpeakWak
Very nice. For those intrested the mod Prime quick reply also have a include quote of last post option.

Re: Quote to new topic

Posted: Sat Nov 01, 2008 9:47 am
by kber
Arabic (ar) icon for this mod is attached . thanks ;)

Re: Quote to new topic

Posted: Sat Nov 01, 2008 1:53 pm
by Erik Frèrejean
Thanks :), I'll include this in a next release.

Re: Quote to new topic

Posted: Fri Nov 07, 2008 4:05 am
by Abera
I know this is my fault, but what did I do wrong?
Thanks

Code: Select all

Parse error: syntax error, unexpected T_DOUBLE_ARROW in C:\wamp\www\qim\boards\phpbb\posting.php on line 1227

Re: Quote to new topic

Posted: Fri Nov 07, 2008 7:53 am
by Erik Frèrejean
Can you post everything between lines 1217 and 1237 from posting.php?

Re: Quote to new topic

Posted: Fri Nov 07, 2008 1:33 pm
by Abera
Here ya go:

Code: Select all

$s_action .= ($topic_id) ? "&t=$topic_id" : '';
$s_action .= ($post_id) ? "&p=$post_id" : '';
//-- Quote to new topic
//-- Add:
// If we are actual in aq_quote mode, overwrite the mode in $s_action
if ($aq_quote)
{
	$s_action = str_replace('mode=quote', 'mode=aq_quote', $s_action);
}
//-- End Quote to new topic
'U_QUOTE'			=> ($auth->acl_get('f_reply', $forum_id)) ?
		//-- Quote to new topic
		//-- Add:
		'U_QUOTE_NEW_TOPIC'	=> ($auth->acl_get('f_reply', $forum_id)) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=aq_quote&f=$forum_id&p={$row['post_id']}") : '',
		//-- End Quote to new topic
switch ($mode)
{
	case 'post':
		$page_title = $user->lang['POST_TOPIC'];
	break;
Thanks

Re: Quote to new topic

Posted: Fri Nov 07, 2008 1:40 pm
by Erik Frèrejean
I'm not sure what you've done, and I don't have time to look into this (I'm out for the weekend). If you haven't made any other modifications to that file your easiest option is to take a fresh one from the phpBB archive and re-apply the edits.

Re: Quote to new topic

Posted: Fri Nov 07, 2008 1:59 pm
by kber
Post your posting.php file in your next reply