By Mist on Friday, 14 March 2014
Replies 3
Likes 0
Views 892
Votes 0
I was wondering if is there any way of displaying a counter for new EasySocial Stream items ...
Basically i want to output a simple counter in my template for new stream items and was thinking if is there anyway to output this using the easysocial api. Something similar that you guys have for EasyDiscuss and also shown on this forum menu.

This counter will be presented for guest users aswell and i am not sure how "new" is correlated to guests.

Thanks for any tip !
Hello Mist,

Hm, to be honest I am not really sure what you are trying to do here but if you view the dashboard, the counter is actually displayed on the sidebar of a dashboard. You can manually call the model library to retrieve the counter if you want though. See /administrator/components/com_easysocial/models/stream.php
·
Friday, 14 March 2014 18:17
·
0 Likes
·
0 Votes
·
0 Comments
·
I noticed inside the template file "sidebar.feeds.php" the counter string for "Everyone" and it looks like this
<div class="label label-notification pull-right mr-20" data-stream-counter-everyone>0</div>


What i want is to output same counter somewhere else in my general Joomla template (index.php file).

I succesfully called easysocial api inside index.php in order to output some user related stuff and it's working great


require_once( JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php' );
// EasySocial user call
$my = Foundry::user();


... so i was looking for a way to output that "data stream counter" for "everyone", inside the same "index.php" file of my template, a counter that will output total "new stream items".

Hope i make sense .
·
Friday, 14 March 2014 19:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

Those are being rendered via AJAX calls in EasySocial. I am not too sure how you want to reproduce this but you can check the way the dashboard does it
·
Friday, 14 March 2014 22:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post