Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: amlucent on May 17, 2009, 06:06:48 PM

Title: Guild Wars BBCODE for SMF
Post by: amlucent on May 17, 2009, 06:06:48 PM
GWBBCODE v1.8.3-4 for SMF
Packaged for SMF by Amlucent (http://www.simplemachines.org/community/index.php?action=profile;u=174793) aka Alchemist (http://gwgoodolddays.net/forums/index.php?action=profile)



Support topic (http://www.simplemachines.org/community/index.php?topic=311222.0) | Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1808) | Mirror (http://gwgoodolddays.net/forums/index.php?action=mgallery;sa=album;id=32)



(http://gwshack.us/img/gwBBCode_logo_2.gif) (http://gwshack.us/)

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 (http://gwgoodolddays.net/forums/index.php?topic=1014.0)


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 (http://www.gwgoodolddays.com) ?

The tango icons are available for download HERE (http://gwgoodolddays.net/forums/index.php?action=mgallery;sa=album;id=32). 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



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.
Title: Re: Guild Wars BBCODE for SMF
Post by: .LORD. on May 17, 2009, 07:12:06 PM
Good, downloading  :D
Title: Re: Guild Wars BBCODE for SMF
Post by: ╩čink 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!
Title: Re: Guild Wars BBCODE for SMF
Post by: Propaganistas 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
Title: Re: Guild Wars BBCODE for SMF
Post by: amlucent 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 (http://custom.simplemachines.org/mods/index.php?mod=1319) 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 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

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.
Title: Re: Guild Wars BBCODE for SMF
Post by: amlucent 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.
Title: Re: Guild Wars BBCODE for SMF
Post by: amlucent 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..
Title: Re: Guild Wars BBCODE for SMF
Post by: neuikc 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?
Title: Re: Guild Wars BBCODE for SMF
Post by: neuikc 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?
Title: Re: Guild Wars BBCODE for SMF
Post by: amlucent 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.
Title: Re: Guild Wars BBCODE for SMF
Post by: neuikc on August 24, 2009, 09:13:40 PM
Yea, I had tried 777 too, lol, 755 did the trick thanks! - :)
Title: Re: Guild Wars BBCODE for SMF
Post by: h78509 on January 25, 2010, 10:06:46 AM
Looks amazing. RC2 version is sorely needed!
Title: Re: Guild Wars BBCODE for SMF
Post by: amlucent 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.
Title: Re: Guild Wars BBCODE for SMF
Post by: h78509 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.
Title: Re: Guild Wars BBCODE for SMF
Post by: amlucent on July 19, 2010, 01:57:21 AM
New Beta Version compatible with 2.0 RC3, those interested can download it HERE (http://gwgoodolddays.net/forums/index.php?action=media;sa=item;in=638)
Title: custom form mod
Post by: hlhollenst 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
Title: Re: Guild Wars BBCODE for SMF
Post by: rulezGrog 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
Title: Re: Guild Wars BBCODE for SMF
Post by: amlucent 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
Title: Re: Guild Wars BBCODE for SMF
Post by: halzero 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.
Title: Re: Guild Wars BBCODE for SMF
Post by: amlucent 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/
Title: Re: Guild Wars BBCODE for SMF
Post by: halzero 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?
Title: Re: Guild Wars BBCODE for SMF
Post by: nemwar 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
Title: Re: Guild Wars BBCODE for SMF
Post by: Arantor 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);
Title: Re: Guild Wars BBCODE for SMF
Post by: nemwar 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
Title: Re: Guild Wars BBCODE for SMF
Post by: kudaim 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
Title: Re: Guild Wars BBCODE for SMF
Post by: Arantor on December 31, 2017, 06:08:11 AM
It would need quite a substantial overhaul for GW2 :(
Title: Re: Guild Wars BBCODE for SMF
Post by: kudaim 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 .