The Krotek Posted December 26, 2011 Share Posted December 26, 2011 View File Name or Quote in Fast Reply A very simple hook, which adds a button in Quote/Multiquote/Edit row to insert post author name or selected post text. Nothing special here to show or explain - works plain and straight. For support contact us by email support@thekrotek.com. Please, do NOT ask for support or report issues in comments! Submitter The Krotek Submitted 12/24/2011 Category Content Management Supported Versions Link to comment Share on other sites More sharing options...
andrei.grebenschikov Posted January 18, 2012 Share Posted January 18, 2012 If the user is not logged in, the button is still displayed. Why? Change the hook: <template_content><![CDATA[<if test="replyButton:|:$post['post']['_canReply']"><li><a class='ipsButton_secondary' title='{$this->lang->words['insert_name_or_quote_desc']}' onmouseover="insertQuote('{$post['author']['members_display_name']}', '{$post['post']['pid']}');" href="javascript:insertName('{$post['author']['members_display_name']}')">{$this->lang->words['insert_name_or_quote']}</a></li></if>]]></template_content> Link to comment Share on other sites More sharing options...
The Krotek Posted January 18, 2012 Author Share Posted January 18, 2012 If the user is not logged in, the button is still displayed. Why? Change the hook: <template_content><![CDATA[<if test="replyButton:|:$post['post']['_canReply']"><li><a class='ipsButton_secondary' title='{$this->lang->words['insert_name_or_quote_desc']}' onmouseover="insertQuote('{$post['author']['members_display_name']}', '{$post['post']['pid']}');" href="javascript:insertName('{$post['author']['members_display_name']}')">{$this->lang->words['insert_name_or_quote']}</a></li></if>]]></template_content> Ah, thanx for the tip, pal. My test board has guest posting enabled, so I missed that issue. I've updated the file. Link to comment Share on other sites More sharing options...
Thom4s Posted November 22, 2012 Share Posted November 22, 2012 Hi Czorny :) I have a little issue with this hook : if the member has a display name with ' in (apostrophe symbol/single quote), name feature doesn't work at all. Running on IPB 3.3.4 Thank you. Link to comment Share on other sites More sharing options...
The Krotek Posted November 23, 2012 Author Share Posted November 23, 2012 I have a little issue with this hook : if the member has a display name with ' in (apostrophe symbol/single quote), name feature doesn't work at all. Ah, that's kinda unexpected and at the same time pretty standard issue. I'll fix it and update the file. Thanx for reporting. Link to comment Share on other sites More sharing options...
Vladimir Kozin Posted January 5, 2013 Share Posted January 5, 2013 3.4.1. - working! Thx! Link to comment Share on other sites More sharing options...
Tinyukov Posted March 19, 2013 Share Posted March 19, 2013 ipb 3.4.3 - I don't see button "Reply or create" Link to comment Share on other sites More sharing options...
The Krotek Posted March 19, 2013 Author Share Posted March 19, 2013 ipb 3.4.3 - I don't see button "Reply or create" Because, there's no such button at all. At least, in this hook. Link to comment Share on other sites More sharing options...
Timur Tskhovrebov Posted March 24, 2013 Share Posted March 24, 2013 ipb 3.4.3 - I don't see button "Reply or create" me too... :sad: Link to comment Share on other sites More sharing options...
The Krotek Posted March 26, 2013 Author Share Posted March 26, 2013 me too... :sad: Fixed the issue. Download hook again and re-import it. Link to comment Share on other sites More sharing options...
Thom4s Posted April 3, 2013 Share Posted April 3, 2013 I have a little issue with this hook : if the member has a display name with ' in (apostrophe symbol/single quote), name feature doesn't work at all. Ah, that's kinda unexpected and at the same time pretty standard issue. I'll fix it and update the file. Thanx for reporting. Hello Czorny. I'm now using 3.4.3 and last update of your hook. Please, is there a solution to fix that? Thank you :-) Link to comment Share on other sites More sharing options...
The Krotek Posted April 4, 2013 Author Share Posted April 4, 2013 Hello Czorny. I'm now using 3.4.3 and last update of your hook. Please, is there a solution to fix that? Thank you :-) Yes, there is: stop using single quotes in names :-) Actually, I thought this was fixed already. Try to download now - I've updated file again. Link to comment Share on other sites More sharing options...
Thom4s Posted April 4, 2013 Share Posted April 4, 2013 Actually, I thought this was fixed already. Try to download now - I've updated file again. Hi Czorny. Just tested with your last file. Unfortunately, it doesn't work. Names with single quote aren't interpreted. There is a blank (followed by a comma) instead of name. Link to comment Share on other sites More sharing options...
The Krotek Posted April 4, 2013 Author Share Posted April 4, 2013 Hi Czorny. Just tested with your last file. Unfortunately, it doesn't work. Names with single quote aren't interpreted. There is a blank (followed by a comma) instead of name. That's not my hook's fault, but IPB's itself. It doesn't parse 472693e5162334c93ae5eb4e379ca7e5 BBCode properly. Can't do anything about it. Link to comment Share on other sites More sharing options...
Thom4s Posted April 4, 2013 Share Posted April 4, 2013 :( Bad news. Thank you nevertheless. Link to comment Share on other sites More sharing options...
Canindia Posted July 8, 2013 Share Posted July 8, 2013 Hi, Using 3.4.4, the button is not displayed in default theme, but is displayed in custom themes ( eg. luminous). how to implement in default theme Link to comment Share on other sites More sharing options...
The Krotek Posted July 9, 2013 Author Share Posted July 9, 2013 Hi, Using 3.4.4, the button is not displayed in default theme, but is displayed in custom themes ( eg. luminous). how to implement in default theme It displays perfectly on standard theme. Probably you've changed a template. Link to comment Share on other sites More sharing options...
motomac Posted May 26, 2014 Share Posted May 26, 2014 Some suggestions: delete "<br />": txt = '<p><br />' + txt + '<br /> to txt = '<p>' + txt + ' Also after inserting author name there is a space after it, but cursor is before this space. Is it fixable? Link to comment Share on other sites More sharing options...
The Krotek Posted May 26, 2014 Author Share Posted May 26, 2014 Breaks are needed for proper formatting of the quote similar to one IPB has. You won't see them anyway. Just tested - cursor is after space, not before. Not sure what to fix. Link to comment Share on other sites More sharing options...
fantasyteamadvice Posted June 12, 2014 Share Posted June 12, 2014 No complaints as it appears to work as intended.. more of a question. Is this hook merely to mention a user? I was hoping for functionality where it would alert the user that they had been mentioned? Link to comment Share on other sites More sharing options...
The Krotek Posted June 12, 2014 Author Share Posted June 12, 2014 No complaints as it appears to work as intended.. more of a question. Is this hook merely to mention a user? I was hoping for functionality where it would alert the user that they had been mentioned? It just adds name or quote in fast reply. The rest is done by IP Board itself. Link to comment Share on other sites More sharing options...
fantasyteamadvice Posted June 12, 2014 Share Posted June 12, 2014 ah ok.. not sure if you are capable of adding it, but if you could add notifications when member is mentioned (like reddit does.. not sure if you have seen it before) it would probably increase the popularity of the hook exponentially Link to comment Share on other sites More sharing options...
The Krotek Posted June 12, 2014 Author Share Posted June 12, 2014 ah ok.. not sure if you are capable of adding it, but if you could add notifications when member is mentioned (like reddit does.. not sure if you have seen it before) it would probably increase the popularity of the hook exponentially Like I said above, it's IP Board, who sends ALL notifications, including the ones you're talking about. Go to My Settings -> Notification Options and see for yourself. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.