6
That really wasn't at all what I was worried and or talking about. >_>
Regardless!
To anyone who happens to search for this thread, I found an answer! It was very simple. For example, if I wanted to add a new field for every user called "user_level", I would do the following:
mysql_query('ALTER TABLE xoops_users ADD user_level INT;');
return mysql_error();
I shoved that into some arbitrary core function that's accessed on a common page. Accessed the page. And then took the code out again.
Then I placed this snippet inside the "
XoopsUser" function in "
kernel/user.php".
$this->initVar('user_level', XOBJ_DTYPE_INT, DEFAULT_LEVEL, false);
Instant extra column. What I was worried about was that this may create malformed MySQL queries for the insertion of new rows, but that is not the case.
Then the variable can be instantly accessed through "
getVar('user_level')", without any additional preparation. It just defaults to DEFAULT_LEVEL. Surprisingly, no harm was done to the rest of the table.