View Full Version : Those INFERNAL make/dosomethingcode() functions
gengar003
08-19-2003, 01:12 AM
Is there anyway to have the
makeinputcode("blah","blah",$blah);
have a default value? instead of a blank box?
Erwin
08-19-2003, 02:14 AM
With your code, if there is something in $blah it will show up, but it there is nothing it is blank. For it to always have a default value, replace it with this:
makeinputcode("blah","blah","Your value");
So if the person does not change Your value to whatever, then Your value is saved.
Alternative, you can send it as a hidden variable - add this line BEFORE your line of code:
makehiddencode("blah","Your value");
So if $blah is left blank, this will become default. However, you need to put that code BEFORE your line of code.
Hope that points you in the right direction.
gengar003
08-21-2003, 12:02 PM
yes, it helps. ^_^
Also, tho, is there a way to make, instead of an input box, a Textarea input box?
Dean C
08-21-2003, 01:15 PM
maketextareacode(....);
:)
I recommend taking a look at adminfunctions.php :)
It's a far better reference ;)
- miSt
gengar003
08-21-2003, 11:17 PM
oh, there's a file that explains that?
EDIT: ANyway, thank y'all, you really helped, and i'm so proud of what i accomplished (wif ur help, uv course)
Dean C
08-22-2003, 10:04 AM
Well adminfunctions does have some comments in to explain the functions :)
adminfunctions.php contains all those functions used in the admin files, very useful.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.