The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Maybe some of you experienced coders can help me. I'm using the Form Hack mod on my forum and have changed the thread title to include one of the variables, $normalanswer1 so that the title reflects the answer. My question how can I add another variable ($radioanswer1) to that ? Heres the code:
$newpost['title'] =& $normalanswer1; I have tried $normalanswer1.$radioanswer1, but that did do it. Quotes dont work either. Signed, PHP newbie |
#2
|
|||
|
|||
![]()
You mean like:
PHP Code:
|
#3
|
|||
|
|||
![]()
Sorry for not give you enough info. I'll try again.
THE CODE IS 1. $foruminfo = verify_id('forum', $formforumid, 0, 1); 2. $forumperms = fetch_permissions($foruminfo[forumid]); 3. $newpost['username'] =& $vbulletin->userinfo['username']; 4. $newpost['message'] =& $formsend; 5. $newpost['title'] =& $normalanswer1; (put $radioanswer1 here) 6. $newpost['parseurl'] = '1'; 7. $newpost['poststarttime'] = $poststarttime; $newpost['posthash'] = $posthash; all I want to do put 2 variables on line 5. The variable has already been defined I just want to display it along with $normalanswer1.....I've tryed just putting next to $normalanswer1 it it does not show up on the output. Make any sense ? |
#4
|
|||
|
|||
![]() PHP Code:
![]() |
#5
|
|||
|
|||
![]()
Thank you very much. That seems to work. I believe I tried earlier and it didn't work, the only difference being the before I had the "&" in there. Can you tell me & does ? Thanks for time btw.
|
#6
|
||||
|
||||
![]() Quote:
$foo = 4 $bar = $foo $bar = 6 print($foo) -> 4 print($bar) -> 6 $foo = 4 $bar = & $foo $bar = 6 print($foo) -> 6 print($bar) -> 6 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|