![MaxIT](https://xoops.org/uploads/avatars/blank.gif)
perhaps a rc3 hack
yes, you're right
![](https://xoops.org/uploads/smil42e7a3d4c7b9f.gif)
I took a look at RC3's edituser.php but it's a lot different from previous version. I still didn't understand the logic. I bet a dev could give a suggest without spending too much time.
perhaps a rc3 hack
any ideas on how to make email field on edit profile to "read only"?
In the waiting for this useful fix, I've skipped this problem by removing the option to change the email by XOOPS users (RC2-only hack)
rows:xoops_version.php
$$modversion['name ' ] = _ MI_PRODUCTS_NAME;
$$modversion['version ' ] = 1.00;
$$modversion['description ' ] = _ MI_PRODUCTS_DESC;
$modversion['dirname'] = "products";
rows: modinfo.php
// The name of this module
define("_MI_2SECTIONS_NAME", "products");
// To brief description of this module
define("_MI_2SECTIONS_DESC", "To add Products to the Product Catalogue.");
// Tables created by sql file (without prefix!)
$modversion['tables'][0] = "product";
$modversion['tables'][1] = "products";
This seems to fall over for me cos it wont create the new tables for some reason - I could have manually created them in phpmyAdmin but wasnt sure what the field values where...
Do I not also need to edit admin\index.php because it has references in lines to:
function sections() { ////does this need to change?
$result = $xoopsDB->query("select secid, secname, image from ".$xoopsDB->prefix("sections")." order by secname") /////what does this change to?
Will also need to change line to include new module location name:
echo _MD_URLFORTHIS."
sections/index.php?op=viewarticle&artid=$artid\">".XOOPS_URL."/modules/sections/index.php?op=viewarticle&artid=$artid
Variables in \language\english\main.php and modinfo.php are easily changed.
It installed ok and worked to point where tried to add product but it didnt list it - the tables didnt create for xoops_product and xoops_products which is i suppose the problem - so I have what I want now but I want the above to work properly so the Products module is seperate from the sections module so if u have any ideas would appreciate it.
Sorry for the poor descriptions here....I am exhausted and know bugger all about PHP as you can tell i guess![]()