Jomsocial karma image

Professional Joomla social template with metro design and JomSocial extension support.
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
Tue Aug 19, 2014 1:25 pm
Reply with quote
Report this post
According to Jomsocial support the karma images for Jomsocial is missing from the theme override in M Social:

https://www.jomsocial.com/forum/profile ... mage#98857

" As the jomsocial template overridden by gk_social.
It was supposed to have the karma image at "root/templates/gk_social/html/com_community/images"
So I have copied the images and now it is showing fine. "
User avatar
Platinum Boarder

GK User
Thu Aug 21, 2014 8:31 am
Reply with quote
Report this post
You mean this karma image? (screenshot) If yes, the path to this file is components/com_community/templates/default/images/karma-0.5-5.png so it is displayed from original JomSocial installation path like all other images. We don't override any graphics and every single image is loading from original JomSocial files.
User avatar
Platinum Boarder

GK User
Wed Sep 24, 2014 3:07 pm
Reply with quote
Report this post
Sorry to post under wrong template but it's the same issue.

I'm using University and have same problem. The solution from a JomSocial dev was to upload GIF's into the directory the code is pointing, see here http://www.jomsocial.com/forum/technical-issues/14286-karma-icons-missing#72031 but when viewing the direct URL of the missing image, if I change URL to .png vs. .gif it shows the image.

Can you please assist in me in locating the PHP or CSS file that calls the image(s) so I can modify the code to reference PNG's as intended?

Actual image on server
karma-0.5-5.png

FIle site is showing
karma-0.5-5.gif.png

The Gavick University JomSocial theme uses this path
components/com_community/templates/default/images/karma-0.5-5.gif

While the actual path should be
components/com_community/templates/default/images/karma-0.5-5.png

I thought the problem existed within JomSocial code, but updated from v 3.2.0.5 to JomSocial v3.2.1.4 and the problem still existed, so guessing this is in the University theme code.

Thank you in advance for your time.
User avatar
Expert Boarder

teitbite
Fri Oct 03, 2014 11:07 am
Reply with quote
Report this post
Hi

Please tell me the exact url to the page where I can see this problem.
User avatar
Moderator

GK User
Fri Oct 03, 2014 4:17 pm
Reply with quote
Report this post
teitbite wrote:Hi

Please tell me the exact url to the page where I can see this problem.


It's a closed (private) community site so I'll PM you with a URL and credentials to login.
User avatar
Expert Boarder

teitbite
Sat Oct 04, 2014 10:58 am
Reply with quote
Report this post
Hi

Can You please lift IP blocking for Poland ?



403: Access Forbidden

Your location (PL) has been blacklisted.

User avatar
Moderator

GK User
Mon Oct 06, 2014 10:38 pm
Reply with quote
Report this post
teitbite wrote:Hi

Can You please lift IP blocking for Poland ?



403: Access Forbidden

Your location (PL) has been blacklisted.



So sorry, I have disabled RSFirewall, you should have full access now... my sincerest apologies!
User avatar
Expert Boarder

teitbite
Wed Oct 08, 2014 9:09 am
Reply with quote
Report this post
Hi

That's not a problem :)

Ok, I've checked every single line in our template override for jomsocial and there is nothing displaying even close to karma image, so I believe it can be either customised in jomsocial configuration or files. Anyway since the change is so small try using a small javascript to fix it. Add this to /layout/blocks/head.php

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('.cFocus-karma img').each(function(){
var karmasrc = $(this).attr('src').replace('.gif','.png');
$(this).attr('src',karmasrc)
});
});})(jQuery)</script>
User avatar
Moderator

GK User
Wed Oct 08, 2014 4:45 pm
Reply with quote
Report this post
Works like a charm, thanks!!!

I guess this modification will need re-applied whenever template gets updated, any plans to incorporate it into the theme itself? Regardless, thank you for your time and assistance, as always, it's much appreciated!
User avatar
Expert Boarder

teitbite
Fri Oct 10, 2014 9:07 am
Reply with quote
Report this post
Hi

Unfortunatelly not. I've checked the override files in our template and this icon is not loaded from there. I do not know where is the file loading it, because if I do I may be able to add an override.
User avatar
Moderator

GK User
Wed Dec 31, 2014 5:48 pm
Reply with quote
Report this post
I recently updated my University template which (naturally) broke this "fix". When I tried to place your code into the noted file again, it gives a syntax error and the site doesn't display. I would be most grateful if you could supply and post an update to the script.

Kind regards and Happy New Year!
User avatar
Expert Boarder

teitbite
Fri Jan 02, 2015 11:20 am
Reply with quote
Report this post
Hi

No problem, but please remind me Your ftp access. I must have remove old messages because I cannot find it anywhere.
User avatar
Moderator

GK User
Fri Jan 02, 2015 3:50 pm
Reply with quote
Report this post
I just sent you a PM with both site and FTP credentials.

I believe I've located where to look for fix in theme for future updates. The Karma image works (shows) if JomSocial is using the default template. It's only broken (missing) when using the University theme.

And again, thank you for your time and assistance, it's greatly appreciated.
User avatar
Expert Boarder

teitbite
Sat Jan 03, 2015 10:36 am
Reply with quote
Report this post
Hi

Code:

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('.cFocus-karma img').each(function(){
var karmasrc = $(this).attr('src').replace('.gif','.png');
$(this).attr('src',karmasrc)
});
});})(jQuery)</script>


copied to the very end of /layout/blocks/head.php file. Images works again.
User avatar
Moderator


cron