The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
Change this:
PHP Code:
PHP Code:
![]() |
#12
|
||||
|
||||
![]()
Nice job with that one Xenon.
![]() |
#13
|
||||
|
||||
![]()
thx Matt
![]() |
#14
|
||||
|
||||
![]()
you know i have one i need to optimise too, but i can't figure it out, although was thinking that i'd be easier to do it via the datastore as the query in the loop takes data provided by the loop in order to return a result and it's even got a loop in the loop :-S
it's from the vBFriends hack |
#15
|
||||
|
||||
![]() Quote:
![]() |
#16
|
||||
|
||||
![]()
Ok using similar code, I am trying to show a list of authors, and their respective written articles.
This is the code i am trying to use : PHP Code:
PHP Code:
foreach works with strings in the array too, so how come this is not accepted ? error is "Invalid argument supplied for foreach()". |
#17
|
|||
|
|||
![]()
Hmm didn't analyze the script, but at first glance it looks like
PHP Code:
PHP Code:
|
#18
|
||||
|
||||
![]()
Thanks Marco, but nope, I don't think that would work either.
Because, the $author['author'] is the result of the query on articles by authors, not the authors query. |
#19
|
|||
|
|||
![]()
Yes i know, maybe i am wrong.
PHP Code:
$author_cache['jim'][0] = array('jim','doe','UK',3,......) $author_cache['john'][0] = array('john','smith','germany',4,......) now you ask for the entry "$author_cache['author']" unless there is an author named 'author', this would give no results. Maybe i am looking complete wrong now, but just shoot me ![]() ![]() |
#20
|
||||
|
||||
![]()
yep you're right. You got me thinking ..
I am trying to find a way about it. If i were to perform another : PHP Code:
How could I use this in the foreach statement, any idea ? ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|