@ mention - mentioning a member or user
5 posters
Page 1 of 2
Page 1 of 2 • 1, 2
@ mention - mentioning a member or user
is it possible here? to put that code/ or whatever could be? I saw it on this site:
http://7pmtech.com/
http://7pmtech.com/
Re: @ mention - mentioning a member or user
I think for that code it needs to be.
@zoe704: Then message here.
and it should work. It does not work if there is a space between the username so if it was @zoe 704: it would not work unless you put @zoe%20704: so anyone with a space in there name would need to have the space replaced with %20 for it to work with them, best to say just not to use it with users who have a space.
@zoe704: Then message here.
and it should work. It does not work if there is a space between the username so if it was @zoe 704: it would not work unless you put @zoe%20704: so anyone with a space in there name would need to have the space replaced with %20 for it to work with them, best to say just not to use it with users who have a space.
Re: @ mention - mentioning a member or user
Rideem3 wrote:Could you check your browser's error console when you make the reply?
Browsers error console? Sorry for being dumb, but I don't know what it is?
Re: @ mention - mentioning a member or user
I'm getting errors as well
typeError: cannot read property 'post' of undefined
typeError: cannot read property 'post' of undefined
Re: @ mention - mentioning a member or user
Yeah that script hits an error since you have the FMChat html inside it.
For people who already use LGBB, LGBB was used to add the tagging system on my forum.
You can add it to LGBB with this simple plug in:
Sorry Rideem this isn't meant to like take over or anything, I'm just pointing out for people who already may have LGBB installed, that it can be used for this type of thing very easily. Nothing wrong with Rideems tutorial.
For people who already use LGBB, LGBB was used to add the tagging system on my forum.
You can add it to LGBB with this simple plug in:
- Code:
LGBB.addSwap(/\b@(.*?)\b/g, '<a href="/profile?mode=viewprofile&u=$1">@$1</a>');
Sorry Rideem this isn't meant to like take over or anything, I'm just pointing out for people who already may have LGBB installed, that it can be used for this type of thing very easily. Nothing wrong with Rideems tutorial.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: @ mention - mentioning a member or user
~@dikz~ wrote:Uncaught syntax error: Unexpected token
With this script..
http://adikz.forumtl.com/99606.js
I can't find this code on my JS Management?
Re: @ mention - mentioning a member or user
Still seems to not be working Rideem? Is this board specific? Im not sure if I have another js file interfering I'll keep you updated. Thanks
Re: @ mention - mentioning a member or user
Ok so its only for quick reply ill try again haha. I only had reg reply on.
Perfect works like a charm. Any way to get rid of the : ? Maybe by changing the innerHTML in your script? (.replace or whatever).
Perfect works like a charm. Any way to get rid of the : ? Maybe by changing the innerHTML in your script? (.replace or whatever).
Last edited by nextlevelgaming on October 19th 2012, 11:53 pm; edited 1 time in total
Re: @ mention - mentioning a member or user
Yeah I see what your code does now anyways. At first I thought that the code was created after input selection, not during the type field. My bad
Re: @ mention - mentioning a member or user
It's working on me now.. but I have many javascript removed.
But there's a thing I want to know, is it possible to put it at their profile like here:
http://www.webpagescreenshot.info/img/268124-1020201230939AM
When I press @mention ,it automatically put the @Usernme on the text editor..
But there's a thing I want to know, is it possible to put it at their profile like here:
http://www.webpagescreenshot.info/img/268124-1020201230939AM
When I press @mention ,it automatically put the @Usernme on the text editor..
Re: @ mention - mentioning a member or user
Rideem3 wrote:That's a good idea. I'll edit the tutorial.
Thanks.. I'll wait for that tut. Hope you'll do it perfectly.
Re: @ mention - mentioning a member or user
Nice..I'll try it now.. Should I remove the first code I put?
And it is still on topics only?
And it is still on topics only?
Re: @ mention - mentioning a member or user
Oh Oh.. something went wrong.. Can you help me? I'll pm you an Admin Account.
I can't see the @USERNAME to be pressed?
I can't see the @USERNAME to be pressed?
Last edited by ~@dikz~ on October 20th 2012, 3:46 am; edited 1 time in total
Re: @ mention - mentioning a member or user
Rideem3 wrote:If something went wrong, delete both codes then use one.
I used the new code you create, but I cant see the @username to be pressed?
Re: @ mention - mentioning a member or user
Here: http://adikz.forumtl.com/t198-please-help#1129
It's working now... I checked it, but what I want is just to click a link on their profile fields..something like @mention .. then they are tag automatically in text editor.. like that? Something I will put on the topic_body..
It's working now... I checked it, but what I want is just to click a link on their profile fields..something like @mention .. then they are tag automatically in text editor.. like that? Something I will put on the topic_body..
Re: @ mention - mentioning a member or user
Rideem3 wrote:Oh. So you mean click the username in the post profile and it inserts the tag in the quick reply?
That's it! ,even not the username, just a link like @mention in their post profile.
Re: @ mention - mentioning a member or user
Where should I put that? in the topic_body? I think it's a javascript?
I think it should be inside this?
<script type="text/javascript">
I think it should be inside this?
<script type="text/javascript">
Re: @ mention - mentioning a member or user
Dern it I just created a code like that for your code for punbb Rideem GRRR. Well that sucks I was excited I got it working, and you have one already.
PS the code rideem just gave will work for what you want for the @mention instead of the old one. It does the same thing except when you click the usersname it auto generates it for you...
PS the code rideem just gave will work for what you want for the @mention instead of the old one. It does the same thing except when you click the usersname it auto generates it for you...
Last edited by nextlevelgaming on October 20th 2012, 4:59 am; edited 2 times in total
Re: @ mention - mentioning a member or user
Allows one click of username for punbb
allows multiple clicks For punbb
- Code:
(function($){
$(function(){ $('.username a').click(function(){return false});$('.username a').one('click',function(e){e.preventDefault();var innerTxt=$(this).text();innerTxt=$.trim(innerTxt);var $obj=$('.quick_reply_textarea');$obj.val($obj.val()+'\n@'+innerTxt+':');})}); })(jQuery);
allows multiple clicks For punbb
- Code:
(function($){
$(function(){ $('.username a').click(function(){return false});$('.username a').click(function(e){e.preventDefault();var innerTxt=$(this).text();innerTxt=$.trim(innerTxt);var $obj=$('.quick_reply_textarea');$obj.val($obj.val()+'\n@'+innerTxt+':');})}); })(jQuery);
Re: @ mention - mentioning a member or user
Wow.. It works.. but I can't longer go to the profile of that user.
Is there a way we can double that link? So that the first link will redirect to the user profile and the second link will be the tag?
I'm really getting excited with this.
Is there a way we can double that link? So that the first link will redirect to the user profile and the second link will be the tag?
I'm really getting excited with this.
Re: @ mention - mentioning a member or user
Not really possible, plus it will look funny. haha. When you tag someone it will go to their profile though.
Re: @ mention - mentioning a member or user
So that It will look like this.. http://www.webpagescreenshot.info/img/286790-1020201254833AM
Re: @ mention - mentioning a member or user
Yeah you could generate that by editing your template
ACP>DISPLAY>TEMPLATES>GENERAL>VEIWTOPIC_BODY
Go down to
and add @Mention before the {postrow.displayed.POSTER_RANK}
ACP>DISPLAY>TEMPLATES>GENERAL>VEIWTOPIC_BODY
Go down to
- Code:
<span class="postdetails poster-profile"></span><br />
<span><p class="rank" style="padding:0;height:auto;">{postrow.displayed.POSTER_RANK}</p></span>
and add @Mention before the {postrow.displayed.POSTER_RANK}
Page 1 of 2 • 1, 2
Similar topics
» use "find a username" (in pm) for @member mentioning
» How can i mention a user in a post?
» Problem with Tagging Member(Mention) Script
» New Member Receiving 'User Name Already Taken' Message
» new user registers when search them its a current member.
» How can i mention a user in a post?
» Problem with Tagging Member(Mention) Script
» New Member Receiving 'User Name Already Taken' Message
» new user registers when search them its a current member.
Page 1 of 2
Permissions in this forum:
You cannot reply to topics in this forum