Jetzt kostenlos Anmelden!

HardcoreHans Männlich

ist gerade angekommen

1

Freitag, 1. August 2008, 14:13

Problem bei Code Parse

Ich habe ein Problem mit Code Parse. Immer wennin einer Textzeile "") vorkommt, wird das automatisch in &quot umgewandelt. Habe Code Parse schon bestimmt 5-6x neu eingegeben, doch der Fehler bleibt bestehen. Wer weiß Rat ?
  • Zum Seitenanfang
  • Zum Seitenende

Riddler Männlich

kennen Einige hier

Beiträge: 307

Geschlecht: Männlich

PHPKIT Version: 1.6.5

2

Freitag, 1. August 2008, 20:46

Ich weiß Rat.. erklär es ausführlicher!

Z.B. was meinst du mit Code Parse. Etwa das Addon? Und was meinst du mit 5-6x neu eingegeben? Was hast du denn eingegeben?
Ein bischen Code wäre auch hilfreich, da nicht jeder selbigen gerade zur Hand hat, sofern du vom "Code Parse" Addon von Musel redest...
  • Zum Seitenanfang
  • Zum Seitenende

HardcoreHans Männlich

ist gerade angekommen

3

Samstag, 2. August 2008, 11:01

Ja, ich meine das AddOn Code Parse von Musel. Ich habe von der Original lib.parse ein Backup gemacht und habe dann die Kopie der Datei umgeschrieben. Das ganze habe ich als ich den Fehler bemerkte 5-6x wiederholt, doch leider ohne Erfolg.

Ich weiß nicht woran es liegen kann. Hier mal meine komplette lib.parse:

[KLAPP]

PHP-Quelltext

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
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
<?php 
class parse { 
var $urldetect=1; 
var $urlcut=1; 
var $urlmaxwidth=60; 
var $urlwidth1=45; 
var $urlwidth2=-15; 

var $censoruse=1// text_censor © by http://www.oberlausitz-community.de 2006 
// Zeile ersetzen -> var $censorreplace='*'; 
var $censorreplace='[SUP][u]<Zensur>[/u][/SUP]'// Orginal Code 

var $bbhash=''; 
var $smiliehash=''; 
var $urltag=array('tag'=>'url','html'=>'<a class="forumlink" target="_blank" href="/go.php?url={option}">{text}</a>'); //<-- go.php AddOn 
var $iurltag=array('tag'=>'iurl','html'=>'<a class="forumlink" target="_self" href="{option}">{text}</a>'); //<-- go.php AddOn 
/**************************************** Signatur HACK Anfang ****************************************/ 
var $sigtag=array('tag'=>'sig','html'=>'{image}'); 
/**************************************** Signatur HACK Ende ****************************************/ 
var $hiddentag=array('tag'=>'hidden','html'=>'{text}'); 
var $hiddenstatustag=array('tag'=>'hiddenstatus','html'=>'{text}'); 
var $hiddenposttag=array('tag'=>'hiddenpost','html'=>'{text}'); 
var $hiddencountertag=array('tag'=>'hiddencounter','html'=>'{text}'); 
var $hiddenfieldtag=array('tag'=>'hiddenfield','html'=>'{text}'); 
var $hiddenidtag=array('tag'=>'hiddenid','html'=>'{text}'); 
var $hiddenpwtag=array('tag'=>'hiddenpw','html'=>'{text}'); 
var $hiddenbuddietag=array('tag'=>'hiddenbuddie','html'=>'{text}'); 
// BBCode Deluxe by http://www.oberlausitz-community.de 2006 
var $idzahler=''// in folgender Zeile nur das Wort js_alias durch selbst erdachtes (Buchstaben+Zahlen) ersetzen, siehe Beispiel 
// var $klapptag=array('tag'=>'klapp','html'=>'<table cellspacing="2" cellpadding="2"><tr><td><img src="images/anzeigen.gif" id="Picture{id}" border="0" alt="Klappbereich" title="Klappbereich" height="9" width="9">&nbsp;<a href="mkw0815:KlappBereich({id})" title="Bereich anzeigen oder verstecken">Bereich ein&hArr;ausblenden</a><div id="Layer{id}" style="display:none;">{text}</div></td></tr></table>'); 
var $klapptag=array('tag'=>'klapp','html'=>'<table cellspacing="2" cellpadding="2"><tr><td><img src="images/anzeigen.gif" id="Picture{id}" border="0" alt="Klappbereich" title="Klappbereich" height="9" width="9">&nbsp;<a href="klapp1:KlappBereich({id})" title="Bereich anzeigen oder verstecken">Bereich ein/ausblenden</a><div id="Layer{id}" style="display:none;">{text}</div></td></tr></table>'); 
var $hidepost=array('yes'=>'<table cellspacing="2" cellpadding="2"><tr><td><img src="images/verstecken.gif" border="0" alt="Postbereich" title="Postbereich" height="9" width="9" />&nbsp;<span>Bereich nach Antwort sichtbar</span><div>{text}</div></td></tr></table>','no'=>'<table cellspacing="2" cellpadding="2"><tr><td><img src="images/anzeigen.gif" id="Picture{id}" border="0" alt="Postbereich" title="Postbereich" height="9" width="9" />&nbsp;<span >Bereich nur nach Antwort sichtbar</span></td></tr></table>'); 
var $hideuser=array('yes'=>'<table cellspacing="2" cellpadding="2"><tr><td><img src="images/verstecken.gif" border="0" alt="Userbereich" title="Userbereich" height="9" width="9" />&nbsp;<span>Bereich erst ab User sichtbar</span><div>{text}</div></td></tr></table>','no'=>'<table cellspacing="2" cellpadding="2"><tr><td><img src="images/anzeigen.gif" border="0" alt="Userbereich" title="Userbereich" height="9" width="9" />&nbsp;<span>Bereich für G&auml;ste unsichtbar</span></td></tr></table>'); 
// weiter mit Originalcode 
// var $klapptag=array('tag'=>'klappe','html'=>'{text}'); 
/**************************************** FORUM Pic Anfang! Originalcode angepasst ****************************************/ 
var $imagetags=array( 
array('tag'=>'img','html'=>'{popup}<img border="0" {width_alt} {height_alt} alt="{width}x{height}" title="{width}x{height}" src="{image}" />{popupend}'), 
array('tag'=>'imgr','html'=>'{popup}<img border="0" {width_alt} {height_alt} alt="{width}x{height}" title="{width}x{height}" src="{image}" align="right" />{popupend}'), 
array('tag'=>'imgl','html'=>'{popup}<img border="0" {width_alt} {height_alt} alt="{width}x{height}" title="{width}x{height}" src="{image}" align="left" />{popupend}')); 
/**************************************** FORUM Pic Ende! Originalcode angepasst ****************************************/ 
#BB - FontBBCodes v 0.1 (beta) 
var $tkFontTags = array( 
array('tag'=>'FF''html' => '<span style="font-family: {option};">{text}</span>'), 
array('tag'=>'FS''html' => '<span style="font-size: {option}px;">{text}</span>')); 
#EOS 

function bbdefine () { 
global $lang$this->bbhash=array( 
array('tag'=>'edit','html'=>'<center><table border="2" width="50%" bordercolorlight="#33CC00"><td><center>Beitrag wurde<br><br/>#edit#</center><br><br/><center>GRUND: {text}</center></td></center></table></center><br />'), 
array('tag'=>'warn','html'=>'<center><table border="2" width="50%" bordercolorlight="#CC0000"><td><center>Verfasser des Beitrags wurde <br><br/>#warn#<br><br/>GRUND: <u>{text}</u><br><br/><p>Bitte halte dich an die <a href="include.php?path=boardinfo/regeln.php">FORENREGELN !</a></td></center></table></center><br />'), 
array('tag'=>'attention','html'=>'<center><table border="2" width="50%" bordercolorlight="#FFFF00"><td><center>Hier stimmt was nicht<br><br/>#attention#</center><br><br/><center>{text}</center></td></center></table></center><br />'), 
array('tag'=>'close','html'=>'<center>#close#</center>'), 
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" bgcolor="#transparent" 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'=>'mark','html'=>'<mark>{text}</mark>'), 
array('tag'=>'talk','html'=>'<table style="font-family: arial; color: #000000;"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="24" height="14"><img src="images/talk/obenlinks.gif" align="center" border="0"></td><td width="100" background="images/talk/obenmitte.gif"></td><td width="24"><img src="images/talk/obenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="1" bgcolor="#8E8E8B"><td><table cellpadding="4" cellspacing="0" width="100%" bgcolor="#8E8E8B"><tr><td align="center" bgcolor="#FFFFFF" style="font-family: arial; color: #000000;"><b>{text}</b></td></tr></table></td><td width="1" bgcolor="#8E8E8B"></td></tr></table></td></tr><tr><td width="24" height="14"><img src="images/talk/untenlinks.gif" align="center" border="0"></td><td width="100%" background="images/talk/untenmitte.gif"></td><td width="24"><img src="images/talk/untenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="2" width="50%"></td><td height="30" width="50%" align="center"><img src="images/talk/talk.gif" align="center"border="0"></td></tr></table></td></tr></table></td></tr></table>'), 
array('tag'=>'genius','html'=>'<table style="font-family: arial; color: #000000;"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="24" height="14"><img src="images/talk/obenlinks.gif" align="center" border="0"></td><td width="100" background="images/talk/obenmitte.gif"></td><td width="24"><img src="images/talk/obenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="1" bgcolor="#8E8E8B"><td><table cellpadding="4" cellspacing="0" width="100%" bgcolor="#8E8E8B"><tr><td align="center" bgcolor="#FFFFFF" style="font-family: arial; color: #000000;"><b>{text}</b></td></tr></table></td><td width="1" bgcolor="#8E8E8B"></td></tr></table></td></tr><tr><td width="24" height="14"><img src="images/talk/untenlinks.gif" align="center" border="0"></td><td width="100%" background="images/talk/untenmitte.gif"></td><td width="24"><img src="images/talk/untenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="2" width="80%"></td><td height="20" width="20%" align="center"><img src="images/talk/genius.gif" align="center" border="0"></td></tr></table></td></tr></table></td></tr></table>'), 
array('tag'=>'hae','html'=>'<table style="font-family: arial; color: #000000;"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="24" height="14"><img src="images/talk/obenlinks.gif" align="center" border="0"></td><td width="100" background="images/talk/obenmitte.gif"></td><td width="24"><img src="images/talk/obenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="1" bgcolor="#8E8E8B"><td><table cellpadding="4" cellspacing="0" width="100%" bgcolor="#8E8E8B"><tr><td align="center" bgcolor="#FFFFFF" style="font-family: arial; color: #000000;"><b>{text}</b></td></tr></table></td><td width="1" bgcolor="#8E8E8B"></td></tr></table></td></tr><tr><td width="24" height="14"><img src="images/talk/untenlinks.gif" align="center" border="0"></td><td width="100%" background="images/talk/untenmitte.gif"></td><td width="24"><img src="images/talk/untenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="2" width="80%"></td><td height="27" width="20%" align="center"><img src="images/talk/hae.gif" align="center" border="0"></td></tr></table></td></tr></table></td></tr></table>'), 
array('tag'=>'fu','html'=>'<table style="font-family: arial; color: #000000;"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="24" height="14"><img src="images/talk/obenlinks.gif" align="center" border="0"></td><td width="100" background="images/talk/obenmitte.gif"></td><td width="24"><img src="images/talk/obenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="1" bgcolor="#8E8E8B"><td><table cellpadding="4" cellspacing="0" width="100%" bgcolor="#8E8E8B"><tr><td align="center" bgcolor="#FFFFFF" style="font-family: arial; color: #000000;"><b>{text}</b></td></tr></table></td><td width="1" bgcolor="#8E8E8B"></td></tr></table></td></tr><tr><td width="24" height="14"><img src="images/talk/untenlinks.gif" align="center" border="0"></td><td width="100%" background="images/talk/untenmitte.gif"></td><td width="24"><img src="images/talk/untenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="2" width="80%"></td><td height="30" width="20%" align="center"><img src="images/talk/fu.gif" align="center" border="0"></td></tr></table></td></tr></table></td></tr></table>'), 
array('tag'=>'crazy','html'=>'<table style="font-family: arial; color: #000000;"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="24" height="14"><img src="images/talk/obenlinks.gif" align="center" border="0"></td><td width="100" background="images/talk/obenmitte.gif"></td><td width="24"><img src="images/talk/obenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="1" bgcolor="#8E8E8B"><td><table cellpadding="4" cellspacing="0" width="100%" bgcolor="#8E8E8B"><tr><td align="center" bgcolor="#FFFFFF" style="font-family: arial; color: #000000;"><b>{text}</b></td></tr></table></td><td width="1" bgcolor="#8E8E8B"></td></tr></table></td></tr><tr><td width="24" height="14"><img src="images/talk/untenlinks.gif" align="center" border="0"></td><td width="100%" background="images/talk/untenmitte.gif"></td><td width="24"><img src="images/talk/untenrechts.gif" align="center" border="0"></td></tr><tr><td colspan=3><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="2" width="70%"></td><td height="23" width="30%" align="center"><img src="images/talk/crazy.gif" align="center" border="0"></td></tr></table></td></tr></table></td></tr></table>'), 
array('tag'=>'google','html'=>'<a href="http://www.google.de/search?hl=de&q={text}" target="_blank">Google Suche nach {text}</a>'), 
array('tag'=>'dgoogle','html'=>'<a href="http://www.google.de/search?hl=de&q={text}&meta=lr%3Dlang_de" target="_blank">Google-Suche nach {text} (Deutsch)</a>'), 
array('tag'=>'bgoogle','html'=>'<a href="http://images.google.de/images?hl=de&q={text}" target="_blank">Google-Bildersuche nach {text}</a>'), 
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>'), //---> Farbiger Code <---\\ 
array('tag'=>'nimg','html'=>'<img border="0" alt="" src="{image}" style="filter:XRay()" />'), 
array('tag'=>'blink','html'=>'<blink>{text}</blink>'), 
array('tag'=>'marquee','html'=>'<marquee>{text}</marquee>'), 
array('tag'=>'tt','html'=>'<tt>{text}</tt>'), 
array('tag'=>'wave','html'=>'<a style="width:100%; filter:Wave(freq=5, light=20, phase=50, strength=2)">{text}</a>'), 
array('tag'=>'glow','html'=>'<div style="width:100%;filter:Glow(color=\\2,strength=3)">{text}</div>'), 
array('tag'=>'wiki','html'=>'<a href="http://de.wikipedia.org/wiki/{text}" target="_blank">{text}</a>'), 
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'=>'[color=#ffffff]{text}[/color]'), 
array('tag'=>'gray','html'=>'[color=#cccccc]{text}[/color]'), 
array('tag'=>'dimgray','html'=>'[color=#333333]{text}[/color]'), 
array('tag'=>'navy','html'=>'[color=#003399]{text}[/color]'), 
array('tag'=>'royalblue','html'=>'[color=#0099ff]{text}[/color]'), 
array('tag'=>'red','html'=>'[color=#ff3333]{text}[/color]'), 
array('tag'=>'orange','html'=>'[color=#ff7f00]{text}[/color]'), 
array('tag'=>'yellow','html'=>'[color=#ffff00]{text}[/color]'), 
array('tag'=>'green','html'=>'[color=#00ff00]{text}[/color]'), 
array('tag'=>'white','html'=>'[color=#333333]{text}[/color]'), 
#BB - FontBBCodes v 0.1 (beta) 
array('tag'=>'color','html'=>'<span style="color: {option}">{text}</span>'), 
#EOS 
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 mark_result($string) { 
if ($_SESSION['mark_string'] != '' && (isset($_SESSION['mark_forum']) || isset($_SESSION['mark_content']))) { 
$search_words=explode(" ",$_SESSION['mark_string']); 
if(count($search_words)>0) { 
foreach($search_words as $search_word) { 
if(strlen($search_word)>2) { 
$ersatz "<span style=\"background-color:FF0000; padding:2px;\">$search_word</span>"; 
if (strstr($string,'<')) { 
$p1 strpos($string,'<'); 
$p2 strrpos($string,'>'); 
if ($p1 == 0) { 
$sb_strg1 ''; 
} 
else { 
$sb_strg1 substr($string,0,$p1-1); 
$sb_strg1 preg_replace("/".$search_word."/i"$ersatz$sb_strg1); 
} 
$p2 strrpos($string,'>'); 
if ($p2 == strlen($string)+1) { 
$sb_strg3 ''; 
} 
else { 
$sb_strg3 substr($string,$p2+1); 
$sb_strg3 preg_replace("/".$search_word."/i"$ersatz$sb_strg3); 
} 
$sb_strg2 substr($string,$p1,($p2-$p1)+1); 

preg_match_all("/>[^<]*(".$search_word.")[^>]*</i"$sb_strg2$matchesPREG_PATTERN_ORDER); 
foreach($matches[0] as $match) { 
preg_match("/$search_word/i"$match$out); 
$cs_search_word $out[0]; 
$newtext str_replace($cs_search_word$ersatz$match); 
$sb_strg2 str_replace($match$newtext$sb_strg2); 
} 
$string $sb_strg1.$sb_strg2.$sb_strg3; 
} 
else { 
$string preg_replace("/".$search_word."/i"$ersatz$string); 
} 
} 
} 
} 
} 
return $string; 
} 

function parse($text=''$html=''$bb=''$smilies='',$images='',$censor='',$hidden='') { 
global $config$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); 
/**************************************** Signatur HACK Anfang ****************************************/ 
$text=$this->sigparse($text); 
/**************************************** Signatur HACK Ende ****************************************/ 
#BB - FontBBCodes v 0.1 (beta) 
$text=$this->tkParseFonts($text); 
#EOS 
$text=$this->parseimages($text); 
$text=$this->urlparse($text); 
if($hidden==OR $config['hidden_all_aktiv']==1) { 
$text=$this->hiddenparse($text$hidden); 
$text=$this->hiddenstatusparse($text); 
$text=$this->hiddenpostparse($text); 
$text=$this->hiddencounterparse($text$hidden); 
$text=$this->hiddenfieldparse($text); 
$text=$this->hiddenidparse($text); 
$text=$this->hiddenpwparse($text); 
$text=$this->hiddenbuddieparse($text$hidden);} 
$text=$this->klappparse($text); 
$text=$this->returntext($text); 
if ($html==1$text=str_replace('&quot;','"',$text); 
return code_check($text); //---> Farbiger Code <---\\ 
//return $text; 
} 
else return FALSE; 
} 

function urldetect($text) { 
$text=eregi_replace("([ \r\n])http://([^ ,\r\n]*)","\\1return $text; 
} else { 
$text='<font><span style="color:#e00012;">Der BBcode [hiddenpw] ist deaktiviert!</span></font>'; 
return $text;} 
} 
//hidden_Password 

//hidden Buddie 
function hiddenbuddieparse($text=''$hidden='') { 
$code=$this->hiddenbuddietag$text=preg_replace("#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#esiU","\$this->hiddenbuddierewrite('$code[html]','\\1','$hidden')",$text); 
return $text; 
} 
function hiddenbuddierewrite($html=''$url=''$hidden='') { 
global $DB$db_tab$USER$config$forumpost$replypost; 
if(empty($hidden)) return $url='<font><span style="color:#e00012;">Der BBcode [hiddenbuddie] kann nur im Forum verwendet werden!</span></font>'; 
if($config['hidden_buddie_aktiv']==1) { 
if(empty($forumpost['forumpost_autorid'])) $forumpost['forumpost_autorid']=$replypost['forumpost_autorid']; 
if(empty($forumpost['forumpost_autorid'])) return $url='<font><span style="color:#e00012;">Der BBcode [hiddenbuddie] kann von einem Gast nicht verwendet werden!</span></font>'$buddy_check=$DB->fetch_array($DB->query("SELECT * FROM `".$db_tab['buddy']."` WHERE `buddy_userid`= '".intval($forumpost['forumpost_autorid'])."' AND `buddy_friendid`='".intval($USER['id'])."' LIMIT 1")); 
$nickausgabe=$DB->fetch_array($DB->query("SELECT `user_nick` FROM `".$db_tab['user']."` WHERE `user_id`='".intval($forumpost['forumpost_autorid'])."' LIMIT 1")); 
if($forumpost['forumpost_autorid']==$USER['id'] AND $USER['id']>0) {$url '<table align="center" width="80%" class="standard" cellspacing="1" cellpadding="2"><tr><td class="heads"><font><span style="color:#12ef00;">Sie sind der Ersteller.</span></font></td></tr><tr><td class="odd">'.$url.'</td></tr></table>'; return $url; 
} elseif($buddy_check['buddy_userid']>OR $forumpost['forumpost_autorid']==$USER['id'] AND $USER['id']>OR $config['hidden_admin']==AND $USER['status']=='admin') {$url '<table align="center" width="80%" class="standard" cellspacing="1" cellpadding="2"><tr><td class="heads"><font><span style="color:#12ef00;">'.$nickausgabe['user_nick'].' hat Sie als Buddy.</span></font></td></tr><tr><td class="odd">'.$url.'</td></tr></table>'; 
} else {$url '<table align="center" width="80%" class="standard" cellspacing="1" cellpadding="2"><tr><td class="heads"><font><span style="color:#e00012;">'.$nickausgabe['user_nick'].' hat Sie nicht als Buddy.</span></font></td></tr><tr><td class="odd">Noch nicht lesbar</td></tr></table>'; 
} 
return $url; 
} else { 
$url='<font><span style="color:#e00012;">Der BBcode [hiddenbuddie] ist deaktiviert!</span></font>'; 
return $url;} 
} 
//hidden Buddie 
function klappparse($text='') { 

preg_match_all("#\[klapp(.*)\](.*)\[/klapp(.*)\]#Usi",$text,$treffer); 

foreach ($treffer[0] as $wert) 
{ 
srand(microtime()*1000000); 
$zufall rand(1,10000); 

$neu preg_replace("#\[klapp(.*)\](.*)\[/klapp(.*)\]#Usi",'<a href="javascript:klapptext('.$zufall.');"><img src="images/plus.gif" id="bild'.$zufall.'" style="border:0;"><span id="span'.$zufall.'"> hier klicken zum aufklicken</span></a ><div id="'.$zufall.'" class="klapptext" style="display:none;">\\2</div></div>',$wert); 
$text str_replace($wert,$neu,$text); 

} 

return $text; 

} 
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; 
} 
#BB - FontBBCodes v 0.1 (beta) 
function tkParseFonts($text '') 
{ 
foreach ($this->tkFontTags as $code) 
{ 
$text=preg_replace("#\[".$code['tag']."=(.*)\](.*)\[/".$code['tag']."\]#eisUS","\$this->tkReplaceFonts('$code[html]','\\2','\\1')",$text); 
} 
return stripslashes($text); 
} 

function tkReplaceFonts($html=''$text ''$option '') 
{ 
$tkAllFonts = array("arial""ballon""comic sans ms""garamond""geneva""helvetica""impact""monospace""palatino linotype""sans-serif""times new roman""verdana""wide latin"); //Array der erlaubten Schriftarten (Namen kleinschreiben) 
if (intval($option) > 0) 
{ 
if ($option 8//Schriftgröße muss min. 8px groß sein 
$option 8; 
elseif ($option 26//Schriftgröße darf max. 26px groß sein 
$option 26$rewritetext str_replace("\\\"""\""str_replace("{option}"trim($option), str_replace("{text}",trim($text),$html))); 
} 
elseif (in_array(strtolower($option), $tkAllFonts)) 
{ 
$rewritetext str_replace("\\\"""\""str_replace("{option}"trim($option), str_replace("{text}",trim($text),$html))); 
} 

return $rewritetext; 
} 
//#EOS 
// komplette Funktion bbcode() durch folgende 2 Funktionen ersetzen 
// BBCode Deluxe by http://www.oberlausitz-community.de 2006 
function bbcode($text='') { 
global $DB$db_tab$threadid$user_id $_SESSION['USER']['id']; 
$poster $DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['forumpost']." WHERE forumpost_threadid='".$threadid."' AND forumpost_autorid='".$user_id."'")); 

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); 
} 

if ($user_id 0$text=preg_replace("#\[user\](.*)\[/user\]#eisUS","\$this->spreplace(\$this->hideuser['yes'],'\\1',\$text)",$text); 
else 
$text=preg_replace("#\[user\](.*)\[/user\]#eisUS","\$this->spreplace(\$this->hideuser['no'],'\\1',\$text)",$text); 
if ((!$threadid && $poster[0] == 0) || $poster[0] > 0$text=preg_replace("#\[post\](.*)\[/post\]#eisUS","\$this->spreplace(\$this->hidepost['yes'],'\\1',\$text)",$text); 
else 
$text=preg_replace("#\[post\](.*)\[/post\]#eisUS","\$this->spreplace(\$this->hidepost['no'],'\\1',\$text)",$text); 
if (stristr($text,'[klapp]')) { 
if ($this->idzahler==''$this->idzahler 1$text=preg_replace("#\[klapp\](.*)\[/klapp\]#eisUS","\$this->spreplace(\$this->klapptag['html'],'\\1',\$text,\$this->idzahler++)",$text); 
} 
unset($poster); 

} 
return $text; 
} 

function spreplace($html='',$text='',$vtext='',$klapp='') { 
if ($klapp!='') { 
$html=str_replace("{id}",$klapp,$html); 
} 
if (strpos($vtext,$text) === false$text=str_replace("{text}",stripslashes($text),$html); 
else 
$text=str_replace("{text}",$text,$html); 
return $text; 
} 
// weiter mit Originalcode 

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; 
} 

/**************************************** FORUM Pic Anfang ****************************************/ 
function image($html=''$url='') { 

global $config$forumpost$comment$gbookinfo$userinfo$replypost; 

if ($forumpost['forumpost_id']>AND $config['forum_pic']==or $replypost['forumpost_text'] AND $config['forum_pic']==or $comment!='' AND $config['comment_pic']==or $gbookinfo['gbook_text']!='' AND $config['gb_pic']==or $userinfo['user_gbwelcome']!='' AND $config['pgb_pic']==1) { 
$endung=strrchr($url"."); 
$daten=@getimagesize($url); 
$width_forum=$daten[0]; $height_forum=$daten[1]; 
$format=array("","gif","jpg","png"); 
if($format[$daten[2]]!='' or $endung='bmp' or $endung='jpeg') { 
if ($config['forum_width']<$width_forum) {$width=$config['forum_width']; $width_alt='width='.$config['forum_width'].''; 
} else {$width=$width_forum$width_alt='width='.$width_forum.'';} 
if ($config['forum_height']<$height_forum) {$height=$config['forum_height']; $height_alt='height='.$config['forum_height'].''; 
} else {$height=$height_forum$height_alt='height='.$height_forum.'';} 
} else {$width=$width_forum$height=$height_forum$width_alt=''$height_alt='';} 
if($config['forum_width']<$width_forum or $config['forum_height']<$height_forum) {$popup='<a href="forum_pic.php?url='.$url.'" target="_blank">'$popup_end="</a>"; 
} else {$popup=''$popup_end=''$url=$url;} 
} else {$width=$width_forum$height=$height_forum$width_alt=''$height_alt='';} 
return str_replace("{width}",$width,str_replace("{height}",$height,str_replace("{width_alt}",$width_alt,str_replace("{height_alt}",$height_alt,str_replace("{popup}",$popup,str_replace("{popupend}",$popup_end,str_replace("{image}",$url,$html)))))));} 
/**************************************** FORUM Pic Anfang ****************************************/ 

function removeimages($text='') { 
return preg_replace("#\[[img|imgr|imgl]\]#i","[url='']",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; 
} 

// text_censor by http://www.oberlausitz-community.de 2007 
// Komplette function textcensor($text='') ersetzen 
function textcensor($text='') { 
global $config; 
if ($config['censor_badword']!='' && $this->censoruse==1) { 
$r=$this->censorreplace$censorlist=explode("\n",$config['censor_badword']); 
$cct=count($censorlist); 
for ($i=0;$i<$cct;$i++) { 
$c=trim($censorlist[$i]); 
if (strpos(strtolower($text),ltrim($c," _")) !== FALSE) { 
if (strpos($c,"_") == 0) { 
$text=preg_replace('#'.$c.'#imUs'," ".$r,$text); 
$c=ltrim($c,"_"); 
$text=preg_replace('# '.$c.'#imUs'," ".$r,$text); 
$text=preg_replace('#^'.$c.'#imUs',$r,$text); 
} 
else $text=preg_replace("#'.$c.'#imUs",$r,$text); 
} 
} 
} 
return $text; 
} 
// Orginal Code 

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); 
} 
// komplette Funktion returntext() durch folgende ersetzen 
// BBCode Deluxe by http://www.oberlausitz-community.de 2006 
function returntext($text='') { 
$text preg_replace("/javascript:/i","java script:",preg_replace("/vbscript:/i","vb script:",nl2br($text))); 
if ($this->idzahler!=''// in folgender Zeile nur das Wort js_alias durch selbst erdachtes (gleiches wie oben) ersetzen, siehe Beispiel 
$text=preg_replace("/<a href=\"klapp1\:KlappBereich\(/i","<a href=\"javascript:KlappBereich(",$text); 
# vorherige Zeile ersetzen mit 
if ($_SESSION['mark_option'] == 0) return $this->mark_result($text); 
else return $text# weiter Original 

// weiter mit Originalcode 
//---> Farbiger Code (c) by Musel-online.de <---\\ 
function code_check($text) { 
$pattern="/\[PHP](.*)\[\/PHP\]/esiU"; 
while(preg_match($pattern,$text)) { 
$text=preg_replace($pattern,"highlight_phpcode('\\1')",$text); 
} 
$pattern="/\[CODE](.*)\[\/CODE\]/esiU"; 
while(preg_match($pattern,$text)) { 
$text=preg_replace($pattern,"highlight_code('\\1')",$text); 
} 
return $text; 
} 
//---> Farbiger Code <---\\ 
function highlight_code($code){ 

$trans get_html_translation_table(HTML_ENTITIES); 
$code stripslashes(strtr(strip_tags(str_replace('</P>',"\n",str_replace('<BR>',"\n",str_replace('\\',"\\\\",$code)))), array_flip($trans))); 
ob_start(); 
highlight_string("<?\n".$code." "); 
$code ob_get_contents(); 
ob_end_clean(); 

$code explode('<br />'$code); 

$textwidth "540"$textsmallheight "22"$text '<table class="standard" border="0" width="'.$textwidth.'" cellpadding="4" cellspacing="1" >'$text .= '<tr><br><td class="quote">'$text .= '<table class="quote" style="table-layout: fixed;" border="0" width="'.$textwidth.'" cellpadding="0" cellspacing="0" >'$text .= '<tr><td class="quote"><b>HTML-Code</b></td></tr>'$text .= '<tr><td class="quote">'$text .= '<table border="0" width="100%" cellpadding="0" cellspacing="0" >'$text .= '<tr>'; 

for ($x=1$x sizeof($code); $x++) 
if ($code[$x] != ''$x+0$textheight $x*$textsmallheight$text .= '<td style="background-color: #D5D5D5;" width="100%" valign="top">'$text .= '<div style="overflow: auto; width: '.$textwidth.'px; height: '.$textheight.'px">'$text .= '<table class="quote" border="0" cellpadding="2" cellspacing="0" width="100%">'; 

for ($x=1$x sizeof($code); $x++) 
if ($code[$x]!=''$text .= '<tr><td style="background-color: #FFFFFF;" width="100%" height="'.$textsmallheight.'" nowrap>'.$code[$x].'</td></tr>'$text .= '</table></div></td></tr></table></td></tr></table></td></tr></table>'$pattern "/COLOR\=\"\#(.*)\"/esiU"; 
while (preg_match($pattern,$text)) { 
$text=preg_replace($pattern,"color2style('\\1')",$text); 
} 
return $text; 
} 
//---> Farbiger Code <---\\ 

//---> Farbiger PHP-Code <---\\ 
function highlight_phpcode($code){ 

$trans get_html_translation_table(HTML_ENTITIES); 
$code stripslashes(strtr(strip_tags(str_replace('</P>',"\n",str_replace('<BR>',"\n",str_replace('\\',"\\\\",$code)))), array_flip($trans))); 
ob_start(); 
highlight_string("<?\n".$code." "); 
$code ob_get_contents(); 
ob_end_clean(); 

$code explode('<br />'$code); 
$textwidth "540"$textsmallwidth "40"$textsmallheight "22"$text '<table class="standard" border="0" width="'.$textwidth.'" cellpadding="4" cellspacing="1" >'$text .= '<tr><br><td class="quote">'$text .= '<table class="quote" style="table-layout: fixed;" border="0" width="'.$textwidth.'" cellpadding="0" cellspacing="0" >'$text .= '<tr><td class="quote" width="'.$textsmallwidth.'" ></td><td class="quote"><b>PHP-Code:</b></td></tr>'$text .= '<tr><td class="quote" colspan="2">'$text .= '<table border="0" width="100%" cellpadding="0" cellspacing="0" align="left">'$text .= '<tr><td valign="top" width="'.$textsmallwidth.'">'$text .= '<table class="quote" border="0" cellpadding="2" cellspacing="0" width="'.$textsmallwidth.'" >'; 

for ($x=1$x sizeof($code); $x++) 
if ($code[$x] != ''$text .= '<tr><td class="quote" height="'.$textsmallheight.'" align="right" nowrap>'.($x+0).'&nbsp;</td></tr>'$text .= '</table></td>'$textheight $x*$textsmallheight$textwidth $textwidth-($textsmallwidth); 
$text .= '<td style="background-color: #D5D5D5;" width="100%" valign="top">'$text .= '<div style="overflow: auto; width: '.$textwidth.'px; height: '.$textheight.'px">'$text .= '<table class="quote" border="0" cellpadding="2" cellspacing="0" width="100%">'; 

for ($x=1$x sizeof($code); $x++) 
if ($code[$x]!=''$text .= '<tr><td style="background-color: #FFFFFF;" width="100%" height="'.$textsmallheight.'" nowrap>'.$code[$x].'</td></tr>'$text .= '</table></div></td></tr></table></td></tr></table></td></tr></table>'$pattern "/COLOR\=\"\#(.*)\"/esiU"; 
while (preg_match($pattern,$text)) { 
$text=preg_replace($pattern,"color2style('\\1')",$text); 
} 
return $text; 
} 
//---> Farbiger PHP-Code <---\\ 
function color2style($font_code) { 
return "style=\"color: $font_code\""; 
} 
//---> Code (c) by Musel-online.de <---\\ 
?>
[/KLAPP]



Mir ist auch aufgefallen, das wenn ich irgendwo einen normalen Text chreibe, wird das ") automatisch in eine Smilie angezeigt, obwohl ich keinen Smilie mit diesem Code habe

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »HardcoreHans« (4. August 2008, 02:17)

  • Zum Seitenanfang
  • Zum Seitenende

HardcoreHans Männlich

ist gerade angekommen

4

Mittwoch, 6. August 2008, 00:01

SRY fürs Doppelposting

Ich dachte du weißt Rat... Jetzt kommt gar nichts mehr? Brauche immer noch Hilfe. Danke
  • Zum Seitenanfang
  • Zum Seitenende

Dirk Kántor Männlich

aká Dooki

Beiträge: 2 073

Geschlecht: Männlich

PHPKIT Version: keine

5

Mittwoch, 6. August 2008, 00:32

also erstmal hast du einen fehler im code..

Zeile 208 in deinem angezeigten code:
aktuell:

PHP-Quelltext

1
$text=eregi_replace("([ \r\n])http://([^ ,\r\n]*)","\\1return $text;


ausgebessert:

PHP-Quelltext

1
$text=eregi_replace("([ \r\n])http://([^ ,\r\n]*)","\\1"); return $text;



zu deinem problem.. es überschneiden sich wohl einige addons da..

als CodeParse rauskam, gabs kaum bis keine addons die in die lib_parse.php geschrieben wurden..
kann sein das dies sogar nicht auszubessern ist.. vielleicht nach und nach mal die addons rückgängig machen und gucken wann es wieder geht

denke aber JEDESMAL an backups der dateien.. egal wieviel backups es werden, kannste die datei ja entsprechend umbennen (die backupdatei)
:thumbsup:    :thumbsup:       *tc*       :thumbsup:    :thumbsup:
8o           Achtung: Dirk Kántor ist unterwegs!           8o
Er verteilt gerne Verwarnungen ohne vorher darüber diskutiert zu haben.
  • Zum Seitenanfang
  • Zum Seitenende

HardcoreHans Männlich

ist gerade angekommen

6

Mittwoch, 6. August 2008, 23:01

DAS nenne ich Support... Danke dir. Werd mich gleich mal an die Arbeit machen und bei behebung des Fehlers, werde ich hier nochmal 'nen Satz zu schreiben...



Kann es eigentlich nur an der lib.parse liegen oder kann der Fehler auch noch ganz woanders liegen ?

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »HardcoreHans« (7. August 2008, 01:21)

  • Zum Seitenanfang
  • Zum Seitenende

Dirk Kántor Männlich

aká Dooki

Beiträge: 2 073

Geschlecht: Männlich

PHPKIT Version: keine

7

Donnerstag, 7. August 2008, 09:02

versuch es erstmal damit.. sollte es dann immernoch nicht gehen weiss ich aktuell nicht weiter :D

denn das der code geändert wird, also zb. das " zu einem &quot; wird kann eigentlich nur in der lib_parse.php sein.
EDIT: aber in dieser funtkion dort sind glaube nochn paar mehr fehler.. es gibt eine } else { dadrin aber kein if...

normal sieht das so aus:

Quellcode

1
2
3
4
5
if(lalalal) {
   ausgabe trallala;
} else {
  ausgabe trallallallala;
}


dein code:

Zitat

function urldetect($text) {
HIER FEHLTEIN if() IM CODE
$text=eregi_replace("([ \r\n])http://([^ ,\r\n]*)","\\1"); return $text;
} else {
$text='<font><span style="color:#e00012;">Der BBcode [hiddenpw] ist deaktiviert!</span></font>';
return $text;}
}
:thumbsup:    :thumbsup:       *tc*       :thumbsup:    :thumbsup:
8o           Achtung: Dirk Kántor ist unterwegs!           8o
Er verteilt gerne Verwarnungen ohne vorher darüber diskutiert zu haben.
  • Zum Seitenanfang
  • Zum Seitenende