Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How to implementing Mentions, Hashtag and Youtube format to Activity

edited June 2011 in Vanilla 2.0 - 2.8
Hi folks,
I'm just wondering how to implementing mentions, hashtag and youtube format to activity and comment activity module.

If there's any tutorial will help me,
anyway, thanks for your answer :)
Tagged:

Best Answer

  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    edited June 2011 Answer ✓
    If you want to make changes like this you're going to have to have some ability to look at the code and figure it out too. This isn't just a simple change.

    In /applications/dashboard/views/activity/helper_functions.php there is a line that has:
    echo Gdn_Format::Display($Comment->Story);
    There's where you do comments.

Answers

  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    The functions you are looking for are in the Gdn_Format class. Gdn_Format::Html() calls Gdn_Format::Mentions() itself.

    So you want to be calling Gdn_Format::Html() on the activity page.
  • Options
    edited June 2011
    Yup, I want to using Gdn_Format on my Activity page, 'cause they wish can using mentions and hashtag anywhere..

    @Todd do you mind give me some sample code to implement Gdn_Format on activity page,, :) thanks before..
  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    edited June 2011 Answer ✓
    If you want to make changes like this you're going to have to have some ability to look at the code and figure it out too. This isn't just a simple change.

    In /applications/dashboard/views/activity/helper_functions.php there is a line that has:
    echo Gdn_Format::Display($Comment->Story);
    There's where you do comments.
  • Options
    edited June 2011
    Thanks for your replay @Todd, I'll try my best to make it work..
  • Options
    edited June 2011
    This is good.. I've try this :
    <?php echo Gdn_Format::Mentions(Gdn_Format::Display($Comment->Story)); ?>
    and this is work out..
    but I have question, How the user that mentioned got notification?
Sign In or Register to comment.