I searched and it didnt help me, how can i find out about waht variables are held in the $CONFIG array? Is it what is held in the config table?
yes
thanks, another question... what does this mean:
define('IN_COPPERMINE', true);
define('FAQ_PHP', true);
Quote from: nanothree on January 07, 2005, 01:07:43 PM
define('IN_COPPERMINE', true);
define('FAQ_PHP', true);
These constants are defined to stop the direct execution of the init.inc.php script.
if i were to put
define('MY_PAGE', true);
would i get an error? i'm trying to create a mod/hack, but im not syre about what needs to be done with bits like that, im finding it a bit confusing,
Also how can i add more options on config.php i looked at the script and it made no sense
define('MY_PAGE', true);
wont give you any error. But you will have to add the above mentioned constants (IN_COPPERMINE) if you want init.inc.php to be used by your mod.
QuoteAlso how can i add more options on config.php i looked at the script and it made no sense
What i suggest is rather changing the config.php file you should add the values in the config table in the database. By doing so you will have the options available to you in $CONFIG array automatically.
define('FAQ_PHP', true);
That is for the benefit of the language files, you don't need to make one up yourself.
You can put print_r($CONFIG); to see what is in $CONFIG.
To add more options to the config page you need to add an entry both into the config table, and into the language file.
thanks alot , ill get working on my mod then :D