|
 |
|
 |
 |
 |
|
Lightbox, keine Bilder mehr in Foren...
Huhu,
habe eben mal die Lightbox eingebunden. Bin begeistert, als ich die hier bei Euch gefunden habe, nur funzt seit dem Einbinden keine Grafik mehr im Forum bei uns.
Hier mal die abgeänderten Dateien, sowie ein Link zum Forum und ein paar Screens:
http://elite-gamer-clan.de/egc/include.php?path=forumsthread&threadid=621&entries=0
bb-code Grafik funzt im Forum nicht: (im ACP wird sie jedoch angezeigt)
Das verlinkte Bild http://www.elite-gamer-clan.de/egc/content/images/lightbox/bbcode.jpg existiert nicht mehr bzw. wurde falsch verlinkt!
Eintrag in die META-Angaben:
Das verlinkte Bild http://www.elite-gamer-clan.de/egc/content/images/lightbox/acp.jpg existiert nicht mehr bzw. wurde falsch verlinkt!
pkinc/admintpl/site.htm
Klapptext Inhalt anzeigen
|
HTML - Code Anfang: (41 Zeilen) | Code markieren
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=$LANG[__CHARSET__]" />
<meta http-equiv="content-language" content="$LANG[__LANGCODE__]" />
$site_meta
<link rel="shortcut icon" href="fx/phpkit.ico" type="image/x-icon" />
<link rel="stylesheet" href="$adminsite_css" type="text/css" />
$site_header_script
$site_refresh
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
<link rel="stylesheet" type="text/css" href="$config[site_url]/fx/burnerfm/css/shadowbox.css" />
<script type="text/javascript" src="$config[site_url]/fx/burnerfm/js/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
handleOversize: "drag",
overlayOpacity: 0.8,
counterType: "skip"
});
</script>
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
<script type="text/javascript" src="fx/jquery-1.6.1.js"></script>
<!-- IMG Fader www.kit-coding.de -->
<script type="text/javascript" src="fx/jquery-1.6.1.js"></script>
<link href="fx/fullsize/fullsize.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="fx/fullsize/jquery.fullsize.minified.js"></script>
<script type="text/javascript">
<!--
jQuery(document).ready(function(){
jQuery("img").fullsize();
});
//-->
</script>
<!-- IMG Fader www.kit-coding.de -->
</head>
<body $site_body_onload>
<a id="head"></a>
<div id="sitebody">$site_body</div>
<a id="foot"></a>
</body>
</html>
|
|
|
|
|
HTML - Code Ende: (41 Zeilen) | Code markieren
|
pkinc/cfg/bbcode.php
Klapptext Inhalt anzeigen
|
PHP - Code Anfang: (218 Zeilen) | Code markieren
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
|
<?php
# PHPKIT WCMS | Web Content Management System
#
#
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS
# FILE AND/OR TO REMOVE THIS INFORMATION
#
# SIE SIND NICHT BERECHTIGT, UNRECHTMÃSSIGE KOPIEN DIESER
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN
#
# This file / the PHPKIT software is no freeware! For further
# information please visit our website or contact us via email:
#
# Diese Datei / die PHPKIT Software ist keine Freeware! Für weitere
# Informationen besuchen Sie bitte unsere Website oder kontaktieren uns per E-Mail:
#
# email : info@phpkit.com
# website : Web Server's Default Page
# licence : http://www.phpkit.com/licence
# copyright : Copyright (c) 2002-2009 mxbyte gbr | Web Server's Default Page
return array(
array(
'tag' => 'hr',
'html' => '<hr />',
'type' => 'single',
),
array(
'tag' =>'list=1',
'html' =>'<ol type="1">{text}</ol>',
'type' => 'list',
),
array(
'tag' => 'list=a',
'html' => '<ol type="a">{text}</ol>',
'type' => 'list',
),
array(
'tag' => 'list',
'html' => '<ul>{text}</ul>',
'type' => 'list',
),
array(
'tag' => 'b',
'html' => '<b>{text}</b>',
'type' => '',#empty=default
),
array(
'tag' => 'i',
'html' => '<i>{text}</i>',
'type' => '',#empty=default
),
array(
'tag' => 'u',
'html' => '<u>{text}</u>',
'type' => '',#empty=default
),
array(
'tag' => 'd',
'html' => '<strike>{text}</strike>',
'type' => '',#empty=default
),
array(
'tag' => 'h2',
'html' => '<h2>{text}</h2>',
'type' => '',#empty=default
),
array(
'tag' => 'h3',
'html' => '<h3>{text}</h3>',
'type' => '',#empty=default
),
array(
'tag' => 'h4',
'html' => '<h4>{text}</h4>',
'type' => '',#empty=default
),
array(
'tag' => 'p',
'html' => '<p>{text}</p>',
'type' => '',#empty=default
),
array(
'tag' => 'sub',
'html' => '<sub>{text}</sub>',
'type' => '',#empty=default
),
array(
'tag' => 'sup',
'html' => '<sup>{text}</sup>',
'type' => '',#empty=default
),
array(
'tag' => 'left',
'html' => '<div style="text-align:left">{text}</div>',
'type' => '',#empty=default
),
array(
'tag' => 'center',
'html' => '<div style="text-align:center">{text}</div>',
'type' => '',#empty=default
),
array(
'tag' => 'right',
'html' => '<div style="text-align:right">{text}</div>',
'type' => '',#empty=default
),
array(
'tag' => 'block',
'html' => '<div style="text-align:justify">{text}</div>',
'type' => '',#empty=default
),
array(
'tag' => 'code',
'html' => '<code>{text}</code>',
'type' => '',#empty=default
),
array(#@TODO: Revise the HTML-Code an single div-container with headline is much smarter
'tag' => 'quote',
'html' => '<table class="quote" width="98%" cellpadding="4" cellspacing="1" align="center"><tr><td class="quote"><b>'.pkGetLang('quote').'</b><br /><font class="quote">{text}</font></td></tr></table><br />',
'type' => '',#empty=default
),
array(
'tag' => 'white',
'html' => '{text}',
'type' => '',#empty=default
),
array(
'tag' => 'gray',
'html' => '{text}',
'type' => '',#empty=default
),
array(
'tag' => 'dimgray',
'html' => '{text}',
'type' => '',#empty=default
),
array(
'tag' => 'navy',
'html' => '{text}',
'type' => '',#empty=default
),
array(
'tag' => 'royalblue',
'html' => '{text}',
'type' => '',#empty=default
),
array(
'tag' => 'red',
'html' => '{text}',
'type' => '',#empty=default
),
array(
'tag' => 'orange',
'html' => '{text}',
'type' => '',#empty=default
),
array(
'tag' => 'yellow',
'html' => '{text}',
'type' => '',#empty=default
),
array(
'tag' => 'green',
'html' => '{text}',
'type' => '',#empty=default
),
array(
'tag' => 'white',
'html' => '{text}',
'type' => '',#empty=default
),
array(
'tag' => 'color',
'html' => '<span style="color:{option};">{text}</span>',
'type' => 'double',
),
array(
'tag' => 'email',
'html' => '<a href="mailto:{text}">{text}</a>',
'type' => '',#empty=default
),
array(
'tag' => 'email',
'html' => '<a href="mailto:{option}">{text}</a>',
'type' => 'double',
),
##### Lightbox by burnerfm.de & pimpyourkit.de #####
array(
'tag' => 'imgo',
'html' => '<a href="{image}" rel="shadowbox"><img style="opacity:0.4;filter:alpha(opacity=40)" onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.4;this.filters.alpha.opacity=40" border="0" {width} {height} alt="{image}" title="{image}" src="{image}" /></a>',
'type' => 'img',
),
##### Lightbox by burnerfm.de & pimpyourkit.de #####
#IMG Fader Modifikation www.kit-coding.de
array(
'tag' => 'img',
'html' => '<img border="0" alt="{imagecap}" src="{image}" longdesc="{imagebig}" />',
'type' => 'img'
),
array(
'tag' => 'imgr',
'html' => '<img border="0" alt="{imagecap}" src="{image}" align="right" longdesc="{imagebig}" />',
'type' => 'img',
),
array(
'tag' => 'imgl',
'html' => '<img border="0" alt="{imagecap}" src="{image}" align="left" longdesc="{imagebig}" />',
'type' => 'img',
),
#IMG Fader Modifikation www.kit-coding.de
array(
'tag' => 'url',
'html' => '<a href="{option}" target="_blank">{text}</a>',
'type' => 'url',
),
);
?>
|
|
|
|
|
PHP - Code Ende: (218 Zeilen) | Code markieren
|
pkinc/class/bbcode.php
Klapptext Inhalt anzeigen
|
PHP - Code Anfang: (422 Zeilen) | Code markieren
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 |
|
<?php
# PHPKIT WCMS | Web Content Management System
#
#
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS
# FILE AND/OR TO REMOVE THIS INFORMATION
#
# SIE SIND NICHT BERECHTIGT, UNRECHTMÃSSIGE KOPIEN DIESER
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN
#
# This file / the PHPKIT software is no freeware! For further
# information please visit our website or contact us via email:
#
# Diese Datei / die PHPKIT Software ist keine Freeware! Für weitere
# Informationen besuchen Sie bitte unsere Website oder kontaktieren uns per E-Mail:
#
# email : info@phpkit.com
# website : Web Server's Default Page
# licence : http://www.phpkit.com/licence
# copyright : Copyright (c) 2002-2009 mxbyte gbr | Web Server's Default Page
class pkBbcode
{
protected $text = '';
var $urldetect=1;
var $urlcut=1;
var $urlmaxwidth=60;
var $urlwidth1=50;
var $urlwidth2=-10;
var $censoruse=1;
var $imageresize=0;
var $textmaxlength=0;
protected $parse_bbcode = 1;
protected $parse_smilies = 1;
protected $parse_html = 0;
protected $parse_images = 1;
protected $smilies_search = array();
protected $smilies_replace = array();
protected $censorreplace = '*';
protected $censor_badword_hash = array();
var $bbhash='';
var $smiliehash='';
protected $urldetect_search = array(
# '#(?:(?<!http://|https://|ftp://|ftps://)(www\.([^\s]*)))#iuS', #not working cause every char is allowed in urls
##### Lightbox by burnerfm.de & pimpyourkit.de #####
'#(?:(?<!img]|mgl]|mgo]|mgr]|url=|[url|ef="|rc="|on="])((ht|f)tp(s?)://([^\s]*)))#iuS', #clean except links as linktexts
##### Lightbox by burnerfm.de & pimpyourkit.de #####
);
protected $urldetect_replace = array(
# '\\1', #not working cause every char is allowed in urls
'\\1',
);
#@Method: __construct
#@Access: public
#@Param: void
#@Return: void
#@Desc: Constructor. Predefines smilies, bbcodes, and censor words.
public function __construct()
{
$this->bbhash = pkCfgData('bbcode');
#smilies
$obj = new smilies;
$array = $obj->getSmilieCache();
$array = is_array($array) ? $array : array();
foreach($array as $smilie)
{
$this->smilies_search[] = pkEntities($smilie['smilie_code']);
$this->smilies_replace[] = '<img src="'.$smilie['smilie_path'].'" alt="'.$smilie['smilie_title'].'" />';
}
#censorlist
$badwords = pkGetConfig('censor_badword');
$badwords = is_string($badwords) ? $badwords : '';
$badwords = explode("", $badwords);
$this->censor_badword_hash = $badwords;
}
#@END Method: __construct
#@Method: parse
#@Access: public
#@Param: string text
#@Param: bool html
#@Param: bool bb
#@Param: bool smilies
#@Param: bool images
#@Param: bool censor
#@Param: bool imageresize
#@Param: bool textmaxlength
#@Return: string
#@Desc: Primary method to parses texts.
public function parse($text='',$html=0,$bb=0,$smilies=0,$images=0,$censor=0,$imageresize=0,$textmaxlength=0)
{
if(empty($text))
{
return '';
}
$this->text = ' '.$text.' '; #s simple solution for smiles and other tags at the beginning to be parsed when containing a leading blank-space
$this->imageresize = $imageresize;
$this->textmaxlength = $textmaxlength;
$this->urlmaxwidth = $textmaxlength;
$this->urlmaxwidth ? NULL : $this->urlcut=0;
$this->parse_bbcode = $bb ? 1 : 0;
$this->parse_smilies = $smilies ? 1 : 0;
$this->parse_images = $images ? 1 : 0;
$this->parse_html = $html ? 1 : 0;
#should be removed in the future, sessions ID are not visible anymore
$this->text = pkRemoveSessionId($this->text);
#censor
if($censor)
{
$this->textcensor();
}
#urldetect - not when html is active
if($this->urldetect && !$this->parse_html)
{
$this->urldetect();
}
$this->text = $this->parse_html ? $this->prepare_html($this->text) : pkEntities($this->text);
if(!$this->parse_images)
{
$this->remove_images();
}
if($this->parse_bbcode)
{
$this->parse_bbcode();
}
if($this->parse_smilies)
{
$this->parse_smilies();
}
$this->text = nl2br($this->text);
#html allowed
if($this->parse_html)
{
$this->text = str_replace('"','"',$this->text);
}
else
{
$this->text = preg_replace("/(vb|java)script:/i","\\1 script:",$this->text);
}
if($this->textmaxlength)
{
$this->text = pk::txtwrap($this->text,$this->textmaxlength);
}
#remove not need whitespaces
$this->text = trim($this->text);
return $this->text;
}
#@END Method: parse
#@Method: prepare_html
#@Access: protected
#@Param: string text
#@Return: string
#@Desc:
function prepare_html($text='')
{
$text = preg_replace("#<table(.*)>([ ||\r\s]{1,})<tr#iUs","<table\\1><tr",$text);
$text = preg_replace("#<tr(.*)>([ ||\r\s]{1,})<td#iUs","<tr\\1><td",$text);
$text = preg_replace("#</td>([ ||\r\s]{1,})</tr>#iUs","</td></tr>",$text);
$text = preg_replace("#</tr>([ ||\r\s]{1,})</table>#iUs","</tr></table>",$text);
return str_replace('"',""",$text);
}
#@END Method: prepare_html
#@Method: urldetect
#@Access: protected
#@Param: void
#@Return: void
#@Desc:
protected function urldetect()
{
$this->text = preg_replace($this->urldetect_search,$this->urldetect_replace,$this->text);
}
#@END Method: urldetect
#@Method: parse_bbcode
#@Access: protected
#@Param: void
#@Return: void
#@Desc:
protected function parse_bbcode()
{
$text = &$this->text;#reference - for a smarter use
#search & replace standard bbcodes
foreach($this->bbhash as $code)
{
switch($code['type'])
{
case 'single' :
$text = preg_replace("#\[".$code['tag']."\]#isuSU",$code['html'],$text);
break; #END case single
case 'double' :
$pattern = "#\[(".$code['tag'].")=(.*)\](.*)\[/\\1\]#eisuSU";
$text = preg_replace($pattern,"\$this->replace_bbcode('$code[html]','\\3','\\2')",$text);
break; #END case double
case 'img' :
if($this->parse_images)
{
$pattern = "#\[(".$code['tag'].")]([^\"\?\&]*\.(gif|jpg|jpeg|bmp|png))([\s]?)\[\/\\1\]#eiU";
##### Lightbox by burnerfm.de & pimpyourkit.de #####
$text = preg_replace($pattern,"\$this->replace_lightbox_image('$code[html]','\\2')",$text);
##### Lightbox by burnerfm.de & pimpyourkit.de #####
$text = preg_replace($pattern,"\$this->replace_image('$code[html]','\\2')",$text);
}
break; #END case img
case 'url' :
$func = 'replace_url';
$pattern = "#\[(".$code['tag'].")\](.*)\[/\\1\]#eisuSU"; #format: link
$text = preg_replace($pattern,"\$this->$func('$code[html]','\\2')",$text);
$pattern = "#\[(".$code['tag'].")=(.*)\](.*)\[/\\1\]#eisuSU"; #format text
$text = preg_replace($pattern,"\$this->$func('$code[html]','\\2','\\3')",$text);
break; #END case url
case 'list' :
default :
$func = 'replace_bbcode';
$func = $code['type']=='list' ? 'replace_list' : $func;
$pattern = "#\[(".$code['tag'].")\](.*)\[/\\1\]#eisuSU";
while(preg_match($pattern,$text))
{
$text = preg_replace($pattern,"\$this->$func('$code[html]','\\2')",$text);
}
break; #END default
}#END switch
}#END foreach bbhash
}
#@END Method: parse_bbcode
#@Method: parse_smilies
#@Access: protected
#@Param: void
#@Return: void
#@Desc:
protected function parse_smilies()
{
$this->text = str_replace($this->smilies_search,$this->smilies_replace,$this->text);
}
#@END Method: parse_smilies
#@Method: replace_list
#@Access: protected
#@Param: string html
#@Param: string text
#@Param: string option
#@Return: string
#@Desc:
protected function replace_bbcode($html,$text,$option='')
{
$option = trim($option);
$option = empty($option) ? $text : $option;
$html = str_replace("{text}",$text,$html);
$html = str_replace("{option}",$option,$html);
return $html;
}
#@END Method: replace_bbcode
#@Method: replace_list
#@Access: protected
#@Param: string html
#@Param: string text
#@Return: string
#@Desc:
protected function replace_list($html,$text)
{
#need trim here to avoid empty cols between list-elements
#text should contains some li/* elements
$text = trim($text);
#empty list-tags (ul,ol,dl) arnt allowed - so return an empty string in this case
if(empty($text))
{
return '';
}
#replace correctly with <li></li> without linebreaks
$pattern = "#\[(li)\](.*)\[/\\1\]#isuSU";
$text = preg_replace($pattern,'<li>\\2</li>',$text);
#do we have simple sinlge tags?
if(strstr($text,'[*]'))
{
#split by the simple single tag [*]
$matches = explode('[*]',$text);
foreach($matches as $i=>$str)
{
$str = trim($str);#empty lines will be removed
if(empty($str))
{
unset($matches[$i]);
continue;
}
$matches[$i] = '<li>'.$str.'</li>';
}
$text = implode('',$matches);
}#END simple single tags
#created the whole list and clean it up
$text = str_replace("{text}",$text,$html);
$text = preg_replace("#(\/li|ul|ol type=\"a\"|ol type=\"1\")>(.*)*<(li|\/ol|\/ul){1}>#sSU",'\\1><\\3>',$text);#removes everything between list related tags
$text = $text==str_replace("{text}",'',$html) ? '' : $text; # if the list is now empty nothing will be displayed, otherwise it wouldnt not be valid XHTML
return $text;
}
#@END Method: replace_list
#@Method: replace_url
#@Access: protected
#@Param: string html
#@Param: string url
#@Param: [string text]
function replace_url($html,$url,$text='')
{
$url = trim($url);
$text = empty($text) ? $url : $text;
$text = trim($text);
if($this->urlcut && strlen($text)>$this->urlmaxwidth && !preg_match("/[><\[\]]/",$text))
{
$text = substr($text,0,$this->urlwidth1)."...".substr($text,$this->urlwidth2);
}
#prevent double-links when imageresize is on
if($this->imageresize && preg_match("/\<a (.*)<\/a>/i",$text))
{
return str_replace("\\\"","\"",$text);
}
$str = str_replace("{text}",$text,$html);
$str = str_replace("{option}",$url,$str);
$str = str_replace("\\\"","\"",$str);
return $str;
}
#@END Method: replace_url
#@Method: Lightbox by burnerfm.de & pimpyourkit.de
#@Access: protected
#@Param: string html
#@Param: string url
#@Return: string
#@Desc:
protected function replace_lightbox_image($html,$url)
{
include(pkDIRCLASS.'lightbox'.pkEXT);
return $str;
}
#@END Method: Lightbox by burnerfm.de & pimpyourkit.de
#@Method: replace_ images
#@Access: protected
#@Param: string html
#@Param: string link
#@Return: string
#@Desc:
#IMG Fader Modifikation www.kit-coding.de
protected function replace_image($html,$link)
{
$link2=$link;
$PTInfos=pathinfo($link);
if($this->imageresize)
{
#$html = '<a href="'.$link.'" target="_blank">'.$html.'</a>';
$link = pkLinkFx('rsimg','src='.base64_encode($link));
}
$str = str_replace("{image}",$link,str_replace("{imagebig}",$link2,str_replace("{imagecap}",pkentities($PTInfos['filename']),$html)));
return $str;
}
#IMG Fader Modifikation www.kit-coding.de
#@END Method: replace_image
#@Method: remove_images
#@Access: protected
#@Param: void
#@Return: void
#@Desc:
protected function remove_images()
{
##### Lightbox by burnerfm.de & pimpyourkit.de #####
$pattern = "#\[(/?)(img|imgr|imgl|imgo)\]#i";
##### Lightbox by burnerfm.de & pimpyourkit.de ####
$this->text = preg_replace($pattern,'[\\1url]',$this->text);
}
#@END Method: remove_images
#@Method: textcensor
#@Access: protected
#@Param: void
#@Return: void
#@Desc:
protected function textcensor()
{
if(empty($this->censor_badword_hash) || $this->censoruse!=1)
{
return;
}
$replacer = $this->censorreplace;
$censorlist = $this->censor_badword_hash;
foreach($censorlist as $badword)
{
$badword = trim($badword);
if(empty($badword))
{
continue;
}
#badword length
$len = strlen($badword);
$replace = '';
if(preg_match("#\{(.*)\}#isU",$badword))#exact match
{
$len = $len-2;
$replace = str_repeat($replacer,$len);
$this->text = preg_replace($badword," ".$replace." ",$this->text);
}
else
{
$replace = str_repeat($replacer,$len);
$this->text = eregi_replace($badword,$replace,$this->text);
}
}#END foreach
}
#@END Method: textcensor
}
#@END Method: pkBbcode
?>
|
|
|
|
|
PHP - Code Ende: (422 Zeilen) | Code markieren
|
pkinc/publictpl/format_text.htm
Klapptext Inhalt anzeigen
|
HTML - Code Anfang: (70 Zeilen) | Code markieren
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|
<table class="bbsmilies" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td valign="top" class="bbsmilies" align="center">
<table border="0" cellspacing="3" cellpadding="0" width="100%">
<tr>
<td><a href="javascript:;" onclick="pkBBCode('B');" onfocus="blur();"><img src="fx/default/bbcode/b.gif" alt="Fettschrift" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('I');" onfocus="blur();"><img src="fx/default/bbcode/i.gif" alt="Kursivschrift" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('U');" onfocus="blur();"><img src="fx/default/bbcode/u.gif" alt="Unterstrichen" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('D');" onfocus="blur();"><img src="fx/default/bbcode/s.gif" alt="Durchgestrichen" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('IMG');" onfocus="blur();"><img src="fx/default/bbcode/img.gif" alt="Grafik einfuegen" /></a></td>
<td><a href="javascript:;" onclick="pkBBLink('URL')" onfocus="blur();"><img src="fx/default/bbcode/a.gif" alt="Link einfuegen" /></a></td>
</tr>
<tr>
<td><a href="javascript:;" onclick="pkBBCode('H2');" onfocus="blur();"><img src="fx/default/bbcode/h2.gif" alt="Ueberschrift" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('H3');" onfocus="blur();"><img src="fx/default/bbcode/h3.gif" alt="Ueberschrift" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('H4');" onfocus="blur();"><img src="fx/default/bbcode/h4.gif" alt="Ueberschrift" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('P');" onfocus="blur();"><img src="fx/default/bbcode/p.gif" alt="Absatz" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('QUOTE');" onfocus="blur();"><img src="fx/default/bbcode/qoute.gif" alt="Zitat" /></a></td>
<td><a href="javascript:;" onclick="pkBBLink('EMAIL')" onfocus="blur();"><img src="fx/default/bbcode/mail.gif" alt="E-Mail einfuegen" /></a></td>
</tr>
<tr>
<td><a href="javascript:;" onclick="pkBBCode('LEFT');" onfocus="blur();"><img src="fx/default/bbcode/tleft.gif" alt="Linksbuendig" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('CENTER');" onfocus="blur();"><img src="fx/default/bbcode/tcenter.gif" alt="Zentriert" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('RIGHT');" onfocus="blur();"><img src="fx/default/bbcode/tright.gif" alt="Rechtsbuendig" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('BLOCK');" onfocus="blur();"><img src="fx/default/bbcode/tblock.gif" alt="Blocktext" /></a></td>
<td><a href="javascript:pkBBSingle('©')" onfocus="blur();"><img src="fx/default/bbcode/copy.gif" alt="Copyright" /></a></td>
<td><a href="javascript:pkBBSingle('®')" onfocus="blur();"><img src="fx/default/bbcode/reg.gif" alt="Registrierte Marke" /></a></td>
</tr>
<tr>
<td><a href="javascript:;" onclick="pkBBCode('SUP');" onfocus="blur();"><img src="fx/default/bbcode/ex.gif" alt="Hochgestellt" /></a></td>
<td><a href="javascript:;" onclick="pkBBList();" onfocus="blur();"><img src="fx/default/bbcode/list.gif" alt="Liste einfuegen" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('CODE');" onfocus="blur();"><img src="fx/default/bbcode/code.gif" alt="Code" /></a></td>
<td><a href="javascript:pkBBSingle('')" onfocus="blur();"><img src="fx/default/bbcode/hr.gif" alt="Horizontale Trennlinie" /></a></td>
<td><a href="javascript:pkBBSingle('€')" onfocus="blur();"><img src="fx/default/bbcode/euro.gif" alt="Euro" /></a></td>
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
<tr>
<td><a href="javascript:;" onclick="pkBBCode('IMGO')" onfocus="blur();"><img src="./../fx/default/bbcode/imgo.gif" alt="Lightbox anzeigen" title="Lightbox anzeigen" width="20" height="20" border="0" /></a></td>
</tr>
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
<td align="center"><a href="javascript:;" onclick="helpwindow(800,600,'bbcode');"><img src="images/help.gif" alt="Hilfe" /></a></td>
</tr>
<!--Videos BB Codes Anfang-->
<tr>
<td><a href="javascript:;" onclick="myvideos('Myvideo');" onfocus="blur();"><img src="fx/default/bbcode/movies/myvideo.gif" width="20" height="20" alt="My Video Film" title="MyVideo.de Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Youtube');" onfocus="blur();"><img src="fx/default/bbcode/movies/youtube.gif" width="20" height="20" alt="Youtube.com Film" title="Youtube.com Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Clipfish');" onfocus="blur();"><img src="fx/default/bbcode/movies/clipfish.gif" width="20" height="20" alt="Clipfish.de Film" title="Clipfish.de Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Gametrailer');" onfocus="blur();"><img src="fx/default/bbcode/movies/gametrailer.gif" width="20" height="20" alt="Gametrailer.com Film" title="Gametrailer.com Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Veoh');" onfocus="blur();"><img src="fx/default/bbcode/movies/veoh.gif" width="20" height="20" alt="Veoh Film" title="Veoh.com Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Metacafe');" onfocus="blur();"><img src="fx/default/bbcode/movies/metacafe.gif" width="20" height="20" alt="Metacafe Film" title="Metacafe.com Film einfügen" border="0" /></a></td>
</tr>
<tr>
<td><a href="javascript:;" onclick="myvideos('Myspace');" onfocus="blur();"><img src="fx/default/bbcode/movies/myspace.gif" width="20" height="20" alt="Myspace Film" title="Myspace.com Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Dailymotion');" onfocus="blur();"><img src="fx/default/bbcode/movies/dailymotion.gif" width="20" height="20" alt="Dailymotion Film" title="Dailymotion Film einfügen" border="0" /></a></td>
</tr>
<!--Videos BB Codes Ende-->
<tr>
<td valign="top" colspan="6" nowrap="nowrap"><a href="javascript:;" onclick="pkBBCode('white');" onfocus="blur();"><img src="fx/default/bbcode/cwhite.gif" alt="Farbwahl weiss" /></a><a
href="javascript:;" onclick="pkBBCode('gray');" onfocus="blur();"><img src="fx/default/bbcode/cgray.gif" alt="Farbwahl grau" /></a><a
href="javascript:;" onclick="pkBBCode('royalblue');" onfocus="blur();"><img src="fx/default/bbcode/cbleu.gif" alt="Farbwahl hellblau" /></a><a
href="javascript:;" onclick="pkBBCode('navy');" onfocus="blur();"><img src="fx/default/bbcode/cblue.gif" alt="Farbwahl blau" /></a><a
href="javascript:;" onclick="pkBBCode('red');" onfocus="blur();"><img src="fx/default/bbcode/cred.gif" alt="Farbwahl rot" /></a><a
href="javascript:;" onclick="pkBBCode('orange');" onfocus="blur();"><img src="fx/default/bbcode/corange.gif" alt="Farbwahl orange" /></a><a
href="javascript:;" onclick="pkBBCode('yellow');" onfocus="blur();"><img src="fx/default/bbcode/cyellow.gif" alt="Farbwahl gelb" /></a><a
href="javascript:;" onclick="pkBBCode('green');" onfocus="blur();"><img src="fx/default/bbcode/cgreen.gif" alt="Farbwahl grün" /></a><a
href="javascript:;" onclick="pkBBCode('DimGray');" onfocus="blur();"><img src="fx/default/bbcode/cdarkgray.gif" alt="Farbwahl dunkelgrau" /></a></td>
</tr>
</table>
</td>
</tr>
</table>
|
|
|
|
|
HTML - Code Ende: (70 Zeilen) | Code markieren
|
pkinc/admintpl/format_text.htm
Klapptext Inhalt anzeigen
|
HTML - Code Anfang: (69 Zeilen) | Code markieren
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
<table class="bbsmilies" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="bbsmilies" align="center">
<table border="0" cellspacing="3" cellpadding="0" width="100%">
<tr>
<td><a href="javascript:;" onclick="pkBBCode('B');" onfocus="blur();"><img src="./../fx/default/bbcode/b.gif" alt="Fettschrift" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('I');" onfocus="blur();"><img src="./../fx/default/bbcode/i.gif" alt="Kursivschrift" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('U');" onfocus="blur();"><img src="./../fx/default/bbcode/u.gif" alt="Unterstrichen" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('D');" onfocus="blur();"><img src="./../fx/default/bbcode/s.gif" alt="Durchgestrichen" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('IMG');" onfocus="blur();"><img src="./../fx/default/bbcode/img.gif" alt="Grafik einfuegen" /></a></td>
<td><a href="javascript:;" onclick="pkBBLink('URL')" onfocus="blur();"><img src="./../fx/default/bbcode/a.gif" alt="Link einfuegen" /></a></td>
</tr>
<tr>
<td><a href="javascript:;" onclick="pkBBCode('H2');" onfocus="blur();"><img src="./../fx/default/bbcode/h2.gif" alt="Ueberschrift" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('H3');" onfocus="blur();"><img src="./../fx/default/bbcode/h3.gif" alt="Ueberschrift" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('H4');" onfocus="blur();"><img src="./../fx/default/bbcode/h4.gif" alt="Ueberschrift" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('P');" onfocus="blur();"><img src="./../fx/default/bbcode/p.gif" alt="Absatz" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('QUOTE');" onfocus="blur();"><img src="./../fx/default/bbcode/qoute.gif" alt="Zitat" /></a></td>
<td><a href="javascript:;" onclick="pkBBLink('EMAIL')" onfocus="blur();"><img src="./../fx/default/bbcode/mail.gif" alt="E-Mail einfuegen" /></a></td>
</tr>
<tr>
<td><a href="javascript:;" onclick="pkBBCode('LEFT');" onfocus="blur();"><img src="./../fx/default/bbcode/tleft.gif" alt="Linksbuendig" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('CENTER');" onfocus="blur();"><img src="./../fx/default/bbcode/tcenter.gif" alt="Zentriert" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('RIGHT');" onfocus="blur();"><img src="./../fx/default/bbcode/tright.gif" alt="Rechtsbuendig" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('BLOCK');" onfocus="blur();"><img src="./../fx/default/bbcode/tblock.gif" alt="Blocktext" /></a></td>
<td><a href="javascript:pkBBSingle('©')" onfocus="blur();"><img src="./../fx/default/bbcode/copy.gif" alt="Copyright" /></a></td>
<td><a href="javascript:pkBBSingle('®')" onfocus="blur();"><img src="./../fx/default/bbcode/reg.gif" alt="Registrierte Marke" /></a></td>
</tr>
<tr>
<td><a href="javascript:;" onclick="pkBBCode('SUP');" onfocus="blur();"><img src="./../fx/default/bbcode/ex.gif" alt="Hochgestellt" /></a></td>
<td><a href="javascript:;" onclick="pkBBList();" onfocus="blur();"><img src="./../fx/default/bbcode/list.gif" alt="Liste einfuegen" /></a></td>
<td><a href="javascript:;" onclick="pkBBCode('CODE');" onfocus="blur();"><img src="./../fx/default/bbcode/code.gif" alt="Code" /></a></td>
<td><a href="javascript:pkBBSingle('')" onfocus="blur();"><img src="./../fx/default/bbcode/hr.gif" alt="Horizontale Trennlinie" /></a></td>
<td><a href="javascript:pkBBSingle('€')" onfocus="blur();"><img src="./../fx/default/bbcode/euro.gif" alt="Euro" /></a></td>
</tr>
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
<tr>
<td><a href="javascript:;" onclick="pkBBCode('IMGO')" onfocus="blur();"><img src="./../fx/default/bbcode/imgo.gif" alt="Lightbox anzeigen" title="Lightbox anzeigen" width="20" height="20" border="0" /></a></td>
</tr>
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
<!--Videos BB Codes Anfang-->
<tr>
<td><a href="javascript:;" onclick="myvideos('Myvideo');" onfocus="blur();"><img src="./../fx/default/bbcode/movies/myvideo.gif" alt="My Video Film" title="MyVideo.de Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Youtube');" onfocus="blur();"><img src="./../fx/default/bbcode/movies/youtube.gif" alt="Youtube.com Film" title="Youtube.com Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Clipfish');" onfocus="blur();"><img src="./../fx/default/bbcode/movies/clipfish.gif" alt="Clipfish.de Film" title="Clipfish.de Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Gametrailer');" onfocus="blur();"><img src="./../fx/default/bbcode/movies/gametrailer.gif" alt="Gametrailer.com Film" title="Gametrailer.com Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Veoh');" onfocus="blur();"><img src="./../fx/default/bbcode/movies/veoh.gif" alt="Veoh Film" title="Veoh.com Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Metacafe');" onfocus="blur();"><img src="./../fx/default/bbcode/movies/metacafe.gif" alt="Metacafe Film" title="Metacafe.com Film einfügen" border="0" /></a></td>
</tr>
<tr>
<td><a href="javascript:;" onclick="myvideos('Myspace');" onfocus="blur();"><img src="./../fx/default/bbcode/movies/myspace.gif" width="20" height="20" alt="Myspace Film" title="Myspace.com Film einfügen" border="0" /></a></td>
<td><a href="javascript:;" onclick="myvideos('Dailymotion');" onfocus="blur();"><img src="./../fx/default/bbcode/movies/dailymotion.gif" width="20" height="20" alt="Dailymotion Film" title="Dailymotion Film einfügen" border="0" /></a></td>
</tr>
<!--Videos BB Codes Ende-->
<tr>
<td valign="top" colspan="6" nowrap="nowrap"><a href="javascript:;" onclick="pkBBCode('white');" onfocus="blur();"><img src="./../fx/default/bbcode/cwhite.gif" alt="Farbwahl weiss" /></a><a
href="javascript:;" onclick="pkBBCode('gray');" onfocus="blur();"><img src="./../fx/default/bbcode/cgray.gif" alt="Farbwahl grau" /></a><a
href="javascript:;" onclick="pkBBCode('royalblue');" onfocus="blur();"><img src="./../fx/default/bbcode/cbleu.gif" alt="Farbwahl hellblau" /></a><a
href="javascript:;" onclick="pkBBCode('navy');" onfocus="blur();"><img src="./../fx/default/bbcode/cblue.gif" alt="Farbwahl blau" /></a><a
href="javascript:;" onclick="pkBBCode('red');" onfocus="blur();"><img src="./../fx/default/bbcode/cred.gif" alt="Farbwahl rot" /></a><a
href="javascript:;" onclick="pkBBCode('orange');" onfocus="blur();"><img src="./../fx/default/bbcode/corange.gif" alt="Farbwahl orange" /></a><a
href="javascript:;" onclick="pkBBCode('yellow');" onfocus="blur();"><img src="./../fx/default/bbcode/cyellow.gif" alt="Farbwahl gelb" /></a><a
href="javascript:;" onclick="pkBBCode('green');" onfocus="blur();"><img src="./../fx/default/bbcode/cgreen.gif" alt="Farbwahl grün" /></a><a
href="javascript:;" onclick="pkBBCode('DimGray');" onfocus="blur();"><img src="./../fx/default/bbcode/cdarkgray.gif" alt="Farbwahl dunkelgrau" /></a></td>
</tr>
</table>
</td>
</tr>
</table>
|
|
|
|
|
HTML - Code Ende: (69 Zeilen) | Code markieren
|
Vielleicht bin ich auch blind, habe alles 3mal nachgeschaut. Wäre schön, wenn sich einer die Mühe machen könnte und auch nochmal sein Auge drüber zu werfen.
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 18.09.2011 - 13:07 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
Themen Baumstruktur
Beiträge |
Autor |
Datum |
|
piff80 |
18.09.2011 - 13:07 |
|
piff80 |
18.09.2011 - 13:19 |
|
Sascha (BFM) |
18.09.2011 - 14:55 |
|
piff80 |
18.09.2011 - 17:09 |
|
Sascha (BFM) |
18.09.2011 - 17:49 |
|
piff80 |
18.09.2011 - 18:13 |
|
Sascha (BFM) |
18.09.2011 - 18:18 |
|
piff80 |
18.09.2011 - 18:27 |
|
Sascha (BFM) |
18.09.2011 - 18:35 |
|
piff80 |
18.09.2011 - 18:37 |
|
Sascha (BFM) |
18.09.2011 - 18:48 |
|
Mystery (SP) |
19.09.2011 - 18:26 |
|
piff80 |
19.09.2011 - 22:02 |
|
Mystery (SP) |
20.09.2011 - 07:31 |
|
Sascha (BFM) |
20.09.2011 - 10:23 |
|
piff80 |
20.09.2011 - 19:34 |
|
Sascha (BFM) |
20.09.2011 - 21:48 |
|
piff80 |
20.09.2011 - 21:58 |
|
Sascha (BFM) |
20.09.2011 - 22:22 |
|
piff80 |
21.09.2011 - 18:07 |
|
Sascha (BFM) |
21.09.2011 - 18:36 |
|
 |
 |
|
 |
|
|