Social buttons to be visible on main page

GK User
Wed Oct 28, 2015 7:07 pm
Hello,
I am unable to understand why the social buttons visible here :
http://www.ngpark.fr/blog/128-notre-flyer-avec-les-tarifs-du-parking-ngpark-nantes.html
are not visible here : http://www.ngpark.fr/

I am sure it is obvious, but I am lost. Thanks a lot for your help.
Regards
Kris

PS : how is it possible NOT to have the id number in the url (here http://www.ngpark.fr/blog/128-notre-flyer...
User avatar
Expert Boarder

GK User
Fri Oct 30, 2015 7:34 pm
Hello
No one knows ? it is an article on my main page, therefore, it should be like an article in the blog. No ?
Thanks for helping please.
Kris
User avatar
Expert Boarder

teitbite
Sun Nov 01, 2015 5:22 pm
Hi

Please send me an access to joomla panel. I need to check.
User avatar
Moderator

teitbite
Mon Nov 02, 2015 2:05 pm
Hi

Looking at the menu configuration I think it's "One-page wide layout" is not supporting it. Please try to copy this code:

Code: Select all
          <gavern:social><div id="gkSocialAPI" class="itemSocialSharing"></gavern:social>
             <gavern:social><div><g:plusone GK_GOOGLE_PLUS_SETTINGS data-href="<?php echo $cur_url; ?>"></g:plusone></div></gavern:social>
             <gavern:social><div><g:plus action="share" GK_GOOGLE_PLUS_SHARE_SETTINGS href="<?php echo $cur_url; ?>"></g:plus></div></gavern:social>
             <gavern:social><div><fb:like href="<?php echo $cur_url; ?>" GK_FB_LIKE_SETTINGS></fb:like></div></gavern:social>
             <gavern:social><div><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></div></gavern:social>
             <gavern:social><div><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></div></gavern:social>
           <gavern:social></div></gavern:social>


into the code of /html/com_content/article/one-page-wide.php
User avatar
Moderator

GK User
Mon Nov 02, 2015 2:56 pm
Nice it works now.
One more thing about that. I have 11 facebook like in the box but it is normally impossible as I have just installed pasted the code. Do you have an explanation ? And is it possible to see who clicked ?
Regards and thumb up for the solution. :D
User avatar
Expert Boarder

teitbite
Wed Nov 04, 2015 2:21 pm
HI

If You have likes already than You should check the settings for social in template configuration. Probably some other settings were left there from demo installation.
User avatar
Moderator

GK User
Wed Nov 04, 2015 2:38 pm
I again checked where I could control Likes and google+ clicks but I found nothing in the template configuration. Can you help ?
User avatar
Expert Boarder

GK User
Wed Nov 04, 2015 10:17 pm
What is the css to override in order to have the social windows open above the GKTab. When the facebook button is clicked the window is behind the gktabs.
I tried
Code: Select all
#gkSocialAPI {
z-index: 10000;
}

no success
User avatar
Expert Boarder

teitbite
Fri Nov 06, 2015 8:16 pm
Hi

Yes I've missed 2 lines of code which should go up to this file:

Code: Select all
// URL for Social API
$cur_url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$cur_url = preg_replace('@%[0-9A-Fa-f]{1,2}@mi', '', htmlspecialchars($cur_url, ENT_QUOTES, 'UTF-8'));



please show me what You have in mind about this css ?
User avatar
Moderator

GK User
Fri Nov 06, 2015 11:08 pm
What do you mean by "up to this file" ? Which file ? Where ?
User avatar
Expert Boarder

teitbite
Thu Nov 12, 2015 1:49 pm
Hi

It's about same file as before: /html/com_content/article/one-page-wide.php

I asked You to add this code there already:

Code: Select all
          <gavern:social><div id="gkSocialAPI" class="itemSocialSharing"></gavern:social>
             <gavern:social><div><g:plusone GK_GOOGLE_PLUS_SETTINGS data-href="<?php echo $cur_url; ?>"></g:plusone></div></gavern:social>
             <gavern:social><div><g:plus action="share" GK_GOOGLE_PLUS_SHARE_SETTINGS href="<?php echo $cur_url; ?>"></g:plus></div></gavern:social>
             <gavern:social><div><fb:like href="<?php echo $cur_url; ?>" GK_FB_LIKE_SETTINGS></fb:like></div></gavern:social>
             <gavern:social><div><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></div></gavern:social>
             <gavern:social><div><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></div></gavern:social>
           <gavern:social></div></gavern:social>


but problem is that I missed 2 lines, so the code You should add should be:

Code: Select all
<?php
// URL for Social API
$cur_url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$cur_url = preg_replace('@%[0-9A-Fa-f]{1,2}@mi', '', htmlspecialchars($cur_url, ENT_QUOTES, 'UTF-8'));
?>
          <gavern:social><div id="gkSocialAPI" class="itemSocialSharing"></gavern:social>
             <gavern:social><div><g:plusone GK_GOOGLE_PLUS_SETTINGS data-href="<?php echo $cur_url; ?>"></g:plusone></div></gavern:social>
             <gavern:social><div><g:plus action="share" GK_GOOGLE_PLUS_SHARE_SETTINGS href="<?php echo $cur_url; ?>"></g:plus></div></gavern:social>
             <gavern:social><div><fb:like href="<?php echo $cur_url; ?>" GK_FB_LIKE_SETTINGS></fb:like></div></gavern:social>
             <gavern:social><div><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></div></gavern:social>
             <gavern:social><div><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></div></gavern:social>
           <gavern:social></div></gavern:social>
User avatar
Moderator

GK User
Thu Nov 12, 2015 7:01 pm
Thanks very much teitbite.
I did not know where to pu the added code. It is ok now.
There is no way we can know who posted ?
Kris
User avatar
Expert Boarder

teitbite
Sun Nov 15, 2015 10:03 am
Hi

I'm not really sure to be honest :) I cannot see an information about author being passed in any of the code generator for social sharing.
User avatar
Moderator


cron