Erledigt (General)

by Deutscher, Tuesday, June 28, 2016, 01:09 (2883 days ago) @ Deutscher
edited by Deutscher, Tuesday, June 28, 2016, 01:20

Ich habe es auch gerade ziemlich lange versucht, aber...meine ohnehin minimalen PHP-Kenntnisse reichen hierfür leider nicht aus.

Jetzt bin ich doch noch drauf gekommen: include/functions.inc.php

 
$bbcode->addCode ('w', 'simple_replace', null, array ('start_tag' => '<span class="w">', 'end_tag' => '</span>'),
 'inline', array ('listitem', 'block', 'inline', 'link', 'quote', 'pre', 'monospace'), array ());
$bbcode->addCode ('r', 'simple_replace', null, array ('start_tag' => '<span class="r">', 'end_tag' => '</span>'),
 'inline', array ('listitem', 'block', 'inline', 'link', 'quote', 'pre', 'monospace'), array ()); 
$bbcode->addCode ('g', 'simple_replace', null, array ('start_tag' => '<div class="g">', 'end_tag' => '</div>'),
 'inline', array ('listitem', 'block', 'inline', 'link', 'quote', 'pre', 'monospace'), array ());
$bbcode->addCode ('l', 'simple_replace', null, array ('start_tag' => '<div class="l">', 'end_tag' => '</div>'),
 'inline', array ('listitem', 'block', 'inline', 'link', 'quote', 'pre', 'monospace'), array ());
 

sowie themes/default/style.css

 
.w   { background:#555; color:#fff}
.r   { background:#db6}
.g   { background:#9c9; margin-left:5%; text-indent:2%; width:50%; font-size:80%; padding: 1em}
.l   { background:#ccf; margin-left:5%; text-indent:2%; width:50%; font-size:80%; padding: 1em}
 

sowie themes/default/subtemplates/posting.inc.tpl

 
<dt id="w" title="Zeile weiß">Z</dt><!--Zeile dunkelgrau untermalt, weiße Schrift-->
<dt id="r" title="Zeile gold">Z</dt><!--Zeile gold untermalt-->
<dt id="g" title="Block grün">Z</dt><!--Block grün untermalt, eingerückt-->
<dt id="l" title="Block blau">Z</dt><!--Block blau untermalt, eingerückt-->
 

Gruß und gute Nacht!
Deutscher


Complete thread:

 RSS Feed of thread