Welcome, Guest. Please Login or Register.
May 01, 2025, 02:22:00 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Adding a Row to Settings Table « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Adding a Row to Settings Table  (Read 410 times)
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Adding a Row to Settings Table
« on: April 09, 2002, 03:29:53 PM »
Reply with quote

In the settings table in the database, how do I add a row, well that is the easy part, but how do I access what that row contains?
Logged

Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:Adding a Row to Settings Table
« Reply #1 on: April 09, 2002, 03:54:24 PM »
Reply with quote

 :o

this is a basci thing, you can't write a mod without know this, read the sources, expecially ModSettings.php ;)
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Adding a Row to Settings Table
« Reply #2 on: April 12, 2002, 04:32:51 AM »
Reply with quote

the data from that table is automatically loaded into an array.  you can access it by grabbing it from $modSettings['myNewVariable']

The global array $modSettings is created in Load.php and the function is LoadSettings.

you DON'T have to edit this function - I was just telling you about it for completeness sake  ;)
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Adding a Row to Settings Table
« Reply #3 on: April 12, 2002, 05:04:45 AM »
Reply with quote

Thanks, I found that out earlier.  I posted before thinking which was dumb.
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Adding a Row to Settings Table « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.132 seconds with 21 queries.