Adding a reply button next to the quote button to automatically tag users?
4 posters
Page 1 of 1
Adding a reply button next to the quote button to automatically tag users?
Hello! I was wondering if it'd be possible to add a reply button next to the quote button in the forum messages and blog comments body? I want to allow users to easily tag members with tricky usernames with spaces and have it instantly show up in the quick reply box. My forum version is PunBB!
Thanks in advance!
Thanks in advance!
Last edited by Rukiafan on February 22nd 2016, 7:18 pm; edited 1 time in total
Rukiafan- Forumember
- Posts : 329
Reputation : 9
Language : English
Re: Adding a reply button next to the quote button to automatically tag users?
@Ape I tried that, but the feature doesn't work on game console or mobile browsers which is bad because I'm the only active admin and if it breaks I wouldn't be able to fix it since I couldn't see it.
That really would fix the issue under normal circumstances however, so thanks for the tip, but it doesn't solve my issue, unfortunately.
That really would fix the issue under normal circumstances however, so thanks for the tip, but it doesn't solve my issue, unfortunately.
Rukiafan- Forumember
- Posts : 329
Reputation : 9
Language : English
Re: Adding a reply button next to the quote button to automatically tag users?
Hmm it should work as it ad's a button in your Editor system
I think @Ange Tuteur needs to look over the code again and see why its not working for you on your browser.
What browser are you using ?
I think @Ange Tuteur needs to look over the code again and see why its not working for you on your browser.
What browser are you using ?
Re: Adding a reply button next to the quote button to automatically tag users?
Which code did you add specifically ? There's three in that topic.
Oh, the URL of the forum you added it to would help as well.
Oh, the URL of the forum you added it to would help as well.
Re: Adding a reply button next to the quote button to automatically tag users?
Http://www.WiiWareWave.com
The editor version works more or less but the button next to the quote button mentions the user that you're trying to mention as @"" without their username.
The editor version works more or less but the button next to the quote button mentions the user that you're trying to mention as @"" without their username.
Rukiafan- Forumember
- Posts : 329
Reputation : 9
Language : English
Re: Adding a reply button next to the quote button to automatically tag users?
You have to manually enter the username who want to tag.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Adding a reply button next to the quote button to automatically tag users?
@SLGray Then what's the point of the button version?! That's no easier really than manually inputting it lol.
Rukiafan- Forumember
- Posts : 329
Reputation : 9
Language : English
Re: Adding a reply button next to the quote button to automatically tag users?
I believe what you want is one of the first two options.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Adding a reply button next to the quote button to automatically tag users?
@SLGray @Ange Tuteur is there any way of making option #2 in that tutorial have the same function as option #1? I don't like the @ before the username and option #2 is pretty much pointless in its current state.
Rukiafan- Forumember
- Posts : 329
Reputation : 9
Language : English
Re: Adding a reply button next to the quote button to automatically tag users?
Oh, the button should input the username. I'm assuming there's something preventing the button from getting the username. I have two questions :Rukiafan wrote:Then what's the point of the button version?! That's no easier really than manually inputting it lol.
1. Is the button not working in topics, blogs, or both ?
2. Could you provide me with a test account on your forum ? ( so I can test it first hand )
Re: Adding a reply button next to the quote button to automatically tag users?
@Ange Tuteur both, also I'm having trouble setting you up an account. I used an email that isn't being used on my site and yet I get the message an account linked to this email is already registered?!
Can you see if you can create an account? Sorry.
Can you see if you can create an account? Sorry.
Rukiafan- Forumember
- Posts : 329
Reputation : 9
Language : English
Re: Adding a reply button next to the quote button to automatically tag users?
I got your PM.
I checked and it worked fine for normal posts. The problem was with blog comments. Try replacing the button script with this one :
I checked and it worked fine for normal posts. The problem was with blog comments. Try replacing the button script with this one :
- Code:
/* FORUM VERSIONS
* 0 = PHPBB2
* 1 = PHPBB3
* 2 = PUNBB
* 3 = INVISION
*/
$(function() {
var version = 2,
image = 'http://i19.servimg.com/u/f19/18/21/60/73/mentio10.png';
if (/mode=reply/.test(window.location.search) && my_getcookie('fa_mention')) {
document.post.message.value += '@"' + my_getcookie('fa_mention') + '" ';
my_setcookie('fa_mention','');
} if (!/\/t\d+/.test(window.location.pathname)) return;
for (var a = $(['.post-options', '.profile-icons', '.post-options', '.posting-icons'][version]), b, c, d = ['.name strong a', '.author a', '.username a, .author a', '.author a'][version], e, i = 0, j = a.length, t = document.getElementById('text_editor_textarea'), l = version == 1 || version == 3; i<j; i++) {
b = document.createElement('IMG');
b.src = image;
b.alt = 'Mention';
b.title = 'Mention ' + $(a[i]).closest('.post, .posthead').find(d).not('.fa-mention').text();
b.className = 'i_icon_mention';
b.onclick = function() {
var n = this.title.replace(/^.*?\s/,'');
if ($.sceditor) t.insertText('@"' + n + '" ');
else {
my_setcookie('fa_mention', n);
window.location.href = '/post?t=' + window.location.pathname.replace(/\/t(\d+)-.*/,'$1') + '&mode=reply';
}
};
if (l) {
c = document.createElement('LI');
c.appendChild(b);
}
a[i].insertBefore(l ? c : b, a[i].firstChild);
}
$(function(){
if (!$.sceditor) return;
t=$(t).sceditor('instance');
});
});
Re: Adding a reply button next to the quote button to automatically tag users?
@Ange Tuteur It worked! Thank you so much!
Rukiafan- Forumember
- Posts : 329
Reputation : 9
Language : English
Re: Adding a reply button next to the quote button to automatically tag users?
Topic solved and archived
Similar topics
» Quote Button automatically Multiquotes
» Guests cannot view quote button or reply to posts in a topic
» Adding the embed video button to quick reply
» When onclick button of "Post Reply" scroll down to the quick reply
» Automatically Email Users if Inactive?
» Guests cannot view quote button or reply to posts in a topic
» Adding the embed video button to quick reply
» When onclick button of "Post Reply" scroll down to the quick reply
» Automatically Email Users if Inactive?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum