social buttons do not work in redshop

GK User
Mon Dec 12, 2011 1:25 am
Gavern Framework - Social API does not work with redshop?? that can be used with redshop?
User avatar
Senior Boarder

GK User
Mon Dec 12, 2011 10:47 am
Hi,

Can you please clarify your question? What do you mean by the API not working with Redshop?
User avatar
Platinum Boarder

GK User
Mon Dec 12, 2011 11:09 am
Don Lee wrote:Hi,

Can you please clarify your question? What do you mean by the API not working with Redshop?




Sorry, I'm from mexico and my English is not very good.

My question is:
How to use social buttons (facebook, twitter, +1, etc) are included in Gavern Framework - Social API. and to show these buttons society, in Redshop


http://wiki.gavick.com/joomla-templates/templates-for-joomla-1-6/gavern-framework/gavern-framework-social-api/
User avatar
Senior Boarder

GK User
Mon Dec 12, 2011 11:29 am
Yes I think. The code to generate social buttons is:

Code: Select all
<div class="itemSocialSharing">
           
                    <?php if($this->item->params->get('itemTwitterButton',1)): ?>
                    <!-- Twitter Button -->
                    <div class="itemTwitterButton">
                        <a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"<?php if($this->item->params->get('twitterUsername')): ?> data-via="<?php echo $this->item->params->get('twitterUsername'); ?>"<?php endif; ?>><?php echo JText::_('K2_TWEET'); ?></a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
                    </div>
                    <?php endif; ?>
                   
                    <?php if($this->item->params->get('itemFacebookButton',1)): ?>
                    <!-- Facebook Button -->
                    <div class="itemFacebookButton">
                        <div id="fb-root"></div>
                        <script type="text/javascript">
                            (function(d, s, id) {
                              var js, fjs = d.getElementsByTagName(s)[0];
                              if (d.getElementById(id)) {return;}
                              js = d.createElement(s); js.id = id;
                              js.src = "//connect.facebook.net/en_US/all.js#appId=177111755694317&xfbml=1";
                              fjs.parentNode.insertBefore(js, fjs);
                            }(document, 'script', 'facebook-jssdk'));
                        </script>
                        <div class="fb-like" data-send="false" data-width="260" data-show-faces="true"></div>
                    </div>
                    <?php endif; ?>
           
                    <?php if($this->item->params->get('itemGooglePlusOneButton',1)): ?>
                    <!-- Google +1 Button -->
                    <div class="itemGooglePlusOneButton">   
                        <g:plusone annotation="inline" width="120"></g:plusone>
                        <script type="text/javascript">
                          (function() {
                            window.___gcfg = {lang: 'en'}; // Define button default language here
                            var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                            po.src = 'https://apis.google.com/js/plusone.js';
                            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
                          })();
                        </script>
                    </div>
                    <?php endif; ?>
                   
                    <div class="clr"></div>
                </div>

You can find it in \templates\gk_musicity\html\com_k2\templates\default\item.php

If you to include the buttons also in redshop pages, you can add something similar the code above to redshop layout files.

Since this is a custom work so I just can suggest you that, and can't tell you further more!
User avatar
Platinum Boarder

GK User
Mon Dec 12, 2011 7:03 pm
Don Lee wrote:Yes I think. The code to generate social buttons is:

Code: Select all
<div class="itemSocialSharing">
           
                    <?php if($this->item->params->get('itemTwitterButton',1)): ?>
                    <!-- Twitter Button -->
                    <div class="itemTwitterButton">
                        <a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"<?php if($this->item->params->get('twitterUsername')): ?> data-via="<?php echo $this->item->params->get('twitterUsername'); ?>"<?php endif; ?>><?php echo JText::_('K2_TWEET'); ?></a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
                    </div>
                    <?php endif; ?>
                   
                    <?php if($this->item->params->get('itemFacebookButton',1)): ?>
                    <!-- Facebook Button -->
                    <div class="itemFacebookButton">
                        <div id="fb-root"></div>
                        <script type="text/javascript">
                            (function(d, s, id) {
                              var js, fjs = d.getElementsByTagName(s)[0];
                              if (d.getElementById(id)) {return;}
                              js = d.createElement(s); js.id = id;
                              js.src = "//connect.facebook.net/en_US/all.js#appId=177111755694317&xfbml=1";
                              fjs.parentNode.insertBefore(js, fjs);
                            }(document, 'script', 'facebook-jssdk'));
                        </script>
                        <div class="fb-like" data-send="false" data-width="260" data-show-faces="true"></div>
                    </div>
                    <?php endif; ?>
           
                    <?php if($this->item->params->get('itemGooglePlusOneButton',1)): ?>
                    <!-- Google +1 Button -->
                    <div class="itemGooglePlusOneButton">   
                        <g:plusone annotation="inline" width="120"></g:plusone>
                        <script type="text/javascript">
                          (function() {
                            window.___gcfg = {lang: 'en'}; // Define button default language here
                            var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                            po.src = 'https://apis.google.com/js/plusone.js';
                            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
                          })();
                        </script>
                    </div>
                    <?php endif; ?>
                   
                    <div class="clr"></div>
                </div>

You can find it in \templates\gk_musicity\html\com_k2\templates\default\item.php

If you to include the buttons also in redshop pages, you can add something similar the code above to redshop layout files.

Since this is a custom work so I just can suggest you that, and can't tell you further more!




Thank you very much, but this response did not work.

I need a more specific response
User avatar
Senior Boarder

GK User
Tue Dec 13, 2011 11:22 am
Hi,

As I said in the previous post, it is a custom work so going out of my support scope, therefore I can't advise you more. I'm sorry for this. Please get a developer to implement it for you.

Have a nice day.
User avatar
Platinum Boarder

GK User
Tue Dec 13, 2011 3:26 pm
Don Lee wrote:Hi,

As I said in the previous post, it is a custom work so going out of my support scope, therefore I can't advise you more. I'm sorry for this. Please get a developer to implement it for you.

Have a nice day.



I think it's a solution that could benefit all who use the template of "Boutique".

I hope Gavick, include these buttons on your next update for the benefit of all.

appreciate your help ..

I hope you're good enough to pass this concern and need directly with Gavick

Have a nice day
User avatar
Senior Boarder

GK User
Wed Dec 14, 2011 9:32 am
For sure I will convey this to our development team as a feature request for next version of the template.
User avatar
Platinum Boarder

GK User
Fri Dec 16, 2011 1:52 pm
Feature is already there for Facebook and Google +1

in the templates of Redshop Find gk_product template and add the tags in the place you want to show them.

{facebook_like_button} , Facebook Like Button
{googleplus1} , Google +1 button

I think as this is a gavick added feature they should be added to the demo.
User avatar
Fresh Boarder

GK User
Fri Jan 06, 2012 7:41 am
rammsteing1 wrote:
{facebook_like_button} , Facebook Like Button
{googleplus1} , Google +1 button



Good to know! Thx!!

Anything similar for Twitter ? ;)
User avatar
Fresh Boarder


cron