|
 |
|
 |
 |
Seiten (1): (1)
BBCode Lightbox
So habe das o.a. installiert.
Der BBCode im foruum funzt hervorragend.
jedoch funzt er nicht im ACP. Wenn ich auf dem Butoon klicke passiert nichts.
Habe jetzt alles mehrfach editiert aber es will einfach nicht.
Wer kann weiter helfen?
im Anhang mal die cfg/bbcode.php:
Klapptext Inhalt anzeigen
|
PHP - Code Anfang: (228 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 |
|
<?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' => 'code',
'html' => '<code>{text}</code>',
'type' => '',#empty=default
),
array(
'tag' => 'code',
'html' => '{text}',
'type' => 'parser',#empty=default
),
array(
'tag' => 'php',
'html' => '{text}',
'type' => 'parser',#empty=default
),
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' => '<img border="0" {width} {height} alt="{image}" title="{image}" src="{image}" /><br /><a href="{image}" rel="lightbox[roadtrip]" title="Lightbox Vollbild">Vollbild anzeigen</a>',
'type' => 'img',
),
##### Lightbox by burnerfm.de & pimpyourkit.de #####
#IMG Fader Modifikation www.kit-coding.de
array(
'tag' => 'img',
'html' => '<img border="0" alt="" src="{image}" longdesc="{imagebig}" />',
'type' => 'img'
),
array(
'tag' => 'imgr',
'html' => '<img border="0" alt="" src="{image}" align="right" longdesc="{imagebig}" />',
'type' => 'img',
),
array(
'tag' => 'imgl',
'html' => '<img border="0" alt="" 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: (228 Zeilen) | Code markieren
|
und hier mal die admintpl/format_text.htm:
Klapptext Inhalt anzeigen
|
HTML - Code Anfang: (54 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 |
|
<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:;" onclick="pkBBCode('PHP');" onfocus="blur();"><img src="./../fx/default/bbcode/php.gif" alt="PHP 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 -->
<td><a href="javascript:;" onclick="pkBBLight('IMGO')" onfocus="blur();"><img src="./../fx/default/bbcode/lightbox.gif" alt="Lightbox in einer Zeile anzeigen lassen." width="20" height="20" border="0" /></a></td>
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
<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: (54 Zeilen) | Code markieren
|
hier die fx/main.js :
Klapptext Inhalt anzeigen
|
PHP - Code Anfang: (158 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 |
|
// *** Text bei der Eingabeaufforderung ***********
linkname = "Geben Sie bitte den Linknamen an (optional).";
linkadresse = "Geben Sie bitte die vollst\u00E4ndige Adresse des Links an.";
/*Lightbox by burnerfm.de & pimpyourkit.de*/
lightbox = "Geben Sie hier den Bildlink an.Sie k\u00F6nnen auch mehrere Angeben! Wenn sie das Feld leerlassen wird die Abfrage beendet.Alternativ k\u00F6nnen Sie 'Abbrechen' w\u00E4hlen, um den Modus direkt zuverlassen.";
/*Lightbox by burnerfm.de & pimpyourkit.de*/
emailname = "Geben Sie bitte die E-Mail-Adresse ein.";
listentyp = "F\u00FCr eine numerierte Liste geben Sie eine '1' an.\rF\u00FCr eine alphabetische ein 'a'.\rF\u00FCr eine einfache Punktliste dr\u00FCcken Sie OK.";
listenwerte = "Geben Sie bitte die Listenpunkte ein und dr\u00FCcken Sie anschliessend OK.\rAlternativ k\u00F6nnen Sie 'Abbrechen' w\u00E4hlen, um die Liste direkt fertigzustellen.";
//**** Pop-Fenster **********
function helpwindow(w,h,e) {
window.open("include.php?path=popup&mode=help&explain="+e,"helpwindow","toolbar=no,scrollbars=yes,resizable=yes,status=no,width="+w+",height="+h);
}
function smiliewindow(w,h) {
window.open("include.php?path=popup&mode=smilies&window_w_size="+w+"&window_h_size="+h,"smilies","toolbar=no,scrollbars=yes,resizable=yes,status=no,width="+w+",height="+h);
}
function finduserID(w,h) {
window.open("include.php?path=popup&mode=finduser&window_w_size="+w+"&window_h_size="+h,"finduser","toolbar=no,scrollbars=yes,resizable=yes,status=no,width="+w+",height="+h);
}
function checkall(status,theelement) {
for (i=0;i<document.myform.length;i++) {if(document.myform.elements[i].name=="" + theelement + "[]") document.myform.elements[i].checked=status;}
}
/*bbcode*/
var pkBBArea=null;
var pkBBSelected='';
function pkBBFocus()
{
pkBBArea.focus();
}
/*textselection*/
function pkBBSelection(obj)
{
pkBBArea=obj;
if(window.getSelection)
pkBBSelected=pkBBArea.value.substring(pkBBArea.selectionStart,pkBBArea.selectionEnd);
else if(document.getSelection)
pkBBSelected=pkBBArea.value.substring(pkBBArea.selectionStart,pkBBArea.selectionEnd);
else if(document.selection)
pkBBSelected=document.selection.createRange().text;
if(pkBBArea.createTextRange)
pkBBArea.caretPos=document.selection.createRange().duplicate();
return true;
}
function pkBBSingle(text)
{
text=' '+text+' ';
pkBBCodeAdd(text);
}
function pkBBCodeAdd(text)
{
if(pkBBArea==null)
{
pkBBArea=document.getElementById('pkBBArea');
pkBBFocus();
pkBBSelection(pkBBArea);
}
if(window.getSelection)
{
pos=pkBBArea.selectionStart + text.length;
pkBBArea.value=pkBBArea.value.substr(0,pkBBArea.selectionStart) + text + pkBBArea.value.substr(pkBBArea.selectionEnd);
pkBBArea.selectionStart=pos;
pkBBArea.selectionEnd=pos;
}
else if(pkBBArea.createTextRange && pkBBArea.caretPos)
{
var caretPos = pkBBArea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1)==' ' ? text + ' ' : text;
}
else
pkBBArea.value+=text
pkBBFocus();
}
function pkBBCode(bbcode)
{
text=(pkBBSelected) ? pkBBSelected : '';
text="["+bbcode+"]"+text+"[/"+bbcode+"]";
pkBBCodeAdd(text);
pkBBFocus();
}
/*Lightbox by burnerfm.de & pimpyourkit.de*/
function pkBBLight(bbcode)
{
text=(pkBBSelected) ? pkBBSelected : '';
entries="initial";
while((entries!="") && (entries != null))
{
entries=prompt(lightbox,text);
showlist ="";
text="";
if((entries!='') && (entries != null))
showlist = "["+bbcode+"]"+entries+"[/"+bbcode+"]";
pkBBCodeAdd(showlist);
}
}
/*Lightbox by burnerfm.de & pimpyourkit.de*/
/*link and email*/
function pkBBLink(bbcode)
{
text=(pkBBSelected) ? pkBBSelected : '';
linktext = prompt(linkname,text);
var fensterausgabe;
if (bbcode == "URL") {
ausgabe = linkadresse;
ausgabeinhalt = "http://";
}
else {
ausgabe = emailname;
ausgabeinhalt = "";
}
linkurl = prompt(ausgabe,ausgabeinhalt);
if ((linkurl != null) && (linkurl != "")) {
if ((linktext != null) && (linktext != "")) {
auswahltext = "["+bbcode+"="+linkurl+"]"+linktext+"[/"+bbcode+"] ";
pkBBCodeAdd(auswahltext);
}
else{
auswahltext = "["+bbcode+"]"+linkurl+"[/"+bbcode+"] ";
pkBBCodeAdd(auswahltext);
}
}
}
/* list */
function pkBBList()
{
listtype=prompt(listentyp,'');
if((listtype == "a") || (listtype == "1"))
{
mylist = "[list="+listtype+"]";
listend = "[/list="+listtype+"] ";
}
else
{
mylist = " ";
}
listentry="initial";
while((listentry!="") && (listentry != null))
{
listentry=prompt(listenwerte,'');
if((listentry!='') && (listentry != null))
mylist = mylist+"[li]"+listentry+"[/li]";
}
pkBBCodeAdd(mylist+listend);
}
|
|
|
|
|
PHP - Code Ende: (158 Zeilen) | Code markieren
|
und hier die pk/fx/main.js
Klapptext Inhalt anzeigen
|
PHP - Code Anfang: (224 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 |
|
// *** Text bei der Eingabeaufforderung ***********
standard = "Geben Sie bitte den gew\u00FCnschten Text ein:";
texteingabe = "Geben Sie bitte Ihren Text ein - ";
linkname = "Geben Sie bitte den Linknamen an (optional).";
linkadresse = "Geben Sie bitte die vollst\u00E4ndige Adresse des Links an.";
/*Lightbox by burnerfm.de & pimpyourkit.de*/
lightbox = "Geben Sie hier den Bildlink an.Sie k\u00F6nnen auch mehrere Angeben! Wenn sie das Feld leerlassen wird die Abfrage beendet.Alternativ k\u00F6nnen Sie 'Abbrechen' w\u00E4hlen, um den Modus direkt zuverlassen.";
/*Lightbox by burnerfm.de & pimpyourkit.de*/
emailname = "Geben Sie bitte die E-Mail-Adresse ein.";
listentyp = "F\u00FCr eine numerierte Liste geben Sie eine '1' an.\rF\u00FCr eine alphabetische ein 'a'.\rF\u00FCr eine einfache Punktliste dr\u00FCcken Sie OK.";
listenwerte = "Geben Sie bitte die Listenpunkte ein und dr\u00FCcken Sie anschliessend OK.\rAlternativ k\u00F6nnen Sie 'Abbrechen' w\u00E4hlen, um die Liste direkt fertigzustellen.";
highlightmsg = "Alles markiert und in die Zwischenablage kopiert.";
searchfailed = "Die Suche lieferte kein Ergebnis.";
admincss = "<link rel='stylesheet' href='fx/default/css/main.css' type='text/css'>";
//**** Pop-Fenster **********
function helpwindow(w,h,e) {
window.open("include.php?path=help&explain="+e,"helpwindow","toolbar=yes,scrollbars=yes,resizable=yes,location=yes,directories=yes,status=yes,menubar=yes,width="+w+",height="+h);
}
function smiliewindow(w,h) {
window.open("include.php?path=popup&mode=smilies&window_w_size="+w+"&window_h_size="+h,"smilies","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
}
function morelinkswindow(w,h,opt) {
window.open("include.php?path=popup&mode=morelinks&window_w_size="+w+"&window_h_size="+h+"&option="+opt,"morelinks","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
}
function readfilewindow(w,h,opt) {
window.open("include.php?path=popup&mode=readfile&window_w_size="+w+"&window_h_size="+h+"&option="+opt,"readfile","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
}
function finduserID(w,h,opt) {
window.open("include.php?path=popup&mode=finduser&window_w_size="+w+"&window_h_size="+h+"&option="+opt,"finduser","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
}
function downloadwindow(w,h,opt) {
window.open("include.php?path=popup&mode=download&window_w_size="+w+"&window_h_size="+h+"&option="+opt,"download","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
}
function previewWindow(w,h) {
window.open("include.php?path=popup&mode=preview&window_w_size="+w+"&window_h_size="+h,"preview","toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
}
function previewTemplate() {
var inf=document.edittemplate.template_value.value + admincss;
popupwindow=window.open(", ","popup","toolbar=no,status=no,scrollbars=yes,resizable=yes");
popupwindow.document.write("" + inf + "");
}
var NS4=(document.layers);
var IE4=(document.all);
var win=window;
var n=0;
function highlightSearch(str) {
var txt, i, found;
if (str == '') return false;
if (NS4) {
if (!win.find(str)) while(win.find(str, false, true)) n++;
else n++;
if (n == 0) alert(searchfailed);
}
if (IE4) {
txt = win.document.body.createTextRange();
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart('character', 1);
txt.moveEnd('textedit');
}
if (found) {
txt.moveStart('character', -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
}
else {
if (n > 0) {n = 0; findit(str);}
else alert(searchfailed);
}
}
return false;
}
function HighlightAndCopy() {
var tempval=eval("document.edittemplate.template_value")
tempval.focus()
tempval.select()
if (document.all){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status=highlightmsg
setTimeout("window.status=''",1800)
}
}
function checkall(status,theelement) {
for (i=0;i<document.myform.length;i++) {if(document.myform.elements[i].name=="" + theelement + "[]") document.myform.elements[i].checked=status;}
}
/*bbocde*/
var pkBBArea=null;
var pkBBSelected='';
function pkBBFocus()
{
pkBBArea.focus();
}
/*textselection*/
function pkBBSelection(obj)
{
pkBBArea=obj;
if(window.getSelection)
pkBBSelected=pkBBArea.value.substring(pkBBArea.selectionStart,pkBBArea.selectionEnd);
else if(document.getSelection)
pkBBSelected=pkBBArea.value.substring(pkBBArea.selectionStart,pkBBArea.selectionEnd);
else if(document.selection)
pkBBSelected=document.selection.createRange().text;
if(pkBBArea.createTextRange)
pkBBArea.caretPos=document.selection.createRange().duplicate();
return true;
}
function pkBBSingle(text)
{
text=' '+text+' ';
pkBBCodeAdd(text);
}
function pkBBCodeAdd(text)
{
if(pkBBArea==null)
{
pkBBArea=document.getElementById('pkBBArea');
pkBBFocus();
pkBBSelection(pkBBArea);
}
if(window.getSelection)
{
pos=pkBBArea.selectionStart + text.length;
pkBBArea.value=pkBBArea.value.substr(0,pkBBArea.selectionStart) + text + pkBBArea.value.substr(pkBBArea.selectionEnd);
pkBBArea.selectionStart=pos;
pkBBArea.selectionEnd=pos;
}
else if(pkBBArea.createTextRange && pkBBArea.caretPos)
{
var caretPos = pkBBArea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1)==' ' ? text + ' ' : text;
}
else
pkBBArea.value+=text
pkBBFocus();
}
function pkBBCode(bbcode)
{
text=(pkBBSelected) ? pkBBSelected : '';
text="["+bbcode+"]"+text+"[/"+bbcode+"]";
pkBBCodeAdd(text);
pkBBFocus();
}
/*Lightbox by burnerfm.de & pimpyourkit.de*/
function pkBBLight(bbcode)
{
text=(pkBBSelected) ? pkBBSelected : '';
entries="initial";
while((entries!="") && (entries != null))
{
entries=prompt(lightbox,text);
showlist ="";
text="";
if((entries!='') && (entries != null))
showlist = "["+bbcode+"]"+entries+"[/"+bbcode+"]";
pkBBCodeAdd(showlist);
}
}
/*Lightbox by burnerfm.de & pimpyourkit.de*/
/*link and email*/
function pkBBLink(bbcode)
{
text=(pkBBSelected) ? pkBBSelected : '';
linktext = prompt(linkname,text);
var fensterausgabe;
if (bbcode == "URL") {
ausgabe = linkadresse;
ausgabeinhalt = "http://";
}
else {
ausgabe = emailname;
ausgabeinhalt = "";
}
linkurl = prompt(ausgabe,ausgabeinhalt);
if ((linkurl != null) && (linkurl != "")) {
if ((linktext != null) && (linktext != "")) {
auswahltext = "["+bbcode+"="+linkurl+"]"+linktext+"[/"+bbcode+"] ";
pkBBCodeAdd(auswahltext);
}
else{
auswahltext = "["+bbcode+"]"+linkurl+"[/"+bbcode+"] ";
pkBBCodeAdd(auswahltext);
}
}
}
/* list */
function pkBBList()
{
listtype=prompt(listentyp,'');
if((listtype == "a") || (listtype == "1"))
{
mylist = "[list="+listtype+"]";
listend = "[/list="+listtype+"] ";
}
else
{
mylist = " ";
}
listentry="initial";
while((listentry!="") && (listentry != null))
{
listentry=prompt(listenwerte,'');
if((listentry!='') && (listentry != null))
mylist = mylist+"[li]"+listentry+"[/li]";
}
pkBBCodeAdd(mylist+listend);
}
|
|
|
|
|
PHP - Code Ende: (224 Zeilen) | Code markieren
|
Das verlinkte Bild http://www.algrafix.de/user1.png existiert nicht mehr bzw. wurde falsch verlinkt!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 01.06.2010 - 19:34 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
RE: BBCode Lightbox
So kann wieder geschlossen werden. Durch einen Tipp von Leiche habe ich folgendes gemacht.
In der Readme steht das man das nachfolgende in der admintpl/site.htm einbauen soll.
|
PHP - Code Anfang: (6 Zeilen) | Code markieren
|
|
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
<link rel="stylesheet" href="fx/lightbox/lightbox.css" type="text/css" media="screen" />
<script src="fx/lightbox/prototype.js" type="text/javascript"></script>
<script src="fx/lightbox/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="fx/lightbox/lightbox.js" type="text/javascript"></script>
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
|
|
|
|
|
PHP - Code Ende: (6 Zeilen) | Code markieren
|
das ganze haben wir ausgetauscht und funzt nun auch
es sieht jetzt so aus:
|
PHP - Code Anfang: (6 Zeilen) | Code markieren
|
|
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
<link rel="stylesheet" href="$config[site_url]/fx/lightbox/lightbox.css" type="text/css" media="screen" />
<script src="$config[site_url]/fx/lightbox/prototype.js" type="text/javascript"></script>
<script src="$config[site_url]/fx/lightbox/scriptaculous.js?load=effe cts" type="text/javascript"></script>
<script src="$config[site_url]/fx/lightbox/lightbox.js" type="text/javascript"></script>
<!-- Lightbox by burnerfm.de & pimpyourkit.de -->
|
|
|
|
|
PHP - Code Ende: (6 Zeilen) | Code markieren
|
Das verlinkte Bild http://www.algrafix.de/user1.png existiert nicht mehr bzw. wurde falsch verlinkt!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 01.06.2010 - 21:23 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.

Das verlinkte Bild images/forumstatus/closed.png existiert nicht mehr bzw. wurde falsch verlinkt!  Zitat Beitrag wurde von Peter am 01.06.2010 - 23:28 geschlossen.
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 01.06.2010 - 23:28 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
Seiten (1): (1)
|
 |
 |
|
 |
|
|