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 04-26-2008 09:10 PM

There is another issue i noticed, but i will not have time to fix it until the morning.

quarum 04-26-2008 09:11 PM

Quote:

Originally Posted by sweede (Post 1500095)
It appears that vba CMPS rewrites urls in things like <javascript> tags so that it finds them in the correct location. I wasnt aware that it did that.

Edit the WoWChar_headerinclude template and replace the first 3 lines of the template with the following

HTML Code:

<script type="text/javascript" src="clientscript/wowbbcode_js/ajax-dynamic-content.js" defer="DEFER"></script>
<script type="text/javascript" src="clientscript/wowbbcode_js/ajax.js" defer="DEFER"></script>
<script type="text/javascript" src="clientscript/wowbbcode_js/ajax-tooltip.js" defer="DEFER"></script>


That brought it back - however the links on all the images are still broken. The box opens up - grabs the info - but none of the images are working.

sweede 04-26-2008 10:05 PM

Quote:

Originally Posted by quarum (Post 1500118)
That brought it back - however the links on all the images are still broken. The box opens up - grabs the info - but none of the images are working.

that's my other issue

quarum 04-26-2008 10:12 PM

Quote:

Originally Posted by sweede (Post 1500149)
that's my other issue


I am patient - lol - I can wait. :)

Enjoy your weekend!

Forage 04-27-2008 12:43 AM

How hard is it to add extra melee stats to the tooltip? I added melee haste and melee hit for my Paladin but they are not using any CSS or anything else so they are just white text from the code no formatting. I would like to be able to add different stats if at all possible.

sweede 04-27-2008 04:29 AM

configuring what stats to display is a pain atm. I have thought of several different options but none I like.

it is a definite on my to-do list

Forage 04-27-2008 01:35 PM

Fair enough, Have you released your raid Progression module on any forums other then your own if so do you have a link of where a package or at least some instructions are available?

sweede 04-27-2008 10:16 PM

Quote:

Originally Posted by quarum (Post 1500154)
I am patient - lol - I can wait. :)

Enjoy your weekend!

Edit functions_wowcharcode.php

find

Code:

$localpath = "armory/";
replace that line with the following.

Code:

global $vbulletin;
$localpath = $vbulletin->options['wowchar_forum_root']."armory/";

be absolutly sure that you have a leading and trailing slash ( /path/ ) in your wowchar code option setting

Ulkesh 05-12-2008 12:30 AM

so far so good... works a charm! *crosses fingers* ;) Thanks!

Blaine0002 05-12-2008 09:19 PM

find
$wowchar_code .= " onmouseover='ajax_showTooltip(\"".$vbulletin->options['bburl']."/ajax.php?do=wowcharcode&server={xserver}&char={cha rname}\",this);";
in the WoW Char Code Postbit plugin

replace with
$wowchar_code .= " onmouseover='ajax_showTooltip(\"".$vbulletin->options['bburl']."/clientscript/wowbbcode_js/ajax.php?do=wowcharcode&server={xserver}&char={cha rname}\",this);";

Blaine0002 05-13-2008 12:40 AM

might want to include mana on it as well :D

sweede 05-13-2008 11:12 AM

Quote:

Originally Posted by Forage (Post 1500700)
Fair enough, Have you released your raid Progression module on any forums other then your own if so do you have a link of where a package or at least some instructions are available?

Sorry for the uber late delay in replying.

I've fought back and forth through several ideas on how to provide a better degree of customization to this plugin and still haven't really found anything i like yet. However, after watching this really cool video on why more is less ( http://youtube.com/watch?v=vMV4PIEIKY4 , very much worth the 64 minute watch ), i decided on actually using every stat available through the armory XML sheet and providing larger groups. Instead of the roughly 108 (!) stats available through the armory profile, you'll have 7 - 9 to choose from. each class & spec, you'll will be able to choose 3 different stat groups.

melee, spell, defense, arena, ranged, Pets, Resistances and a Class block and im sure there is another one I'm forgetting

http://underthemain.net/forums/showthread.php?t=2


The progression thing is more of a vba CMPS hack. I've been re-writing some of it though since it was very much copy & paste coded :x

sweede 05-13-2008 11:13 AM

Quote:

Originally Posted by Blaine0002 (Post 1517669)
find
$wowchar_code .= " onmouseover='ajax_showTooltip(\"".$vbulletin->options['bburl']."/ajax.php?do=wowcharcode&server={xserver}&char={cha rname}\",this);";
in the WoW Char Code Postbit plugin

replace with
$wowchar_code .= " onmouseover='ajax_showTooltip(\"".$vbulletin->options['bburl']."/clientscript/wowbbcode_js/ajax.php?do=wowcharcode&server={xserver}&char={cha rname}\",this);";


Im not sure what you are trying to do here except create a lot of 404 errors ?

there is no ajax.php file in the clientscript/wowbbcode_js directory. I use the ajax.php file of vbulletin.

Blaine0002 05-13-2008 12:25 PM

hmm, my bad meant for the ajax.js file.

sweede 05-13-2008 12:34 PM

Right, there is an ajax.js, but it does not do what you are thinking it does. The code snip you posted above is something you definitely don't want to do.

Blaine0002 05-13-2008 10:57 PM

all i remember is having to do something with a url in one of the products in order to get the rollover to work :-/ cant quite remember tho.

anyways.

add mana :D

sweede 05-14-2008 11:52 AM

o.

well, this coming weekend i should have a pretty big update that changes how it looks and gives the forum admin easier ways to configure whats shown.

Forage 05-18-2008 12:15 PM

Quote:

Originally Posted by sweede (Post 1518155)
The progression thing is more of a vba CMPS hack. I've been re-writing some of it though since it was very much copy & paste coded :x

Even copy and paste coded it's very clean looking and much better then my attempts have been if you decide to release it please let me know I would love to get it.

DDolphins 05-20-2008 05:04 PM

I searched this thread by my problem hasnt come up yet.

I updated to 3.7 Gold yesterday and along with updating the forum I updated all the addons (Before it was running 3.7 RC1) I updated this one and ran across a small issue

If you go here (where I primarily use the addon) http://www.battlegroundwarriors.com/...ageid=officers

Hovering over any particular name gives a tooltip but where all the stats should be it just says 'Array'

Any idea what is causing the problem? I know its a vbadvanced page but even in an actual post it does the same thing.

Also I never knew you were on Kargath server. I've probably seen you around a few times.

sweede 05-20-2008 08:32 PM

i joined No Quarter for a short time on kargath. After a little while in the guild, i realized that the guild was not yet at a commitment level that I required as a raid guild.

anyways, did you update the functions_wowcharcode.php file ? that's the only thing i can think of that would cuase this issue. Use the one in the plugin post, not the one in the zip file.

DDolphins 05-21-2008 03:32 PM

Yea that seemed to work I replaced the functions file and everything is working again.

Thank you

Nadiar 05-23-2008 09:19 PM

I need this to work with servers with a space in the title. I saw someone hardcoded kul tiras to work on their forum, but I need it to work with several different ones. Does anyone have any clues?

I'm guessing I need to change some of the preg_replace to accept a space.
Code:

preg_match("/(.*)-(.*)/", $realm, $match);
needs to be changed maybe?

sweede 05-23-2008 09:58 PM

Quote:

Originally Posted by Nadiar (Post 1529397)
I need this to work with servers with a space in the title. I saw someone hardcoded kul tiras to work on their forum, but I need it to work with several different ones. Does anyone have any clues?

I'm guessing I need to change some of the preg_replace to accept a space.
Code:

preg_match("/(.*)-(.*)/", $realm, $match);
needs to be changed maybe?


I've tested this on servers without spaces, with spaces, without ' with ' and all combonations, all of them work. My character is on a realm with a ' in it. several users of this mod are on realms with spaces in them.

If you are having a specific issue

I NEED THE CHARACTER NAME AND REALM YOU ARE USING. Please don't just say it doesnt work for this and that without providing me any details as to what isn't working.

The line you listed above only does anything if the value of the [char] option has a - in it (i.e. [char=EU-Server]Character[/char]

Nadiar 05-23-2008 10:27 PM

<a href="http://www.graffe.com/forums/showpost.php?p=1345323&postcount=10" target="_blank">http://www.graffe.com/forums/showpos...3&postcount=10</a>
realm: Silver Hand
character names: Have tried several: Nadiar, Zilandria, Derreidos
Right now everything is set at the default.

Jin 05-30-2008 06:24 AM

This is a great mod. The link seems to break though after editting a thread though, probably due to the WYSIWYG editor? I had this issue with the WoWHead Item Link addon, but the author seems to have fixed it somehow. Is there a way to somehow get that fix to work for this specific mod? :)

sweede 05-30-2008 06:33 AM

Quote:

Originally Posted by Jin (Post 1535948)
This is a great mod. The link seems to break though after editting a thread though, probably due to the WYSIWYG editor? I had this issue with the WoWHead Item Link addon, but the author seems to have fixed it somehow. Is there a way to somehow get that fix to work for this specific mod? :)

Oh dang I thought I fixed that !

I've been kind of out of sorts since my monitor died and I havent been able to play wow and ive been keeping up on my windows CE device..

anyways, DHL should be giving my replacement tomorrow and i'll get that fixed along with some other issues i was working on.

CtrlAltDel 06-03-2008 10:12 PM

I followed the install instructions but I'm getting this error when I debug this myself.

its erroring on the sack(undefined) part

Code:

uncaught exception: Permission denied to call method XMLHttpRequest.open
createAJAX()  ajax.js (line 24)
sack(undefined)  ajax.js (line 132)
ajax_loadContent("ajax_tooltip_content", "http://vergeguild.com/forum/ajax.php?do=wowcharcode&server=Sargeras&char=medpak")ajax-dynamic-cont... (line 53)
ajax_showTooltip("http://vergeguild.com/forum/ajax.php?do=wowcharcode&server=Sargeras&char=medpak", a character-sheet.xml)ajax-tooltip.js (line 82)
onmouseover(mouseover clientX=0, clientY=0)

well seems thats for firefox...my IE seems to work fine, interesting...

i'll test more...

comicus 06-04-2008 01:29 AM

Quote:

Originally Posted by Jin (Post 1535948)
This is a great mod. The link seems to break though after editting a thread though, probably due to the WYSIWYG editor? I had this issue with the WoWHead Item Link addon, but the author seems to have fixed it somehow. Is there a way to somehow get that fix to work for this specific mod? :)

Hey Swede...were you able to fix this issue? Thanks.

sweede 06-04-2008 03:45 AM

Quote:

Originally Posted by CtrlAltDel (Post 1540064)
I followed the install instructions but I'm getting this error when I debug this myself.

its erroring on the sack(undefined) part

Code:

uncaught exception: Permission denied to call method XMLHttpRequest.open
createAJAX()  ajax.js (line 24)
sack(undefined)  ajax.js (line 132)
ajax_loadContent("ajax_tooltip_content", "http://vergeguild.com/forum/ajax.php?do=wowcharcode&server=Sargeras&char=medpak")ajax-dynamic-cont... (line 53)
ajax_showTooltip("http://vergeguild.com/forum/ajax.php?do=wowcharcode&server=Sargeras&char=medpak", a character-sheet.xml)ajax-tooltip.js (line 82)
onmouseover(mouseover clientX=0, clientY=0)

well seems thats for firefox...my IE seems to work fine, interesting...

i'll test more...

it may be because you tryig to load the javascript from a different url than what's in the address bar.

I.e. foo.com v.s. www.foo.com

sweede 06-04-2008 09:09 PM

Quote:

Originally Posted by comicus (Post 1540195)
Hey Swede...were you able to fix this issue? Thanks.

try the 0.4.9 i added today. if this doesnt work as intended (i wrote it really quick before i had to run off for work), uninstall and go back to the 0.4.8 version and post what went wrong (in detail please!!).

comicus 06-05-2008 11:11 AM

Quote:

Originally Posted by sweede (Post 1541019)
try the 0.4.9 i added today. if this doesnt work as intended (i wrote it really quick before i had to run off for work), uninstall and go back to the 0.4.8 version and post what went wrong (in detail please!!).

Hi Swede. Thanks. I'll try that when I get home tonight. However, I just noticed that whenever I view someone's profile in VB 3.7, i get the following text/error at the top left of my browser:

Warning: Invalid argument supplied for foreach() in [path]/includes/functions_wowcharcode.php on line 704

any idea how to fix that? Thanks!

sweede 06-05-2008 11:22 AM

ooo

disable the plugin named "build block" at the member_builg_blocks_start hook.

comicus 06-05-2008 11:28 AM

Quote:

Originally Posted by sweede (Post 1541447)
ooo

disable the plugin named "build block" at the member_builg_blocks_start hook.

thanks for the quick reply. =) looks like that did the trick. thanks.

comicus 06-05-2008 03:31 PM

sorry for the spammage....but has anyone figured out how to make this work with servers that have two-word names (ie Emerald Dream)? Thanks!

sweede 06-06-2008 08:59 AM

Not a problem.

However, i've written a lot of hacky code in the current incarnation of this mod and i'm feeling like to really go further with it, i need to re-write it.

in the mean time, open up the functions_wowcharcode.php file, find the line like this,

$this->SetFetchURL( "http://" . $this->locale . ".wowarmory.com/character-sheet.xml?r=" . urlencode($this->realmname) . "&n=" . urlencode($this->charname) );

add the following,

$this->realmname = str_replace("+", " ", $this->realmname);

before it.

comicus 06-06-2008 12:39 PM

Quote:

Originally Posted by sweede (Post 1542175)
Not a problem.

However, i've written a lot of hacky code in the current incarnation of this mod and i'm feeling like to really go further with it, i need to re-write it.

in the mean time, open up the functions_wowcharcode.php file, find the line like this,

$this->SetFetchURL( "http://" . $this->locale . ".wowarmory.com/character-sheet.xml?r=" . urlencode($this->realmname) . "&n=" . urlencode($this->charname) );

add the following,

$this->realmname = str_replace("+", " ", $this->realmname);

before it.

worked like a charm. =) Thanks!

tuaguild 06-13-2008 08:26 PM

Quote:

Warning: Invalid argument supplied for foreach() in [path]/includes/functions_wowcharcode.php on line 704
this is what i am getting when i bring up the tooltip it comes up inside the tooltip and in line 714 or 717 it says the same thing. I dont know how to fix it i took a look at the code and it looks right to me but idk
also i found your problem for the wysiwyg editor problems in your wysiwyg fix plugin it is alot simpler to fix than you think.
First open up the plugin wysiwyg fix
next change the hook to bbcode_create
next select all inside code box and replace with:
Code:

if ($this->is_wysiwyg()) {
        $this->unparsed_tags[] = 'char';
}


sweede 06-15-2008 07:41 AM

character name and realm...

tuaguild 06-15-2008 05:55 PM

it wont parse as long as it is a variation of char Also that error i spoke of i still cant fix it my character and realm is Lycomedesnw in Gilneas realm

sweede 06-15-2008 08:32 PM

you are using the 0.4.9 version correct ?

Line 704 in the functions_wowcharcode.php file does not contain the foreach() statement, but line 717 does.

if $default isnt set on line 717, most likely classID isnt being set. Armory could be down or the XML cached is invalid (you can empty the cache in the vbulletin options).

Your other problem, i don't know what your talking about "it wont parse as long as it is a variation of char". what does that mean? [char="vek'nilash"]character[/char] works but [CHAR="vek'nilash"]character[/CHAR] doesnt?


All times are GMT. The time now is 07:35 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.01572 seconds
  • Memory Usage 1,846KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_html_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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