bbPress

Simple, fast, elegant

bbPress Plugin Browser »

Easy Mentions (0.2)

Download

Version: 0.2

Other Versions

Last Updated: 2010-2-9

Requires bbPress Version: 1.0 or higher

Compatible up to: 1.1

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(4)

Your Rating

Author: Gautam Gupta

Easy Mentions allows the users to link to other users' profiles in posts (by using @username) and tags (by using #tag), basically like Twitter.

Just make a new post, write the content with a @username (can be any username) in the text. When you submit the post, the plugin will automatically link the usernames (which exist) to their profile. You can also link the tags in the same way by using #tag. Note that the plugin doesn't link the usernames or tags with spaces. You can also disable linking of users or tags by going to the settings page.

The plugin can also add a Reply link below each post, which when clicked, adds the reply text (configurable) in the post textbox. This can be enabled via the settings page, but before that please see #1 question in the FAQ.


  1. Awesome Gautam! Thanks so much for this!

    Now, my username has a space in it (I use my full name), but I've set it to use my display name instead. Thing is, it doesn't pick that up. Is there any way I can change my actual username?

    Posted: 1 month ago #
  2. @Michael888
    You can edit your user database table.

    Posted: 1 month ago #
  3. 0.1.1 released! Has an important bug fix for reply feature.

    Posted: 1 month ago #
  4. Thanks, all works smoothly with the database - I never thought it was safe before.

    What was the bug?

    Posted: 1 month ago #
  5. Tomcraft1980

    Member

    Hi Gautamn,

    in my case, the plugin generates the replies as follows:

    <em>@<a href="http://www.xtc-modified.org/forum/bb-admin/posts.php?poster_ip=91.36.255.214">
                      Tomcraft                  </a></em>

    Any ideas?

    Kind regards

    Tom

    Posted: 1 month ago #
  6. @Tomcraft1980
    It depends on how much your post.php differs from the default kakumei theme. You give me your website link and I'll post the new javascript code for you.

    Posted: 1 month ago #
  7. Having the same issue as Tom.

    I'd also like to customize the Reply link to be:
    "Reply to @<user-nsmae>'s <post-id>:"
    where <post-id> is the link to the message.

    Any help would be awesome :)

    Posted: 1 month ago #
  8. Tomcraft1980

    Member

    Here is the link: http://www.xtc-modified.org/forum

    thx for helping me.

    Tom

    Posted: 1 month ago #
  9. @Tom
    The development version should work for you - http://bbpress.org/plugins/topic/easy-mentions/easy-mentions.zip

    @Michael
    So what should the resulting text look like? This:
    Replying to @<user-link><user-name></user-link>'s <post-link>post</post-link>:

    And regarding the reply not working, the bottom of the post should have a # with post link (the plugin fetches the post url from there).

    Posted: 1 month ago #
  10. Tomcraft1980

    Member

    Nope, the trunk version doesn't fix that for me, still the same links:

    <em>@<a href="http://www.xtc-modified.org/forum/bb-admin/posts.php?poster_ip=91.36.255.214">
                      Tomcraft                  </a></em>

    Tom

    Posted: 1 month ago #
  11. @Gautam:

    That's exactly what I'm looking for. :)

    And regarding the reply not working, the bottom of the post should have a # with post link (the plugin fetches the post url from there).

    I'm no JavaScript guru, but it looks like it does that by checking parent controls, right? If so, surely there will be conflict with other plugins if they use that bar at the bottom.
    Now, I removed my post-permalink as I felt it wasn't needed. I'll have to put it back. That might actually solve my problem (same as Tom's).

    Posted: 1 month ago #
  12. Not sure if you need this, but here's my code for the 'poststuff' div:

    <div class="poststuff"><a href="<?php post_anchor_link(); ?>">Permalink</a><?php bb_post_admin(); ?><div class="right"><?php printf( __('Posted %s ago'), bb_get_post_time() ); ?></div></div>

    :)

    Posted: 1 month ago #
  13. @Michael
    I think you have got it to work.

    @Tom
    Can you activate the reply feature for some time? Or make the user gautam as administrator and I'll handle the rest. Also thanks for the donation! :-)

    Posted: 1 month ago #
  14. The current reply feature only has this going at the moment:
    Reply to: @Michael

    There is no post linkage at the moment.

    Posted: 1 month ago #
  15. @Michael
    Put this at the end of the string you modified:
    <a href="'+jQuery(this).siblings('a:first').get(0)+'">post</a>

    It should work.

    Posted: 1 month ago #
  16. Thanks! Works like a charm! :)

    Posted: 1 month ago #
  17. Tomcraft1980

    Member

    This is tricky because I have much traffic in the forums. Users would immediately wnat to try the new feature and I would have some work to edit all those posts.

    I'll try to update to the latest bbPress Trunk and see if it works.

    Tom

    Posted: 1 month ago #
  18. Well, it is not related to the version of bbPress, but how much your post.php differs from the default theme because the reply.js fetches the url of the post and the name of the author via parent/child/sibling relation between the HTML elements. If you could give me the code of the bottom bar of the post, then I would be able to generate a new javascript for you.

    Posted: 1 month ago #
  19. Tomcraft1980

    Member

    Hi Gautam,

    here is my post.php:

    <?php bbad_ad_block(); ?>
    
    <div>
          <div class="threadauthor">
                <?php //post_author_avatar(); ?>
                <?php post_author_avatar_link(80); ?>
                <?php //avatarupload_display(get_post_author_id()); ?>
                <p> <strong>
                      <?php post_author_link(); ?>
                      </strong><br />
                      <small>
                      <?php post_author_title(); ?>
                      </small>
                      <?php //pm_user_link(get_post_author_id()); ?>
                </p>
          </div>
          <div class="threadpost">
                <?php
               $search_array = array('<pre></pre>', '</pre>');
           	 $replace_array = array('','');
    		?>
                <div class="post post_main">
                      <?php str_replace($search_array, $replace_array, post_text()); ?>
                </div>
                <div class="line"></div>
                <div style="float:left; width:auto"><span class=timetitle title="<?php echo date("D j. M Y - G:i:s", bb_offset_time(strtotime($bb_post->post_time))); ?>"><strong>
                    <?php printf( __('Posted %s ago'), bb_get_post_time() ); ?></strong></span> |
                      <a href="<?php post_anchor_link(); ?>">Direktlink</a> </div>
                <div style="float:right; width:auto; text-align:right">
                      <?php //post_edit_link(); ?>
                      <?php //post_delete_link(); ?>
                      <b>
                      <?php //bb_quote_link('Beitrag zitieren'); ?>
                      </b>
                      <?php bb_post_admin(); ?>
                      </div>
                <div style="clear:both"></div>
                <div style="border:1px solid #ccc; background:#eee; margin-top:5px; text-align:center; padding:5px;">F&uuml;r den Inhalt des Beitrages <strong><?php echo post_id(); ?></strong> haftet ausdr&uuml;cklich der jeweilige Autor: <?php post_author_link(); ?></div>
          </div>
    </div>
    Posted: 1 month ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.