vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Those INFERNAL make/dosomethingcode() functions (https://vborg.vbsupport.ru/showthread.php?t=56316)

gengar003 08-19-2003 01:12 AM

Those INFERNAL make/dosomethingcode() functions
 
Is there anyway to have the

PHP Code:

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:

PHP Code:

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:

PHP 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 :)

N9ne 08-22-2003 11:40 AM

adminfunctions.php contains all those functions used in the admin files, very useful.


All times are GMT. The time now is 11:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01271 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete