By Fagault Eric on Wednesday, 11 October 2017
Posted in General
Replies 2
Likes 0
Views 391
Votes 0
Hello,
I develop a Market Place component for my EasySocial site.
I need to count the number of clicks on links.
I have provided a "Hit" field in the table to receive +1 each time the link is clicked.

I took over the part of your code that allows you to send a message.

[HTML]
<button type = "button" class = "indiv_btn_contact_tab" data-es-conversations-compose = ""
data-id = "<? php echo $ item-> created_by;?>" data-es-provide = "tooltip" data-original-title = "Contact Seller">
<i class = "fa fa-envelope"> </ i>
</ Button>
[/ Html]

I would have to add something to it that calls a function that sends +1 in the "Hit" field.

Do you have an idea ?

Best regards.

Eric
Currently we do not have this method in Easysocial.

I would have to add something to it that calls a function that sends +1 in the "Hit" field.

Once you implement this in PHP part, you can take a look this js the way how we use this to fetch all the current new system notification count and latest stream item on the dashboard in certain second.

JoomlaFolder/media/com_easysocial/scripts/site/system/notifier.js


So you can use this similar method, so your Market place filter will automatically show the current total of count on dashboard.
·
Wednesday, 11 October 2017 15:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post