By Tima on Tuesday, 30 August 2016
Replies 1
Likes 0
Views 1.2K
Votes 0
Hello my lovely support!
Tell me please-
I am trying to make the icons for the buttons "Like" and "repost"
I change the code in the files -
/html/com_easysocial/likes/action.php
/html/com_easysocial/repost/action.php

add only <i> now looks like this -
<a href="javascript:void(0);" 
class="action-btn"
data-likes-action
data-id="<?php echo $uid; ?>"
data-type="<?php echo $element; ?>"
data-group="<?php echo $group; ?>"
data-verb="<?php echo $verb; ?>"
data-streamid="<?php echo $streamid; ?>"><i class="material-icons">}</i><?php echo $text; ?></a>


The problem is that when you click on "like" change the text and the icon disappears ..
How to fix it?
Hey there,

I am really sorry but unfortunately we cannot accommodate your request currently as it is beyond our support scope's policy as outlined in http://stackideas.com/support

By the way, I believe that is not possible to achieve because when you click like/unlike, it actually use ajax call to fetch back the content, mean when you add the <i> class into this file ../likes/action.php , it will only affected the first time display on the page.

This is the files which used to ajax call for the Like/Unlike.
JoomlaFolder\media\com_easysocial\scripts\site\likes\likes.js
JoomlaFolder\components\com_easysocial\controllers\likes.php


Note : Remember turn on Easysocial environment mode to `development` because it will load the single script instead of compiled script.
·
Tuesday, 30 August 2016 23:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post