vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - WoW Character BBCode (https://vborg.vbsupport.ru/showthread.php?t=169389)

sweede 02-15-2008 04:18 AM

The images are pulled from wowarmory.com, which is 90% of the time pretty slow.

I guess that's an idea though. to cache the images from wowarmory to your local webspace. it would require that you have a directory writable by the webserver though.

Zath 02-15-2008 10:46 AM

You are awsome! Thank you so much!!

Caerydd 02-15-2008 11:13 AM

I might see if I can mash this together with the WoWChar drop down addon (I think gryphon made it?) as a tidier way to add characters, although gryphon's one supports alts.

MrShides 02-15-2008 02:12 PM

Quote:

Originally Posted by Caerydd (Post 1443592)
I might see if I can mash this together with the WoWChar drop down addon (I think gryphon made it?) as a tidier way to add characters, although gryphon's one supports alts.

This would be sofaking cool

Caerydd 02-16-2008 02:15 PM

Mebbe, but I'm not going to do it now. His 'version' pulls armory data for his new WoW Event Calendar, so I wouldn't want to mess it up :) However Sweede's bbcode would be a nicer way of displaying characters in the postbit ^^ So...we'll see.

I love love love that we have two great developers maintaining these mods now :D

sweede 02-16-2008 04:26 PM

Quote:

Originally Posted by Caerydd (Post 1444448)
Mebbe, but I'm not going to do it now. His 'version' pulls armory data for his new WoW Event Calendar, so I wouldn't want to mess it up :) However Sweede's bbcode would be a nicer way of displaying characters in the postbit ^^ So...we'll see.

I love love love that we have two great developers maintaining these mods now :D

My mod retrieves the armory XML data and stores the entire thing into the database. the cached data expires after 6 hours (at least thats what i think it did).

Anything that that uses armory data can easily be re-written to use the cache storage container that i have

For example, the elricstorm calander read the XML file from the armory then copied the parts of the XML to the database. You would simply change the code that retrieves the the armory from the URL with what i wrote.

MrShides 02-17-2008 04:35 AM

My Fury Warriors and Ehancement Shaman where commenting on how they really like the addon, however they would really like it to display their Attackpower and Crit Chance.

sweede 02-17-2008 07:13 AM

Quote:

Originally Posted by MrShides (Post 1444942)
My Fury Warriors and Ehancement Shaman where commenting on how they really like the addon, however they would really like it to display their Attackpower and Crit Chance.



It appears that melee crit wasnt part of the original or i accidently deleted it..

Go to admincp -> Phrase Manager -> Add New Phrase

Phrase Type: WoW BBCode Phrases
Product: WoW BB Code
Varname: wowcharcode_melee_crit
Text: Melee Crit

Save.

Open includes/functions_wowcharcode.php file and find
Code:

$value["melee main dps"]                = $melee['mainhanddamage']['dps'];
Add
Code:

  $value["melee crit"]            = $melee['critchance']['percent'] . "%";
after it.

Find
Code:

"melee main dps" => 3,
Add
Code:

"melee crit" => 3,
after it

Now, you can add the melee crit ID in the make_extra_data method.
Change all lines that read
Code:

$default = array_merge($default, array("melee main damage", "melee main dps"));
to

Code:

$default = array_merge($default, array("melee main damage", "melee main dps","melee crit"));
There should be 4 places to change (you don't need to change the hunter section that starts with // Hunter 2 melee stats).

I'll incorporate this into a more complete package at a later time. I want to finish up a couple other things first.

CremeEgg 02-17-2008 12:53 PM

With the caching enabled I can't see any of the images. They are being cached, I've checked the folder on the server.

I have this issue alot with the theme I'm using when I have images that are outside of the themes folder root.

There are no replacement variables set in the theme though. Should I add one for the armory/images folder or is there a way I can move that folder?

sweede 02-17-2008 02:48 PM

odd, if you go to http://www.destinyawaitsguild.co.uk/...w-70/1-1-2.gif

The image is there, but you get a permission error when trying to view it. Using an FTP client (or if you have a shell to the server which is the best!), try to browse to the /forum/armory/images folder and note the permissions.

Note the attached image, in CuteFTP that is the info i'll be looking for.


All times are GMT. The time now is 03:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01352 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete