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 Sunfire Amulet.

There is also the Wizard's Tower and Force Crush.

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 Wizard's Tower and Force Crush.
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

Vine Snapper and Meditation Amulet
Title: Re: New BBCode
Post by: sIKE on January 10, 2014, 08:01:27 PM
Should be fixed now

Vine Snapper and Meditation Amulet

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

Devouring Jelly
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 Druid Ability Card look like?
Title: Re: New BBCode
Post by: pixelgeek on January 15, 2014, 08:21:24 PM
Probably not as awesome as the Necromancer Ability Card
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
Offical MW DeckA Beastmaster (Johktari) bookbuilt by the OCTGN SBB
Attack1 x Jet Stream2 x Surging WaveConjuration1 x Animal Kinship1 x Lair3 x Mana Flower1 x Mohktari, Great Tree of Life1 x Rajan's Fury3 x Tanglevine2 x Wall of ThornsCreature1 x Cervere, The Forest Shadow1 x Emerald Tegu3 x Feral Bobcat2 x Giant Wolf Spider1 x Makunda1 x Mountain Gorilla3 x Thunderift Falcon2 x Timber WolfEnchantment2 x Bear Strength1 x Block1 x Bull Endurance1 x Cobra Reflexes1 x Eagle Wings1 x Falcon Precision1 x Hawkeye1 x Marked for Death1 x Mongoose Agility1 x Nullify1 x Regrowth2 x Rhino HideEquipment1 x Bearskin2 x Hunting Bow1 x Mage Wand1 x Regrowth Belt1 x Ring of BeastsIncantation1 x Battle Fury2 x Call of the Wild1 x Charge2 x Dispel1 x Dissolve1 x Force Push1 x Heal1 x Knockdown2 x Minor Heal1 x Piercing Strike1 x Power Strike1 x Rouse the Beast1 x Shift Enchantment1 x Sniper Shot1 x Vampiric Strike
Total cost: 120 pts

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.

Drain Power             note there is no space between that preview and the word "note" even though I inserted a lot of them.

Drain Power

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.

Drain Power              note there is no space between that preview and the word "note" even though I inserted a lot of them.

Drain Power


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!