By Patrick Kidney on Saturday, 19 July 2014
Posted in General Issues
Replies 16
Likes 0
Views 0.9K
Votes 0
Hey StackIdeas!
I want to change the heart icon and the word like. I changed the word 'like' in the .ini language file and the icon in the post.likes.php file for my template.
I appeared to have worked, but when you click the button, it overlays the 'x' icon ontop of my new icon and then if you click it again it becomes the original like button with the heart icon.

What other files do I need to edit to make this work properly?
Hi Patrick,

To fixed it, please go to /components/com_easydiscuss/themes/simplistic/post.likes.php
at lines 35,
Update the codes
from
<i class="icon-ed-love"></i> <span class="likeStatus"><?php echo JText::_($status);?></span>

to
<i class="icon-ed-<?php echo $isLiked ? 'remove' : 'love';?>"></i> <span class="likeStatus"><?php echo JText::_($status);?></span>
·
Wednesday, 23 July 2014 09:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Patrick,

The x icon, we are using image sprite which you can edit it here ../components/com_easydiscuss/themes/simplistic/images/icon-sprite.png . Hope this helps.
·
Saturday, 19 July 2014 09:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, that does help somewhat but my real problem is when I click the 'like' button multiple times

The page always loads with my custom edited text and icon, but if I click the button it shows the original text.

I have modified:
'COM_EASYDISCUSS_UNLIKE_THIS_POST',
'COM_EASYDISCUSS_LIKE_THIS_POST',
'COM_EASYDISCUSS_UNLIKE',
'COM_EASYDISCUSS_LIKES'

in language/en-GB/en-GB.com_easydiscuss.ini

Where else do I need to look to fix the text?
·
Monday, 21 July 2014 23:52
·
0 Likes
·
0 Votes
·
0 Comments
·
I have also edited the language file in administrator/language/en-GB/en_GB.com_easydiscuss but the like button still says 'like' after you click the button multiple times... When the page loads it loads with the appropriate text for 'COM_EASYDISCUSS_LIKE_THIS_POST'
·
Tuesday, 22 July 2014 08:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Patrick,

Can you provide us your backend and FTP access so we can have a better look on your issue here? Please advise.
·
Tuesday, 22 July 2014 09:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Nik,

I added my site details.

thank you very much!
·
Tuesday, 22 July 2014 20:18
·
0 Likes
·
0 Votes
·
0 Comments
·
I am using the pinter theme fyi so any theme specific changes will be done in the simplistic folder
·
Tuesday, 22 July 2014 21:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Patrick,

The FTP access that you have provided doesn't seem to work Can you please advise?
·
Wednesday, 23 July 2014 00:20
·
0 Likes
·
0 Votes
·
0 Comments
·
I fixed it! So sorry about that
·
Wednesday, 23 July 2014 00:33
·
0 Likes
·
0 Votes
·
0 Comments
·
I cannot bypass the front page login. Can you please do something about this?
·
Wednesday, 23 July 2014 00:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh boy sorry again, I didn't think about that extra front end lock. Your same admin credentials will now get you passed that.

Thanks so much
·
Wednesday, 23 July 2014 01:37
·
0 Likes
·
0 Votes
·
0 Comments
·
If you have any more questions you can IM me using the chat module on the lower right corner of my site, it will appear after you login
·
Wednesday, 23 July 2014 01:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Patrick,

Thanks, it works now but I am not too sure how to reproduce this issue on your site. When I clicked like / unlike multiple times it's toggling between "Technical" and "Not Technical" and looking at your language file, it's the correct strings that you are expecting.
·
Wednesday, 23 July 2014 02:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok great. The text is good for me now too, the only problem now is if I already have something liked when the page loads, it shows the 'like' icon rather than the 'unlike' icon.
It corrects after I click it several times, but when the page loads it is not correct.
·
Wednesday, 23 July 2014 02:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect! Thank you guys so much! The stackideas team really does an incrediblly great job and goes above and beyond with their support! I'll be sure to leavepositive ratings wherever I can. Feel free to post some suggestions!
·
Wednesday, 23 July 2014 10:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Patrick, glad that your issues are resolved now
·
Wednesday, 23 July 2014 11:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post