Jump to content

Name or Quote in Fast Reply


The Krotek

Recommended Posts

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!


Link to comment
Share on other sites

  • 4 weeks later...

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


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

  • 10 months later...

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

  • 1 month later...
  • 2 months later...
  • 2 weeks later...

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

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

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

  • 3 months later...
  • 10 months later...
  • 3 weeks later...

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

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...