Displaying most recent thread by user
Hi,
We want to make it easier for our members using our Help forum to relocate their threads more easily - specifically by placing a widget at the top of the forum index that shows them only their own created threads. Preferably, we'd only show them the threads that remain unsolved.
Any pointers on possible approaches? As a learner, I'm assuming I'd start with retrieving the threads, as these will include the information on who started the thread and whether it's been solved or not. That's simple - what I've struggled with it setting up the rest of the code to then restrict it to only display threads originated by the user and exclude those that have been solved.
Thanks in advance!
Hi dasyurid ,
for your requirement "the rest of the code to then restrict it to only display threads originated by the user and exclude those that have been solved."
please look at this query
http://community.lithium.com/restapi/vc/search/messages?solved=false&author_id=25880&q=is_root:true
- solved=false ==> exclude those that have been solved
- author_id=25880 ==> originated by the user 25880 (it is you :) )
- q=is_root:true ==> topics only, i.e. excluding replies.
I hope that this helps.