i know others have requested this already; i just noticed a fairly simple way to do it.. and am thinking someone has most likely already done it and we missed it.
the idea is to have a page on the site for the most appreciated content.
i though that creating a category for 'best of site' and then assigning the items to that category would be enough.. but that requires manual interaction..
so then i thought of a plugin that can assign content to categories based on thresholds, such as 'liked by 25 people or more'..
that actually expands the idea to a useful concept of a general category assigner plugin, based on rules... which could include presets for best of site based on likes. or whatever you think of.
has anyone seen any plugins like this so far?
thanks
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
looks like hype categories is the most category related plugin.. no 1.8 version as yet.
We are planning to create a 'liked' widget, that can show things you, your network, everyone or your groups have liked, in order of number of likes, that will work with Widget Manager to display in dashboard, profile, group and index pages. If anyone else is doing that we'd be really happy because our list of requirements is greater than our capacity to produce solutions, so this will be weeks and may be months away! It might make sense to create a view that could be used in both widgets and pages of this sort.
Jon
thankyou for responding. yes, a view would be most appropriate to allow for both widgets and pages.
i'm surprised that no such plugin already exists, considering the thousands that do exist.. maybe its due partially to the way the likes are coded.. i haven't looked at the code there.
@jon:
the internals is not too complicated ;-oO
fetch annotations(meta) == 'likes' and
map back to owning entities::(type,subtype)
maybe w/ custom sql for group by
to report sub-totals for type,subtype
i'd go for a bigger mouthful @plugin name viz
'who-liked-what-and-how-much-and-when' lolzz ;P
The API's for that all ready exists. Take a look at elgg_get_entities_from_annotation_calculation().
me ? i did take a look.. @2009 ;} api does not do what *i want to do ;( so as that saying goes 'if you it done well - gotta do it yourself!'
Hi Ura
I recently came across this..
not sure if it may be of some use or not.. but reminded me of your post
https://github.com/juho-jaakkola/elgg-activity
thanks, from the description that function looks to do what is needed.
dhrup: are you sure that function has remained the same since 2009? what is missing from it in this thread's context?
ah thanks also magic zippy.. ;)
that does indeed look to do the like count part of it.. and the other elements are useful too.
i'll install on my test site and explore it.
ah, i'm seeing a fatal error with it as it is.. and it over-rides the river which negates river_addon which i am using.. though the code could be integrated to river addon without much fuss.
- Previous
- 1
- 2
- Next
You must log in to post replies.