Scripting


14
Dec 08

Wowhead tooltips extension updated

I just finished an update on my extension “Wowhead tooltips”. The big change is how the item bbcode is used. [item] can be used like the following:

  • [item]###[/item]
  • [item]Item Name[/item]
  • [item=###]item name[/item]

The first two are preparsed into the third one. So if all you know is either the id number or the name, just use [item].

There is also new bbcodes for Spells, Quests and Achievements, but they don’t have a preparser so you cant use them like you can with the [item] tag (the first two from the list above).

p.s. if the item tag does not preparse, it means either that you spelled the name wrong, or the id is wrong

Wowhead also added the ability to add enchants, gems and set bonus’. To add those just add the following to the item code:

  • ‘ench=##’ for enchants
  • ‘gems=##:##’ for gems
  • ‘pcs=##:##’ for other set pieces

The item code would then look like this [item=## ench=## gems=##:##]Item Name[/item]

(Where # is the id number of enchant, gem, or other piece)


13
Dec 08

Base 64 img

Base64img is a script that is pretty simple and very useful for any programmer who is looking for a way to store their images in their script. What it does is it uses the php function “base64_encode” and to encode your image in to an array of data. The data is, of course the encoded image its self, the file size of the image, and image type (jpg, png, gif).

The script i stared with was created by php.holtsmark.no witch he created for his script witch is ALL one file. I improved on the script and the data it sent back by allowing multiple file uploads. I also added a jquery enhanced front end to make uploading the files really easy.

You can try it Here.
And you can view the source Here.