MyBB Community Forums

Full Version: MyGW2Code - Guild Wars 2 Tooltip
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
As soon as approved I will link my download for this from the Mods database here.

As a fan of Curse.com I decided that I should utilize the new GW2DB tooltip information.

Download: http://mods.mybb.com/view/mygw2code

This provides the files for displaying the tooltip properly within posts. This is not for fun but for those who intend to run Guild Wars 2 sites or those who already do.

Not in this release:
  • Skill Calculator
  • Recipe Tooltip
  • Achievement Tooltip
  • Skill Tooltip
  • Guild Upgrades Tooltip
  • Map Tooltip/Display

Will have a quick release to add more features.

To install:
1. Upload all contents of /images/, /inc/, and /jscripts/ to the same area your MyBB installation is located
2. Open up your boards ACP
3. Go to ACP > Configuration > MyCode
4. Click 'Add New MyCode'
5. Do the following below

Quote:Title: GWItem (Can be whatever you want)
Short Description: This adds the tooltip for linking of items from Curse.com's GW2DB database.
Regular Express: \[gwitem=(.*?)\](.*?)\[/gwitem\] (You can use whatever you wish in place of gw)
Replacement: <a class="listing-icon" href="http://www.gw2db.com/data/items/$1">$2</a> (Do not alter this)
Enabled: Yes
Parse Order: 1 (Can be any number you want)

Quote:Title: GWRecipe (Can be whatever you want)
Short Description: This adds the tooltip for linking of items from Curse.com's GW2DB database.
Regular Express: \[gwrecipe=(.*?)\](.*?)\[/gwrecipe\] (You can use whatever you wish in place of gw)
Replacement: <a class="listing-icon" href="http://www.gw2db.com/data/recipes/$1">$2</a> (Do not alter this)
Enabled: Yes
Parse Order: 2 (Can be any number you want)

Quote:Title: GWSkill (Can be whatever you want)
Short Description: This adds the tooltip for linking of items from Curse.com's GW2DB database.
Regular Express: \[gwskill=(.*?)\](.*?)\[/gwskill\] (You can use whatever you wish in place of gw)
Replacement: <a class="listing-icon" href="http://www.gw2db.com/data/skills/$1">$2</a> (Do not alter this)
Enabled: Yes
Parse Order: 3 (Can be any number you want)

6. Save and done

As I expand on this more I will include more MyCode's. Looking to add Recipes and Achievements next.
This sounds brilliant! I will definitely be using it on my guild wars 2 forum. Following the topic and hope you get it approved soon.
I approved the mod this morning but he has yet to update his post :p Of you search for it on the mods site you'll find it Smile
Oh i see! Thanks i'm installing it now Smile

Installing this disables all other javascript on my site. How do i fix this?
Ok updating to include the MyCode for Recipes and Skills.

I have altered the original [gw] to be [gwitem] instead so each one can be separate.
Thanks for the quick update but i'm still having problems with it.

Everytime i add:

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/gw2/MyGW2Code.js"></script>
<link rel="stylesheet" type="text/css" href="{$mybb->settings['bburl']}/inc/gw2/MyGW2Code.css" />

To the headerinclude template all other javascript stops working. Quick reply, collapse able categories, login, bbcodes e.x.
This broke my javascript too T.T
Currently I'm between hosts so I can't test this just yet but I will definitely look into this ASAP.

Ok so I took a snoop around the js file, I will have to remove some lines but it shouldn't hurt the working of the tooltip.

Try with the attached file, upload overwriting the current js file.

I have updated the plugin release with the new zip file.
It doesn't conflict with the other javascript now. But the tooltips do not show up.
That is what I was afraid of, I will have to do a full sweep of the file and testing once I get my sites moved.
Pages: 1 2 3