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)

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 06:47 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.01184 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (4)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