Integrating module to news content

GK User
Sun Feb 13, 2011 9:32 am
Hi guys,

I'm not sure if this is something that can be helped in here or I need to check with more K2 related content.

But i've added a social module with facebook and twitter links as can be seen top left of article here: http://www.ez-clan.net/index.php?option ... Itemid=120

Is it possible for me to put this module under the title next to the "Be the first to comment" text? Is it easy to do or does it require editing of the way K2 does thing itself?

Thanks
User avatar
Fresh Boarder

Konrad M
Mon Feb 14, 2011 10:15 am
Hi

Go to K2 Dashboard. Click Parameters and try to add your code to section 'Social Settings'.
User avatar

GK User
Mon Feb 14, 2011 12:11 pm
Hi

This must be done directly on this file: ../gk_sporter/html/com_k2/templates/default/item.php
inside of
Code: Select all
<div class="itemToolbar">


Or if you don't want to, try adding this line on override.css file (not a good solution, but..):
Code: Select all
span.itemTwitterLink {position: absolute;top:120px;left: 300px}
User avatar
Platinum Boarder

GK User
Mon Feb 14, 2011 12:57 pm
Seichinha wrote:Hi

This must be done directly on this file: ../gk_sporter/html/com_k2/templates/default/item.php
inside of
Code: Select all
<div class="itemToolbar">


Or if you don't want to, try adding this line on override.css file (not a good solution, but..):
Code: Select all
span.itemTwitterLink {position: absolute;top:120px;left: 300px}


Hmmm, I used the 2nd line and that worked to move the Twitter link.

What I have done now is edit this in the item.php to leave just the facebook option for the Social Shareing links:

Code: Select all
   <div class="itemSocialLinksBlock">
         <span><?php echo JText::_("Social sharing"); ?></span>
         <ul class="itemSocialLinks">
            <li><a class="facebook" title="<?php echo JText::_("Add to Facebook"); ?>" href="http://www.facebook.com/sharer.php?u=<?php echo $this->item->socialLink; ?>&t=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Facebook"); ?></span></a></li>
            <li class="clr"></li>
         </ul>
         <div class="clr"></div>


But for some reason it still shows all the other links below.

Then I was going to use a similar line to move it next to the Twitter link but it isn't budging. I tried both itemSocialLinksBlock and itemSocialLinks.

And then to top it off my comments anchor has moved underneath haha! What have I done?! :P
User avatar
Fresh Boarder


cron