From: shane <sh...@lo...> - 2003-07-25 12:18:36
|
Can someone please explain what misc_user_opts is for? it looks like this: mysql> describe misc_user_opts; +-------------+-----------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+-----------------------+------+-----+---------+-------+ | name | varchar(32) | | PRI | | | | optorder | mediumint(5) | YES | | NULL | | | seclev | mediumint(8) unsigned | | | 0 | | | default_val | text | | | | | | vals_regex | text | YES | | NULL | | | short_desc | text | YES | | NULL | | | long_desc | text | YES | | NULL | | | opts_html | text | YES | | NULL | | +-------------+-----------------------+------+-----+---------+-------+ 8 rows in set (0.00 sec) There's a call in Slash::DB::Mysql called getMiscUserOpts it seems to where it against the current user's seclev. I did a quick grep for a corresponding "setMiscUserOpts" - no dice. I found this looking at users.pl, and saw users.pl?op=editmiscopts I threw this in as a quickndirty impatient test: insert into misc_user_opts (name,optorder,seclev,default_val,vals_regex,short_desc,long_desc,opts_html) values ('test',1,1,'no value','','Test data','Data for a test',''); When I hit users.pl it does show up as a radio box. Slashdot seems to use it to control the OSDN Navbar: <URL: http://slashdot.org/users.pl?op=editmiscopts > I guess what I'm wondering is how is this different from users_params and the string_params -- ie: <URL: http://www.lottadot.com/faqster.pl?op=view&faqid=2§ion=software#q7 > Thanks, Shane |