61

The object was assigned by
Quote:
an example of it in use (flexsearch_search.html. grrrr why is [ code ]
'ing things with quotes? n/m. i'll use [ quote ] instead. weird)
Quote:
The error is
Quote:
Quote:
/*
HtmlVals() has all the href-locations, input names, form names, etc. i'm not hard-coding them because the designers (who don't know much about using "extended" urls like ?op=search and forms) will be editing my templates and i don't want any typos
*/
$xoopsTpl->assign_by_ref('html',new HtmlVals());
an example of it in use (flexsearch_search.html. grrrr why is [ code ]
'ing things with quotes? n/m. i'll use [ quote ] instead. weird)
Quote:
The error is
Quote:
62

Crude patch below. unsure if it will degrade the rest of the site
Is there a way to prevent XOOPS module installer from parsing the templates? My templates contain objects and the installer is failing because the object was never passed. I was thinking of an option like $modversion['parseTemplates'] = 0;
btw, it installs fine if i comment out the templates then "update" the module after uncommenting the templates.
Is there a way to prevent XOOPS module installer from parsing the templates? My templates contain objects and the installer is failing because the object was never passed. I was thinking of an option like $modversion['parseTemplates'] = 0;
btw, it installs fine if i comment out the templates then "update" the module after uncommenting the templates.
63

do we really need to specify the index number of arrays in the xoops_version.php file?
ex:
than simply doing
same goes with templates and anything else that requires an index number. not having to type in the index makes life so much easier when developing a new module; we don't have to renumber the array if we organize things in a specific order when adding in a new element.
ex:
$modversion['tables'][1] = 'flexsearch_category';
$modversion['tables'][2] = 'flexsearch_tree';
$modversion['tables'][3] = 'flexsearch_tree_type';
$modversion['tables'][4] = 'flexsearch_text';
$modversion['tables'][5] = 'flexsearch_data';
$modversion['tables'][6] = 'flexsearch_info';
than simply doing
$modversion['tables'][] = 'flexsearch_category';
$modversion['tables'][] = 'flexsearch_tree';
$modversion['tables'][] = 'flexsearch_tree_type';
$modversion['tables'][] = 'flexsearch_text';
$modversion['tables'][] = 'flexsearch_data';
$modversion['tables'][] = 'flexsearch_info';
same goes with templates and anything else that requires an index number. not having to type in the index makes life so much easier when developing a new module; we don't have to renumber the array if we organize things in a specific order when adding in a new element.
64

nope. doesn't work. digging around, i found that main.php & modulesadmin.php round() the version. I'll wait until this is changed (if ever) -- did enough changes to official files as is

66

afaik, the xoopsversion.php file takes in a float number to show on the screen. i was hoping that we can turn it into a string so we can have major.minor.build (eg: v2.5.1
) for our modules.

68

fwiw, it was to make a "backup" object if the user decides to undo a change in a question, form info (title, inst, start/end, etc), vital (emp id, telco, etc). ex: the user added a bunch of new questions to question1 but decided to cancel all changes. the form would revert to the last "good" form object.
69

*ducks for cover*
It's a form wizard that i'm porting to XOOPS but, unfortunately, it's for the company i work for. i doubt these guys would let me make it open source :(
It's a form wizard that i'm porting to XOOPS but, unfortunately, it's for the company i work for. i doubt these guys would let me make it open source :(
70

I originally posted the help question in the dev forums but ended up finding the fix.
find file: kernel/session.php line ~117
add the line after open brace
stripslashes() is NOT need in the reader
find file: kernel/session.php line ~117
function write($sess_id, $sess_data)
{
add the line after open brace
function write($sess_id, $sess_data)
{
$sess_data = addslashes($sess_data);
stripslashes() is NOT need in the reader