Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Username delegate
I am creating an extension that requires that the way that 'Usernames' are displayed is changed (I want to add an image after each user name).
I have been able to do this by using the Discussion and Comment delegates but was wondering if there is a delegate linked to the display of the user name. At the moment I have to search through the discussion or comment for user names and replace them where necessary.
Hope this makes sense!
I have been able to do this by using the Discussion and Comment delegates but was wondering if there is a delegate linked to the display of the user name. At the moment I have to search through the discussion or comment for user names and replace them where necessary.
Hope this makes sense!
0
This discussion has been closed.
Comments
I don't want to be able to change the user name just to be able to 'attach' an image.
Here is what I did for my 'like a tree' extension, where ThreadedCommentGrid extends CommentGrid:
if ( ! class_exists( 'CommentGrid' )) include( $Context->Configuration['LIBRARY_PATH'] . 'Vanilla/Vanilla.Control.CommentGrid.php' ); if ( ! class_exists( 'ThreadedCommentGrid' )) include('inc/ThreadedCommentGrid.class.php'); $Context->ObjectFactory->SetReference( 'CommentGrid', 'ThreadedCommentGrid' );