Initial commit
9959
modules/nickpage/12_recensio_2012_01_12_04_44.sql
Normal file
BIN
modules/nickpage/images/body_background.gif
Normal file
After Width: | Height: | Size: 44 B |
BIN
modules/nickpage/images/f.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
modules/nickpage/images/m.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
modules/nickpage/images/nickpage.jpg
Normal file
After Width: | Height: | Size: 71 KiB |
BIN
modules/nickpage/images/u.png
Normal file
After Width: | Height: | Size: 263 B |
BIN
modules/nickpage/js/images/themes/business_as_usual/Thumbs.db
Normal file
BIN
modules/nickpage/js/images/themes/business_as_usual/back.gif
Normal file
After Width: | Height: | Size: 540 B |
BIN
modules/nickpage/js/images/themes/business_as_usual/back_bg.gif
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
modules/nickpage/js/images/themes/business_as_usual/next.gif
Normal file
After Width: | Height: | Size: 537 B |
BIN
modules/nickpage/js/images/themes/business_as_usual/next_bg.gif
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
modules/nickpage/js/images/themes/business_as_usual/photo.jpg
Normal file
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 155 B |
BIN
modules/nickpage/js/images/themes/candy_coated/Thumbs.db
Normal file
BIN
modules/nickpage/js/images/themes/candy_coated/next.gif
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
modules/nickpage/js/images/themes/candy_coated/next_bg.gif
Normal file
After Width: | Height: | Size: 247 B |
BIN
modules/nickpage/js/images/themes/candy_coated/photo.jpg
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
modules/nickpage/js/images/themes/candy_coated/prev.gif
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
modules/nickpage/js/images/themes/candy_coated/prev_bg.gif
Normal file
After Width: | Height: | Size: 261 B |
11
modules/nickpage/js/jquery-1.2.6.pack.js
Normal file
200
modules/nickpage/js/jquery.accessible-news-slider.css
Normal file
|
@ -0,0 +1,200 @@
|
|||
/*
|
||||
Accessible News Slider : Plugin Specific
|
||||
-----------------------------------------------------------------------------------------*/
|
||||
|
||||
.accessible_news_slider img {
|
||||
border: 0;
|
||||
}
|
||||
.accessible_news_slider li,
|
||||
.accessible_news_slider p {
|
||||
font-family: "Arial", "Verdana", sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: .8em;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.accessible_news_slider li p {
|
||||
font-size: 1em;
|
||||
}
|
||||
.accessible_news_slider {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.accessible_news_slider .javascript_css {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
padding: 20px;
|
||||
background: #fffcd3;
|
||||
}
|
||||
.accessible_news_slider .skip_to_news {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -9999px;
|
||||
}
|
||||
.accessible_news_slider .back {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
.accessible_news_slider .back a,
|
||||
.accessible_news_slider .next a {
|
||||
display: none;
|
||||
outline: none; /* This is optional, and is arguably less accessible. */
|
||||
}
|
||||
.accessible_news_slider .next {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
.accessible_news_slider ul {
|
||||
position: relative;
|
||||
left: 0;
|
||||
width: auto;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
}
|
||||
.accessible_news_slider li {
|
||||
float: left;
|
||||
display: inline;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
/*
|
||||
Accessible News Slider : Plugin Specific : Theme [ Candy Coated ]
|
||||
-----------------------------------------------------------------------------------------*/
|
||||
|
||||
.candy_coated {
|
||||
width: 600px;
|
||||
border-bottom: 2px solid #ccc;
|
||||
margin: 0 0 32px 60px;
|
||||
}
|
||||
.candy_coated a {
|
||||
color: #ff3300;
|
||||
}
|
||||
.candy_coated .back {
|
||||
width: 61px;
|
||||
height: 58px;
|
||||
background: url(images/themes/candy_coated/prev_bg.gif) no-repeat;
|
||||
}
|
||||
.candy_coated .next {
|
||||
width: 61px;
|
||||
height: 58px;
|
||||
left: 540px;
|
||||
background: url(images/themes/candy_coated/next_bg.gif) no-repeat;
|
||||
}
|
||||
.candy_coated .next a {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
width: 150px;
|
||||
height: 40px;
|
||||
line-height: 30px;
|
||||
background: url(images/themes/candy_coated/next.gif) no-repeat top right;
|
||||
}
|
||||
.candy_coated .back a {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
width: 150px;
|
||||
height: 40px;
|
||||
line-height: 30px;
|
||||
text-align: right;
|
||||
background: url(images/themes/candy_coated/prev.gif) no-repeat;
|
||||
}
|
||||
.candy_coated .view_all {
|
||||
border-top: 2px solid #ccc;
|
||||
margin: 58px 0 0 0;
|
||||
padding: 10px;
|
||||
background: #eee;
|
||||
text-align: center;
|
||||
}
|
||||
.candy_coated ul {
|
||||
border-bottom: 2px solid #eee;
|
||||
}
|
||||
.candy_coated li {
|
||||
padding: 15px 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.candy_coated li img {
|
||||
float: left;
|
||||
display: inline;
|
||||
}
|
||||
.candy_coated li p {
|
||||
float: left;
|
||||
display: inline;
|
||||
margin: 0 0 0 10px;
|
||||
width: 190px;
|
||||
}
|
||||
|
||||
/*
|
||||
Accessible News Slider : Plugin Specific : Theme [ Business as Usual ]
|
||||
-----------------------------------------------------------------------------------------*/
|
||||
|
||||
.business_as_usual {
|
||||
margin:5px;
|
||||
width: 695px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
.business_as_usual a {
|
||||
color: #363636;
|
||||
}
|
||||
.business_as_usual .back {
|
||||
width: 360px;
|
||||
height: 23px;
|
||||
left: 0;
|
||||
background: url(images/themes/business_as_usual/back_bg.gif) no-repeat top right;
|
||||
}
|
||||
.business_as_usual .back a {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 130px;
|
||||
width: 150px;
|
||||
height: 23px;
|
||||
line-height: 23px;
|
||||
background: url(images/themes/business_as_usual/back.gif) no-repeat top right;
|
||||
}
|
||||
.business_as_usual .next {
|
||||
width: 361px;
|
||||
height: 23px;
|
||||
right: 0;
|
||||
background: url(images/themes/business_as_usual/next_bg.gif) no-repeat top left;
|
||||
}
|
||||
.business_as_usual .next a {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 130px;
|
||||
width: 150px;
|
||||
height: 23px;
|
||||
line-height: 23px;
|
||||
text-align: right;
|
||||
background: url(images/themes/business_as_usual/next.gif) no-repeat top left;
|
||||
}
|
||||
.business_as_usual .view_all {
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
margin: 35px 0 0 0;
|
||||
padding: 8px;
|
||||
background: url(images/themes/business_as_usual/view_all_bg.gif) repeat-x bottom left;
|
||||
text-align: center;
|
||||
}
|
||||
.business_as_usual li {
|
||||
padding: 15px 0;
|
||||
overflow: hidden;
|
||||
width: 231px;
|
||||
}
|
||||
.business_as_usual li img {
|
||||
float: left;
|
||||
display: inline;
|
||||
}
|
||||
.business_as_usual li p {
|
||||
float: left;
|
||||
display: inline;
|
||||
margin: 0 0 0 10px;
|
||||
width: 123px;
|
||||
height: 120px;
|
||||
}
|
99
modules/nickpage/js/jquery.accessible-news-slider.js
Normal file
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
|
||||
----------------------------------------------------------------------------------------------------
|
||||
Accessible News Slider
|
||||
----------------------------------------------------------------------------------------------------
|
||||
|
||||
Author:
|
||||
Brian Reindel
|
||||
|
||||
Author URL:
|
||||
http://blog.reindel.com
|
||||
|
||||
License:
|
||||
Unrestricted. This script is free for both personal and commercial use.
|
||||
|
||||
*/
|
||||
|
||||
jQuery.fn.accessNews = function( settings ) {
|
||||
settings = jQuery.extend({
|
||||
headline : "Top Stories",
|
||||
speed : "normal",
|
||||
slideBy : 2
|
||||
}, settings);
|
||||
return this.each(function() {
|
||||
jQuery.fn.accessNews.run( jQuery( this ), settings );
|
||||
});
|
||||
};
|
||||
jQuery.fn.accessNews.run = function( $this, settings ) {
|
||||
jQuery( ".javascript_css", $this ).css( "display", "none" );
|
||||
var ul = jQuery( "ul:eq(0)", $this );
|
||||
var li = ul.children();
|
||||
if ( li.length > settings.slideBy ) {
|
||||
var $next = jQuery( ".next > a", $this );
|
||||
var $back = jQuery( ".back > a", $this );
|
||||
var liWidth = jQuery( li[0] ).width();
|
||||
var animating = false;
|
||||
ul.css( "width", ( li.length * liWidth ) );
|
||||
$next.click(function() {
|
||||
if ( !animating ) {
|
||||
animating = true;
|
||||
offsetLeft = parseInt( ul.css( "left" ) ) - ( liWidth * settings.slideBy );
|
||||
if ( offsetLeft + ul.width() > 0 ) {
|
||||
$back.css( "display", "block" );
|
||||
ul.animate({
|
||||
left: offsetLeft
|
||||
}, settings.speed, function() {
|
||||
if ( parseInt( ul.css( "left" ) ) + ul.width() <= liWidth * settings.slideBy ) {
|
||||
$next.css( "display", "none" );
|
||||
}
|
||||
animating = false;
|
||||
});
|
||||
} else {
|
||||
animating = false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
$back.click(function() {
|
||||
if ( !animating ) {
|
||||
animating = true;
|
||||
offsetRight = parseInt( ul.css( "left" ) ) + ( liWidth * settings.slideBy );
|
||||
if ( offsetRight + ul.width() <= ul.width() ) {
|
||||
$next.css( "display", "block" );
|
||||
ul.animate({
|
||||
left: offsetRight
|
||||
}, settings.speed, function() {
|
||||
if ( parseInt( ul.css( "left" ) ) == 0 ) {
|
||||
$back.css( "display", "none" );
|
||||
}
|
||||
animating = false;
|
||||
});
|
||||
} else {
|
||||
animating = false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
$next.css( "display", "block" )
|
||||
.parent().after( [ "<p class=\"view_all\">", settings.headline, " - ", li.length, " Gesamt ( <a href=\"#\">zeige alle</a> )</p>" ].join( "" ) );
|
||||
jQuery( ".view_all > a, .skip_to_news > a", $this ).click(function() {
|
||||
var skip_to_news = ( jQuery( this ).html() == "Skip to News" );
|
||||
if ( jQuery( this ).html() == "zeige alle" || skip_to_news ) {
|
||||
ul.css( "width", "auto" ).css( "left", "0" );
|
||||
$next.css( "display", "none" );
|
||||
$back.css( "display", "none" );
|
||||
if ( !skip_to_news ) {
|
||||
jQuery( this ).html( "zeige weniger" );
|
||||
}
|
||||
} else {
|
||||
if ( !skip_to_news ) {
|
||||
jQuery( this ).html( "zeige alle" );
|
||||
}
|
||||
ul.css( "width", ( li.length * liWidth ) );
|
||||
$next.css( "display", "block" );
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
};
|
61
modules/nickpage/nickpage.module.php
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
|
||||
class module_nickpage extends admin_module{
|
||||
|
||||
function admin_panels(){
|
||||
//$panels=array(array("add_text","Text hinzufügen","page_add"),array("edit_text","Text editieren","page_edit"),array("group_only","Textkategorien"),array("addcategory_text","Kategorie hinzufügen","tag_blue_add"),array("editcategory_text","Kategorie editieren","tag_blue_edit"));
|
||||
//return $panels;
|
||||
}
|
||||
|
||||
function get_info(){
|
||||
$info["name"]="Nickpages";
|
||||
$info["file"]="nickpage";
|
||||
$info["author"]="astat";
|
||||
$info["version"]="1.0.0";
|
||||
$info["url"]="http://www.astat.org";
|
||||
return $info;
|
||||
}
|
||||
|
||||
function install(){
|
||||
global $config, $db;
|
||||
$db->query("CREATE TABLE IF NOT EXISTS `" . $config["prefix"] . "nickpage` (
|
||||
`id` int(11) NOT NULL,
|
||||
`np_text` text NOT NULL,
|
||||
`np_link1` varchar(130) NOT NULL,
|
||||
`np_link2` varchar(130) NOT NULL,
|
||||
`np_link3` varchar(130) NOT NULL,
|
||||
`np_link4` varchar(130) NOT NULL,
|
||||
`np_picture` varchar(45) NOT NULL,
|
||||
`np_mood` int(11) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
);");
|
||||
$db->query("INSERT INTO `" . $config["prefix"] . "nickpage` (`id`) SELECT `uid` FROM `" . $config["prefix"] . "users`");
|
||||
$db->query("CREATE VIEW `" . $config["prefix"] . "v_nickpage` AS SELECT * FROM `" . $config["prefix"] . "users` u LEFT JOIN `" . $config["prefix"] . "nickpage` n ON n.`id`=u.`uid`");
|
||||
|
||||
mkdir ($_SERVER["DOCUMENT_ROOT"]."/np_images", 0777);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function uninstall(){
|
||||
global $config, $db;
|
||||
$db->query("DROP VIEW `" . $config["prefix"] . "v_nickpage` ");
|
||||
$db->query("DROP TABLE `" . $config["prefix"] . "nickpage`");
|
||||
@$this->recursive($_SERVER["DOCUMENT_ROOT"]."/np_images");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function recursive($dest){
|
||||
$list = array_diff(scandir($dest), array('.', '..'));
|
||||
foreach ($list as $value) {
|
||||
$file = $dest.'/'.$value;
|
||||
if (is_dir($file)) {
|
||||
recursive($file);
|
||||
}else{
|
||||
unlink($file);
|
||||
}
|
||||
}
|
||||
return rmdir($dest);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
321
modules/nickpage/nickpage.output.php
Normal file
|
@ -0,0 +1,321 @@
|
|||
<?php
|
||||
/**
|
||||
* Project: astat - simple site engine
|
||||
* File: /modules/nickpage/nickpage.output.php
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; version 2 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* @link http://www.astat.org SVN: $URL$
|
||||
* @copyright 2009 becast.at
|
||||
* @author Bernhard Jaud <bernhard at becast dot at>
|
||||
* @package astat core
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
If (!defined("in_astat")) {
|
||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||
}
|
||||
$session->page_begin("Nickpage", FALSE);
|
||||
|
||||
class nickpage extends module{
|
||||
function __construct(){
|
||||
$this->mybb_conf = $this->fetchboardconfig();
|
||||
}
|
||||
|
||||
function output(){
|
||||
global $module,$tpl,$config,$db,$log,$core,$error, $session;
|
||||
|
||||
$count=20;
|
||||
|
||||
$result=$db->query("SELECT * FROM `" . $config["prefix"] . "v_nickpage` WHERE `username`='".$db->escape($_GET['user'])."' LIMIT 1");
|
||||
$user=$db->fetch_array($result);
|
||||
|
||||
if(!isset($_GET['user']) || $db->num_rows($result)<=0 || $_GET['user']==''){
|
||||
$db->free_result($result);
|
||||
header("HTTP/1.1 404 Not Found");
|
||||
header("Status: 404 Not Found");
|
||||
$user['sitetitle']='Nickpage nicht gefunden';
|
||||
}else{
|
||||
$parser=new textparser();
|
||||
|
||||
$db->free_result($result);
|
||||
|
||||
$user['sitetitle']='Nickpage von '.$user['username'];
|
||||
|
||||
$result=$db->query("SELECT * FROM `" . $this->mybb_conf["prefix"] . "users` WHERE `uid`='".$user['fuid']."' LIMIT 1");
|
||||
$forum=$db->fetch_array($result);
|
||||
$db->free_result($result);
|
||||
|
||||
$result=$db->query("SELECT * FROM `v_ptc_users` WHERE `uid`='".$user['uid']."' LIMIT 1");
|
||||
$chat=$db->fetch_array($result);
|
||||
$db->free_result($result);
|
||||
|
||||
$result=$db->query("SELECT count(`id`) as `count` FROM `" . $config["prefix"] . "npguestbook` WHERE `guid`='".$user['uid']."'");
|
||||
$gb_count=$db->fetch_array($result);
|
||||
$gb_pages=ceil($gb_count['count']/$count);
|
||||
$db->free_result($result);
|
||||
|
||||
if($user['birthday']!=''){
|
||||
$today = new DateTime();
|
||||
$birthday = $today->createFromFormat('j-n-Y', '10-2-1984');
|
||||
$now = new DateTime();
|
||||
$age = $now->diff($birthday);
|
||||
$user['age'] = $age -> y;
|
||||
}else{
|
||||
$user['age'] = 'unbekannt';
|
||||
}
|
||||
|
||||
if(!$_GET['page'] || $_GET['page']=="first"){
|
||||
$start=0;
|
||||
}elseif($_GET['page']=="last"){
|
||||
$page=$gb_pages-1;
|
||||
}elseif($_GET['page']>=1){
|
||||
$page=$_GET['page']-1;
|
||||
}
|
||||
$start=$page*$count;
|
||||
|
||||
$sql="SELECT g.*, u.`username` FROM `".$config['prefix']."npguestbook` g LEFT JOIN `".$config['prefix']."users` u ON u.`uid`=g.`wuid` WHERE g.`guid`='".$user['uid']."' ORDER BY g.`timestamp` DESC LIMIT ".$start.", ".$count;
|
||||
$resultgb = $db->query($sql);
|
||||
while($row=$db->fetch_array($resultgb)){
|
||||
$row['date']=date('d.m.Y, H:i',$row['timestamp']);
|
||||
$row['text']=$parser->parse($row['text']);
|
||||
$gb[]=$row;
|
||||
}
|
||||
|
||||
$db->free_result($resultgb);
|
||||
if($page > 0){
|
||||
$pagination='<a href="gb/page/' . $page . '.html" class="page-numbers">< Zurück</a>';
|
||||
}else{
|
||||
$pagination='<span class="page-numbers prev inactive">< Zurück</span>';
|
||||
}
|
||||
for($i=1; $i<$gb_pages; $i++){
|
||||
if($i = $page +1){
|
||||
$pagination.='<span class="page-numbers current">'.$i.'</span>';
|
||||
}else{
|
||||
$pagination.='<a href="gb/page/' . $i .'.html" class="page-numbers">'.$i.'</a>';
|
||||
}
|
||||
}
|
||||
$rpage=$page +1;
|
||||
$pagination.=' Seite '. $rpage .' von '.$gb_pages;
|
||||
|
||||
if($gb_pages > $page+1){
|
||||
$pagination.='<a href="gb/page/' . ($page + 2) .'.html" class="page-numbers next">Weiter ></a>';
|
||||
}else{
|
||||
$pagination.='<span class="page-numbers next inactive">Weiter ></span>';
|
||||
}
|
||||
$user['chattime']=$this->intervall($chat['chattime']);
|
||||
$user['reviewnum']=$reviews['count'];
|
||||
switch($chat['rights']){
|
||||
case(3):
|
||||
$user['chatright']='Chatadmin';
|
||||
break;
|
||||
case(2):
|
||||
$user['chatright']='Chat-VIP';
|
||||
break;
|
||||
}
|
||||
if($user['np_picture']==''){
|
||||
$user['np_picture']='nopic.png';
|
||||
}
|
||||
$user['text']=$parser->parse($user['np_text']);
|
||||
//$data=get_user_room($user['username']);
|
||||
if($data){
|
||||
$user['room']=$data['r'];
|
||||
$user['roomlock']='<img src="'.$path.'/themes/recensio/images/'.$data['s'].'.png" alt="'.$data['s'].'" />';
|
||||
}
|
||||
//$forum['buddylist'];
|
||||
if($session->userdata['uid']!=""){
|
||||
$result=$db->query("SELECT `buddylist` FROM `" . $this->mybb_conf["prefix"] . "users` WHERE `uid`='".$session->userdata['fuid']."' LIMIT 1");
|
||||
$friends=$db->fetch_array($result);
|
||||
$db->free_result($result);
|
||||
$friendsid=$friends['buddylist'];
|
||||
$idarray = explode(",", $friendsid);
|
||||
if(in_array($user["fuid"],$idarray)){
|
||||
$user["friendlink"]= $user["username"] . " ist in deiner Freundesliste";
|
||||
}else{
|
||||
$user["friendlink"]="<a href=\"/adduser/".$user["fuid"] . "\" >" .$user["username"] . " zur Freundesliste hinzufügen.</a>";
|
||||
}
|
||||
}
|
||||
$user['favourits']='';
|
||||
for($i=1;$i<=4;$i++){
|
||||
$link=unserialize($user['np_link'.$i]);
|
||||
if($link['text']!=''){
|
||||
$user['favourits'].='<li><a href="'.$link['value'].'" rel="nofollow" target="_blank">'.$link['text'].'</a></li>';
|
||||
}
|
||||
}
|
||||
if($forum['buddylist']!=""){
|
||||
$idarray = explode(",", $forum['buddylist']);
|
||||
foreach($idarray as $current_id){
|
||||
$current_id = intval($current_id);
|
||||
if ($current_id <= 0) {
|
||||
continue;
|
||||
}
|
||||
$sql_string = "SELECT `username` AS nick FROM `" . $this->mybb_conf["prefix"] . "users` WHERE `uid` = '". $current_id ."' LIMIT 1";
|
||||
$result = $db->query($sql_string);
|
||||
if($db->num_rows($result) >= 1) {
|
||||
$name=$db->fetch_array($result);
|
||||
if ($friendl) {
|
||||
$friendl.=", ";
|
||||
}
|
||||
$nick=$name['nick'];
|
||||
$friendl.='<nobr><a style="text-decoration:none;" href="http://'.rawurlencode ($nick).'.recensio.org/">'.$nick.'</a></nobr>';
|
||||
}
|
||||
$db->free_result($result);
|
||||
}
|
||||
}
|
||||
$tpl->assign('loggedin',$session->);
|
||||
$tpl->assign('friends',$friendl);
|
||||
$tpl->assign('user',$user);
|
||||
$tpl->assign('forum',$forum);
|
||||
$tpl->assign('domain',$config['domain']);
|
||||
$tpl->assign('gb',$gb);
|
||||
$tpl->assign('pagination',$pagination);
|
||||
//$content=$this->tpl->fetch('nickpage_content.tpl');
|
||||
}
|
||||
$tpl->assign('user',$user);
|
||||
$core->make_page($content,TRUE,$config['fullpath'].'/modules/nickpage/templates/default/nickpage.tpl',NULL,NULL);
|
||||
}
|
||||
|
||||
function output_edit(){
|
||||
global $module,$tpl,$config,$db,$log,$core,$error, $session;
|
||||
If($_POST['submit']){
|
||||
$err=false;
|
||||
for($i=1;$i<=4;$i++){
|
||||
if($_POST['np_link'.$i.'_link']!='' ){
|
||||
if($_POST['np_link'.$i.'_name']==''){
|
||||
$_POST['np_link'.$i.'_name']='Kein Name';
|
||||
}
|
||||
$link[$i]=serialize(array('text'=>$_POST['np_link'.$i.'_name'],'value'=>$_POST['np_link'.$i.'_link']));
|
||||
}else{
|
||||
$link[$i]='';
|
||||
}
|
||||
}
|
||||
$text=$db->escape($_POST['np_text']);
|
||||
$end=explode('.',$_FILES['np_picture']['name']);
|
||||
$userfile_name = 'np_'.$session->userdata["uid"].'.'.$end[1];
|
||||
$userfile_tmp = $_FILES['np_picture']['tmp_name'];
|
||||
$userfile_size = $_FILES['np_picture']['size'];
|
||||
$userfile_type = $_FILES['np_picture']['type'];
|
||||
$root = $_SERVER['DOCUMENT_ROOT'] . $config['path'];
|
||||
$filedir = $root.'/np_images/';
|
||||
$size = 200;
|
||||
if(($userfile_size/1024)>250){
|
||||
$err='<span style="font-color:red;">Das Bild darf nicht grösser als 250kb sein.</span>';
|
||||
}
|
||||
if (isset($_FILES['np_picture']['name']) && $_FILES['np_picture']['name']!="" && !$err){
|
||||
$prod_img = $filedir.$userfile_name;
|
||||
$ret=$core->upload_file($prod_img, $userfile_tmp, $size, $size, TRUE, TRUE);
|
||||
if($ret!==TRUE){
|
||||
$err='<span style="font-color:red;">'.$ret.'</span>';
|
||||
}
|
||||
}elseif($_POST["delimg"]==1){
|
||||
$result=$db->query("SELECT `picture` FROM `" . $config["prefix"]. "news_category` WHERE `id`='".intval($_POST["id"])."' LIMIT 1");
|
||||
$file=$db->fetch_array($result);
|
||||
@unlink($filedir.$file['picture']);
|
||||
$db->query("UPDATE `" . $config["prefix"]. "news_category` SET `picture`='' WHERE `id`='".intval($_POST["id"])."'");
|
||||
}
|
||||
if(!$err){
|
||||
if (isset($_FILES['np_picture']['name']) && $_FILES['np_picture']['name']!="" ){
|
||||
$result=$db->query("SELECT `np_picture` FROM `" . $config["prefix"]. "v_nickpage` WHERE `id`='".intval($session->userdata["uid"])."' LIMIT 1") or die($db->error());
|
||||
$file=$db->fetch_array($result);
|
||||
@unlink($filedir.$file['np_picture']);
|
||||
$db->query("UPDATE `" . $config["prefix"]. "v_nickpage` SET `np_picture`='".$userfile_name."' WHERE `id`='".intval($session->userdata["uid"])."'");
|
||||
}
|
||||
$db->query("UPDATE `" . $config["prefix"]. "v_nickpage` SET `np_link1`='".$link[1]."',`np_link2`='".$link[2]."',`np_link3`='".$link[3]."',`np_link4`='".$link[4]."',`np_text`='".$text."' WHERE `id`='".intval($session->userdata["uid"])."'");
|
||||
}else{
|
||||
$this->tpl->assign('emsg',$err);
|
||||
$this->tpl->assign('np',$_POST);
|
||||
$content=$this->tpl->fetch('edit_nickpage.tpl');
|
||||
}
|
||||
}
|
||||
$result=$db->query("SELECT * FROM `" . $config["prefix"] . "v_nickpage` WHERE `uid`='".$session->userdata['uid']."' LIMIT 1");
|
||||
$np=$db->fetch_array($result);
|
||||
$np['np_link1']=unserialize($np['np_link1']);
|
||||
$np['np_link2']=unserialize($np['np_link2']);
|
||||
$np['np_link3']=unserialize($np['np_link3']);
|
||||
$np['np_link4']=unserialize($np['np_link4']);
|
||||
$np['link1_text']=$np['np_link1']['text'];
|
||||
$np['link1_value']=$np['np_link1']['value'];
|
||||
$np['link2_text']=$np['np_link2']['text'];
|
||||
$np['link2_value']=$np['np_link2']['value'];
|
||||
$np['link3_text']=$np['np_link3']['text'];
|
||||
$np['link3_value']=$np['np_link3']['value'];
|
||||
$np['link4_text']=$np['np_link4']['text'];
|
||||
$np['link4_value']=$np['np_link4']['value'];
|
||||
$parse=new textparser(false);
|
||||
$np['np_text']=$parse->parse($np['np_text']);
|
||||
$this->tpl->assign('np',$np);
|
||||
$content=$this->tpl->fetch('edit_nickpage.tpl');
|
||||
return $content;
|
||||
}
|
||||
|
||||
function meta(){
|
||||
global $session,$config,$db,$tpl,$log,$plugin;
|
||||
$meta='<link rel="stylesheet" href="'.$config['path'].'/modules/nickpage/js/jquery.accessible-news-slider.css" type="text/css" media="screen" />
|
||||
<script language="javascript" type="text/javascript" src="'.$config['path'].'/modules/nickpage/js/jquery-1.2.6.pack.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="'.$config['path'].'/modules/nickpage/js/jquery.accessible-news-slider.js"></script>';
|
||||
return $meta;
|
||||
}
|
||||
function meta_edit(){
|
||||
global $session,$config,$db,$tpl,$log,$plugin;
|
||||
$meta='<script type="text/javascript" src="'.$config['path'].'/modules/reviews/comments/nicEdit.js?ver=1500"></script>
|
||||
<script type="text/javascript">
|
||||
bkLib.onDomLoaded(function() { nicEditors.allTextAreas({iconsPath : \''.$config['path'].'/modules/reviews/comments/nicEditorIcons.gif\', xHtml: true,bbCode : true}) });
|
||||
</script>';
|
||||
return $meta;
|
||||
}
|
||||
|
||||
function fetchboardconfig(){
|
||||
global $db, $config, $cache, $log;
|
||||
$mybb=$cache->read('mybbconfig');
|
||||
try{
|
||||
$result = $db->query("SELECT `name`, `value` FROM " . $mybb['prefix'] . "settings");
|
||||
if(!$result){
|
||||
throw new Exception($db->error());
|
||||
}
|
||||
while ($row = $db->fetch_array($result)){
|
||||
$boardconfig[$row['name']] = $row['value'];
|
||||
}
|
||||
$boardconfig['prefix']=$mybb['prefix'];
|
||||
return $boardconfig;
|
||||
}catch(Exception $e){
|
||||
$log->write($e,2,__LINE__,__FILE__);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
function intervall($sek) {
|
||||
$i = sprintf('%d Stunde%s,'.
|
||||
' %d Minute%s und %d Sekunde%s',
|
||||
$sek / 3600,
|
||||
floor($sek / 3600) != 1 ? 'n':'',
|
||||
$sek / 60 % 60,
|
||||
floor($sek / 60 % 60) != 1 ? 'n':'',
|
||||
$sek % 60,
|
||||
floor($sek % 60) != 1 ? 'n':''
|
||||
);
|
||||
return $i;
|
||||
}
|
||||
|
||||
function getage ($date) {
|
||||
$date = explode('-', $date);
|
||||
if($date[2]==""){
|
||||
return "Nicht angegeben.";
|
||||
}else{
|
||||
return date('Y') - $date[2] - (date('n') < (ltrim($date[1],'0') + (date('j') < ltrim($date[0],'0'))));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
47
modules/nickpage/nickpage.plugins.php
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
/**
|
||||
* Project: astat - simple site engine
|
||||
* File: /modules/mybb_bridge/mybb_bridge.plugins.php
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* @link http://www.astat.org SVN: $URL$
|
||||
* @copyright 2009 becast.at
|
||||
* @author Bernhard Jaud <bernhard at becast dot at>
|
||||
* @package astat core
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
If (!defined("in_astat")) {
|
||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||
}
|
||||
class plugins_nickpage{
|
||||
|
||||
function register_plugins($plugin){
|
||||
$plugin->use_hook('register_end',array($this,"register"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
function register($rdata){
|
||||
global $db, $config, $session;
|
||||
$db->query("INSERT INTO `" . $config["prefix"] . "nickpage` (`id`) VALUES ('".$rdata["uid"]."')");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
32
modules/nickpage/templates/default/edit_nickpage.tpl
Normal file
|
@ -0,0 +1,32 @@
|
|||
<h2>Nickpageverwaltung</h2>
|
||||
<span style="text-align : center; display : block;">
|
||||
{$emsg}
|
||||
<form class="registerform" action="{$path}index.php?task=nickpage&sub=edit" name="form" enctype="multipart/form-data" method="post">
|
||||
<fieldset style="text-align : none; width: 45%; height: 250px; float:left;">
|
||||
<legend>Bild</legend>
|
||||
{if $np.np_picture!=""}
|
||||
<strong>Aktuelles Bild:</strong><br />
|
||||
<img src="{$path}np_images/{$np.np_picture}" /><br />
|
||||
{/if}
|
||||
<strong>Bild hochladen:</strong>
|
||||
<input name="np_picture" id="np_picture" type="file" />
|
||||
</fieldset>
|
||||
<fieldset style="height: 250px;">
|
||||
<legend>Links</legend>
|
||||
<strong>Linkname:</strong> <input name="np_link1_name" id="np_link1_name" value="{$np.link1_text}" type="text" /><br />
|
||||
<strong>Linkurl:</strong> <input style="margin-left:14px;" name="np_link1_link" id="np_link1_link" value="{$np.link1_value}" type="text" /><br /><br />
|
||||
<strong>Linkname:</strong> <input name="np_link2_name" id="np_link2_name" value="{$np.link2_text}" type="text" /><br />
|
||||
<strong>Linkurl:</strong> <input style="margin-left:14px;" name="np_link2_link" id="np_link2_link" value="{$np.link2_value}" type="text" /><br /><br />
|
||||
<strong>Linkname:</strong> <input name="np_link3_name" id="np_link3_name" value="{$np.link3_text}" type="text" /><br />
|
||||
<strong>Linkurl:</strong> <input style="margin-left:14px;" name="np_link3_link" id="np_link3_link" value="{$np.link3_value}" type="text" /><br /><br />
|
||||
<strong>Linkname:</strong> <input name="np_link4_name" id="np_link4_name" value="{$np.link4_text}" type="text" /><br />
|
||||
<strong>Linkurl:</strong> <input style="margin-left:14px;" name="np_link4_link" id="np_link4_link" value="{$np.link4_value}" type="text" /><br /><br />
|
||||
</fieldset>
|
||||
<fieldset style="text-align : justify; clear:both;">
|
||||
<legend>Über dich</legend>
|
||||
<textarea name="np_text" id="np_text" rows="15" style="width: 70%;" tabindex="2">{$np.np_text}</textarea>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button" name="submit" value="Absenden" />
|
||||
</form>
|
||||
</span>
|
141
modules/nickpage/templates/default/nickpage.tpl
Normal file
|
@ -0,0 +1,141 @@
|
|||
<!DOCTYPE html>
|
||||
<!--[if lt IE 8 ]><html class="no-js ie ie7" lang="en"> <![endif]-->
|
||||
<!--[if IE 8 ]><html class="no-js ie ie8" lang="en"> <![endif]-->
|
||||
<!--[if IE 9 ]><html class="no-js ie ie9" lang="en"> <![endif]-->
|
||||
<!--[if (gte IE 8)|!(IE)]><!--><html class="no-js" lang="de"> <!--<![endif]-->
|
||||
<head>
|
||||
|
||||
<!--- Basic Page Needs
|
||||
================================================== -->
|
||||
<meta charset="utf-8">
|
||||
<title>{$user.sitetitle} - AustriaChat.net - Die Österreichische Chatcommunity</title>
|
||||
<meta name="description" content="" />
|
||||
<meta content="AustriaChat.net - Die Österreichische Chatcommunity" property="og:title" />
|
||||
<meta name="keywords" content="oe3 ö3 chat sms.at uboot.com chatcommunity webchat austria oesterreich forum" />
|
||||
<meta name="author" content="AustriaChat.net" />
|
||||
<meta name="description" content="Die kostenlose und werbefreie ?sterreichische Chatcommunity. Endlich wieder Chatten wie im Uboot, sms.at, Orf Chat, usw. Wir sehen uns!" />
|
||||
<link href="https://austriachat.net/chat" rel="Chat"/>
|
||||
<link href="https://austriachat.net/forum" rel="Forum"/>
|
||||
<!-- mobile specific metas
|
||||
================================================== -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||
|
||||
<!-- CSS
|
||||
================================================== -->
|
||||
<link rel="stylesheet" href="{$themepath}/css/default.css" />
|
||||
<link rel="stylesheet" href="{$themepath}/css/layout.css" />
|
||||
<link rel="stylesheet" href="{$themepath}/css/media-queries.css" />
|
||||
|
||||
<!-- Script
|
||||
================================================== -->
|
||||
<script src="js/modernizr.js"></script>
|
||||
|
||||
<!-- Favicons
|
||||
================================================== -->
|
||||
<link rel="shortcut icon" href="favicon.png" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header id="top">
|
||||
<div class="row">
|
||||
<div class="header-content twelve columns">
|
||||
<h1 id="logo-text">{$user.sitetitle}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header> <!-- Header End -->
|
||||
<div id="content-wrap">
|
||||
<div class="row add-bottom">
|
||||
<div class="six columns add-bottom">
|
||||
<h3>Über {$user.username}</h3>
|
||||
<p><img class="pull-left" src="/forum/{$user.np_picture}" alt="Ist das {$user.username}?">
|
||||
{$user.fid2}</p><div id="gender"><img src="/npimages/{$user.gender}.png" /></div>
|
||||
</div>
|
||||
<div class="six columns add-bottom">
|
||||
<h3>Über mich:</h3>
|
||||
<p>Alter: {$user.age}<br />
|
||||
<ul>
|
||||
<li><a href="//{$domain}/forum/private.php?action=send&uid={$user.fuid}">PN an {$user.username}</a></li>
|
||||
<li>Forenposts: <a href="//{$domain}/forum/search.php?action=finduser&uid={$user.fuid}">{$forum.postnum}</a></li>
|
||||
<li>{if $user.chatright!=""}{$user.username} ist ein <strong>{$user.chatright}</strong></li>{/if}
|
||||
{if $user.room!=""}{$user.username} befindet sich im Raum {$user.room}{$user.roomlock}</li>{/if}
|
||||
<li>Chatzeit: {$user.chattime}</li>
|
||||
{if $user.friendlink!=""}<li>{$user.friendlink}</li>{/if}
|
||||
</ul>
|
||||
</p>
|
||||
{if $user.favourits!=''}
|
||||
<p>
|
||||
<h3>Meine Links</h3>
|
||||
<ul>
|
||||
{$user.favourits}
|
||||
</ul>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div><!-- Row End-->
|
||||
{if $friends!=""}
|
||||
<div class="row section-head">
|
||||
<div class="twelve columns">
|
||||
|
||||
<h3>Freunde</h3>
|
||||
{$friends}
|
||||
</div>
|
||||
</div> <!-- Row End-->
|
||||
{/if}
|
||||
<hr>
|
||||
<div class="row section-head">
|
||||
{if $gb!=""}
|
||||
{$pagination}
|
||||
{foreach from=$gb item=g}
|
||||
<div class="twelve columns">
|
||||
<a href="/np/{$g.username}">{$g.username}</a> schrieb am {$g.date}:
|
||||
<p>{if $deltext==1}
|
||||
<span style="float:right" style="font-size:xx-small;"><a href="/gb/del/{$guestbook.id}">[Eintrag löschen]</a>
|
||||
</span>
|
||||
{/if}
|
||||
{$g.text}<br /></p>
|
||||
</div>
|
||||
{/foreach}
|
||||
<div class="twelve columns add-bottom">
|
||||
|
||||
<h3 class="add-bottom">Pagination</h3>
|
||||
|
||||
<nav class="pagination add-bottom">
|
||||
|
||||
{$pagination}
|
||||
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<div class="twelve columns">
|
||||
<p>Keine Einträge. Schreib doch einfach einen. ;-)</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="twelve columns">
|
||||
Für den Inhalt ist ausschließlich der User selbst verantwortlich.<br />
|
||||
Diese Nickpage ist Teil der <a href="//www.austriachat.net" target="_blank">AustriaChat.net Community</a>.
|
||||
</div>
|
||||
</div>
|
||||
<div id="go-top"><a class="smoothscroll" title="Back to Top" href="#top"><i class="fa fa-chevron-up"></i></a></div>
|
||||
|
||||
</footer> <!-- End Footer-->
|
||||
|
||||
|
||||
<!-- Java Script
|
||||
================================================== -->
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="js/jquery-1.10.2.min.js"><\/script>')</script>
|
||||
<script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>
|
||||
<script src="js/main.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
106
modules/nickpage/templates/default/nickpage_content.tpl
Normal file
|
@ -0,0 +1,106 @@
|
|||
{literal}
|
||||
<script language="javascript" type="text/javascript">
|
||||
$(function() {
|
||||
$( "#shelf" ).accessNews({
|
||||
headline : "Medienregal von {/literal}{$user.username}{literal}",
|
||||
speed : "slow",
|
||||
slideBy : 3
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
<div id="container">
|
||||
<div id="header"><h1><span style="display: none;">{$user.sitetitle}</span></h1></div>
|
||||
<div id="gender"><img src="/npimages/{$user.gender}.png" /></div>
|
||||
<div class="dropnav">
|
||||
</div>
|
||||
<div id="wrapper">
|
||||
<div id="content">
|
||||
|
||||
<span class="image"><img src="{$path}np_images/{$user.np_picture}" alt="So will {$user.username} gesehen werden" /></span>
|
||||
<span class="details"><p><strong>Chat:</strong></p>{if $user.chatright!=""}{$user.username} ist ein <strong>{$user.chatright}</strong><br /><br />{/if}{if $user.room!=""}{$user.username} befindet sich im Raum {$user.room}{$user.roomlock}<br /><br />{/if}Chatzeit: <br />{$user.chattime}<br /></span>
|
||||
{if $friends!=""}
|
||||
<div class="friends">
|
||||
<h4>Freunde:</h4>
|
||||
{$friends}
|
||||
</div>
|
||||
{/if}
|
||||
<div style="clear:both;">
|
||||
Alter:
|
||||
<p>{$user.age}</p>
|
||||
Über mich:
|
||||
<div class="text">
|
||||
<p>{$user.text}</p>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
{if $shelf!=""}
|
||||
<div class="accessible_news_slider business_as_usual" id="shelf">
|
||||
<p class="javascript_css">
|
||||
<strong>Achtung:</strong> Du scheinst Javascript und/oder CSS abgeschaltet zu haben. Das Medienregal wird funktionieren, aber optimale Leistung wird nur mit aktiviertem Javascript und CSS erreicht.
|
||||
</p>
|
||||
<p class="skip_to_news"><a href="#skip_to_news">Skip to News</a></p>
|
||||
<p class="back"><a href="#" title="Zurück">« Zurück</a></p>
|
||||
<p class="next"><a href="#" title="Weiter">Weiter »</a></p>
|
||||
<a name="skip_to_news"></a>
|
||||
<ul>
|
||||
{foreach from=$shelf item=s}
|
||||
<li>
|
||||
<a href="{$s.link}"><img src="{$s.img}" width="75" height="105" alt="{$s.title}" /></a>
|
||||
<p>
|
||||
<a href="{$s.link}">{$s.title}</a><br />
|
||||
{$s.short}
|
||||
</p>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{if $gb!=""}
|
||||
<div style="margin:5px; width:695px; text-align:center;" id="pagination">
|
||||
{$pagination}
|
||||
</div>
|
||||
{foreach from=$gb item=g}
|
||||
<div style="border: 1px solid #DFE8F7;" class='np-column1-unit'>
|
||||
<a href="http://{$g.username}.recensio.org/">{$g.username}</a> schrieb am {$g.date}:
|
||||
<p>{if $deltext==1}
|
||||
<span style="float:right" style="font-size:xx-small;"><a href="/gb/del/{$guestbook.id}">[Eintrag löschen]</a>
|
||||
</span>
|
||||
{/if}
|
||||
{$g.text}<br /></p>
|
||||
</div>
|
||||
<br />
|
||||
{/foreach}
|
||||
<div style="margin:5px; width:695px; text-align:center;" id="pagination">
|
||||
{$pagination}
|
||||
</div>
|
||||
{else}
|
||||
<p>Keine Einträge. Schreib doch einfach einen. ;-)</p><br />
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div id="navigation">
|
||||
<p><strong>Menü</strong></p>
|
||||
<ul>
|
||||
<li><a href="http://forum.recensio.org/private.php?action=send&uid={$user.fuid}">PN an {$user.username}</a></li>
|
||||
<li><a href="http://forum.recensio.orgmember.php?action=emailuser&uid={$user.fuid}">E-Mail schreiben</a></li>
|
||||
<li>Forenposts: <a href="http://forum.recensio.org/search.php?action=finduser&uid={$user.fuid}">{$forum.postnum}</a></li>
|
||||
<li>Reviews: <a href="http://search.recensio.org/websearch/{$user.username}">{$user.reviewnum}</a></li>
|
||||
{if $user.friendlink!=""}<li>{$user.friendlink}</li>{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{if $user.favourits!=''}
|
||||
<div id="links">
|
||||
<p><strong>Meine Links</strong></p>
|
||||
<ul>
|
||||
{$user.favourits}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="footer">
|
||||
<p>Für den Inhalt ist ausschließlich der User selbst verantwortlich.<br />
|
||||
Diese Nickpage ist Teil der <a href="http://www.recensio.org" target="_blank">recensio.org Community</a>.</p>
|
||||
</div>
|
||||
</div>
|
88
modules/nickpage/templates/default/styles.css
Normal file
|
@ -0,0 +1,88 @@
|
|||
html,body{margin:0;padding:0}
|
||||
body{
|
||||
font: 76% arial,sans-serif;text-align:center;
|
||||
background:#FFFFFF url(/npimages/body_background.gif) repeat-x scroll 0 135px;
|
||||
}
|
||||
p{margin:0 10px 10px}
|
||||
a{
|
||||
text-decoration:none;
|
||||
color:#000000;
|
||||
}
|
||||
div#header{
|
||||
background:transparent url(/npimages/nickpage.jpg) no-repeat scroll 4px 0;
|
||||
height:125px;
|
||||
margin:0 auto 11px;
|
||||
overflow:hidden;
|
||||
text-align:left;
|
||||
background-color:#FFFFFF;
|
||||
float:left;
|
||||
width: 659px;
|
||||
}
|
||||
#wrapper {
|
||||
clear:both;
|
||||
display:block;
|
||||
margin:0 auto;
|
||||
text-align:justify;
|
||||
width:700px;
|
||||
}
|
||||
|
||||
div#header h1{height:80px;line-height:80px;margin:0;padding-left:10px;}
|
||||
div#container{text-align:left}
|
||||
div#content p{line-height:1.4}
|
||||
div#navigation{background:#F6F0E0;}
|
||||
div#navigation ul{
|
||||
padding:5px;
|
||||
margin:15px 0;
|
||||
list-style-type:none;
|
||||
}
|
||||
div#links ul{
|
||||
padding:5px;
|
||||
margin:15px 0;
|
||||
list-style-type:none;
|
||||
}
|
||||
.dropnav {
|
||||
border:medium none;
|
||||
clear:both;
|
||||
color:#FFFFFF;
|
||||
float:none;
|
||||
font-size:125%;
|
||||
font-weight:bold;
|
||||
height:34px;
|
||||
margin:0 auto;
|
||||
text-align:center;
|
||||
white-space:nowrap;
|
||||
width:700px;
|
||||
}
|
||||
style.css (Zeile 988)
|
||||
|
||||
div#navigation li{margin-bottom:5px;}
|
||||
div#links{background:#CCC8B3;}
|
||||
div#footer{background:#BFBD93;}
|
||||
div#footer p{margin:0;padding:5px 10px}
|
||||
div#container{width:700px;margin:0 auto}
|
||||
div#content{float:left;width:500px}
|
||||
div#navigation{float:right;width:200px}
|
||||
div#links{float:right;clear:right;width:200px}
|
||||
div#footer{clear:both;width:100%}
|
||||
.image{
|
||||
float:left;
|
||||
margin: 5px;
|
||||
}
|
||||
.details{
|
||||
float:left;
|
||||
margin-left:5px;
|
||||
}
|
||||
.friends{
|
||||
background:#C0C0C0 none repeat scroll 0 0;
|
||||
clear:both;
|
||||
margin:5px;
|
||||
padding:3px;
|
||||
}
|
||||
.text{
|
||||
clear:both
|
||||
}
|
||||
|
||||
div#gender{
|
||||
background-color:#FFFFFF;
|
||||
float:right;
|
||||
}
|
29
modules/nickpage/text.ajax.php
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
If (!defined("in_astat")) {
|
||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||
}
|
||||
$addnav["right"]=FALSE;
|
||||
$session->page_begin("Text Module", FALSE);
|
||||
|
||||
$topnav_home="<li><a href=\"/index.php\">Home</a></li>";
|
||||
|
||||
class text extends ajax_module{
|
||||
|
||||
function ajax(){
|
||||
global $module,$config,$db,$tpl,$log,$error;
|
||||
if($_POST['call']=="url"){
|
||||
if(isset($_POST['url'])&& $_POST['url']!=""){
|
||||
$url=$db->escape($_POST['url']);
|
||||
$result = $db->query("SELECT count(`id`) as `count` FROM `" . $config["prefix"] . "article` WHERE `url`='".$url."'");
|
||||
$row = $db->fetch_array($result, MYSQL_ASSOC);
|
||||
if($row["count"]==0){
|
||||
echo 0;
|
||||
}else{
|
||||
echo 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|