Need help with all.php

422422 Developer MVP
edited December 2011 in Development

Working on our version of penny arcade theme.

I have this at the moment in all.php

'.sprintf(Plural(number_format($Category->CountAllComments), '%s', '%s'), $Category->CountComments).'';
                     if ($Category->LastCommentID != '' && $Category->LastDiscussionTitle != '') {
                        $CatList .= ''.sprintf(
                              T('%1$s  %2$s'),
                              Anchor(SliceString($Category->LastDiscussionTitle, 40), '/discussion/'.$Category->LastDiscussionID.'/'.Gdn_Format::Url($Category->LastDiscussionTitle)),
                              UserAnchor($LastComment)
                           ).''
                           .' '.Gdn_Format::Date($Category->DateLastComment).''
                           .''.UserPhoto($LastComment).''
                            .''.UserAnchor($LastComment).'';

My issue is : All works good but ..

'.sprintf(
                              T('%1$s  %2$s'),
                              Anchor(SliceString($Category->LastDiscussionTitle, 40), '/discussion/'.$Category->LastDiscussionID.'/'.Gdn_Format::Url($Category->LastDiscussionTitle)),
                              UserAnchor($LastComment)

                           ).''

I need to split this up so I have Userpost and username separate, at moment they are joined at the hip.

I tried:

'.sprintf(
                              T('%1$s  %2$s'),
                              Anchor(SliceString($Category->LastDiscussionTitle, 40), '/discussion/'.$Category->LastDiscussionID.'/'.Gdn_Format::Url($Category->LastDiscussionTitle))).''



But that now doesnt display the discussiontitle , i am trying to segregate the major post functions ... to:

  1. discusion count
  2. commentcount
  3. lastdiscussiontitle ( and change to last post title )
  4. lastcommentdate
  5. repliedby ( showing userphoto )
  6. lastpostauthor

Any help appreciated

Comments

Sign In or Register to comment.