The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
Could you post the array's structure?
PHP Code:
|
#3
|
|||
|
|||
![]()
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... |
#4
|
||||
|
||||
![]()
Run this in your plugin.
PHP Code:
|
#5
|
|||
|
|||
![]()
Same results. I'm beginning to think they don't want me messing with the order of threads...
|
#6
|
||||
|
||||
![]()
I was asking for the result of print_r().
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|