How many times were you fighting something and you found out that the problem is not what you was fighting
I found the solution and I realy want to save sombody's time (I was tring to solve it for 3 long days !!!!
it turns out that Mr. Kiovi simply dont like fields name to be "description"
IE - don't try to use it on a field like
<textarea name="description">
so the solution in the case of the xdirectory or the mxdirectory is like this:
in the templates dir open xphns_modlink.html and replace the table row that includes the textarea to:
<tr>
<td align="right" valign="top">
<div align="left"><b><{$lang_description}></b></div>
</td>
<td>
<{$xoops_codes}></td>
</tr>
then open modlink.php in the root of xdir/mxdir
change:
// Check if Description exist
if ($HTTP_POST_VARS['description']=="") {
$eh->show("1008");
}
to:
// Check if Description exist
if ($HTTP_POST_VARS['TZZdescription']=="") {
$eh->show("1008");
}
and change:
$description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]);
to:
$description = $myts->makeTareaData4Save($HTTP_POST_VARS["TZZdescription"]);
then look for this:
$xoopsOption['template_main'] = 'xphns_modlink.html';
include XOOPS_ROOT_PATH."/header.php";
and right after it enter a new line to call XOOPS form (which turnes to kiovi's site-wide hack)
// Tzvook hack 4 kiovi //
include XOOPS_ROOT_PATH . "/class/xoopsformloader.php";
// // Tzvook hack 4 kiovi //
and the last thing ... look for this lines
$myts->htmlSpecialChars($description), 'adminlink' => $adminlink, 'hits' => $hits, 'votes' => $votestring));
and right after it put this:
// Tzvook hack 4 kiovi site-wide hack //
$TZdescription = new XoopsFormDhtmlTextArea(_MD_DESCRIPTIONC, 'TZZdescription', $description, 10, 60,'');
$xoopsTpl->assign('xoops_codes', $TZdescription->render());
// end Tzvook hack 4 kiovi site-wide hack //
That's it ... now users can edit a record (suggested editing) with kiovi's help
it can of course be iplemented to sending a record too, but I'm lasy to do what I don't need to ....
foooo ........... got me tired, and my kids forgot who I am .... hate those things
John
10x for tring to solve it with me, your last PM made me give it a few more trys