Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

views > discussions > helper_functions.php

422422 Developer MVP

I have buggered around with this code. This is what I have.

< ?php
            if ($Session->IsValid() && $Discussion->CountUnreadComments > 0)
               echo '< strong>'.Plural($Discussion->CountUnreadComments, '%s New', '%s New Plural').'< /strong>';

            $Sender->FireEvent('AfterCountMeta');

            if ($Discussion->LastCommentID != '') {
               echo '< span class="LastCommentBy">< div class="replyArrow"> < /div>< span class="repliedBy">'.UserPhoto($Last).'< /span>'.'< /span>';
               echo '< span class="LastCommentDate">'.Gdn_Format::Date($Discussion->LastDate).'< /span>';
            } else {
               echo ''.sprintf(T('Started by %1$s'), '< div class="replyArrowNew"> < /div>'.UserAnchor($First)).'< /span>';
               echo '< span class="LastCommentDate">'.Gdn_Format::Date($Discussion->FirstDate);
               
               if ($Source = GetValue('Source', $Discussion)) {
                  echo ' '.sprintf(T('via %s'), T($Source.' Source', $Source));
               }
               
               echo '< /span>';
            }
         
            if (C('Vanilla.Categories.Use') && $Discussion->CategoryUrlCode != '')
               echo Wrap(Anchor($Discussion->Category, '/categories/'.rawurlencode($Discussion->CategoryUrlCode), 'Category'));
               
            $Sender->FireEvent('DiscussionMeta');
         ?>

This posts in discussion index, the person who started the thread and the latest replier, with their avatars. Demo can be seen here , http://vanillaskins.com/go-forum/discussions

Issue I have is in : http://vanillaskins.com/go-forum/profile/discussions/1/admin

It isnt displaying the thread starters avatar etc , so I am missing a hook somewhere. Any suggestions please.

Login info, if you wish to login is. user = TestUser pass = vanilla69

Cheers Ste

422 Real Estate Australia , now open Check it out

Answers

Sign In or Register to comment.