Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
419 views
in Plugins by

I want to have the favorite icon on question lists for each question as well.

is there a way to modify the code to get that to work ?

$favorite=@$this->content['favorite'];
if (isset($favorite)) {
$this->output('<DIV CLASS="qa-favoriting" '.@$favorite['favorite_tags'].'>');
$this->favorite_inner_html($favorite);
$this->output('</DIV>');
}
 
It seems that the needed parameters could be listed as needed for the function
 
function qa_user_favorite_set($userid, $handle, $cookieid, $entitytype, $entityid, $favorite)
 
As always, any hint is welcome !
Q2A version: 1.5.2

1 Answer

0 votes
by

See qa-page-favorites.php for how to retrieve the full list of favorited questions for a user. Having that list, you could then modify the question list output via an advanced theme or layer.

...