K2 ratings

December '13 Joomla Template
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
Sun Feb 09, 2014 11:16 am
Reply with quote
Report this post
Hi,

I can't seem to display the ratings in k2 articles even though it is enabled.
What am I missing in template config?

Thanks
User avatar
Junior Boarder

teitbite
Sun Feb 09, 2014 1:34 pm
Reply with quote
Report this post
Hi

Please send me an access to joomla panel so I'll check.
User avatar
Moderator

GK User
Sun Feb 09, 2014 1:58 pm
Reply with quote
Report this post
Hi,

Thanks for your reply.
It's under development on localhost...
User avatar
Junior Boarder

GK User
Sun Feb 09, 2014 2:50 pm
Reply with quote
Report this post
Any idea why it's not visible? BTW I'm using Joomla 3.2.2, Not quickstart package...
User avatar
Junior Boarder

teitbite
Tue Feb 11, 2014 7:47 pm
Reply with quote
Report this post
Hi

Than my guess will be that it's covered by a different element or is configured to not display in item, menu or category configuration. Anyway I need to see the page or have an access to joomla panel to tell for sure. Please ignore it for now and get back to me when site will be online.
User avatar
Moderator

GK User
Tue Feb 11, 2014 8:04 pm
Reply with quote
Report this post
Hi, I've sent you a PM with all the details (I've sent the same PM for dziudek).

Thank you.
User avatar
Junior Boarder

teitbite
Wed Feb 12, 2014 8:59 pm
Reply with quote
Report this post
Hi

I've looked into the code and looks like rattings are merged with social buttons. So please enable one of them (Facebook, Twitter, GooglePlus) to show ratings and if You do not want to use this buttons please remove it from code directly. In file /html/com_k2/default/item.php lines 117 - 159:

Code: Select all
              <?php if($params->get('itemTwitterButton',1)): ?>
              <div class="itemTwitterButton"> <a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"<?php if($params->get('twitterUsername')): ?> data-via="<?php echo $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($params->get('itemFacebookButton',1)): ?>
              <div class="itemFacebookButton">
                <script type="text/javascript">                                                         
                window.addEvent('load', function(){
                  (function(){
                        if(document.id('fb-auth') == null) {
                           var root = document.createElement('div');
                           root.id = 'fb-root';
                           $$('.itemFacebookButton')[0].appendChild(root);
                              (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#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($params->get('itemGooglePlusOneButton',1)): ?>
              <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; ?>
User avatar
Moderator

GK User
Thu Feb 13, 2014 8:30 am
Reply with quote
Report this post
Got it!
Thanks guys, you rock!
User avatar
Junior Boarder

teitbite
Fri Feb 14, 2014 9:37 pm
Reply with quote
Report this post
Hi

No problem. Glad I could help :)
User avatar
Moderator


cron