sometimes, code like "modules/"._MODULE_DIR_NAME is hard coded in php or template files, this might be presented as link in frontend, and it will take you to the originall links again.
<?php if (!defined('XOOPS_ROOT_PATH')) { die("XOOPS root path not defined"); } include_once(XOOPS_ROOT_PATH.'/include/xoopscodes.php'); class XoopsFormSimpleTextArea extends XoopsFormElement { /** * number of columns * @var int * @access private */ var $_cols; /** * number of rows * @var int * @access private */ var $_rows; /** * initial content * @var string * @access private */ var $_value; /** * Constuctor * * @param string $caption caption * @param string $name name * @param string $value initial content * @param int $rows number of rows * @param int $cols number of columns */ function XoopsFormSimpleTextArea($caption, $name, $value="", $rows=5, $cols=50, $id = ""){ $this->setCaption($caption); $this->setName($name); $this->_rows = intval($rows); $this->_cols = intval($cols); $this->setValue($value); $this->setId($id); } /** * get number of rows * * @return int */ function getRows(){ return $this->_rows; } /** * Get number of columns * * @return int */ function getCols(){ return $this->_cols; } /** * Get initial content * * @return string */ function getValue(){ return $this->_value; } /** * Set initial content * * @param $value string */ function setValue($value){ $this->_value = $value; } /** * prepare HTML for output * * @return sting HTML */ function render(){ return "<textarea name='".$this->getName()."' id='".$this->getId()."' rows='".$this->getRows()."' cols='".$this->getCols()."'".$this->getExtra().">".$this->getValue()."</textarea>".get_xoopsSmilies($this->getId()); } } ?>
Dona_Brasil wrote:
Cool, how did you rewrite the CBB url's??