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)

tuaguild 06-15-2008 11:22 PM

no with the [char] codes in there i was talking of my earlier post of how to fix the wyiswyg problem

Forage 06-21-2008 04:44 AM

Since upgrading to the newest version I notice if you choose the default server nothing will show up but that server however if you leave the server blank the mouse over only shows names instead of name and server. Where can I modify this to include server and character name?

sweede 06-21-2008 04:56 AM

The default server option doesnt work how one would think. If you enable the default server, it should override any server listed in the [char] tag.

It seems that you're expecting it to function in the manner that if you don't set the server in the [char] tag, that it would use the server set in the default option.

Which would be a good idea..

I'll correct the behavior in a day and upload a new version.

Forage 06-21-2008 05:08 AM

Nice looks good so far, Just curious but do you do more we work on dramaloot? If so kinda curious how hard it was to setup the armorylite profile links.

sweede 06-21-2008 05:55 AM

Ok, I'm totally confused to what you said...

anyways, look for an update tomorrow afternoon.

pewp 06-23-2008 03:22 AM

Installed this on my guild site and i'm getting the following errors when I click on a profile link.

Code:

Warning: vB_ProfileBlock_wowcharprofile::include_once([path]/includes/functions_wowcharcode.php) [vb-profileblock-wowcharprofile.include-once]: failed to open stream: No such file or directory in [path]/member.php(463) : eval()'d code on line 29

Warning: vB_ProfileBlock_wowcharprofile::include_once() [function.include]: Failed opening '[path]/includes/functions_wowcharcode.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [path]/member.php(463) : eval()'d code on line 29

Fatal error: Call to undefined function member_block_character() in /home/decimato/public_html/sb/forums/member.php(463) : eval()'d code on line 34

I've had this installed on other sites with no issues, I'm not sure what the problem is. We are running 3.7.1 PL2

sweede 06-23-2008 03:35 AM

go to Product & Plugin Manager -> Plugins and find the plugin named Build block ,hookd to member_build_blocks_start and disable (or delete) it.

wolfstream 06-23-2008 04:04 PM

Just a thought here:
The [char]character[/char] code no longer works? At least it doesn't for me. Examples:
[char=Us-Garona]Kanthathe[/char] works
[char=Garona]Kanthathe[/char] works
[char]Kanthathe[/char] does not, it returns the error "Something Else is wrong". Maybe you should look into your error codes.

If nothing else, you should update the initial post, as using character name alone will not work. It's also probably a good idea to find and fix whatever's causing the spacing error.

All in all, the product looks good, those errors are a bit frustrating though.

tuaguild 06-23-2008 06:18 PM

did you edit your settings in the vb options putting in the default realm and all that also clear the cache and make sure all your settings are correct

wolfstream 06-24-2008 04:17 PM

Quote:

Originally Posted by tuaguild (Post 1557055)
did you edit your settings in the vb options putting in the default realm and all that also clear the cache and make sure all your settings are correct

Yeah, no default realm was setup.
SO, I guess it's not possible to (using the wowchar_code variable) to have characters from multiple servers shown up in postbit? Or am I missing something here. Seems that only characters from the default server (if one is set) show up there.

sweede 06-24-2008 04:40 PM

You would be correct.

Much of it was hard coded and copy-pasted from the original hack.

I have been slowly re-writing the entire thing though, it's just taking longer than i have anticipated. Much of it is due to handling the amount of information (over 130 individual stat items) returned from the wowarmory.com's character XML file and finding an easily customizable way to display that information on a per class, or even talent spec, basis.

For what you want to do though (Multiple servers + characters per postbit) , I won't include features like that because it would be impossible to write code to support the many ways you would be able to get that information to the hook.

I would instead have methods/functions available (such as GetCharacterURL($server,$char,$locale) that you would call in your own hook with your own processing of the custom profile field.

so for example, you would have a profile field that people would enter character/realm info like
US|Vek'nilash|Azaril
US|Vek'nilash|Offended
US|Uldaman|Azaril

and your code in the postbit_start hook would look like
PHP Code:

// process profile field.
$postbit_array split("\n"$post[field6] );
foreach(
$postbit_array as $line)
{
 
$line_array split("|",$line);
 list(
$locale$realm$char) = $line_array;
 
$URL .= GetCharacterURL($char,$realm,$locale) . "\n";
}

// replace hook in postbit cache
$find '$postbit_left';
$replace $URL;
$template $template_cache['postbit'];

$template str_replace($find$replace$template); 

Of course that's all pseudo code and you'll have to write it accordingly, but that's the general idea of what would need to be done.

Tolas 06-26-2008 02:53 PM

I keep getting the "something Else is wrong" error now.

I have double checked the settings.
un-installed and re-installed, and corrected settings again.
cleared the cache

I have also tried:

[char=US-Argent Dawn]Tolas[/char]
[char=US-Argent+Dawn]Tolas[/char]
[char=Argent Dawn]Tolas[/char]
[char=Argent+Dawn]Tolas[/char]
[char]Tolas[/char] (tried both ways of setting default server in options, also tried leaving it blank)

I am stumped :(

sweede 06-27-2008 07:07 PM

I found an entirely new, better, faster way to do the tooltips. Along with that, it should also help clear up some of the issues that people may have been having.

I'll also have a FAR cleaner code coming out, but the cache is that i'm going to scale back on its features / output a LOT so that I can extend it naturaly instead of having to add hack after hack to the code.

I also will be providing built in support for the character info provided from most Gryphon's mods and once again revamped error logging

I'll try to make something available for Sunday.

comicus 06-27-2008 07:52 PM

dang you sweede! that's such a tease lol. looking forward to seeing what you've come up with.

if you come up with an easy way for us to specifiy which stats show up, i'd love you forever lol.

sweede 06-27-2008 10:55 PM

Quote:

Originally Posted by comicus (Post 1560633)
dang you sweede! that's such a tease lol. looking forward to seeing what you've come up with.

if you come up with an easy way for us to specifiy which stats show up, i'd love you forever lol.


Thats been the problem for a long time.

See attachment (armorylite.com is so awesome)

tuaguild 06-28-2008 09:09 PM

LMAO DUDE YOU USED MY TOON TO TEST THATS FREAKIN SWEET LOL. I personally cannot wait for this mod to be compleated because i may include it in The PB-WoW Skin if you would allow that

tuaguild 07-14-2008 12:52 AM

any status on the new mod i am really excited to see it

Junaper 07-23-2008 08:06 PM

almost all name works on our guild site ecpt server:Alleria Name:Onux for that one i get

Fatal Error: Cannot use string offset as a array
functions_wowcharcode.php on line 429

btw: i LOVE this addon!! <3

http://sojaded.org/wbb/showthread.php?t=870 is the link to the url that has the broken name.. but we require people to log on to see the forums.. >.<

sweede 07-23-2008 08:18 PM

hmm.. your character listed there has no professions..

give the guy 50c and tell him to pick up enchanting or something...

anyways.. a proper fix would be to change the GetProfession function at line 418 to
Code:

    function GetProfession()
    {
        if (isset($this->profession) )
        {
            if ( !is_array($this->profession[0]) )
            {
                $tmpArr[] = $this->profession;
                $this->profession = $tmpArr;
            }
   
                foreach($this->profession as $profs)
                {
                $profs['value'] = $profs['value'][0];
                        $prof_url = $this->get_image_location($this->icons_url . "professions/" . $profs['key'] . "-sm.gif");
                $profs['name'] = $this->wowchar_phrase($profs['name'], "prof");
                        eval('$out .= "' . fetch_template('WoWChar_profession_data') . '";');
                }
   
            return $out;
        } else {
            return false;
        }
       
    }


Junaper 07-23-2008 08:54 PM

Quote:

Originally Posted by sweede (Post 1582535)
hmm.. your character listed there has no professions..

give the guy 50c and tell him to pick up enchanting or something...

anyways.. a proper fix would be to change the GetProfession function at line 418 to
Code:

    function GetProfession()
    {
        if (isset($this->profession) )
        {
            if ( !is_array($this->profession[0]) )
            {
                $tmpArr[] = $this->profession;
                $this->profession = $tmpArr;
            }
   
                foreach($this->profession as $profs)
                {
                $profs['value'] = $profs['value'][0];
                        $prof_url = $this->get_image_location($this->icons_url . "professions/" . $profs['key'] . "-sm.gif");
                $profs['name'] = $this->wowchar_phrase($profs['name'], "prof");
                        eval('$out .= "' . fetch_template('WoWChar_profession_data') . '";');
                }
   
            return $out;
        } else {
            return false;
        }
       
    }


well, i dont get the error on 429 anymore.. but i get one on 431.. but im a noob at code so maybe i did it wrong.. maybe i should wait for the upgrade.. hehe

on a side note.. i dont know if this can be done.. but can the pop up be "smart" so that if the link is at the bottom of the page that it can pop up instead of down were you cant see it? thought i would throw it out there for a update sometime.. :)

thanks for such a quick reply! :) again <3 your mods

sweede 07-23-2008 09:13 PM

hmm.. the quick, non-tested fix didnt work... i'll post a corrected one later tonight.

as for the smart pop-up idea, ya ive been looking for a way to get that done for such a long time , i hate it. But since i fail at javascript, i just copy paste from other sources.

Junaper 07-23-2008 09:51 PM

Quote:

Originally Posted by sweede (Post 1582577)
hmm.. the quick, non-tested fix didnt work... i'll post a corrected one later tonight.

as for the smart pop-up idea, ya ive been looking for a way to get that done for such a long time , i hate it. But since i fail at javascript, i just copy paste from other sources.

thanks!! :)

Junaper 07-23-2008 10:18 PM

a friend of mine "Anivar" came up with this fix
Code:

function GetProfession()
    {
        if (!is_string($this->profession) )
        {
            if ( !is_array($this->profession[0]) )
            {
                $tmpArr[] = $this->profession;
                $this->profession = $tmpArr;
            }
   
        foreach($this->profession as $profs)
        {
                $profs['value'] = $profs['value'][0];
        $prof_url = $this->get_image_location($this->icons_url . "professions/" . $profs['key'] . "-sm.gif");
                $profs['name'] = $this->wowchar_phrase($profs['name'], "prof");
        eval('$out .= "' . fetch_template('WoWChar_profession_data') . '";');
        }
   
            return $out;
        } else {
            return;     
        }
     
    }


Dr_Hengelhoffer 07-24-2008 02:17 PM

I begin give up :(
pls visit this link

what wrong?

sweede 07-24-2008 02:23 PM

Quote:

Originally Posted by Dr_Hengelhoffer (Post 1583129)
I begin give up :(
pls visit this link

what wrong?

You don't have cURL installed on your webhost.

You can try asking them if they can enable it for you, but that might not happen.

Are you using my other product, the Wowhead Item stats plugin? That doesnt use cURL and if it works, i can make an update for you (and other non-cURL users)

Ionsurge 07-24-2008 07:52 PM

I'm having issues, it's having troubles CHMODing the armory folder, even tho it's 777?

http://www.virtueguild.com/showthrea...=1529#post1529

sweede 07-24-2008 08:07 PM

you can try commenting out lines 257-260 ,

//if(!chmod($path,0755))
//{
// echo "error chmod'ing $path";
//}

Dr_Hengelhoffer 07-25-2008 11:29 AM

Quote:

Originally Posted by sweede (Post 1583139)
You don't have cURL installed on your webhost.

You can try asking them if they can enable it for you, but that might not happen.

Are you using my other product, the Wowhead Item stats plugin? That doesnt use cURL and if it works, i can make an update for you (and other non-cURL users)

I must uninstall, this mod, beacuse that blocking the memebers public profile.
I try using the wowhead_itemstats_0-5-4. (and other itemlink hacks) That dosent work :( . Block the FAQ section, and other WYSIWYG editor feature. When i uninstal this produce, all things is fixing.

Sry my bad english.

Ionsurge 07-25-2008 01:34 PM

Quote:

Originally Posted by sweede (Post 1583361)
you can try commenting out lines 257-260 ,

//if(!chmod($path,0755))
//{
// echo "error chmod'ing $path";
//}

Switching it to 700 worked fine. Should really state that the armory folder's permissions needs to be altered.

sweede 07-25-2008 06:10 PM

Quote:

Originally Posted by Dr_Hengelhoffer (Post 1583755)
I must uninstall, this mod, beacuse that blocking the memebers public profile.
I try using the wowhead_itemstats_0-5-4. (and other itemlink hacks) That dosent work :( . Block the FAQ section, and other WYSIWYG editor feature. When i uninstal this produce, all things is fixing.

Sry my bad english.

if you looked through the previous posts, you would have found this https://vborg.vbsupport.ru/showpost....&postcount=167 (on the previous page no less) , in dealing with your member profile issue.

However, since your host doesn't use cURL and you give no explanation as to why anything doesn't work, fixing the member profile issue wouldnt do you any good anyways.

Heretiko 08-01-2008 04:04 PM

same question here, do i have to install this mod just on the servers supporting curl function??? cause i've got this error:

call to undefined function curl_init

???

some help please!!! i love this mod, thanks in advance.

sweede 08-01-2008 05:59 PM

Quote:

Originally Posted by Heretiko (Post 1589275)
same question here, do i have to install this mod just on the servers supporting curl function??? cause i've got this error:

call to undefined function curl_init

???

some help please!!! i love this mod, thanks in advance.


If you don't have cURL, this mod won't work unless you can get your host to install cURL for your domain/server.

Heretiko 08-01-2008 07:22 PM

Quote:

Originally Posted by sweede (Post 1589361)
If you don't have cURL, this mod won't work unless you can get your host to install cURL for your domain/server.

thanks for your response mate ;) i cannot install it cs my ISP doesn't want to do that... and my hosting is on windows machine :( any way to implement this in a future release???

thanks in advance for your resp ;)

Renny 08-11-2008 11:23 PM

Does anyone have any idea why whenever i rollover it, it doesnt popup? becuase it worked fine before, and then i reinstalled my forum and now it doesnt work.

Any ideas?

Junaper 08-18-2008 03:06 PM

its me again... i know i am am helpless.. hehe

Ok, so its has been working great since i was here last time... but... i broke something since then.. and i don't know what...

when i mouse over it has a scroll bar now... >.< i dont know what i changed... and i dont know if you can help me since i dont know how i broke it.. lol

sorry,
~The Noobie Girl

nazguluk 08-19-2008 04:41 PM

Quote:

Originally Posted by Tolas (Post 1559622)
I keep getting the "something Else is wrong" error now.

I have double checked the settings.
un-installed and re-installed, and corrected settings again.
cleared the cache

I have also tried:

[char=US-Argent Dawn]Tolas[/char]
[char=US-Argent+Dawn]Tolas[/char]
[char=Argent Dawn]Tolas[/char]
[char=Argent+Dawn]Tolas[/char]
[char]Tolas[/char] (tried both ways of setting default server in options, also tried leaving it blank)

I am stumped :(

Also having the same problem. Everything works if I add a character from a realm that doesnt have a space in the name but our realm is "Twisting Nether" and we also get the something else is wrong.

----------------------------

sorry... pls ignore.. found the fix at post 155. Have changed the code and is now working :) many thanks

Trickery 08-20-2008 07:58 AM

Quote:

Originally Posted by Renny (Post 1596580)
Does anyone have any idea why whenever i rollover it, it doesnt popup? becuase it worked fine before, and then i reinstalled my forum and now it doesnt work.

Any ideas?

Same issue. No popup window anymore.

dl4002 09-02-2008 01:01 PM

is there any fix for the non profession bug, I found 2 fixes one doesnt work and the other cuts of half the info
check the attachments for info

sweede 09-02-2008 07:12 PM

There is no info missing from your screenshot.

sweede 09-02-2008 07:32 PM

Quote:

Originally Posted by nazguluk (Post 1602413)
Also having the same problem. Everything works if I add a character from a realm that doesnt have a space in the name but our realm is "Twisting Nether" and we also get the something else is wrong.

----------------------------

sorry... pls ignore.. found the fix at post 155. Have changed the code and is now working :) many thanks

This should have been fixed in the 0.4.9 update but obviously it wasnt. it's been re-uploaded as 0.4.9a


All times are GMT. The time now is 07:33 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.01433 seconds
  • Memory Usage 1,860KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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