http://7pmtech.com/
5 posters
@ mention - mentioning a member or user
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°1
@ 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/
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
It doesn't work on my forum.
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
like this:
@zoe704
@zoe704
Arrow- Forumember
- Posts : 121
Reputation : 4
Language : English
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.
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
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?
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
nextlevelgaming- Forumember
- Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York
I'm getting errors as well
typeError: cannot read property 'post' of undefined
typeError: cannot read property 'post' of undefined
nextlevelgaming- Forumember
- Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York
Okie Dokie rideem, trying it out now. Thanks
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
- Post n°10
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.
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°11
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?
nextlevelgaming- Forumember
- Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York
- Post n°12
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
nextlevelgaming- Forumember
- Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York
- Post n°13
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 Fri 19 Oct - 23:53; edited 1 time in total
nextlevelgaming- Forumember
- Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York
- Post n°14
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
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°15
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..
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°16
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.
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°17
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?
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°18
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 Sat 20 Oct - 3:46; edited 1 time in total
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°19
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?
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°20
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..
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°21
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.
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°22
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">
nextlevelgaming- Forumember
- Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York
- Post n°23
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 Sat 20 Oct - 4:59; edited 2 times in total
nextlevelgaming- Forumember
- Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York
- Post n°24
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);
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°25
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.
nextlevelgaming- Forumember
- Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York
- Post n°26
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.
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°27
Re: @ mention - mentioning a member or user
Okay then.. I'll just add @ in their profile name.
nextlevelgaming- Forumember
- Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York
- Post n°28
Re: @ mention - mentioning a member or user
What do you mean? Why would you do that?
~@dikz~- Forumember
- Posts : 363
Reputation : 4
Language : English & Tagalog
Location : Legazpi, Philippines - Bicol University
- Post n°29
Re: @ mention - mentioning a member or user
So that It will look like this.. http://www.webpagescreenshot.info/img/286790-1020201254833AM
nextlevelgaming- Forumember
- Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York
- Post n°30
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}