Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • jsprague Friend
    #161352

    Hello! That when you click on the author in K2 you get what appears to be a broken version of the k2 blog template

    Notice the area where the tweet and share icons are here:
    http://templates.joomlart.com/ja_events/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=2&Itemid=73

    Now look at it here when i click on the author:
    http://templates.joomlart.com/ja_events/index.php?option=com_k2&view=itemlist&task=user&id=62%3Aadministrator&Itemid=73

    I need these to match if there is anyone who can help I would be very thankful.

    Thanks! – Josh

    huypl Friend
    #381379

    Hello Josh,
    What do you mean by broken version of the k2 blog template when clicking on the author? The two links you show are connected to the blog view ( show articles in particular categories from all users) and user view (show articles from that user). Do you want these two views look like the same?

    jsprague Friend
    #381500

    Hi thanks for the reply! yes, they appear to share the same blog template but if you look at the area for the tweet and shar one is missing the light blue bar behind it.. I need the blue bar added and formated like the other.

    Thanks! – Josh

    huypl Friend
    #381566

    Hello jsprague,
    I’ve got a great solution for this. Please do the following:
    Open templatesYOUR DEFAULT TEMPLATEhtmlcom_k2templatesuser.php
    We will edit a little bit in this file:
    1. Find these lines ( line 155 to 159)
    <!– Plugins: AfterDisplayTitle –>
    <?php echo $item->event->AfterDisplayTitle; ?>

    <!– K2 Plugins: K2AfterDisplayTitle –>
    <?php echo $item->event->K2AfterDisplayTitle; ?>

    Then add comment or delete them and replace them with these lines:

    <div class=”ja-before-content”>
    <div class=”ja-before-inner clearfix”>
    <div class=”ja-social-toolbox-small”>
    <div class=”inner clearfix”>
    <!– Plugins: AfterDisplayTitle –>
    <?php echo $item->event->AfterDisplayTitle; ?>
    </div>
    </div>
    <!– K2 Plugins: K2AfterDisplayTitle –>
    <?php echo $item->event->K2AfterDisplayTitle; ?>
    <!– Plugins: BeforeDisplayContent –>
    <?php echo $item->event->BeforeDisplayContent; ?>
    <!– K2 Plugins: K2BeforeDisplayContent –>
    <?php echo $item->event->K2BeforeDisplayContent; ?>
    </div>
    </div>

    2. Find these lines:
    <?php echo $item->event->BeforeDisplayContent; ?>
    <!– K2 Plugins: K2BeforeDisplayContent –>
    <?php echo $item->event->K2BeforeDisplayContent; ?>

    then add comment to them like this:

    <?php //echo $item->event->BeforeDisplayContent; ?>
    <!– K2 Plugins: K2BeforeDisplayContent –>
    <?php //echo $item->event->K2BeforeDisplayContent; ?>

    I did try this way and it worked well on my local machine. Hope this can help you. If you find it difficult, please let me know, i’m gonna send you my updated user.php file.

    jsprague Friend
    #381741

    OH MAN! You fixed it!!! I can’t thank you enough!

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  jsprague 13 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum