By Marcus Palmer on Friday, 01 August 2014
Likes 0
Views 1K
Votes 0
Is it possible to call the notifications of a particular category via Easy Discuss Factory?
Like i have with EasySocial for User Info?
Hello Marcus,

Sorry but I am not really sure if I understand you here. Can you please elaborate more on your request please?
·
Friday, 01 August 2014 23:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry doing so many things think i lost myself, i'll try to explain what i want to do!

Like how we used code below:


<?php
require_once( JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php' );

// Get the current logged in user
$my = Foundry::user();

?>
<img src="/$my->getAvatar();" />

To Call Avatar

If i click on the forum link i.e Easy social, on the filter bar Unanswered posts has a notifications of how many post are unanswered.

How would i call this notification
·
Saturday, 02 August 2014 04:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Marcus,

Unfortunately we do not actually have such API's for users. You can however, retrieve the unanswered count using the model in EasyDiscuss. For instance,


<?php
$model = DiscussHelper::getModel('Posts');
echo $model->getUnansweredCount();
·
Saturday, 02 August 2014 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok scratching head with my elbows hahhaha:p

Cheers for that @mark i'll see what i can do with that code & a bit of inner inspiration lol..

This support is ACE!
Hoping to supply something along the same lines for my customers

(Thank you for setting such high standards)
·
Saturday, 02 August 2014 18:05
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Marcus It's definitely possible!
·
Saturday, 02 August 2014 21:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post