1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Hearthstone Custom BBCode

Discussion in 'Styling and Customization Questions' started by PET, Oct 10, 2013.

  1. PET

    PET Member

    Hey guys,

    I need a help with something. Have a look here:
    http://www.wowhead.com/hearthstone/tooltips

    As you can see there is that Goblin link, when you hover you see an image with the card. I want a custom bb code on my XenForo that will be able to do that. As you can see all you have to do is add that custom HTML in Header and "you are all set"... but I'm still not sure how that will work on my forum.

    1. A BBCode button that will create the link. I write the card name, select the card name, press BBCode button = automatically link.
    2. Forum automatically converts the text to a hyperlink to that card. Not sure if possible but it will be awesome. Also this option should be enabled only on a particular forum since I don't want other text converted on forum categories that are not related.

    I hope this made sense. Whatever works.

    Thank You

    P.S. Here are more info about this links tooltip on the WoW page. They should work the same.
     
  2. PET

    PET Member

    Anyone please? I have no idea how to implement this custom BBCode or how to make this automatically.

    I can give you a virtual beer.
     
  3. EQnoble

    EQnoble Well-Known Member




    links from either wowhead.com or hearthhead.com will both be converted into the titles that are a link which also supports the little card...


    I need sleep... peace on this for now
     
  4. PET

    PET Member

    Interesting. But what if I write the name of the card without providing any link. Will that be converted automatically as well? That's something that I would really want.
     
  5. EQnoble

    EQnoble Well-Known Member

    That is not how that script works, there is nothing in the script that would automatically turn text matching a valid item into a card, and to do that manually would be 2 things, A: a lot of work that would take a long time B:
    would require me have a data sheet with nothing but items, their data, and the corresponding item id#s from those sites for the cards for those items.

    It's doable but would require too much time invested to just whip up and throw out there and is more of a custom job if that is what you are looking for.

    If the media site from that video does not suffice I am afraid I cannot help you
     
  6. PET

    PET Member

    Hmm... I could go over the items. I'm only interested in Hearthstone and there are only about 300 cards.
     
  7. EQnoble

    EQnoble Well-Known Member

    While having the item list and -> item #s for the pages is a start, it would still require a custom addon as there is nothing to auto parse straight text with the media sites system, it will only parse links. Because of this, a custom addon to catch all instances of {ITEM NAMES} would still be needed and in that would need to be an array of all items in the list -> item url for the replacements to work.
     
  8. PET

    PET Member

    Did anyone made an addon like that? It might be useful and not only for my purpose.
     
    gasg likes this.
  9. gasg

    gasg Member

    I'm looking for one as well cheers.
     

Share This Page