• Welcome to Simple Machines Community Forum. Please login or sign up.
December 08, 2021, 11:44:42 AM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Guild Wars BBCODE for SMF

Started by amlucent, May 17, 2009, 06:06:48 PM

Previous topic - Next topic

halzero

thats good. gwBBcode is awesome. Any luck on your quest to get it updated for SMF 2?

nemwar

Hello Everybody,

i know this topic is very old, but instead of opening a new one,
i think i can use this as well...

The modification is still working.
There are some (i hope) little problems with it and SMF 2.0.14
and i would be very happy if somebody would help me to solve these problems.

First problem, but also the less important problem is:
At installation an error occures because of the new help-system of SMF.
But it works without well and the Tutorial or HowTo can also be put into a sticky or similar.

The second problem is much heavier, i think.
With every action in the forum i get an new entry in the error-log.
All errors pointing to one file/line ...
Because of i'm no coder, maybe somebody of you can take a closer look?

Every aciton produce this error message:
http://gw-chars.de/index.php?action=admin
8192: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
Datei: /customers/2/9/9/gw-chars.de/httpd.www/gwbbcode/gwbbcode.inc.php
Zeile: 55


In the file line 55 is the following code:
  //Replace all content in curly brackets by their constants equivalents
55:    $text = preg_replace("#\{([a-z_]+)\}#Uie", "defined('\\1')?\\1:'\\0'", $text);
56:    return $text;


Hope somebody can figure out what this code means...
if you need more information (or the complete file) let me know

Thanks a lot.
NemWar

You like Guild Wars?
You still play Guild Wars?
Then you may like to visit my website:
Guild Wars Characters Reloaded

Arantor

Try replacing line 55 with:

$text = preg_replace_callback("#\{([a-z_]+)\}#Ui", function ($matches) { return defined($matches[1]) ? constant($matches[1]) : $matches[0]; }, $text);
No good deed goes unpunished
All helpful urges should be circumvented

nemwar

Hello Arantor,

and a huge "Thank You"....

it seems to work, error log is clear now (and it looks like it will be)

Greets
NemWar

You like Guild Wars?
You still play Guild Wars?
Then you may like to visit my website:
Guild Wars Characters Reloaded

kudaim

hi all, sorry for the up of this topic but is it possible to adapt this mod for gw2?
thank you

Arantor

It would need quite a substantial overhaul for GW2 :(
No good deed goes unpunished
All helpful urges should be circumvented

kudaim

ok it's very encouraging thank you anyway I'll give up I do not know enough to be able to do it .

Advertisement: