Advertisement:

Author Topic: Guild Wars BBCODE for SMF  (Read 14279 times)

Offline halzero

  • Newbie
  • *
  • Posts: 2
Re: Guild Wars BBCODE for SMF
« Reply #20 on: March 25, 2011, 04:01:52 PM »
thats good. gwBBcode is awesome. Any luck on your quest to get it updated for SMF 2?

Offline nemwar

  • Semi-Newbie
  • *
  • Posts: 27
  • Gender: Male
  • ... die Probleme immer gibts gratis dazu!
    • Guild Wars Characters Reloaded
Re: Guild Wars BBCODE for SMF
« Reply #21 on: June 27, 2017, 07:41:06 AM »
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:
Code: [Select]
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:
Code: [Select]
  //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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,350
    • Arantor on GitHub
Re: Guild Wars BBCODE for SMF
« Reply #22 on: June 27, 2017, 08:48:42 AM »
Try replacing line 55 with:

Code: [Select]
$text = preg_replace_callback("#\{([a-z_]+)\}#Ui", function ($matches) { return defined($matches[1]) ? constant($matches[1]) : $matches[0]; }, $text);
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline nemwar

  • Semi-Newbie
  • *
  • Posts: 27
  • Gender: Male
  • ... die Probleme immer gibts gratis dazu!
    • Guild Wars Characters Reloaded
Re: Guild Wars BBCODE for SMF
« Reply #23 on: June 27, 2017, 08:57:21 AM »
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

Offline kudaim

  • Semi-Newbie
  • *
  • Posts: 19
Re: Guild Wars BBCODE for SMF
« Reply #24 on: December 31, 2017, 05:25:37 AM »
hi all, sorry for the up of this topic but is it possible to adapt this mod for gw2?
thank you

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,350
    • Arantor on GitHub
Re: Guild Wars BBCODE for SMF
« Reply #25 on: December 31, 2017, 06:08:11 AM »
It would need quite a substantial overhaul for GW2 :(
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline kudaim

  • Semi-Newbie
  • *
  • Posts: 19
Re: Guild Wars BBCODE for SMF
« Reply #26 on: December 31, 2017, 06:46:58 AM »
ok it's very encouraging thank you anyway I'll give up I do not know enough to be able to do it .