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

  • ToddTodd 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

  • ToddTodd 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.
  • 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..
  • ToddTodd 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.
  • edited June 2011
    Thanks for your replay @Todd, I'll try my best to make it work..
  • 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.