-
AuthorPosts
-
March 11, 2011 at 10:29 pm #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=73Now 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=73I need these to match if there is anyone who can help I would be very thankful.
Thanks! – Josh
huypl Friendhuypl
- Join date:
- February 2011
- Posts:
- 162
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 20 times in 20 posts
March 15, 2011 at 4:40 am #381379Hello 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?1 user says Thank You to huypl for this useful post
March 15, 2011 at 4:49 pm #381500Hi 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 Friendhuypl
- Join date:
- February 2011
- Posts:
- 162
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 20 times in 20 posts
March 16, 2011 at 5:09 am #381566Hello 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.
1 user says Thank You to huypl for this useful post
-
AuthorPosts
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