Lets hope this is possible. Here is the code.
Now what I am doing is wrapping icms around the multitest forms. So far I have not been able to get this working.Code:<?php // Author: Trabis // URL: http://www.xuups.com // E-Mail: lusopoemas@gmail.com include("../../mainfile.php"); include(XOOPS_ROOT_PATH."/header.php"); $meta_keywords = "gallery"; $meta_description = "gallery"; $pagetitle = "Gallery"; if(isset($xoTheme) && is_object($xoTheme)) { $xoTheme->addMeta( 'meta', 'keywords', $meta_keywords); $xoTheme->addMeta( 'meta', 'description', $meta_description); } else { // Compatibility for old Xoops versions $xoopsTpl->assign('xoops_meta_keywords', $meta_keywords); $xoopsTpl->assign('xoops_meta_description', $meta_description); } $xoopsTpl->assign('xoops_pagetitle', $pagetitle); //this will only work if your theme is using this smarty variables $xoopsTpl->assign( 'xoops_showlblock', 1); //set to 0 to hide left blocks $xoopsTpl->assign( 'xoops_showrblock', 1); //set to 0 to hide right blocks $xoopsTpl->assign( 'xoops_showcblock', 1); //set to 0 to hide center blocks ?> <?php include(XOOPS_ROOT_PATH."/footer.php"); ?>
I was wondering if any of you gurus know if this can be done.
Here is an example of step two in multi that has been wrapped.
Code:<?php if (file_exists("mainfile.php")) { include("mainfile.php"); } elseif(file_exists("../mainfile.php")) { include("../mainfile.php"); } else { include("../../mainfile.php"); } include(XOOPS_ROOT_PATH . "/header.php"); $xoopsTpl->assign('xoops_showrblock', 0); // 1 display right blocks $xoopsTpl->assign('xoops_showlblock', 0); // 1 display right blocks /////// echo "Your code"; <form name="MultiSample" method="post" action="formmail.php"> <input type="hidden" name="this_form" value="$this_form_url" /> <input type="hidden" name="next_form" value="multitest3.htm" /> <input type="hidden" name="bad_template" value="multierror.htm" /> <input type="hidden" name="bad_url" value="fmbadhandler.php" /> <table border="0"> <tr> <td><p>Meat</p></td> <td><p>$meat</p></td> </tr> <tr> <td><p>Dairy</p></td> <td><p>$dairy</p></td> </tr> <tr> <td><p> <select name="produce"> <option value="">Select</option> <option value="apples">Apples</option> <option value="bananas">Bananas</option> <option value="oranges">Oranges</option> </select> </p></td> </td> </tr> <tr> <td><input type="submit" name="multi_go_back" value="< Back" /></td> <td><input type="submit" name="submit" value="Next >" /></td> </tr> </table> </form> /////// include(XOOPS_ROOT_PATH . "/footer.php");


Reply With Quote
Bookmarks