HTH-C.com - Forum
Latest News Latest Threads
Neuerung: Persönliche Galerie
Informationen zur Übernahme der Erweite..
HTH Blog - Version 2.0
#HTH.Systems - Betatester gesucht
Neueröffnung - PHPKit-Award.de
HTH Webchat v3
Letzter Beitrag Happy Birthday Bottyline Weiblicher Benutzer Heute, 0:00 Zeit der letzten Antwort
Letzter Beitrag Gibt es eigentlich noch jemand der PHPki.. Myrddin Männlicher Benutzer 19.04.2025 - 02:37 Zeit der letzten Antwort
Letzter Beitrag Herzlich Willkommen Botty Männlicher Benutzer 22.11.2024 - 21:45 Zeit der letzten Antwort
Letzter Beitrag PHPKit 1.6.6 WEBI Männlicher Benutzer 24.06.2024 - 13:58 Zeit der letzten Antwort
Letzter Beitrag PHPKit 1.6.6 ohne ASCE auf PHP8x Myrddin Männlicher Benutzer 22.03.2023 - 13:36 Zeit der letzten Antwort
 56.474 Posts & 4.945 Themen in 78 Foren
Forenübersicht » Support / Hilfe » PHPKit 1.6.4 & 1.6.5 & 1.6.6 » Modifikationen » Flash als BBcode ins Phpkit 1...

Flash als BBcode ins Phpkit 1.6.4 einbauen
7 Beiträge in diesem Thema
 Geschlossen 
 Seiten (1):    1  
07.12.2007 - 20:48 Uhr
Beitrag: #1
Salve zusammen,
ich kämpfe nun schon länger mit dier Flash geschichte um Flash Videos im Phpkit einzubinden. Habe folgendes geändert:

in pkinc/ class die bbcode.php
schaut bei mir so aus jetzt :



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

PHP-Quelltext

class pkBbcode
    
{
  var 
$urldetect=1;
 var 
$urlcut=1;
 var 
$urlmaxwidth=60;
 var 
$urlwidth1=45;
 var 
$urlwidth2=-15;

 var 
$censoruse=1;
 var 
$censorreplace='*';

 var 
$bbhash='';
 var 
$smiliehash='';
 var 
$urltag=array('tag'=>'url','html'=>'<a target="_blank" href="{option}">{text}</a>');
 var 
$imagetags=array(
  array(
'tag'=>'img','html'=>'<img border="0" alt="" src="{image}" />'),
  array(
'tag'=>'imgr','html'=>'<img border="0" alt="" src="{image}" align="right" />'),
  array(
'tag'=>'imgl','html'=>'<img border="0" alt="" src="{image}" align="left" />'));

 function 
bbdefine () {
  global 
$lang;
  
$this->bbhash=array(
  array(
'tag'=>'myvideo','html'=>'<object style="width:450px;height:325px;" type="application/x-shockwave-flash" data="http://www.myvideo.de/movie/{text}"><param name="movie" value="http://www.myvideo.de/movie/{text}"/><param name="FlashVars" value="DESTSERVER=http://www.myvideo.de&LINKTEXT=MyVideo"/> <param name="AllowFullscreen" value="true" /></object><br/><a href="http://www.myvideo.de/watch/{text}"></a>'),
  array(
'tag'=>'youtube','html'=>'<object width="450" height="325"><param name="movie" value="http://www.youtube.com/v/{text}&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{text}&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="450" height="325"></embed></object>'),
  array(
'tag'=>'gametrailer','html'=>'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="450" height="325">    <param name="allowScriptAccess" value="sameDomain" />     <param name="allowFullScreen" value="true" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid={text}"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid={text}" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="325"></embed> </object>'),
  array(
'tag'=>'clipfish','html'=>'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="450" height="325" id="player" align="middle"><param name="allowScriptAccess" value="always" /><param name="movie" value="http://www.clipfish.de/videoplayer.swf?as=0&videoid={text}=&r=1&c=0067B3" />  <param name="quality" value="high" /><param name="bgcolor" value="#0067B3" /><param name="allowFullScreen" value="true" /><embed src="http://www.clipfish.de/videoplayer.swf?as=0&videoid={text}=&r=1&c=transparent" quality="high" bgstyle="color: #transparent; font-family: 'Courier New';" width="450" height="325" name="player" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>'),
  array(
'tag'=>'stage6','html'=>'<object codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" height="325" width="450" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"><param name="autoplay" value="false"><param name="src" value="http://video.stage6.com/{text}/.divx" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/{text}/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="325" width="450" /></object>'),
  array(
'tag'=>'hr','html'=>'<hr />'),
  array(
'tag'=>'\*','html'=>'<li>'),
  array(
'tag'=>'list','html'=>'<ul>{text}</ul>'),
  array(
'tag'=>'list=1','html'=>'<ol type="1">{text}</ol>'),
  array(
'tag'=>'list=a','html'=>'<ol type="a">{text}</ol>'),
  array(
'tag'=>'b','html'=>'<b>{text}</b>'),
  array(
'tag'=>'i','html'=>'<i>{text}</i>'),
  array(
'tag'=>'u','html'=>'<u>{text}</u>'),
  array(
'tag'=>'d','html'=>'<strike>{text}</strike>'),
  array(
'tag'=>'h2','html'=>'<h2>{text}</h2>'),
  array(
'tag'=>'h3','html'=>'<h3>{text}</h3>'),
  array(
'tag'=>'h4','html'=>'<h4>{text}</h4>'),
  array(
'tag'=>'p','html'=>'<p>{text}</p>'),
  array(
'tag'=>'sub','html'=>'<sub>{text}</sub>'),
  array(
'tag'=>'sup','html'=>'<sup>{text}</sup>'),
  array(
'tag'=>'left','html'=>'<div align="left">{text}</div>'),
  array(
'tag'=>'center','html'=>'<div align="center">{text}</div>'),
  array(
'tag'=>'right','html'=>'<div align="right">{text}</div>'),
  array(
'tag'=>'block','html'=>'<div align="justify">{text}</div>'),
  array(
'tag'=>'code','html'=>'<code>{text}</code>'),
  array(
'tag'=>'quote','html'=>'<table class="quote" width="98%" cellpadding="4" cellspacing="1" align="center"><tr><td class="quote"><b>'.$lang['quote'].'</b><br /><font class="quote">{text}</font></td></tr></table><br />'),
  array(
'tag'=>'white','html'=>'<font style="color: #FFFFFF">{text}</font>'),
  array(
'tag'=>'gray','html'=>'<font style="color: #CCCCCC">{text}</font>'),
  array(
'tag'=>'dimgray','html'=>'<font style="color: #333333">{text}</font>'),
  array(
'tag'=>'navy','html'=>'<font style="color: #003399">{text}</font>'),
  array(
'tag'=>'royalblue','html'=>'<font style="color: #0099FF">{text}</font>'),
  array(
'tag'=>'red','html'=>'<font style="color: #FF3333">{text}</font>'),
  array(
'tag'=>'orange','html'=>'<font style="color: #FF7F00">{text}</font>'),
  array(
'tag'=>'yellow','html'=>'<font style="color: #FFFF00">{text}</font>'),
  array(
'tag'=>'green','html'=>'<font style="color: #00FF00">{text}</font>'),
  array(
'tag'=>'white','html'=>'<font style="color: #333333">{text}</font>'),
  array(
'tag'=>'color','html'=>'<font style="color: {option}">{text}</font>'),
  array(
'tag'=>'email','html'=>'<a href="mailto:{text}">{text}</a>'),
  array(
'tag'=>'email','html'=>'<a href="mailto:{option}">{text}</a>'));
  }

 function 
definesmilies() {
  global 
$DB$db_tab;
  
$getsmilies=$DB->query("SELECT * FROM ".$db_tab['smilies']);
  while (
$smilies=$DB->fetch_array($getsmilies)) {$this->smiliehash[$smilies['smilie_id']]=$smilies;}
  }

 function 
parse($text=''$html=''$bb=''$smilies='',$images='',$censor='') {
  
$text=trim($text);
  if (
$text!='') {
   
$text=preg_replace('/[&|?]'.session_name().'=([a-z0-9A-Z]{0,32})[^&|\w|\n|\#|\]|\[]*/','',$text);
   if (
$censor==1$text=$this->textcensor($text);
   if (
$this->urldetect==1$text=$this->urldetect($text);
   if (
$html!=1$text=htmlentities($text);
   else 
$text=$this->preparehtml($text);
   if (
$images!=1$text=$this->removeimages($text);
   if (
$bb==1$text=$this->bbcode($text);
   if (
$smilies==1$text=$this->smilies($text);

   
$text=$this->parseimages($text);
   
$text=$this->urlparse($text);
   
$text=$this->returntext($text);
   if (
$html==1$text=str_replace('&quot;','"',$text);
   return 
$text;
   }
  else return 
FALSE;
  }

 function 
urldetect($text) {
  
$text=eregi_replace("([ \r\n])http://([^ ,\r\n]*)","\\1http://\\2",$text);
  
$text=eregi_replace("([ \r\n])https://([^ ,\r\n]*)","\\1https://\\2",$text);
  
$text=eregi_replace("([ \r\n])ftp://([^ ,\r\n]*)","\\1ftp://\\2",$text);
  
$text=eregi_replace("([ \r\n])www\\.([^ ,\r\n]*)","\\1http://www.\\2",$text);
  
$text=eregi_replace("^http://([^ ,\r\n]*)","http://\\1",$text);
  
$text=eregi_replace("^https://([^ ,\r\n]*)","https://\\1",$text);
  
$text=eregi_replace("^ftp://([^ ,\r\n]*)","ftp://\\1",$text);
  
$text=eregi_replace("^www\\.([^ ,\r\n]*)","http://www.\\1",$text);
  return 
$text;
  }

 function 
urlparse($text='') {
  
$code=$this->urltag;
  
$text=preg_replace("#\[".$code['tag']."=(.*)\]([^\]|\[]*)\[/".$code['tag']."\]#eiU","\$this->urlrewrite('$code[html]','\\1','\\2')",$text);
  
$text=preg_replace("#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#esiU","\$this->urlrewrite('$code[html]','\\1')",$text);
  return 
$text;
  }

 function 
urlrewrite($html=''$url=''$text='') {
  if (
$text==''$text=$url;
  if (
$this->urlcut==&& strlen(trim($text) && preg_match("([^<>\[\]])",$text))>$this->urlmaxwidth$text=substr(trim($text),0,$this->urlwidth1)."...".substr(trim($text),$this->urlwidth2);
  
$rewritedurl=str_replace("\\\"","\"",str_replace("{option}",trim($url),str_replace("{text}",trim($text),$html)));
  return 
$rewritedurl;
  }
 function 
parseimages ($text='') {
  
$tags=$this->imagetags;
  foreach (
$tags as $code) {
   
$text=preg_replace("#\[".$code['tag']."]([^\"\?\&]*\.(gif|jpg|jpeg|bmp|png))\[\/".$code['tag']."\]#eiU","\$this->image('$code[html]','\\1')",$text);
   }
  return 
$text;
  }

 function 
bbcode($text='') {
  if (
$this->bbhash==''$this->bbdefine();
  if (
is_array($this->bbhash)) {
   foreach(
$this->bbhash as $code) {
    if (
strstr($code['html'],'{option}')) $text=preg_replace("#\[".$code['tag']."=(.*)\](.*)\[/".$code['tag']."\]#eisUS","\$this->bbreplace('$code[html]','\\2','\\1')",$text);
    elseif (
strstr($code['html'],'{text}')) {
     
$pattern="#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#eisUS";
     while(
preg_match($pattern,$text)) {$text=preg_replace($pattern,"\$this->bbreplace('$code[html]','\\1')",$text);}
     }
    else 
$text=preg_replace("/\[".$code['tag']."\]/",$code['html'],$text);
    }
   }
  return 
$text;
  }

 function 
bbreplace($html='',$text='',$option='') {
  if (
$option!=''$text=str_replace("{option}",$option,str_replace("{text}",$text,$html));
  else 
$text=str_replace("{text}",$text,$html);
  return 
$text;
  }

 function 
image($html=''$url='') {
  return 
str_replace("{image}",$url,$html);
  }

 function 
removeimages($text='') {
  return 
preg_replace("#\[[img|imgr|imgl]\]#i",",preg_replace("#\[/[img|imgr|imgl]\]#i","" class="hidelink" target="_blank">",preg_replace("#\[/[img|imgr|imgl]\]#i","",$text));
  }

 function 
smilies ($text='') {
  if (
$this->smiliehash==''$this->definesmilies();
  if (
is_array($this->smiliehash)) {
   foreach (
$this->smiliehash as $smilie) {
    if (
$smilie_size=@getimagesize($smilie['smilie_path'])) $smilie_size=$smilie_size[3];
    else unset(
$smilie_size);
    
$text=str_replace($smilie['smilie_code'],'<img src="'.$smilie['smilie_path'].'" border="0" alt="'.$smilie['smilie_title'].'" '.$smilie_size.' />',$text);
    }
   }
  return 
$text;
  }

 function 
textcensor($text='') {
  global 
$config;
  if (
$config['censor_badword']!='' && $this->censoruse==1) {
   
$r=$this->censorreplace;
   
$censorlist=explode("\n",$config['censor_badword']);
   foreach(
$censorlist as $c) {
    
$c=trim($c);
     if (
$c!='') {
      
$cc=strlen($c);
      if (
preg_match("#\{(.*)\}#isU",$c)) {
      
$cc=$cc-2;
      while(
$cc>0) {$rr.=$r$cc--;}
      
$text=preg_replace($c," ".$rr." ",$text);
      }
     else {
      while(
$cc>0) {$rr.=$r$cc--;}
      
$text=eregi_replace($c,$rr,$text);
      }
     }
    unset(
$cc); unset($rr);
    }
   }
  return 
$text;
  }

 function 
preparehtml($text='') {
  
$text=preg_replace("#<table(.*)>([ |\n|\r\s]{1,})<tr#iUs","<table\\1><tr",$text);
  
$text=preg_replace("#<tr(.*)>([ |\n|\r\s]{1,})<td#iUs","<tr\\1><td",$text);
  
$text=preg_replace("#</td>([ |\n|\r\s]{1,})</tr>#iUs","</td></tr>",$text);
  
$text=preg_replace("#</tr>([ |\n|\r\s]{1,})</table>#iUs","</tr></table>",$text);
  return 
str_replace('"',"&quot;",$text);
  }

 function 
returntext($text='') {
  return 
preg_replace("/javascript:/i","java script:",preg_replace("/vb script:/i","vb script:",nl2br($text)));
  }
 }
?>


in pkinc/publictpl/ die format_text.htm
schaut so aus:



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

PHP-Quelltext

<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="Email 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('&copy;')" onFocus="blur();"><img src="fx/default/bbcode/copy.gif" alt="Copyright"/></a></td>
      <
td><a href="javascript:pkBBSingle('&reg;')" 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="mycode(document.myform,'FLASH','http://www.youtube.com/v/');" onFocus="blur();" ><img src="images/bbcode/flash.gif" width="20" height="20" alt="Flash einfuegen" border="0" /></a></td>
           <
td><a href="javascript:pkBBSingle('<hr />')" onFocus="blur();"><img src="fx/default/bbcode/hr.gif" alt="Horizontale Trennlinie"/></a></td>

      <
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(document.myform,'myvideo','');" onFocus="blur();"><img src="images/bbcode/myvideo.gif" width="20" height="20" alt="My Video Film" title="MyVideo.de Film einf&uuml;gen" border="0" /></a></td>
      <
td><a href="javascript:;" onclick="myvideos(document.myform,'youtube','');" onFocus="blur();"><img src="images/bbcode/youtube.gif" width="20" height="20" alt="Youtube.com Film" title="Youtube.com Film einf&uuml;gen" border="0" /></a></td>
      <
td><a href="javascript:;" onclick="myvideos(document.myform,'clipfish','');" onFocus="blur();"><img src="images/bbcode/clipfish.gif" width="20" height="20" alt="Clipfish.de Film" title="Clipfish.de Film einf&uuml;gen" border="0" /></a></td>
      <
td><a href="javascript:;" onclick="myvideos(document.myform,'gametrailer','');" onFocus="blur();"><img src="images/bbcode/gametrailer.gif" width="20" height="20" alt="Gametrailer.com Film" title="Gametrailer.com Film einf&uuml;gen" border="0" /></a></td>
      <
td><a href="javascript:;" onclick="myvideos(document.myform,'stage6','');" onFocus="blur();"><img src="images/bbcode/stage6.gif" width="20" height="20" alt="Stage6.com" title="Stage6.com Film einf&uuml;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&uuml;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>


Doch es tut sich nichts, habe zwar die Buttons auf der Seite doch beim anklicken tut sich nichts.....weiß wer rat?

Wie gesagt es handelt sich um die Phpkit 1.6.4 version.

Ich danke im Vorraus für jede art von hilfe...

Lg Asche

 
Zum Anfang der Seite
07.12.2007 - 21:49 Uhr
Beitrag: #2
Hast du denn auch die Javascript-Funktion myvideos() in der Datei fx/main.js hinzugefügt?
Eventuell auch einfach mal den entsprechenden BB-Code von Hand eingeben, um zu testen ob er überhaupt funktioniert.

Ansonsten wäre ein Link zu deiner Seite in dem Fall wirklich sehr hilfreich!

Grtz

 
Zum Anfang der Seite
07.12.2007 - 22:15 Uhr
Beitrag: #3
Ja sry link habe ich vergessen Schattenschmiede

meinst du dass? also so sieht meine main.js nun aus :



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

PHP-Quelltext

// *** Text bei der Eingabeaufforderung ***********
linkname "Geben Sie bitte den Linknamen an (optional).";
linkadresse "Geben Sie bitte die vollst&auml;ndige Adresse des Links an.";
videonummer "Geben Sie bitte die Nummer des Videos ein:";
emailname "Geben Sie bitte die E-Mail-Adresse ein.";
listentyp "F&uuml;r eine numerierte Liste geben Sie eine '1' an. F&uuml;r eine alphabetische ein 'a'.nF&uuml;r eine einfache Punktliste dr&uuml;cken Sie ok.";
listenwerte "Geben Sie bitte die Listenpunkte ein und dr&uuml;cken Sie anschliessend ok.nAlternativ k&ouml;nnen Sie 'Abbrechen' w&auml;hlen, 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;}
 }

 
ondblclick="pkBBSelection(this);";

/*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();
    }
//--- Video BB Codes Anfang ----
function myvideos(myform,mycode,fensterausgabe) {
 
setfocus(myform);
 if ((
mymode(myform)) || (mycode=="IMG")) {
   if (
textmarkiert) var direkttext=textmarkiert;
  else var 
direkttext=fensterausgabe;
  
inserttext prompt(videonummer+"n["+mycode+"]..Videonummer..[/"+mycode+"]",direkttext);
  if ((
inserttext != null) && (inserttext != "")) {
   
auswahltext "["+mycode+"]"+inserttext+"[/"+mycode+"]";
   
mytextadd(auswahltext,myform);
  }
 }
 else {
  
untersagt false;
  for (
0bbtags.lengthi++) {
   if (
bbtags[i] == mycodeuntersagt true;
  }
  if (!
untersagt) {
   
myform.content.value += "["+mycode+"]";
   
arraypush(bbtags,mycode);
  }
 }
 
setfocus(myform);
}
// --- Video BB Codes Ende ----
/*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+"]n";
        
listend "[/list="+listtype+"] ";
        }
    else
        {
        
mylist "<ul>n";
        
listend "</ul> ";
        }

    
listentry="initial";
    while((
listentry!="") && (listentry != null))
        {
        
listentry=prompt(listenwerte,'');

        if((
listentry!='') && (listentry != null))
            
mylist mylist+"[li]"+listentry+"[/li]n";
        }

    
pkBBCodeAdd(mylist+listend);
    }



Ich mach dir gern en test account. schreib mich einfach per pn an oder? is wohl am einfachsten.

Danke dir schon mal fürs antworten =)


Lg Asche

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Asche Sturm - 07.12.2007 - 22:17 Uhr
 
Zum Anfang der Seite
07.12.2007 - 23:27 Uhr
Beitrag: #4
Ein Testaccount werd ich nicht brauchen, da ich als Gast eigentlcih genug seh zwinkern

Aber versuch mal folgendes...
Such in der main.js folgende Zeile



1

Quellcode

setfocus(myform);


und ersetz sie mal testweise durch folgende



1

Quellcode

//setfocus(myform);


Scheinbar wurde eine Funktion verwendet, die es bei der 1.6.4 nicht mehr (in dieser Form) gibt.

Grtz

 
Zum Anfang der Seite
08.12.2007 - 00:09 Uhr
Beitrag: #5
Hey,
hab das wie du da schreibst versucht...ändert aber nichts, leider.......
ich vermute das es daher kommt das es die "mycode.js" unter phpkit 1.6.4 so nicht mehr gibt. es gibt ja auch keine lip_parse.php mehr das darf man alles mühselig suchen und abgleichen. aber wie gesagt ich hab net so die ahnung......
hast du noch andere idee wie ich das ans laufen bekomm?


Lg Asche

 
Zum Anfang der Seite
08.12.2007 - 05:15 Uhr
Beitrag: #6
die bb codes selber funktionieren. nur leider hab ich von der 1.6.4 absolut 0 plan.
es liegt aber ,denke ich, an der scriptabfrage. das javascript kann oder wird nicht gefunden bzw. geladen.

 
Zum Anfang der Seite
08.12.2007 - 07:37 Uhr
Beitrag: #7


 
Zum Anfang der Seite
 Seiten (1):    1  
 Geschlossen 

Ähnliche Themen
 
Fragen und Antworten Fragen und Antworten » PHPKit BBCode Flash mit Größenangaben - Letzte Antwort von -=]LCL[=-|BuLLeT| am 12.05.08, 14:38 PHPKit BBCode Flash mit Größenangaben  (12.05.08, 14:38)
Support Support » tufat flash chat+phpkit v. 1.6.03 - Letzte Antwort von xlanhackerx am 21.08.07, 18:55 tufat flash chat+phpkit v. 1.6.03  (21.08.07, 18:55)
Videos Videos » Macromedia Flash Fight - Letzte Antwort von -=]LCL[=-|BuLLeT| am 26.05.07, 04:59 Macromedia Flash Fight  (26.05.07, 04:59)
Modifikationen Modifikationen » Anfrage: Wunsch, Flash-Game u. Kontaktanzeiger - Letzte Antwort von neumicha am 12.05.13, 18:16 Anfrage: Wunsch, Flash-Game u. Kontaktanzeiger  (12.05.13, 18:16)
Support Support » BBcode - Letzte Antwort von BuLLeT am 04.10.09, 00:18 BBcode  (04.10.09, 00:18)

HTH-C.com - Webmedien & Community