From: SourceForge.net <no...@so...> - 2005-06-10 22:15:45
|
Feature Requests item #1218534, was opened at 2005-06-11 00:15 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=562405&aid=1218534&group_id=81260 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Submitted By: rck (rck000) Assigned to: Nobody/Anonymous (nobody) Summary: Use Text::moduleLink instead of hardcoded links Initial Comment: (see also my folder hack #2) I know now, why the short url hack of eloy doesn't work for my phpwsbb installation: The URLs are broken! the short url intercepts the moduleLink method of phpwebsite which is responsible for creating inter-module links. example use: $linka=array(); $linka['PHPWSBB_MAN_OP']='view'; $linka['PHPWS_MAN_ITEMS']=$row['lastpost_thread_id']; $link=PHPWS_Text::moduleLink($row['post_label'], 'phpwsbb', $linka); current implementation (excerpt): $ grep module= * Forum.php: $_SESSION['OBJ_fatcat']->saveSelect($this->getLabel(), 'index.php?module=phpwsbb&PHPWSBB_MAN_OP=viewforum&PHPWS_MAN_ITEMS=' . $this->getId(), $this->getId()); Forum.php: $GLOBALS['CNT_phpwsbb']['content'] .= '<a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=list">' . $_SESSION['translate']->it('Back to Forums') . '</a>'; Forum.php: , '<a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=view&PHPWS_MAN_ITEMS=' . $this->_lastpost_topic_id . '#' . $this->_lastpost_post_id . '">' . $this->_lastpost_topic_label . '</a>' ImgLibrary.php: , $module=null, $base_dir='library', $block='CNT_user', $image_type='image' ImgLibrary.php: $pager->setlinkback('index.php?module='.$this->_module ImgLibrary.php: $tags['GALL_EXIT_LNK'] = '[<a href="index.php?module='.$this->_module Manager.php: $tags['ADD_FORUM'] = '<a href="index.php?module=phpwsbb&PHPWSBB_MAN_OP=editforum">'.$addForum.'</a>'; Manager.php: $tags['SETTINGS'] = '<a href="index.php?module=phpwsbb&PHPWSBB_MAN_OP=getsettings">'.$settings.'</a>'; Manager.php: $tags['REMOVEALLMONITORS'] = '<a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=removeallmonitors">' . $_SESSION['translate']->it('Remove all monitors') . '</a>'; M ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=562405&aid=1218534&group_id=81260 |