Thread starter below Discussion title
So how would you got about adding the thread starter below the Discussion title on say the main discussions page. I have a custom theme, I can see the discussion.php in views/modules is the one I want to edit, but is there a variable available to me to print out here? Any help on this? Thanks in advance.
0
Comments
$Discussion->FirstName; $Discussion->FirstUserID;
Are available it would seem they're what I need but - I'm just wondering what the Garden way of doing something like this would be, other than to php hack together the name and profile url from these variables in the helper_functions.php? Thanks and any help is appreciated.
/themes/mytheme/views/discussions/helper_functions.php:
<?php $AuthorName = $Discussion->FirstName; $AuthorID = $Discussion->FirstUserID; echo '<span>by '; echo '<a href="/profile/'.$AuthorID.'/'.$AuthorName.'">'.$AuthorName.'</a>'; echo '</span>'; ?>
$Sender->FireEvent('AfterDiscussionTitle');
So you could write a plugin that uses that event to echo the name.
http://www.trackgigs.com/AuthorName.zip
Its just basic to give you the idea.