Quote to new topic

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Abera
Registered User
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: Quote to new topic

Post by Abera »

kber wrote:Post your posting.php file in your next reply
I re-did it and is working now, but where do I see it. Is there a demo?
Thanks
User avatar
kber
Registered User
Posts: 986
Joined: Sun May 07, 2006 9:22 am
Location: Egypt
Contact:

Re: Quote to new topic

Post by kber »

Abera wrote:
kber wrote:Post your posting.php file in your next reply
I re-did it and is working now, but where do I see it. Is there a demo?
Thanks
Simply will add a new feauter to your view topic page , when any one can start a new topic quote with any posts of the page , the new button will display near the quote one .
Hello All
User avatar
potku
Registered User
Posts: 901
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: Quote to new topic

Post by potku »

Cool MOD!

Any chance of getting instructions for subsilver2? :)
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: Quote to new topic

Post by Erik Frèrejean »

If you can profide a subSilver2 button yes ;).
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)
User avatar
potku
Registered User
Posts: 901
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: Quote to new topic

Post by potku »

We have our own style, but will do! Thanks! :)
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
User avatar
Forumtreff
Registered User
Posts: 9
Joined: Thu Jun 19, 2008 2:56 pm

Re: Quote to new topic

Post by Forumtreff »

Will this mod also soon enter the phpbb-version 3.0.4? When will this mod also give the version 3.0.4?
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: Quote to new topic

Post by Erik Frèrejean »

1.0.3 is currently pending in the queue. I can't however say when it will be released.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)
User avatar
Forumtreff
Registered User
Posts: 9
Joined: Thu Jun 19, 2008 2:56 pm

Quote to new topic – Replacement orders for the editor Vim

Post by Forumtreff »

Who the freeware editor Vim or gVim used, for this mod for the phpbb version 3.0.2 following replacement commands.

language/en/acp/styles.php

Code: Select all

:%s#'IMG_ICON_POST_QUOTE'.*#&\r	//-- Quote to new topic}r	//-- Add:\r	'IMG_ICON_POST_QUOTE_NEW_TOPIC'	=> 'Quote to new topic.',\r	//-- End Quote to new topic
language/de/acp/styles.php

Code: Select all

:%s#'IMG_ICON_POST_QUOTE'.*#&\r	//-- Quote to new topic\r	//-- Add:\r	'IMG_ICON_POST_QUOTE_NEW_TOPIC'	=> 'In neuem Thema zitieren.',\r	//-- End Quote to new topic
language/en/common.php

Code: Select all

:%s#'REPLY_WITH_QUOTE'.*#&\r	//-- Quote to new topic\r	//-- Add:\r	'REPLY_WITH_QUOTE_NEW_TOPIC'	=> 'Start new topic with quote.',\r	//-- End Quote to new topic
language/de/common.php

Code: Select all

:%s#'REPLY_WITH_QUOTE'.*#&\r	//-- Quote to new topic\r	//-- Add:\r	'REPLY_WITH_QUOTE_NEW_TOPIC'	=> 'Beginne neues Thema mit Zitat.',\r	//-- End Quote to new topic
styles/prosilver/imageset/en/imageset.cfg

Code: Select all

:%s#img_icon_post_quote = icon_post_quote\.gif\*20\*54.*#&\r\# Quote to new topic, Add:\rimg_icon_post_quote_new_topic = icon_post_quote_new_topic.gif*20*117\r\# End Quote to new topic
styles/prosilver/imageset/de/imageset.cfg

Code: Select all

:%s#img_icon_post_quote = icon_post_quote\.gif\*20\*54.*#&\r\# Quote to new topic, Add:\rimg_icon_post_quote_new_topic = icon_post_quote_new_topic.gif*20*117\r\# End Quote to new topic
styles/prosilver/template/viewtopic_body.html

Code: Select all

:%s#<!-- IF postrow\.U_QUOTE --><li class="quote-icon">.*#&\r<!-- IF postrow.U_QUOTE_NEW_TOPIC --><li class="quote-2topic-icon"><a href="{postrow.U_QUOTE_NEW_TOPIC}" title="{L_REPLY_WITH_QUOTE_NEW_TOPIC}"><span>{L_REPLY_WITH_QUOTE_NEW_TOPIC}</span></a></li><!-- ENDIF -->
styles/prosilver/theme/buttons.css

Code: Select all

:%s#\.quote-icon, \.quote-icon a\s*{ background: none top left no-repeat; }.*#&\r/* Quote to new topic Add: */\r.quote-2topic-icon, .quote-2topic-icon a { background: none top left no-repeat; }\r/* End Quote to new topic */

Code: Select all

:%s#ul\.profile-icons li\.quote-icon\s*{ width:.*#&\r/* Quote to new topic Add: */\rul.profile-icons li.quote-2topic-icon { width: {IMG_ICON_POST_QUOTE_NEW_TOPIC_WIDTH}px; height: {IMG_ICON_POST_QUOTE_NEW_TOPIC_HEIGHT}px; }\r/* End Quote to new topic */
styles/prosilver/theme/colours.css

Code: Select all

:%s#\.quote-icon, \.quote-icon a\s*{ background-image: url("{IMG_ICON_POST_QUOTE_SRC}"); }.*#&\r/* Quote to new topic Add: */\r.quote-2topic-icon, .quote-2topic-icon a { background-image: url("{IMG_ICON_POST_QUOTE_NEW_TOPIC_SRC}"); }\r/* End Quote to new topic */
includes/acp/acp_styles.php

Code: Select all

:%s#\s*\/\/ Execute overall actions#		//-- Quote to new topic\r		//-- Add:\r		// Add the quote2topic icon\r		$this->imageset_keys['buttons'][] = 'icon_post_quote_new_topic';\r		//-- End Quote to new topic\r&
posting.php

Code: Select all

:%s#\$mode\s*= (\$delete && !\$preview.*#&\r//-- Quote to new topic\r//-- Add:\r// We want to handle the aq_quote mode as a normal quote to minimize edits. So set $mode back to quote, and set a bool for us to check whether we actually are in aq_quote mode :)\r$aq_quote	= ($mode == 'aq_quote') ? true : false;\r$mode		= ($mode == 'aq_quote') ? 'quote' : $mode;\r//-- End Quote to new topic

Code: Select all

:%s#.*\$redirect_url = submit_post(\$mode, \$post_data\['post_subject'\]#			//-- Quote to new topic\r			//-- Add:\r			// Just before we post switch to post mode\r			if ($aq_quote)\r			{\r				$mode = 'post';\r			}
			//-- End Quote to new topic\r&

Code: Select all

:%s#\$s_action \.= (\$post_id) ? "&p=\$post_id" : '';.*#&\r//-- Quote to new topic\r//-- Add:}r// If we are actual in aq_quote mode, overwrite the mode in $s_action\rif ($aq_quote)\r{\r	$s_action = str_replace('mode=quote', 'mode=aq_quote', $s_action);\r}\r//-- End Quote to new topic
viewtopic.php

Code: Select all

:%s#'U_QUOTE'\s*=> (\$auth->acl_get('f_reply', \$forum_id)) ?.*#&\r		//-- Quote to new topic\r		//-- Add:\r		'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']}") : '',\r		//-- End Quote to new topic
Koluda
Registered User
Posts: 37
Joined: Wed Jan 07, 2009 10:59 pm

Re: Quote to new topic

Post by Koluda »

Anyone know where to put the line with...
<!-- IF postrow.U_QUOTE_NEW_TOPIC --><li class="quote-2topic-icon"><a href="{postrow.U_QUOTE_NEW_TOPIC}" title="{L_REPLY_WITH_QUOTE_NEW_TOPIC}"><span>{L_REPLY_WITH_QUOTE_NEW_TOPIC}</span></a></li><!-- ENDIF -->
In a prosilver SE template... ?
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: Quote to new topic

Post by Erik Frèrejean »

I'm not familiar with the proSilver SE template, but you should be able to follow the normal proSilver instructions cause IIRC there aren't any big changes to the templates made for the SE version.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)
User avatar
Typo
Former Team Member
Posts: 404
Joined: Tue Dec 30, 2008 6:12 am
Location: USA
Name: Jeremy Lorenzo
Contact:

Re: Quote to new topic

Post by Typo »

**SOLVED**
See bottom of post.
**SOLVED**

I'm having a problem with this mod. I've gone over the edits again and again and they all look perfect. I am not getting any errors but after installing the mod nothing changes. The new button is not present. I checked and re-checked the edits and everything seems fine.

I just get nothing.

Any ideas would be appreciated.

The sites url is http://www.ezzychat.com/index.php and it is running phpBB 3.0.4.

I have the following mods installed:
  • ACP Add User MOD
    ACP Announcement Centre
    Activity Stats MOD
    Advanced Meta Tags
    Advanced Points System
    Advanced Similar Topics
    Anti Double Posts
    Anti-Spam ACP
    Anti-Spam Bot By Timezone
    AJAX User Infos
    AJAX User Registration Checks
    Auto ACP Redirect
    Avatar Auto Resize
    Avatar on Memberlist
    Avatar of Poster on Index and Viewforum
    Average Statistics
    Basic Forum Icon Legend
    BBCode Retain Selection
    Blank Template MOD
    Bump Warning
    Capitalized Custom BBCode
    Categorize Announcements and Stickies
    Colored Link when New Post
    Coloured Username For Bump Information
    Confession Booth
    Contact Board Administration
    Custom Title MOD
    Database Explorer
    Default Automatic Log Is Yes
    Default Topic Icon
    Display last post
    Download Mod for phpBB 3
    Email on Birthday
    FAQ Manager
    Forum Title Colour
    Future Only Icons
    Genders
    Global Announcements
    Guess Timezone
    Highlight All
    Highway Referral Invitation MOD
    Iconize
    In-line Login
    Instant Post Redirect
    jQuery Textarea Resizer
    Latest Posts
    Log connections
    Lytebox MOD
    Mark Edited Posts As Unread
    Me You and Random
    Meta Tag Plus
    Moderator Needed
    MSSTI RSS Feed 2.0
    MyCalendar3
    Named Modules
    New Topic Button In Topic
    New Post Count On Index
    NV Advanced Last Topic Titles
    NV UserTopics
    NV Who Was Here
    PasteBin
    phpBB Arcade
    phpBB Error Logging Tool
    phpBB Gallery
    phpBB3 reCAPTCHA MOD
    Popup Layer on New PMs
    Posts Per Page
    Preserve Global Unread Flags
    Prime FF3 Password Fix
    Prime Links
    Prime Link to Reported Post
    Prime Login via E-Mail
    Prime Memberlist Filter
    Prime Nest BBCodes
    Prime Notify PM
    Prime Parse URL Fix
    Prime Quick Buddies
    Prime Quick Login
    Prime Quick Reply
    Prime Self Topics
    Prime Topic Move
    Prime View Self
    Print All Posts
    Print Post Mod
    Quote 2 New Topic
    Quote User Back Link
    Send PM on Friend
    Search user logs
    Search Users Posts in Viewtopic
    Signature into frame
    Smilies Page
    Social Bookmarks
    Special Chars
    TAG BOARD 4 phpBB3
    Th23 CMS
    Th23 Error Pages
    Th23 Font Resizing
    Thank Post
    Top 5 On Index
    Top Posters on Index
    Topic Descriptions
    Topic In Who Is Online
    Topic Solved
    Topic Title Smilies
    Trolls
    Universal No Avatar
    Upcoming Birthday List
    Update Attachment
    User Last Page In Profile
    User Name Is Not Password
    User Notify
    User Reminder
    Video BBCode Mod
    View Or Mark Unread Posts
    Welcome Panel
    Welcome PM on First Login
    100+ Bots Install Script

    Code: Select all

     Enhancements[/size][/list]
    
    Any help or suggestions would be appreciated.
    
    Thanks in advance.
    
    Typo  :mrgreen:
    
    **SOLVED**
    I had refreshed the theme, template and regular cache in the acp multiple times and used F5 and the refresh button in FireFox multiple times but it still appears that it was it was a cache issue because it just magically appeared about 20 min later when I looked.
    **SOLVED**
Last edited by Typo on Thu Feb 19, 2009 10:11 am, edited 1 time in total.
User avatar
Forumtreff
Registered User
Posts: 9
Joined: Thu Jun 19, 2008 2:56 pm

The fundamental problem when answers will be answered

Post by Forumtreff »

If in a new topic cited, should of both posts are links to each other lead.
joebert
Registered User
Posts: 224
Joined: Mon Jan 24, 2005 5:50 am
Location: Kenneth City, FL USA
Name: Joe

Re: Quote to new topic

Post by joebert »

I don't know how many times I've wished certain forums had this functionality. The way it's implemented is pretty slick too.

The forum I installed this on is "in progress" so I might find something else tiny later, but I was immediately confused by the "Post Reply" title for the posting page when I clicked the quote/new-topic icon so I took it upon myself to work in the button title already included with the MOD.

In posting.php I replaced the following line

Code: Select all

		$page_title = $user->lang['POST_REPLY'];
With this line

Code: Select all

		$page_title = $aq_quote ? $user->lang['REPLY_WITH_QUOTE_NEW_TOPIC'] : $user->lang['POST_REPLY'];
This will cause the more sensical title to be used for the browsers titlebar, and the little title on top of the posting form itself in posting.php

I have to agree with what someone mentioned about a link to the source topic. It would be nice to have a link to the source topic above the quote, similar to how the PM system does it when you click the PM button in someones post.
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: Quote to new topic

Post by Erik Frèrejean »

joebert wrote:I don't know how many times I've wished certain forums had this functionality. The way it's implemented is pretty slick too.
Thanks :)

I agree on the page title and I'll have a look at it when repacking this MOD.
joebert wrote:I have to agree with what someone mentioned about a link to the source topic. It would be nice to have a link to the source topic above the quote, similar to how the PM system does it when you click the PM button in someones post.
I'm going to look into this and see whether its implementable in a correct way :).
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)
joebert
Registered User
Posts: 224
Joined: Mon Jan 24, 2005 5:50 am
Location: Kenneth City, FL USA
Name: Joe

Re: Quote to new topic

Post by joebert »

Bug: v1.0.2

Clicking the quote/new-topic button in an existing annoucement or sticky can be used to allow unprivledged users to create new annoucements and stickies. If you have any custom topic types, those can be used as well.

Here is a quick patch that will force all topics created with this MOD to be normal topics until a privledged user promotes it.

In posting.php find this line

Code: Select all

$post_data['post_edit_locked'] = 0;
After, add this block

Code: Select all

		//-- Quote to new topic
		//-- Add:
		if($aq_quote)
		{
			// Prevent unprivledged users from creating stickies/announcements
			// via "quote to new topic" button in existing stickies/annoucements
			$post_data['topic_type'] = POST_NORMAL;
		}
		//-- End Quote to new topic
Locked

Return to “[3.0.x] MOD Database Releases”