I re-did it and is working now, but where do I see it. Is there a demo?kber wrote:Post your posting.php file in your next reply
Thanks
I re-did it and is working now, but where do I see it. Is there a demo?kber wrote:Post your posting.php file in your next reply
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 .Abera wrote:I re-did it and is working now, but where do I see it. Is there a demo?kber wrote:Post your posting.php file in your next reply
Thanks
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
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
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
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
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
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
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 -->
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 */
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 */
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&
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
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
In a prosilver SE template... ?<!-- 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 -->
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**
Code: Select all
$page_title = $user->lang['POST_REPLY'];
Code: Select all
$page_title = $aq_quote ? $user->lang['REPLY_WITH_QUOTE_NEW_TOPIC'] : $user->lang['POST_REPLY'];
Thanksjoebert 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.
I'm going to look into this and see whether its implementable in a correct wayjoebert 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.
Code: Select all
$post_data['post_edit_locked'] = 0;
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