MyBB.de Forum
MyCode - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Archiv (https://www.mybb.de/forum/forum-57.html)
+--- Forum: MyBB 1.4.x (https://www.mybb.de/forum/forum-51.html)
+---- Forum: Allgemeiner Support (https://www.mybb.de/forum/forum-52.html)
+---- Thema: MyCode (/thread-15321.html)



MyCode - cRaZyYy - 19.12.2009

Regulärer Ausdruck:
Code:
\[deviant\](.*?)[/deviant\]
Ersetzung:
Code:
<center><table border="1" bordercolor = "blue" cellspacing="0" cellpadding="0"  >
<tr>
<td class="thead" align="center"><strong><a href = "http://deviantart.com"  target = "_new">Deviantart</a></stong></td>
</tr>
<tr>
<td>
<object width="450" height="386"><param name="movie" value="http://backend.deviantart.com/embed/view.swf" /><param name="flashvars" value="id=$1&width=1337" /><param name="allowScriptAccess" value="always" /><embed src="http://backend.deviantart.com/embed/view.swf" type="application/x-shockwave-flash" width="450" flashvars="id=$1&width=1337" height="386" allowscriptaccess="always"></embed></object>
</td>
</tr>
</table> </center>

Dabei treten viele Fehler auf.. Siehe:

Zitat:Folgende Warnungen sind aufgetreten:
Warning [2] preg_replace(): Compilation failed: missing terminating ] for character class at offset 27 - Line: 321 - File: inc/class_parser.php PHP 5.2.12 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/class_parser.php 321 preg_replace
/inc/class_parser.php 143 postParser->parse_mycode
/newreply.php 1091 postParser->parse_message
Warning [2] preg_replace(): Compilation failed: missing terminating ] for character class at offset 27 - Line: 321 - File: inc/class_parser.php PHP 5.2.12 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/class_parser.php 321 preg_replace
/inc/class_parser.php 143 postParser->parse_mycode
/newreply.php 1091 postParser->parse_message
Warning [2] preg_replace(): Compilation failed: missing terminating ] for character class at offset 27 - Line: 321 - File: inc/class_parser.php PHP 5.2.12 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/class_parser.php 321 preg_replace
/inc/class_parser.php 143 postParser->parse_mycode
/newreply.php 1091 postParser->parse_message
Warning [2] preg_replace(): Compilation failed: missing terminating ] for character class at offset 27 - Line: 321 - File: inc/class_parser.php PHP 5.2.12 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/class_parser.php 321 preg_replace
/inc/class_parser.php 143 postParser->parse_mycode
/newreply.php 1091 postParser->parse_message
Warning [2] preg_replace(): Compilation failed: missing terminating ] for character class at offset 27 - Line: 321 - File: inc/class_parser.php PHP 5.2.12 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/class_parser.php 321 preg_replace
/inc/class_parser.php 143 postParser->parse_mycode
/newreply.php 1091 postParser->parse_message
Warning [2] preg_replace(): Compilation failed: missing terminating ] for character class at offset 27 - Line: 321 - File: inc/class_parser.php PHP 5.2.12 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/class_parser.php 321 preg_replace
/inc/class_parser.php 143 postParser->parse_mycode
/newreply.php 1091 postParser->parse_message
Warning [2] preg_replace(): Compilation failed: missing terminating ] for character class at offset 27 - Line: 321 - File: inc/class_parser.php PHP 5.2.12 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/class_parser.php 321 preg_replace
/inc/class_parser.php 143 postParser->parse_mycode
/newreply.php 1091 postParser->parse_message

Was wurde falsch gemacht?
Danke im vorraus.


RE: MyCode - Jockl - 19.12.2009

Probier es mal so
Code:
\[deviant\](.*?)\[/deviant\]