Howdy, Stranger!

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

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

views > discussions > helper_functions.php

422422 Developer MVP
edited December 2011 in Development

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

Comments

Sign In or Register to comment.