groups order by latest activity

soaringeagle
@soaringeagle
11 years ago
3,304 posts
wether i use _created desc or _updated desc in order by in groups index template the order does not change but $_param shows the order_by changing
just the list doesnt reflect the re-ordering

hmm created my own groups list on a groups (not group) page
ok completed diagnostics _updated was only triggered when i modified and marked the group featured (and modify and dsave would trigger update time change)

like some modules have $item.blog_post_updated (not sure thats the actual code) the groups need a field that keeps track of any activity wether posting a comment, a join, a discussions added or replied to a page is added..etc as it is now created and updated give the exact same listing unless you edit the group
but the activity within the group has no affect on ordering no matter how its coded (yes i tried $_items._updated

is there a complex way of doing it like $_items._comments_profile_joins_discussion_added_discussion_comment_updated or some way of stringing them all together into 1 order_by statement that considers the updated times of everything

im thinking something needs to be added to the group module to alow this right?



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 07/09/16 09:21:02AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
while were at it can we get a groups rating too...and profiles rating


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
michael
@michael
11 years ago
7,793 posts
soaringeagle:...wether i use _created desc or _updated desc in order by .....

Try using numerical_asc numerical_desc

The difference is explained here:
http://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list#c1850
Quote:
If you order numerical items as standard asc you will get this order:
1
11
113
2
3
34
4
5
.....

updated by @michael: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
i thought updated and created worked as is with desc but ill try it


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
no change
like i said updated only takes into account when u click modify group then ssave nothing you do within the group affects updated listings


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
and while the group detail page has a
{disable_profile_sidebar}
there needs to be something that disables the profile header as well
profile menu up (if it has to include the div above where i placed my ad code so be it ill add it another way, but if it can disable everrything up to the..um 1 sec...

well theres a div class container
unfortunately the conttainer contains all including the sidebar
but that containers what i have my profile cover photo attached to wich if everything from that container div to below the profile menu could be hiden odviosly u cant hide the container without hiding everything on the page but maybe u need a header container div that i can add my profilecover class and zindex id to so the header can be disabled like the sidebar


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM
soaringeagle
@soaringeagle
11 years ago
3,304 posts
the disable the sidebars in php isnt it and just called from the template
i was looking trying to find how the disablkingthe sidebar was done so i could write my own disable profile header code and just add the tag in where the disable sidebar was
i just couldnt find where the code was i assumeed the sidebar "inclide' nwas wreapped in an if disable sidebar ..do nothing else include sidebar tpl


and now that i think of it my ads in header.tpl so if profileheader tpl was a conditional include .... 5 am i think i got the solution if i can just find where to look ..i do believe i can have a group improvement for u tomorow


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 12/29/14 09:23:54AM

Tags