![]() |
Sorting an array of threads
I need to merge two separate arrays of threads to replace the normal stuff on forumhome.
I have an array, $threadbits and an array $global_threadbits, and I need to merge them and display by last posttime descending. PHP Code:
Thanks, Mark |
Could you post the array's structure?
PHP Code:
|
That would be the problem. Attempts to show the vbulletin threadbit array as used in the showforums page doesn't give us the dimensions of the array, only a formatted output.
PHP Code:
So I have spent the better part of the day on this with no results. I have found no way to get the dimensions of the array, since vbulletin is not allowing me to do array_keys either in the product I am developing with or via the page source code. I can do print_r and that's it. So I need to either know what the keys are named in the threadbit array on forumdisplay.php, or I need to find a way to output the keys. ANy help appreciated... |
Run this in your plugin.
PHP Code:
|
Same results. I'm beginning to think they don't want me messing with the order of threads...
|
I was asking for the result of print_r(). :)
|
All times are GMT. The time now is 02:55 PM. |
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:
|