The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I have a variable, $threadinfo[foousers], which containts a list of users separated by spaces. (ie. $threadinfo[foousers] = "foo1 foo2 foo3").
I'm trying to add code to newreply.php that will check the current user against that list, and if a positive match is found it will return foo(); I've tried using the illegal username code, but I just can't seem to tweak it right. Any help would be appreciated. ![]() |
#2
|
||||
|
||||
![]()
Wouldnt this be a job for good old Array??
|
#3
|
||||
|
||||
![]()
You can only return something if you areb within a function and IIRC there are none in newreply.php anyway this should do what you want:
PHP Code:
|
#4
|
||||
|
||||
![]()
Whats the Explode part about?? (Sorry just never seen that before)
|
#5
|
||||
|
||||
![]()
Explodes all the values using ' ' (space) as the seperator into an array, for example:
PHP Code:
![]() |
#6
|
||||
|
||||
![]()
o k
Yeah i get it ![]() |
#7
|
||||
|
||||
![]()
Woops, forgot about this.. actually, I have it all working using:
PHP Code:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|