More and more cnages to make the site functional
This commit is contained in:
parent
6c44a79a72
commit
16ef8fdf6c
17 changed files with 493 additions and 199 deletions
|
@ -134,10 +134,10 @@ class nickpage extends module{
|
|||
$user['np_picture']='nopic.png';
|
||||
}
|
||||
$user['text']=$parser->parse($user['np_text']);
|
||||
//$data=get_user_room($user['username']);
|
||||
$data=get_user_room($user['username']);
|
||||
if($data){
|
||||
$user['room']=$data['r'];
|
||||
$user['roomlock']='<img src="'.$path.'/themes/austria/images/'.$data['s'].'.png" alt="'.$data['s'].'" />';
|
||||
$user['roomlock']='<img src="'.$path.'/themes/funchat/images/'.$data['s'].'.png" alt="'.$data['s'].'" />';
|
||||
}
|
||||
//$forum['buddylist'];
|
||||
if($session->userdata['uid']!=""){
|
||||
|
@ -180,7 +180,7 @@ class nickpage extends module{
|
|||
$db->free_result($result);
|
||||
}
|
||||
}
|
||||
|
||||
$this->tpl->assign("themepath",'/themes/'.$config['theme']);
|
||||
$this->tpl->assign('friends',$friendl);
|
||||
$this->tpl->assign('user',$user);
|
||||
$this->tpl->assign('forum',$forum);
|
||||
|
@ -188,9 +188,21 @@ class nickpage extends module{
|
|||
$this->tpl->assign('domain',$config['domain']);
|
||||
$this->tpl->assign('gb',$gb);
|
||||
$this->tpl->assign('pagination',$pagination);
|
||||
$content=$this->tpl->fetch('nickpage.tpl');
|
||||
$content=$this->tpl->fetch('nickpage_content.tpl');
|
||||
}
|
||||
$core->make_page($content,TRUE,$config['fullpath'].'/modules/nickpage/templates/default/nickpage_content.tpl',NULL,NULL);
|
||||
$themedir = $this->getTemplateDir();
|
||||
$core->make_page($content,TRUE,$themedir.'/nickpage.tpl',NULL,NULL);
|
||||
}
|
||||
|
||||
function getTemplateDir(){
|
||||
global $config;
|
||||
$root = $_SERVER['DOCUMENT_ROOT'] . $config['path'];
|
||||
if(isset($config['theme']) && $config['theme']!='' && is_dir($root . '/modules/nickpage/templates/'.$config['theme'])){
|
||||
$themedir = $root . '/modules/nickpage/templates/'.$config['theme'];
|
||||
}else{
|
||||
$themedir = $root . '/modules/nickpage/templates/default';
|
||||
}
|
||||
return $themedir;
|
||||
}
|
||||
|
||||
function output_edit(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue