Advertisement:

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

Offline amlucent

  • Jr. Member
  • **
  • Posts: 147
  • Gender: Male
    • The Good Old Days Guild
Guild Wars BBCODE for SMF
« on: May 17, 2009, 06:06:48 PM »
GWBBCODE v1.8.3-4 for SMF
Packaged for SMF by Amlucent aka Alchemist



Support topic | Link to Mod | Mirror




What is Guild Wars BBCODE?

Guild Wars BBCODE adds image and description popups for the over 2000 skills from the PC game Guild Wars.    This is very handy for creating player builds. Have you ever felt the need to have a synthesized view of a team build to interact with your allies, or lead it better?  Ever felt annoyed having to go to a fan site every time you want to know the exact description of a skill mentioned in a discussion?

Then maybe would you be interested in gwBBCode for your forum..


How do I use GWBBCODE?

Here is a tutorial and demo of the mod


FAQs: Frequently Asked Questions

- How do I teach my users how to use GWBBCODE?

Upon installation the above tutorial was placed in your forums help section.  Direct your users there.

- Where can I get those pretty Tango profession icons like are used at http://www.gwgoodolddays.com ?

The tango icons are available for download HERE. Follow the instructions to enable them on your website.

- All the skills default to the PVP versions, can I change it to the PVE Versions by default?

Yes, you can change the default gameplay by editing the /gwbbcode/config_default.inc.php file.  Change the line

Code: [Select]
define('GWBBCODE_GAMEPLAY', 'PvP');

to

Code: [Select]
define('GWBBCODE_GAMEPLAY', 'PvE');

in this file you can also change the default Kurzick/Luxon allegiance skills and even which Wiki skills link to when clicked.


BUGs and Known Issues with this Mod

-Any skills thats name contains an apostrophe will not display correctly.  For example, The skill "Bull's Strike" will not display.  *The work around is to simply type "Bulls Strike" without the apostrophe.

-Make sure that Search engine friendly URLs option in SMF is DISABLED.

-Skill descriptions are outdated? To update your skill descriptions to current follow Liu Pi's instructions:

Quote from: Liu Pi
I am indeed busy on other projects ^^
If you want to update your gwBBCode skill database, gwShack's database is now automatically updated from the official GuildWars wiki!
There are two ways to get gwShack's up-to-date files:

- Either upload the content of this small package to your gwbbcode directory: gwbbcode_updated_db.zip
- Or individually replace your gwBBcode files with these: skill_db_1.php, skill_db_2.php and skillname_db.php, then check if you have the latest skill icons from here in your img_skills.

If you guys want, I could create a RSS feed to keep you informed of such updates..

Edit: The files above (even the zip one) are automatically updated when GuildWars wiki is.

-Enclosing gwbbcode items with [pre] tags will not prevent gwbbcode from being parsed on SMF as stated in the tutorial.  Instead you should use SMF built-in [nobbc] tag to prevent any bulletin board code from parsing.

-If the gwbbcode pickup feature does not function properly double check to make sure that pickup.php and pickup_db.php are writable with the appropriate permissions ie 777 or 755.  Also, depending upon how your site is layed out you may need to enable subdomain independant cookies in your admin area.

-This Ajax Chat Mod will operate with this mod but you will have to copy your "gwbbcode" folder into the root of the "chat" folder.  IF you receive an  XML Parsing Error: follow the instructions HERE

-It has been reported to me that this mod is incompatible with the custom form mod.  I am working on it.. but its low on my priorities.


Compatibility

This mod should work on any version of SMF 1.1.x and any version of SMF 2.0 (Beta 4 or later).

All previous versions of this mod MUST be uninstalled BEFORE installing this version. Also, make sure to backup your database and files first.


Support

After the installation please seek support for gwbbcode at http://gwshack.us.


License

GWBBCODE is licensed under the GNU Public License v2. GWBBCODE is available along with its source code at http://www.gwshack.us.  All skill icons, names and descriptions are property of ArenaNet.


Changelog

  • 6/21/09 - v1.8.3-4 The Pickup function of gwbbcode is now fully operational for SMF 1.1x and 2.0.  Discover details of this great feature's usage in the tutorial. Updated skills and descriptions to reflect game update on 06/18/09.  Updated Spawning Power bonus to weapon spells to reflect dev update on 06/18/09.
  • 6/04/09 - v1.8.3-3 Fixed a major bug which caused skill descriptions not to display popups unless the smf new line was present in the theme.  Updated and clearified a few lines in the gwbbcode tutorial.
  • 5/15/09 - v1.8.3-2 Updated Skill descriptions to current as of 5/15/2009.  Added gwbbcode tutorial to install into the help section of SMF (Thanks again SiNaN!)
  • 4/29/09 - v1.8.3-1 Contained is gwbbcode version 1.8.3.  This is the first package of gwbbcode for SMF so I will do versions like linux packages.. this is v1.8.3-1.


Credits

-Most of all, thanks to Lui Pi at gwshack.us for making gwbbcode

-Thanks to DeathClaw for the original instructions for enabling gwbbcode for SMF.

-A big thanks to BlueDream/SiNaN from simplemachines.org and simpleportal.net for helping me with SMF and the "Help Section".

-Thanks to M-DVD for solving the extra pesky news line bugs causing no skill description popup.
« Last Edit: November 11, 2010, 08:10:22 PM by amlucent »

Offline .LORD.

  • Jr. Member
  • **
  • Posts: 131
  • Gender: Male
Re: Guild Wars BBCODE for SMF
« Reply #1 on: May 17, 2009, 07:12:06 PM »
Good, downloading  :D

Offline ╩čink

  • Jr. Member
  • **
  • Posts: 130
  • Gender: Male
  • Hyrule's Defender
    • The Ninja's Hideout
Re: Guild Wars BBCODE for SMF
« Reply #2 on: May 19, 2009, 02:57:32 PM »
Wow; I *just* made a site for a guild a couple of days ago. This will be a great improvement to it; thanks!
Obedire est vivere, Vivere est obedire


Propaganistas

  • Guest
Re: Guild Wars BBCODE for SMF
« Reply #3 on: May 23, 2009, 07:26:54 AM »
Hiya,

if you have pm notification turned on, the file dynamic.tpl doesn't get parsed and is sent along in the notification as plain text:

Quote
You have just been sent a personal message by Admin on Forum.

IMPORTANT: Remember, this is just a notification. Please do not reply to this email.

The message they sent you was:

/*
*//*
*/if (!GWBBCODE_HOOK) {/*
*//*
*/   var GWBBCODE_HOOK = true;/*
*//*
*/   var gwbb_dynamic_url = 'gwbbcode';/*
*//*
*/   /*
*//*
*/   /* Include the overDiv div *//*
*//*
*/   var overdiv_div = document.createElement('div');/*
*//*
*/   overdiv_div.id = 'overDiv';/*
*//*
*/   document.body.insertBefore(overdiv_div, document.body.firstChild);/*
*//*
*//*
*//*
*/   /* Include the send iframe for the pickup feature *//*
*//*
*/   var send_frame = document.createElement('iframe');/*
*//*
*/   send_frame.id = 'send';/*
*//*
*/   send_frame.style.display = 'none';/*
*//*
*/   send_frame.src = 'about:blank';/*
*//*
*/   document.body.insertBefore(send_frame, document.body.firstChild);/*
*//*
*//*
*//*
*/   /* Include the gwbbcode.css *//*
*//*
*/   var headID = document.getElementsByTagName("head")[0];         /*
*//*
*/   var cssNode = document.createElement('link');/*
*//*
*/   cssNode.type = 'text/css';/*
*//*
*/   cssNode.rel = 'stylesheet';/*
*//*
*/   cssNode.href = 'gwbbcode/gwbbcode.css';/*
*//*
*/   cssNode.media = 'screen';/*
*//*
*/   headID.appendChild(cssNode);/*
*//*
*/   /*
*//*
*/   /* Include overlib.js *//*
*//*
*/   var include_overlib = document.createElement('script');/*
*//*
*/   include_overlib.type = 'text/javascript';/*
*//*
*/   include_overlib.src = 'gwbbcode/overlib.js';/*
*//*
*/   document.body.insertBefore(include_overlib, document.body.firstChild);/*
*//*
*//*
*//*
*/   /* Include gwbbcode.js *//*
*//*
*/   var include_gwbbcode = document.createElement('script');/*
*//*
*/   include_gwbbcode.type = 'text/javascript';/*
*//*
*/   include_gwbbcode.src = 'gwbbcode/gwbbcode.js';/*
*//*
*/   document.body.insertBefore(include_gwbbcode, document.body.firstChild);/*
*//*
*/}/*
*//*
*/Test Message
Test Message
Test Message
Test Message
Test Message
Test Message

Reply to this Personal Message here: ****

This is also an issue in the original package downloaded from gwshack.

Greetz
Propa

Offline amlucent

  • Jr. Member
  • **
  • Posts: 147
  • Gender: Male
    • The Good Old Days Guild
Re: Guild Wars BBCODE for SMF
« Reply #4 on: May 31, 2009, 05:06:49 PM »
New development for those that wish to use gwbbcode in conjunction with the ajax chat mod.  This Ajax Chat Mod will operate with this mod but you will have to copy your "gwbbcode" folder into the root of the "chat" folder.  IF you recieve an  XML Parsing Error: follow the instructions HERE

Currently, gwbbcode will not be parsed in ajax chat.  I am planing on figuring out how to enable it but for now it works for those that cant wait.

Offline amlucent

  • Jr. Member
  • **
  • Posts: 147
  • Gender: Male
    • The Good Old Days Guild
Re: Guild Wars BBCODE for SMF
« Reply #5 on: June 04, 2009, 03:06:46 AM »
GWBBCODE 1.8.3-3 released.  Contains a major bug fix that will enable everyone to use the smf news line however you would like.. even use themes that contain no news line  ;D.

I have big plans for 1.8.3-4...  after I figure out how to implement them  :o  stay tuned.

Offline amlucent

  • Jr. Member
  • **
  • Posts: 147
  • Gender: Male
    • The Good Old Days Guild
Re: Guild Wars BBCODE for SMF
« Reply #6 on: July 30, 2009, 11:56:04 AM »
1.8.3-4 released.  I could not get all the things I wanted done with it (Maybe for the next release) but one major task that is perfectly supported now is the pickup feature!  If you have any trouble getting the pickup feature to function make sure your pickup.php and pickup.db are both writable. Enjoy..
« Last Edit: January 25, 2010, 04:44:21 PM by amlucent »

Offline neuikc

  • Semi-Newbie
  • *
  • Posts: 24
Re: Guild Wars BBCODE for SMF
« Reply #7 on: July 31, 2009, 11:22:00 AM »
Updated the package as posted yesterday. I'm getting some logged errors related to gwbbcode now:

Quote
2: include_once() [<a href='function.include'>function.include</a>]: Failed opening '../SSI.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')

Refers to line 156 of gwbbcode.inc.php being the culprit. Ideas?

Offline neuikc

  • Semi-Newbie
  • *
  • Posts: 24
Re: Guild Wars BBCODE for SMF
« Reply #8 on: August 24, 2009, 07:51:19 PM »
Having some problems with the pickup feature (of course). It's not adding any names, no errors in log. I verified that pickup_db.php is chmod'd 666, any other suggestions?

Offline amlucent

  • Jr. Member
  • **
  • Posts: 147
  • Gender: Male
    • The Good Old Days Guild
Re: Guild Wars BBCODE for SMF
« Reply #9 on: August 24, 2009, 08:14:16 PM »
-If the gwbbcode pickup feature does not function properly double check to make sure that pickup.php and pickup_db.php are writable with the appropriate permissions ie 777 or 755.

777, or if you server is finicky like mine 755, not 666.
« Last Edit: August 24, 2009, 08:54:21 PM by amlucent »

Offline neuikc

  • Semi-Newbie
  • *
  • Posts: 24
Re: Guild Wars BBCODE for SMF
« Reply #10 on: August 24, 2009, 09:13:40 PM »
Yea, I had tried 777 too, lol, 755 did the trick thanks! - :)

Offline h78509

  • Semi-Newbie
  • *
  • Posts: 34
Re: Guild Wars BBCODE for SMF
« Reply #11 on: January 25, 2010, 10:06:46 AM »
Looks amazing. RC2 version is sorely needed!

Offline amlucent

  • Jr. Member
  • **
  • Posts: 147
  • Gender: Male
    • The Good Old Days Guild
Re: Guild Wars BBCODE for SMF
« Reply #12 on: January 25, 2010, 04:43:30 PM »
I am working on an RC2 version but it is going slowly because of my new job.  Except for the tutorial in the help section, I think everything will work on RC2 if you use the old core theme.

Offline h78509

  • Semi-Newbie
  • *
  • Posts: 34
Re: Guild Wars BBCODE for SMF
« Reply #13 on: January 26, 2010, 07:40:33 AM »
I am working on an RC2 version but it is going slowly because of my new job.  Except for the tutorial in the help section, I think everything will work on RC2 if you use the old core theme.

I'm using a customized Curve so I'll wait for the RC2 version. Thanks anyways.

If you do a GW2 version when the game comes out, this mod will probably become very popular. I can't imagine any GW2 forum that uses SMF not wanting to use this mod.

Offline amlucent

  • Jr. Member
  • **
  • Posts: 147
  • Gender: Male
    • The Good Old Days Guild
Re: Guild Wars BBCODE for SMF
« Reply #14 on: July 19, 2010, 01:57:21 AM »
New Beta Version compatible with 2.0 RC3, those interested can download it HERE

Offline hlhollenst

  • Newbie
  • *
  • Posts: 1
custom form mod
« Reply #15 on: November 07, 2010, 06:05:36 PM »
I realize this is a low priority, and yes i have researched around and looked at the code myself.  Is there any fixes dirty or clean to make custom form mod to work with gwbbcode

Offline rulezGrog

  • Newbie
  • *
  • Posts: 1
Re: Guild Wars BBCODE for SMF
« Reply #16 on: December 07, 2010, 01:56:49 AM »
New Beta Version compatible with 2.0 RC3, those interested can download it HERE

I can`t download the mod, i have this error: " Sorry, but you are not allowed to access the gallery " Can anyone help me or post another link to download this version of the mod.

I use smf rc4.

Thanks

Offline amlucent

  • Jr. Member
  • **
  • Posts: 147
  • Gender: Male
    • The Good Old Days Guild
Re: Guild Wars BBCODE for SMF
« Reply #17 on: December 12, 2010, 02:15:14 AM »
New Beta Version compatible with 2.0 RC3, those interested can download it HERE

I can`t download the mod, i have this error: " Sorry, but you are not allowed to access the gallery " Can anyone help me or post another link to download this version of the mod.

I use smf rc4.

Thanks

Can you access this?  I looked at the permissions and they look fine for guest read access.

http://gwgoodolddays.com/index.php?action=media;sa=album;in=32

Offline halzero

  • Newbie
  • *
  • Posts: 2
Re: Guild Wars BBCODE for SMF
« Reply #18 on: March 23, 2011, 10:28:06 AM »
you can get to the page you link, but you cant download the file.

is this project still going? I understand the original gwbbcode programmer isnt working on it anymore.

Offline amlucent

  • Jr. Member
  • **
  • Posts: 147
  • Gender: Male
    • The Good Old Days Guild
Re: Guild Wars BBCODE for SMF
« Reply #19 on: March 24, 2011, 01:47:42 PM »
Ok, link should now show download as an option for guests.  Correct, gwbbcode is not being maintained by its creator or hosted at gwshack.us anylonger however he still supplies skill updates through google project hosting.. so essentially it has just moved..

http://code.google.com/p/gwbbcode/

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: 33
  • 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,434
    • 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: 33
  • 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,434
    • 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 .