@ mention - mentioning a member or user Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
5 posters

    @ mention - mentioning a member or user

    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved @ mention - mentioning a member or user

    Post by ~@dikz~ October 13th 2012, 6:05 pm

    is it possible here? to put that code/ or whatever could be? I saw it on this site:
    http://7pmtech.com/
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 13th 2012, 6:30 pm


    It doesn't work on my forum. Crying or Very sad
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 13th 2012, 6:44 pm

    like this:

    @zoe704
    Arrow
    Arrow
    Forumember


    Male Posts : 121
    Reputation : 4
    Language : English

    Solved Re: @ mention - mentioning a member or user

    Post by Arrow October 13th 2012, 7:00 pm

    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.
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 14th 2012, 9:15 am

    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 17th 2012, 6:13 am

    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~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 18th 2012, 3:29 pm

    Uncaught syntax error: Unexpected token

    With this script..
    http://adikz.forumtl.com/99606.js
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: @ mention - mentioning a member or user

    Post by nextlevelgaming October 19th 2012, 1:00 am

    I'm getting errors as well

    typeError: cannot read property 'post' of undefined
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: @ mention - mentioning a member or user

    Post by nextlevelgaming October 19th 2012, 7:01 am

    Okie Dokie rideem, trying it out now. Thanks
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: @ mention - mentioning a member or user

    Post by LGforum October 19th 2012, 2:47 pm

    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:
    Code:
    LGBB.addSwap(/\b@(.*?)\b/g, '<a href="/profile?mode=viewprofile&u=$1">@$1</a>');
    Again though, it won't work with username's with spaces in their name.

    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~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 19th 2012, 5:15 pm

    ~@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
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: @ mention - mentioning a member or user

    Post by nextlevelgaming October 19th 2012, 10:45 pm

    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
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: @ mention - mentioning a member or user

    Post by nextlevelgaming October 19th 2012, 11:46 pm

    Ok so its only for quick reply Smile ill try again haha. I only had reg reply on.

    Perfect Smile 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
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: @ mention - mentioning a member or user

    Post by nextlevelgaming October 19th 2012, 11:56 pm

    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 Wink
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 3:12 am

    It's working on me now.. but I have many javascript removed. Confused

    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~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 3:21 am

    Rideem3 wrote:That's a good idea. I'll edit the tutorial. Wink

    Thanks.. I'll wait for that tut. Very Happy Hope you'll do it perfectly. Very Happy
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 3:39 am

    Nice..I'll try it now.. Should I remove the first code I put?
    And it is still on topics only?
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 3:45 am

    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?


    Last edited by ~@dikz~ on October 20th 2012, 3:46 am; edited 1 time in total
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 3:48 am

    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~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 3:55 am

    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..
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 4:26 am

    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! Very Happy ,even not the username, just a link like @mention in their post profile.
    @ mention - mentioning a member or user 2012-110
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 4:52 am

    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">
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: @ mention - mentioning a member or user

    Post by nextlevelgaming October 20th 2012, 4:52 am

    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...




    Last edited by nextlevelgaming on October 20th 2012, 4:59 am; edited 2 times in total
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: @ mention - mentioning a member or user

    Post by nextlevelgaming October 20th 2012, 5:01 am

    Allows one click of username 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~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 5:09 am

    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. :wouhou:
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: @ mention - mentioning a member or user

    Post by nextlevelgaming October 20th 2012, 5:31 am

    Not really possible, plus it will look funny. haha. When you tag someone it will go to their profile though.
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 5:35 am

    Okay then.. I'll just add @ in their profile name.
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: @ mention - mentioning a member or user

    Post by nextlevelgaming October 20th 2012, 5:40 am

    What do you mean? Why would you do that?
    ~@dikz~
    ~@dikz~
    Forumember


    Male Posts : 363
    Reputation : 4
    Language : English & Tagalog
    Location : Legazpi, Philippines - Bicol University

    Solved Re: @ mention - mentioning a member or user

    Post by ~@dikz~ October 20th 2012, 5:49 am

    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: @ mention - mentioning a member or user

    Post by nextlevelgaming October 20th 2012, 5:57 am

    Yeah you could generate that by editing your template

    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}