The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Well i don't know what you are trying with that explode, so no clue how to correct it. But i doubt you need it at all, try removing it.
|
#12
|
||||
|
||||
You wanted to separate all the "time values" and use them in select boxes - so just use the variables $day, $month, $year, etc., as defined by list().
Do you know what list() does? |
#13
|
||||
|
||||
I had got it working but the small problem that remained with list() was that it INSERTED the selected value at the top in the list box rather than CHOOSING.
So, after lot of fiddling and referring to profile.php (modifyprofile_birthday template) I reached to this:- PHP Code:
HTML Code:
<option value="1" $dayselected[1]>01</option> <option value="2" $dayselected[2]>02</option> <option value="3" $dayselected[3]>03</option> and so on... Thanks |
#14
|
||||
|
||||
Errr - my code does exactly the same as yours - assigning $year/$hour/etc...
PHP Code:
|
#15
|
||||
|
||||
okk.. I am facing a strange problem now with list boxes.
I am retreiving a score of 1 to 10 in list box. The number 10 is never retrieved/selected. Only happening with 10. I have this in PHP PHP Code:
HTML Code:
<select name="scscore" size="1" id="scscore"> <option value="1" $score[1]>1</option> <option value="2" $score[2]>2</option> <option value="3" $score[3]>3</option> <option value="4" $score[4]>4</option> <option value="5" $score[5]>5</option> <option value="6" $score[6]>6</option> <option value="7" $score[7]>7</option> <option value="8" $score[8]>8</option> <option value="9" $score[9]>9</option> <option value="10" $score[10]>10</option></select> Thanks |
#16
|
||||
|
||||
Have you tried debugging it yourself? Checking every step for the value?
|
#17
|
||||
|
||||
oh yes sir, I did check everything, then only i posted.
strange thing is that the scores 1 - 9 are retrieving fine. Its just happening with number 10. When I use text field, it shows fine. Its just some problem with list box selecting 10. And I just noticed that it is happening with every two digit number like 11, 12 etc. They aren't being selected in the list box. Something with arrays ? |
#18
|
|||
|
|||
Are you sure you have the '10' entry in the array. Arrays are 0-based, so 10 entries wil have the values 0-9.
|
#20
|
||||
|
||||
Can somebody please please look into my problem..... I am not able to figure this out.
I am retrieving a score of 1 to 10 in list box. The number 10 is never retrieved/selected. Only happening with 10. However, 1 to 9 retrieve okay. 10 does show using text field BUT not in list box. I have this in PHP:- PHP Code:
HTML Code:
<select name="scscore" size="1" id="scscore"> <option value="1" $score[1]>1</option> <option value="2" $score[2]>2</option> <option value="3" $score[3]>3</option> <option value="4" $score[4]>4</option> <option value="5" $score[5]>5</option> <option value="6" $score[6]>6</option> <option value="7" $score[7]>7</option> <option value="8" $score[8]>8</option> <option value="9" $score[9]>9</option> <option value="10" $score[10]>10</option></select> Thank you.. any help is much appreciated ! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|