############## how to pull up the logged in user's name //php $oSrvSec = &App::getModuleService('Account', 'Security'); $aUser = $oSrvSec->getCurrentUserLogin(); $oTpl = &App::getTemplate(); $oTpl->assign("aUser", "$aUser"); // html $suser = $this->get_template_vars('aUser'); ############# how to get user type after getting the username /html $sqlname = "SELECT * FROM `user` WHERE `user` = '$suser' LIMIT 1"; $resultname = mysql_query($sqlname); $rowname = mysql_fetch_array($resultname); $userType = $rowname[type]; /html find if($userType == 0){ //admin } if($userType == 3){ //member } ############# how to parse bb code // php function smarty_modifier_process_code($sStr) { App::loadClass('Text'); $oTxt = &App::newObject('Text'); return $oTxt->parseText($sStr); } //html $sinfoc = smarty_modifier_process_code($sinfoc); ############ how to add new menu items Open /site/public/_pre.php Find: $aMenuPerms = array( Below this (depending on what order you want it displayed), add: 'public.test' => array('title' => "TEST"), ############ how to add custom page titles Open the file: \include\modules\Site\include\module.sett.php In there add the following: $_CONF['Mod_Site.page_title']['test'] = '^public\.test'; Open the file: \include\modules\Site\messages\mess.en.php In there add this: $_MSG['Mod_Site.page_title.test'] = 'This is a test title'; ######### how to link pages {url link='public.arcade'} ######### how to include a page {include file='admin/news/header.html'} ######## how to add new pages Open /include/settings/common.sett.php Find: $_CONF['url.reserved_names'] = array('admin','rss','public', 'account', 'blog', 'event', 'forum', 'gallery', 'groups', 'listing', 'poll', 'popup', 'quiz', 'user', 'alert', 'archive', 'block-user', 'browse', 'browsers', 'check-im', 'contact-us', 'content', 'denied', 'forgotpass', 'forgotpass-verify', 'im', 'login', 'logout', 'randimage', 'signup', 'subscribe', 'top-user', 'verify', 'under-construction'); Before this: ); Add: ,'name' ######## how to add images {img src="`$sStylePath``$sLogoFile`" alt=""} ######## how to assign variables $this->assign("","$"); ######### GET php $oReq = &App::getRequest(); $get = mysql_real_escape_string($oReq->get('')); $oTpl = &App::getTemplate(); $oTpl->assign("get", "$get"); html $get = $this->get_template_vars('get'); ########## link with vars "; $this->assign("","$"); {/php} {url link=} {php} echo" {url link=public.user name=$aFeatMember.user} $oReq = &App::getRequest(); $get = mysql_real_escape_string($oReq->get('')); $get = mysql_real_escape_string($oReq->get('')); $get = mysql_real_escape_string($oReq->get('')); $oTpl->assign("get", "$get"); $oTpl->assign("get", "$get"); $oTpl->assign("get", "$get"); Shutting people up: