Arcane Wonders Forum

General Category => Website Support and Feedback => Topic started by: pixelgeek on November 17, 2013, 09:17:39 PM

Title: New BBCode
Post by: pixelgeek on November 17, 2013, 09:17:39 PM
Hey guys

As part of the SBB you will be able to post your spellbooks into the forum and have people view them and also view the cards.

To that end I have updated the forum's BBCode for the preview. Can people test to make sure that the previews appear and disappear when you mouse over them?

Some examples of the cards is the [mwcard=MWSTX1CKQ01]Sunfire Amulet[/mwcard].

There is also the [mwcard=MWSTX1CKJ02]Wizard's Tower[/mwcard] and [mwcard=FWE04]Force Crush[/mwcard].

Thanks
Title: Re: New BBCode
Post by: pixelgeek on November 17, 2013, 09:26:41 PM
The pop-up should look like this.
Title: Re: New BBCode
Post by: pixelgeek on November 17, 2013, 09:29:38 PM
BTW the code is usable by anyone you just need to know the card number for it to work

The format is

Code: [Select]
[mwcard=MWSTX1CKJ02]Wizard's Tower[/mwcard]
Make sure there aren't any spaces between the equal sign and the card number and you should be golden.

There will be a much easier way to do this in the near future but there isn't any reason why people can't play around now if they'd like :-)

Title: Re: New BBCode
Post by: lettucemode on November 17, 2013, 10:05:03 PM
The ones you posted work for me. Windows 7, latest version of Chrome.

Where can we look up the card numbers?
Title: Re: New BBCode
Post by: pixelgeek on November 17, 2013, 10:10:59 PM
Where can we look up the card numbers?

Nowhere right now but I will ask Bryan if he is okay with me posting a list of card names and codes

This is the first part of integrating the SBB into the forum and you will soon be able to post entire spellbooks into the forum and have those previews pop up for the cards in the book
Title: Re: New BBCode
Post by: Zuberi on November 17, 2013, 10:17:53 PM
I just want to say that this is really awesome.

Oh, and they work fine for me. Windows 7, latest version of Chrome.
Title: Re: New BBCode
Post by: pixelgeek on November 25, 2013, 05:47:08 PM
I did some more fiddling. Can people test the links in my original post to make sure that the cards are appearing with rounded corners and drop shadows?

Please force refresh your browser before testing to make sure that you have the most current style sheets and Javascript
Title: Re: New BBCode
Post by: Zuberi on November 25, 2013, 08:12:45 PM
They look perfect to me. Rounded corners and drop shadow = check.
Title: Re: New BBCode
Post by: Fentum on November 26, 2013, 02:31:20 AM

I am running an ancient PC and the cards show up fine, but they have square corners. I am using Windows Internet Explorer, coal fired.
Title: Re: New BBCode
Post by: sIKE on December 16, 2013, 01:42:56 PM
I did some more fiddling. Can people test the links in my original post to make sure that the cards are appearing with rounded corners and drop shadows?

Please force refresh your browser before testing to make sure that you have the most current style sheets and Javascript

Pixel. It appears that after the tag the text that follows is smooshed up against the last word between the tag. Look at the "and" after Wizard's Tower. It is correct in the source but not after it is interpreted.


There is also the [mwcard=MWSTX1CKJ02]Wizard's Tower[/mwcard] and [mwcard=FWE04]Force Crush[/mwcard].
Title: Re: New BBCode
Post by: Amadseer on December 17, 2013, 12:15:09 PM
I noticed pop ups for the Druid vs. Necromancer cards aren't showing up yet when I put in those codes.
Title: Re: New BBCode
Post by: pixelgeek on December 17, 2013, 12:31:08 PM
I noticed pop ups for the Druid vs. Necromancer cards aren't showing up yet when I put in those codes.

The cards haven't been uploaded yet
Title: Re: New BBCode
Post by: pixelgeek on December 17, 2013, 12:31:58 PM
It appears that after the tag the text that follows is smooshed up against the last word between the tag.

Its on my to-do list
Title: Re: New BBCode
Post by: haslo on December 18, 2013, 03:27:34 AM
I'd love to use these in forum posts, but it appears that I need to use some kind of card id and not the card name for them. Do I find those ids in the SBB, or is there an easier way to just say [popup=awesomecard] or something and just have that popup the awesomecard on hover?
Title: Re: New BBCode
Post by: pixelgeek on December 18, 2013, 08:13:35 AM
I'd love to use these in forum posts, but it appears that I need to use some kind of card id and not the card name for them. Do I find those ids in the SBB, or is there an easier way to just say [popup=awesomecard] or something and just have that popup the awesomecard on hover?

I can add it to the SBB. I'm currently writing code for the new website and just waiting for the DvN card data to release a new version
Title: Re: New BBCode
Post by: sIKE on December 18, 2013, 10:00:20 AM
@haslo

The card code you are referring too is at the bottom of each and every card, also included in the dataset of the Deck Editor in OCTGN. It is very simple to use.

What I really would like is a BB button on this screen that I am typing in.
Title: Re: New BBCode
Post by: pixelgeek on December 18, 2013, 10:58:20 AM
What I really would like is a BB button on this screen that I am typing in.

It is on the list. :-)
Title: Re: New BBCode
Post by: haslo on January 07, 2014, 02:09:08 PM
@haslo

The card code you are referring too is at the bottom of each and every card, also included in the dataset of the Deck Editor in OCTGN. It is very simple to use.

_If_ I have the spellbook builder open in another tab. I just don't think that should be necessary :P I think there should be a button or something that allows me to type the card's name when I'm writing a forum post, and that then adds the correct BBCode for me, or I should be able to enter a BBCode that uses the card's name and not an arbitrary ID.
Title: Re: New BBCode
Post by: sIKE on January 07, 2014, 02:18:58 PM
@haslo

The card code you are referring too is at the bottom of each and every card, also included in the dataset of the Deck Editor in OCTGN. It is very simple to use.

_If_ I have the spellbook builder open in another tab. I just don't think that should be necessary :P I think there should be a button or something that allows me to type the card's name when I'm writing a forum post, and that then adds the correct BBCode for me, or I should be able to enter a BBCode that uses the card's name and not an arbitrary ID.

Alas, from what I've seen of code muckers and the resulting code that this is quite a difficult feat that you ask from a coding perspective. Like water running up hill would be very nice too. The code and the resulting time it would take to figure out which Leather item you are referring too, and dealing with mis-spelling would be quite the nightmare. I counter if you have it up in the spellbuilder, you can easily grab the arbitrary ID and type it in between the TAGs that the BBCode button will create for us.
Title: Re: New BBCode
Post by: pixelgeek on January 07, 2014, 02:51:26 PM
_If_ I have the spellbook builder open in another tab. I just don't think that should be necessary :P I think there should be a button or something that allows me to type the card's name when I'm writing a forum post, and that then adds the correct BBCode for me, or I should be able to enter a BBCode that uses the card's name and not an arbitrary ID.

There will be something like that added quite soon. I am finishing the theme for the new AW website and then have to add the DvN cards to the SBB. Once that is done I will finish the last few tools for the SBB

Quote
or I should be able to enter a BBCode that uses the card's name and not an arbitrary ID.

The card names have spaces, commas and possessive diacritics in them and those things are a PITA to parse across multiple browsers. The card numbers are much easier and the tool added to the SBB will make it easier to post the cards.
Title: Re: New BBCode
Post by: pixelgeek on January 10, 2014, 03:59:00 PM
Pixel. It appears that after the tag the text that follows is smooshed up against the last word between the tag. Look at the "and" after Wizard's Tower. It is correct in the source but not after it is interpreted.

Should be fixed now

[mwcard=DNC20]Vine Snapper[/mwcard] and [mwcard=DNQ10]Meditation Amulet[/mwcard]
Title: Re: New BBCode
Post by: sIKE on January 10, 2014, 08:01:27 PM
Should be fixed now

[mwcard=DNC20]Vine Snapper[/mwcard] and [mwcard=DNQ10]Meditation Amulet[/mwcard]

Thanks! Great work as always!
Title: Re: New BBCode
Post by: pixelgeek on January 15, 2014, 04:33:25 PM
Another Test

[mwcard=DNC03] Devouring Jelly[/mwcard]
Title: Re: New BBCode
Post by: sIKE on January 15, 2014, 04:39:24 PM
Works, IE11 - Windows 8.1
Title: Re: New BBCode
Post by: pixelgeek on January 15, 2014, 05:35:27 PM
I was actually just making sure that the bbcode from the new card preview window was creating valid code.

Should be posted tomorrow with the DvN cards
Title: Re: New BBCode
Post by: pixelgeek on January 15, 2014, 08:18:02 PM
What does the [mwcard=DruidAbilityOutline]Druid Ability Card[/mwcard] look like?
Title: Re: New BBCode
Post by: pixelgeek on January 15, 2014, 08:21:24 PM
Probably not as awesome as the [mwcard=NECROMANCERABILITYOUTLINE]Necromancer Ability Card[/mwcard]
Title: Re: New BBCode
Post by: Hedge on January 27, 2014, 12:55:13 AM
I don't know call me crazy, but why couldn't the code just be the card's Name.
Something like:
Code: [Select]
[card]dissolve[/card]
Simialr code used Here
http://www.temple-of-lore.com/community/viewtopic.php?f=4&t=39292


GRanted the current is just a mouse over and the other opens in another window, but the other is easier all the way around.


Hedge
Title: Re: New BBCode
Post by: Zuberi on January 27, 2014, 01:59:12 AM
Quote from: pixelgeek
The card names have spaces, commas and possessive diacritics in them and those things are a PITA to parse across multiple browsers. The card numbers are much easier and the tool added to the SBB will make it easier to post the cards.
Title: Re: New BBCode
Post by: sIKE on January 27, 2014, 09:27:10 AM
I don't know call me crazy, but why couldn't the code just be the card's Name.
Something like:
Code: [Select]
[card]dissolve[/card]
Simialr code used Here
http://www.temple-of-lore.com/community/viewtopic.php?f=4&t=39292


GRanted the current is just a mouse over and the other opens in another window, but the other is easier all the way around.


Hedge

That's just a link to another page, i.e. which takes you away from the SBB itself, nothing close to what Pixel is doing. Think 19-nineties vs. 20-tens. The new solution works very well and should get better with time.

Now all we need is a dedicated card browser page and then the card browser integrated into the forums.

That's all just 10 minutes of code and we are all good!  ???
Title: Re: New BBCode
Post by: Hedge on January 28, 2014, 10:31:10 PM
only if the sbb works on your browser
Title: Re: New BBCode
Post by: sIKE on February 08, 2014, 08:16:20 PM
The Forum Code export is working well, however the display is leaving something more desired. Too much spacing between each spell is the main thing. Aesthetically annoy, but functionally fine, the wrapping background is quite noticeable at the joints.

The spacing is the same on both Chrome and IE, and it looks like double spaced text.
Title: Re: New BBCode
Post by: pixelgeek on February 09, 2014, 09:36:04 AM
Can you post an example?
Title: Re: New BBCode
Post by: sIKE on February 09, 2014, 09:59:53 AM
[spellbook]
[spellbookheader]
[spellbookname]Offical MW Deck[/spellbookname]
[mage]A Beastmaster (Johktari) book[/mage]
[mage]built by the OCTGN SBB[/mage]
[/spellbookheader]
[spells]
[spellclass]Attack[/spellclass]
[mwcard=MW1A09]1 x Jet Stream[/mwcard]
[mwcard=MWSTX1CKA01]2 x Surging Wave[/mwcard]
[spellclass]Conjuration[/spellclass]
[mwcard=MW1J02]1 x Animal Kinship[/mwcard]
[mwcard=MW1J10]1 x Lair[/mwcard]
[mwcard=MW1J13]3 x Mana Flower[/mwcard]
[mwcard=MW1J15]1 x Mohktari, Great Tree of Life[/mwcard]
[mwcard=MW1J01]1 x Rajan's Fury[/mwcard]
[mwcard=MW1J22]3 x Tanglevine[/mwcard]
[mwcard=MW1W04]2 x Wall of Thorns[/mwcard]
[spellclass]Creature[/spellclass]
[mwcard=MW1C07]1 x Cervere, The Forest Shadow[/mwcard]
[mwcard=MW1C12]1 x Emerald Tegu[/mwcard]
[mwcard=MW1C14]3 x Feral Bobcat[/mwcard]
[mwcard=MWSTX1CKC09]2 x Giant Wolf Spider[/mwcard]
[mwcard=MWSTX1CKC04]1 x Makunda[/mwcard]
[mwcard=MW1C25]1 x Mountain Gorilla[/mwcard]
[mwcard=MW1C37]3 x Thunderift Falcon[/mwcard]
[mwcard=MW1C38]2 x Timber Wolf[/mwcard]
[spellclass]Enchantment[/spellclass]
[mwcard=MW1E01]2 x Bear Strength[/mwcard]
[mwcard=MW1E02]1 x Block[/mwcard]
[mwcard=MW1E03]1 x Bull Endurance[/mwcard]
[mwcard=MW1E07]1 x Cobra Reflexes[/mwcard]
[mwcard=MW1E13]1 x Eagle Wings[/mwcard]
[mwcard=FWE03]1 x Falcon Precision[/mwcard]
[mwcard=MW1E21]1 x Hawkeye[/mwcard]
[mwcard=MW1E27]1 x Marked for Death[/mwcard]
[mwcard=MW1E28]1 x Mongoose Agility[/mwcard]
[mwcard=MW1E29]1 x Nullify[/mwcard]
[mwcard=MW1E32]1 x Regrowth[/mwcard]
[mwcard=MW1E36]2 x Rhino Hide[/mwcard]
[spellclass]Equipment[/spellclass]
[mwcard=MW1Q02]1 x Bearskin[/mwcard]
[mwcard=MWSTX1CKQ02]2 x Hunting Bow[/mwcard]
[mwcard=MW1Q19]1 x Mage Wand[/mwcard]
[mwcard=MW1Q23]1 x Regrowth Belt[/mwcard]
[mwcard=MW1Q25]1 x Ring of Beasts[/mwcard]
[spellclass]Incantation[/spellclass]
[mwcard=MW1I02]1 x Battle Fury[/mwcard]
[mwcard=MW1I03]2 x Call of the Wild[/mwcard]
[mwcard=MW1I04]1 x Charge[/mwcard]
[mwcard=MW1I06]2 x Dispel[/mwcard]
[mwcard=MW1I07]1 x Dissolve[/mwcard]
[mwcard=MW1I12]1 x Force Push[/mwcard]
[mwcard=MW1I14]1 x Heal[/mwcard]
[mwcard=MW1I15]1 x Knockdown[/mwcard]
[mwcard=MW1I17]2 x Minor Heal[/mwcard]
[mwcard=MW1I19]1 x Piercing Strike[/mwcard]
[mwcard=FWI06]1 x Power Strike[/mwcard]
[mwcard=MW1I23]1 x Rouse the Beast[/mwcard]
[mwcard=MW1I25]1 x Shift Enchantment[/mwcard]
[mwcard=FWI08]1 x Sniper Shot[/mwcard]
[mwcard=MW1I29]1 x Vampiric Strike[/mwcard]
[/spells]
[cost]Total cost: 120 pts[/cost]
[/spellbook]

Link (https://dl.dropboxusercontent.com/u/58842665/fourmpost.txt) to code
Title: Re: New BBCode
Post by: pixelgeek on February 09, 2014, 01:40:55 PM
I'll work on the tiling.

So are you referring to the spacing between the individual spells? I can fix that via CSS.
Title: Re: New BBCode
Post by: sIKE on February 09, 2014, 02:54:57 PM
I'll work on the tiling.

So are you referring to the spacing between the individual spells? I can fix that via CSS.

Yes the spacing is huge, I have to scroll through three screens to see that book and my monitors are not huge but also not that small.
Title: Re: New BBCode
Post by: pixelgeek on February 09, 2014, 07:55:28 PM
Spacing okay now?
Title: Re: New BBCode
Post by: sIKE on February 09, 2014, 08:17:44 PM
Much better!
Title: Re: New BBCode
Post by: lettucemode on February 27, 2014, 09:31:50 AM
It seems like the site ignores any whitespace between the end of the tag and the next word.

[mwcard=MW1I09] Drain Power[/mwcard]             note there is no space between that preview and the word "note" even though I inserted a lot of them.

[mwcard=MW1I09] Drain Power[/mwcard]


It also ignores newlines as I illustrate here.

If you click "quote" on this post you can see that the spaces and newlines are there.
Title: Re: New BBCode
Post by: IndyPendant on February 27, 2014, 12:28:24 PM
As a temporary fix anyway, you can use any other command immediately after the "mwcard" command, and it will work.  For example, here I've inserted a single space that I have bolded:
It seems like the site ignores any whitespace between the end of the tag and the next word.

[mwcard=MW1I09] Drain Power[/mwcard]              note there is no space between that preview and the word "note" even though I inserted a lot of them.

[mwcard=MW1I09] Drain Power[/mwcard]


It also ignores newlines as I illustrate here.

If you click "quote" on this post you can see that the spaces and newlines are there.
Title: Re: New BBCode
Post by: lettucemode on February 27, 2014, 04:10:48 PM
Thanks for the tip Indy
Title: Re: New BBCode
Post by: sIKE on April 22, 2014, 10:44:04 AM
Another nice to have, if possible, would be a copy button on the Card pop-up window...
Title: Re: New BBCode
Post by: pixelgeek on April 22, 2014, 11:18:31 AM
Another nice to have, if possible, would be a copy button on the Card pop-up window...

I'll look into it

I'll also look into a fix for the BBCode spacing issue
Title: Re: New BBCode
Post by: pixelgeek on April 25, 2014, 09:57:31 AM
I'll also look into a fix for the BBCode spacing issue

Spacing issue should be fixed now. I had to edit three tags to make it work  >:(
Title: Re: New BBCode
Post by: sIKE on April 25, 2014, 10:44:53 AM
So easy peasy greasy!