").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var dd=a.document.documentElement;function ed(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(typeof e.getBoundingClientRect!==L&&(d=e.getBoundingClientRect()),c=ed(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||dd;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||dd})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return W(this,function(a,d,e){var f=ed(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Mb(l.pixelPosition,function(a,c){return c?(c=Kb(a,b),Ib.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return W(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var fd=a.jQuery,gd=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=gd),b&&a.jQuery===n&&(a.jQuery=fd),n},typeof b===L&&(a.jQuery=a.$=n),n});
diff --git a/modules/nickpage/nickpage.output.php b/modules/nickpage/nickpage.output.php
index 7e0baf6..66e37e6 100644
--- a/modules/nickpage/nickpage.output.php
+++ b/modules/nickpage/nickpage.output.php
@@ -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']='
!['.$data['s'].']('.$path.'/themes/austria/images/'.$data['s'].'.png)
';
+ $user['roomlock']='
!['.$data['s'].']('.$path.'/themes/funchat/images/'.$data['s'].'.png)
';
}
//$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(){
diff --git a/modules/nickpage/templates/default/nickpage.tpl b/modules/nickpage/templates/default/nickpage.tpl
index fe85b03..1b4b40b 100644
--- a/modules/nickpage/templates/default/nickpage.tpl
+++ b/modules/nickpage/templates/default/nickpage.tpl
@@ -1,108 +1,66 @@
+
+
+
+
+
-
{$user.sitetitle} - FunCh.at - Die Österreichische Chatcommunity
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
{$user.sitetitle}
-
-
-
-
-
-
-
Über {$user.username} 
-
- {$user.fid2}
-
-
-
Über mich:
- {if $user.birthdayprivacy != none}
-
Alter: {$user.age}
- {/if}
-
- - PN an {$user.username}
- - Forenposts: {$forum.postnum}
- - {if $user.chatright!=""}{$user.username} ist ein {$user.chatright}
{/if}
- {if $user.room!=""}{$user.username} befindet sich im Raum {$user.room}{$user.roomlock}{/if}
- - Chatzeit: {$user.chattime}
- {if $user.friendlink!=""}- {$user.friendlink}
{/if}
-
-
- {if $user.favourits!=''}
-
-
Meine Links
-
-
- {/if}
-
-
- {if $friends!=""}
-
-
+
+
+
+
-
Freunde
- {$friends}
-
-
- {/if}
+
+
+
+
-
-{if $gb!=""}
-
- {$pagination}
-{foreach from=$gb item=g}
-
-{/foreach}
-
+
+
+
+
+
+ {$content}
-
Pagination
+
-
-
-
-
-{else}
-
-
-
Keine Einträge. Schreib doch einfach einen. ;-)
-
-
-{/if}
-{if $loggedin==true}
-
Gästebucheintrag schreiben:
-
-{/if}
-
-
-
+
+
+ {$footer}
+
+
+
diff --git a/modules/nickpage/templates/default/nickpage_content.tpl b/modules/nickpage/templates/default/nickpage_content.tpl
index 1b4b40b..fe85b03 100644
--- a/modules/nickpage/templates/default/nickpage_content.tpl
+++ b/modules/nickpage/templates/default/nickpage_content.tpl
@@ -1,66 +1,108 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
{$user.sitetitle} - FunCh.at - Die Österreichische Chatcommunity
+
-
-
-
-
+
+
+
+
+
{$user.sitetitle}
+
+
+
+
+
+
+
Über {$user.username} 
+
+ {$user.fid2}
+
+
+
Über mich:
+ {if $user.birthdayprivacy != none}
+
Alter: {$user.age}
+ {/if}
+
+ - PN an {$user.username}
+ - Forenposts: {$forum.postnum}
+ - {if $user.chatright!=""}{$user.username} ist ein {$user.chatright}
{/if}
+ {if $user.room!=""}{$user.username} befindet sich im Raum {$user.room}{$user.roomlock}{/if}
+ - Chatzeit: {$user.chattime}
+ {if $user.friendlink!=""}- {$user.friendlink}
{/if}
+
+
+ {if $user.favourits!=''}
+
+
Meine Links
+
+
+ {/if}
+
+
+ {if $friends!=""}
+
+
-
-
-
-
+
Freunde
+ {$friends}
+
+
+ {/if}
-
-
-
-
-
- {$content}
+
+{if $gb!=""}
+
+ {$pagination}
+{foreach from=$gb item=g}
+
+{/foreach}
+
-
+
Pagination
-
-
- {$footer}
-
-
-
+
+
+
+
+{else}
+
+
+
Keine Einträge. Schreib doch einfach einen. ;-)
+
+
+{/if}
+{if $loggedin==true}
+
Gästebucheintrag schreiben:
+
+{/if}
+
+
+
diff --git a/modules/nickpage/templates/funchat/edit_nickpage.tpl b/modules/nickpage/templates/funchat/edit_nickpage.tpl
new file mode 100644
index 0000000..7941e72
--- /dev/null
+++ b/modules/nickpage/templates/funchat/edit_nickpage.tpl
@@ -0,0 +1,32 @@
+
Nickpageverwaltung
+
+{$emsg}
+
+
diff --git a/modules/nickpage/templates/funchat/nickpage.tpl b/modules/nickpage/templates/funchat/nickpage.tpl
new file mode 100644
index 0000000..62bd095
--- /dev/null
+++ b/modules/nickpage/templates/funchat/nickpage.tpl
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+{$meta}
+
+
+
+
+
+
+
+
+
+
+
+ {$content}
+
+ {$footer}
+
+
+
diff --git a/modules/nickpage/templates/funchat/nickpage_content.tpl b/modules/nickpage/templates/funchat/nickpage_content.tpl
new file mode 100644
index 0000000..28c7466
--- /dev/null
+++ b/modules/nickpage/templates/funchat/nickpage_content.tpl
@@ -0,0 +1,112 @@
+
FunCh.at - Nickpage von {$user.sitetitle}
+
+
+
+
+
+
+
+
+
+
+
+
{$user.sitetitle}
+
+
+
+
+
+
+
+
Über {$user.username} 
+
{$user.fid2}

+
+
+
+
+
+
Über mich:
+
+ {if $user.birthdayprivacy != none}
+ - Alter: {$user.age}
+ {/if}
+ - PN an {$user.username}
+ - Forenposts: {$forum.postnum}
+ - {if $user.chatright!=""}{$user.username} ist ein {$user.chatright}
{/if}
+ {if $user.room!=""}{$user.username} befindet sich im Raum {$user.room}{$user.roomlock}{/if}
+ - Chatzeit: {$user.chattime}
+ {if $user.friendlink!=""}- {$user.friendlink}
{/if}
+
+
+ {if $user.favourits!=''}
+
+ {/if}
+ {if $friends!=""}
+
+
Freunde
+ {$friends}
+
+ {/if}
+
+
+
+
+
+ {if $loggedin==true}
+
Gästebucheintrag schreiben:
+
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
Für den Inhalt ist ausschließlich der User selbst verantwortlich. Diese Nickpage ist Teil der FunCh.at Community.
+
+
+
+
{if $deltext==1} + [Eintrag löschen] + + {/if}{$g.text}
+