2007/9/5 0:04
mrphilong
Quite a regular
Posts: 351
Since: 2006/7/14
2007/9/5 0:10
pod
Posts: 301
Since: 2003/4/19
<{php}> global $xoopsModule , $xoopsUser ; $xoops_url = XOOPS_URL ; $submenu_str = "" ; $mainmenu_str = " $xoops_url/'>HOME | $xoops_url/modules/news/'>NEWS | $xoops_url/modules/mydownloads/'>DOWNLOADS | $xoops_url/modules/xhnewbb/'>FORUMS | $xoops_url/modules/piCal/'>piCal | $xoops_url/modules/myalbum/'>myAlbum-P | " ; if( isset( $xoopsModule ) && is_object( $xoopsModule ) ) { $dirname = $xoopsModule->getVar( 'dirname' ) ; $mainmenu_str = str_replace( "/modules/$dirname/'" , "/modules/$dirname/' style='background: #C0CCD9;'" , $mainmenu_str ) ; $sublinks =& $xoopsModule->subLink(); if( count( $sublinks ) > 0 ) { $submenu_str .= " " ; foreach( $sublinks as $sublink ) { $submenu_str .= "$xoops_url/modules/$dirname/{$sublink['url']}'>{$sublink['name']} | "; } $submenu_str .= " " ; } } else { $mainmenu_str = str_replace( "'>HOME" , "' style='background: #C0CCD9;'>HOME" , $mainmenu_str ) ; if( $xoopsUser ) { $pm_handler =& xoops_gethandler('privmessage'); $criteria = new CriteriaCompo(new Criteria('read_msg', 0)); $criteria->add(new Criteria('to_userid', $xoopsUser->getVar('uid'))); $new_messages = $pm_handler->getCount($criteria); if( $xoopsUser->isadmin() ) $admin_link = "$xoops_url/admin.php' target='_blank'>Admin" ; if( $new_messages > 0 ) { $pm_str = " ($new_messages)" ; $pm_class = "class='highlight'" ; } else { $pm_str = '' ; $pm_class = '' ; } $submenu_str .= " $xoops_url/user.php'>View Account | $xoops_url/edituser.php'>Edit Account | $xoops_url/notifications.php'>Notifications | $xoops_url/viewpmsg.php' $pm_class>Inbox$pm_str | $admin_link " ; } } echo $mainmenu_str ; echo $submenu_str ; <{/php}>
Advanced Search
419 user(s) are online (304 user(s) are browsing Support Forums)
Members: 0
Guests: 419