![]() |
Best method of grabbing user's threads, categorised?
I'm working on a little something to manage the content of my site via vBadvanced CMPS, without it being displayed publically on the forum home..
However, for the "Content Editor", I'm struggling to come up with a way to pull a user's threads AND have them categorised per forum basis. I imagine that I'll have to use an array, or a foreach loop of some kind for this - but I'm not that great with either.. Here's my current file: Code:
<?php |
Change "ORDER BY dateline DESC" to "ORDER BY forumid, dateline DESC" in your query.
|
Heh, perhaps I should have explained a little better.. ;)
I'm displaying the output in a select box, but I want to categorise the <option>s with <optgroup>s. So effectively.. [high]BEFORE:[/high] Article 3 Article 2 Article 1 [high]AFTER:[/high] Category A Article 3 Article 1 Category B Article 2 Although you're right, I will need to add that to the query.! :p [high]---EDIT---[/high] I've done it by adding a count for every forumid for now.. It's kinda dirty though, so if anyone has a better way - I'd love to hear it.! ;) |
All times are GMT. The time now is 04:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|