1
I figured out how to not have to add the mid manually for xdirectory, and alumni modules. Always back up your site before making any changes.
Xdirectory,
In the file xdirectory/index.php
look for this line
$xoopsTpl->assign('lang_url', _MD_SITEURL);
after it add this line
$xoopsTpl->assign('xmid', $xoopsModule->getVar('mid'));
Then in the file xdirectory/templates/xdir_index.html replace the actual number of the module with <{$xmid}> so it looks like below.
value='<{$xmid}>' />
then update module and your done.
_________________________________________________
Alumni Module
Just a little different, go to alumni/index.php look for function index() add this line
$xoopsTpl->assign('xmid', $xoopsModule->getVar('mid'));
before this line
$xoopsTpl->assign('add_from', _ALUM_ADDFROM." ".$xoopsConfig['sitename']);
go to alumni/templates/alumni_index.html
replace the actual number of the module with <{$xmid}> so it looks like below.
value='<{$xmid}>' />
now with this module you need to add $xoopsModule, to the global like below
global $xoopsDB, $xoopsConfig, $xoopsModule, $xoopsUser, $xoopsTpl, $moderated, $myts, $mytree, $souscat, $classm, $nbsouscat, $meta, $newann, $mid;
Update the module, Thats it, This works for me, Hope you find it useful.
John