api buttons

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat May 18, 2013 11:15 pm
Reply with quote
Report this post
Hi,

How could I change the social buttons position from bottom of an article to top navigation or user menu (on top of page). Thanks.
User avatar
Senior Boarder

GK User
Sat May 18, 2013 11:28 pm
Reply with quote
Report this post
Hi,
you have two solutions:
1) Move our social code in template core .php file
or
2) Disable ours social buttons and use another plugin which have option to choose where it should be shown.

Both operations are quite simple.
Which you choose?
User avatar
Platinum Boarder

GK User
Sat May 18, 2013 11:31 pm
Reply with quote
Report this post
p.s.
Are you taking about standard articles or K2 articles(items) ?
User avatar
Platinum Boarder

GK User
Sat May 18, 2013 11:40 pm
Reply with quote
Report this post
For K2 items check this file (line 195) : templates/gk_gamenews/html/com_k2/templates/default/item.php
Standard articles (line 276): templates/gk_gamenews/html/com_content\article\default.php
User avatar
Platinum Boarder

GK User
Sun May 19, 2013 5:07 am
Reply with quote
Report this post
Hi,

Yes I'd like to move buttons because if there is a module at the bottom of articles, these buttons are cutting pages in two.
I would choose first solution but could you specify which lines from which files I should move.
It would be a pity if I installed another plugin because theses buttons are useful ........but at another place.
Thanks for your help.
User avatar
Senior Boarder

GK User
Sun May 19, 2013 12:35 pm
Reply with quote
Report this post
Hi again,
which file (see me post below)
if you need to move in standard articles (small customization) you have to move
this code (line 276-282):

Code: Select all
   <gavern:social><div id="gkSocialAPI"></gavern:social>
      <gavern:social><fb:like href="<?php echo $cur_url; ?>" GK_FB_LIKE_SETTINGS></fb:like></gavern:social>
       <gavern:social><g:plusone GK_GOOGLE_PLUS_SETTINGS callback="<?php echo $cur_url; ?>"></g:plusone></gavern:social>
        <gavern:social><g:plus action="share" GK_GOOGLE_PLUS_SHARE_SETTINGS href="<?php echo $cur_url; ?>"></g:plus></gavern:social>
       <gavern:social><a href="http://twitter.com/share" class="twitter-share-button" data-text="<?php echo $this->item->title; ?>" data-url="<?php $cur_url; ?>"  gk_tweet_btn_settings>Tweet</a></gavern:social>
      <gavern:social><a href="http://pinterest.com/pin/create/button/?url=<?php echo $cur_url; ?>&amp;media=<?php echo $pin_image; ?>&amp;description=<?php echo str_replace(" ", "%20", $this->item->title); ?>" class="pin-it-button" count-layout="GK_PINTEREST_SETTINGS"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="<?php echo JText::_('TPL_GK_LANG_PINIT_TITLE'); ?>" /></a></gavern:social>
    <gavern:social></div></gavern:social>


to line ~192 if you need it below title / date etc. but above article content.

But if you want to use in any of available template module position
from bottom of an article to top navigation or user menu (on top of page)

- you have to use our module: https://www.gavick.com/social-gk5.html - there is a only way! No hacking code required. Sorry, that I did not understand it before.

p.s.
You need take in your mind that customization gavern framework is not regular Template support.
User avatar
Platinum Boarder

GK User
Mon May 20, 2013 1:03 am
Reply with quote
Report this post
Hi,

Thanks very much for your help.
User avatar
Senior Boarder


cron