The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I want to use this in a hack i'm making
PHP Code:
$_POST['var[setting][forumid]']; Doesn't work... I see alot of people useing variables with double brackets like that, and I can't seem to understand it yet. Is there any time of tutorial like that? |
#2
|
||||
|
||||
![]()
Those are arrays
![]() You can access it as $_POST['var']['setting']['forumid'] (and of course it should be run through clean_array_gpc). To get a better understanding, print_r($_POST) might help. |
#3
|
||||
|
||||
![]() Quote:
![]() |
#4
|
|||
|
|||
![]()
Perfect!
![]() I have a hack that will have its own custom settings. Over 50 right now... I want to make it so when the user presses the save button, it updates everything quickly... I don't want to have to have to add 50+ clean_array_gpc's... If i had something like this for example: PHP Code:
A foreach(); maybe? |
#5
|
|||
|
|||
![]()
clean_array_gpc will take an array, you will still need to input every variable name, but its worth it.
A foreach wont work for clean_array_gpc |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|