vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Wowhead Item tooltips for World of Warcraft (https://vborg.vbsupport.ru/showthread.php?t=163987)

sweede 11-29-2007 10:00 PM

Wowhead Item tooltips for World of Warcraft
 
Please see https://vborg.vbsupport.ru/showthread.php?t=183035 for updated version

Ninok 11-30-2007 08:19 PM

Can you edit the XML to reflect that it will work on 3.6.5? I had to edit it for min = 3.6.5 and max = 3.6.8.

It works completely on 3.6.5 fyi =D

sweede 11-30-2007 08:27 PM

It will probably work with anything 3.6.x

i'll update it here in a few.

Ninok 11-30-2007 08:30 PM

Quote:

Originally Posted by sweede (Post 1392569)
It will probably work with anything 3.6.x

i'll update it here in a few.

I'm pretty sure it does, just get that error about it requiring 3.6.8, easy fix =D

Ninok 11-30-2007 11:02 PM

EDIT: I did not see 2.6 released.

I'm getting this error on some of my pages now.....

Fatal error: Cannot instantiate non-existent class: vb_xml_parser in /html/forum/global.php(356) : eval()'d code on line 103

freebase69 11-30-2007 11:17 PM

Worked like a charm! Awesome.

DDolphins 12-01-2007 12:43 AM

Installed and works perfectly. Thank you

Newfarm 12-02-2007 07:58 PM

Awesome, works just as well as I hoped when I wrote that "I wish if someone could just.." post in the other thread. Great work!

sweede 12-02-2007 10:25 PM

I'm also working to get it where if you post a wowhead URL , instead of making the URL clickable, it grabs the item name from the URL and create the item link accordingly

i.e.
HTML Code:

http://www.wowhead.com/?item=18609
turns into
HTML Code:

[item]Anathema[/item]
I have it working on my forums currently but i had to modify another addon entirely to get it to work.

Radek125 12-03-2007 03:55 AM

I have curl enabled and am getting the following error.

Fatal error: Call to undefined function curl_init() in /usr/home/guild/public_html/forumold/global.php(360) : eval()'d code on line 319

Any ideas?

gitemstats links for hyjal and bt are currently broken @ http://www.afraidyet.net - kinda wierd :/

sweede 12-03-2007 01:20 PM

Removed the need for CURL , if you aren't having issues, there is no reason to update.

ChiliVB 12-04-2007 12:47 PM

Many thanks for coming up with this mod for Wowhead integration!

I've installed and noticed something I was hoping I could tweak in the itemname appearance in post.

In my installation the Items names are underlining. I looked at the example on your site and this is not occurring. It did not occur with my previous installation of gItemstats or the original Itemstats product.

I looked thru the plugins your xml install but I don't see what would be causing the name to be underlined. Could you point me to the code so I can tweak that please.

Example attached.

Attachment 72937

Newfarm 12-04-2007 02:53 PM

Are all your links underlined? ;) As far as I know this just inherits these properties from whatever style that is in use. If I test with a style on my board that has default underlining of links, these links are underlined. If I'm using the style that's actually in use, with no link underlining unless hoovering, I don't get any underlines.

Shorter version;

You need to set up the CSS for your style.

sweede 12-04-2007 04:01 PM

Quote:

Originally Posted by ChiliVB (Post 1394664)
I've installed and noticed something I was hoping I could tweak in the itemname appearance in post.


It is because that your style underlines URL links and the example i have doesnt.

however, the new version allows you to set text-decoration: none; in the item URL (along with bod) in your admin options.

also my product update should fix a bug in vbulletin
http://www.vbulletin.com/forum/proje...?issueid=23842

jaykresge 12-04-2007 04:21 PM

So far,I'm liking this mod. However, like gItemStats, the WYSIWYG editor can mess up the links, though not as badly.

I've found a way around it, thanks to the WoWhead js, simply create an item BBCode. Problem is, I'm not sure what to include in the replacement field. Any ideas?

Thanks again for making these changes to the mod.

ChiliVB 12-04-2007 04:22 PM

Sweede, Thanks for the quick response and adding the option to disable text decoration for item links.

I updated to your new version and its working like a charm.

jaykresge 12-04-2007 04:32 PM

What I'm trying to do right now is two things.

1. Create a Custom BB Code, so that you can use the WYSIWYG editor, without it messing up the item tag. I want it to recognize the item tag.

2. Instead of typing item and /item, you simply type the name of the item, highlight it, and click the WoWHead button, which warps the item tags around the item name.

However, I'm having a hard time figuring out what to put in the "replace" section. I'll keep trying, but if you have any input, feel free to add it in :)

Radek125 12-05-2007 05:48 PM

Since we're on the same WoW server Az I've been following your site for a while. What DKP setup you guys using? I notice the item history linking modules you had on the main page for a while showing item history and various changes you've been making to your site over the last few weeks. We use EQDKP plus modded but I noticed you were using one with vbphrases involved. (Just recently) Is this custom or something you've found and have been working on yourself? I could incorperate EQDKP plus loot history on our main page but it looks like you have setup a much easier way of doing this. New RS site looks nice =) I'm not running VBadvanced, so our setup is a little different.

WoWHead item stats is much cleaner code than gitemstats was, thank you for this mod.

Installed.

http://www.afraidyet.net

-Radek

sweede 12-05-2007 07:36 PM

Quote:

Originally Posted by Radek125 (Post 1395618)
Since we're on the same WoW server Az I've been following your site for a while. What DKP setup you guys using? I notice the item history linking modules you had on the main page for a while showing item history and various changes you've been making to your site over the last few weeks. We use EQDKP plus modded but I noticed you were using one with vbphrases involved. (Just recently) Is this custom or something you've found and have been working on yourself? I could incorperate EQDKP plus loot history on our main page but it looks like you have setup a much easier way of doing this. New RS site looks nice =) I'm not running VBadvanced, so our setup is a little different.

WoWHead item stats is much cleaner code than gitemstats was, thank you for this mod.

Installed.

http://www.afraidyet.net

-Radek


we use loot council, but i'm writing an attendance tracker based on a modified version of NRT (http://rabbit.nihilum.eu/nrt.html).

I have quite a bit of re-writing to do though.

atomhead 12-08-2007 01:11 AM

This is awesome and so easy to install. Only problem is the item link is using my template's default color not purple or whatever the item quality is. Any ideas?

http://www.tlbguild.org/forums/showthread.php?t=5

sweede 12-08-2007 01:54 PM

Quote:

Originally Posted by atomhead (Post 1397148)
This is awesome and so easy to install. Only problem is the item link is using my template's default color not purple or whatever the item quality is. Any ideas?

http://www.tlbguild.org/forums/showthread.php?t=5

They work fine until you edit a post and save it, then it changes the "item" tag into a URL tag. What it does then is that it looses the class attribute from the URL link.

The way around this is NOT to use the WYSIWYG Editor controls.

in the Admin CP, go to vbulletin options -> Message Posting Interface Options and change the three options under "Enable Clickable Message Formatting Controls" to "Enable Standard Controls"

Now, since some of your users may have the wrong option checked, you can mass update them if you set an option in the config.php file.

Code:

$config['SpecialUsers']['canrunqueries'] = '1';
or whatever your user id is.

then go to
Maintenance -> Execute SQL Query and from the drop down list select "Show Standard Editor Toolbar"

sergiod06 12-18-2007 07:38 PM

I have vbAdvanced, is it possible that the [item]Name[/item] work on custom html pages?

Wayne Luke 12-18-2007 11:04 PM

This should add information about the bbcode to misc.php?do=bbcode.

sweede 12-19-2007 04:17 AM

Quote:

Originally Posted by Wayne Luke (Post 1404060)
This should add information about the bbcode to misc.php?do=bbcode.


Is there an easy way of doing that ? There doesnt seem to be a lot of documentation on adding stuff through the built in API of vBulletin (or even that there IS an API for vBulletin!).

Edit: I added the info about the bbcode to the location listed. It's Q&D but thats why plugins and hook locations were created right :)


sergiod06 , not for custom HTML pages. I'm sure that there is a way to search & replace items via plugin hooks but there isnt much reason to do that. if you need to add item links, the proper format for the item mouseover can be found at wowhead.com

HTML Code:

<a class="q5" href="http://www.wowhead.com/?item=19019">Thunderfury, Blessed Blade of the Windseeker</a>
q5 is legendary
q4 is epic
q3 is rare
q2 is uncommon
q1 is common
q0 is junk

sergiod06 12-19-2007 02:35 PM

Yes, i've done a custom BBCode page, however the html that is perfect on html page, is messed up on the bbcode page :P

sweede 12-19-2007 03:35 PM

Quote:

Originally Posted by sergiod06 (Post 1403904)
I have vbAdvanced, is it possible that the [item]Name[/item] work on custom html pages?

Now that i think about it, there may be a way to run the bbcode processor over an HTML based template w/bbcode in it using the parse_templates hook or something horribly inefficient like that


Now when you say "Custom HTML page" , do you mean
Vba- >Add Page- > Page type of ??

Template Page or HTML File page ?

xxxsaint 12-19-2007 04:06 PM

how can I add a button so that when I type in the item name , I can highlight it and click that button , making it wrap the [ item ] tags around it ?

sweede 12-19-2007 07:11 PM

That's on my list of things to do, i'll try to figure it out for an update tomorrow.

Danoxth 12-19-2007 07:21 PM

Installed this yesterday and it worked fine on the test server.

Just gone onto the "live edition" of the forum and sadly does not work any longer. It's on a fresh install of vBulletin and is one of the first mods i've gone to add.

When importing the product I get this error appear briefly:

Code:

Parse error:  syntax error, unexpected $end in D:\wamp\www\forum\admincp\plugin.php(1970) : eval()'d code on line 4
The product then continues to install as normal but sadly no longer functions. Using the item code [ item] <Item name here> [ /item] causes the item name to become underlined and changed into a link to the WoWhead page for that item.

Using just the WoWhead address for the item just stays as the url e.g.: http://www.wowhead.com/?item=33491

Any suggestions?

sweede 12-24-2007 01:57 PM

Quote:

Originally Posted by Danoxth (Post 1404895)
Code:

Parse error:  syntax error, unexpected $end in D:\wamp\www\forum\admincp\plugin.php(1970) : eval()'d code on line 4
The product then continues to install as normal but sadly no longer functions. Using the item code [ item] <Item name here> [ /item] causes the item name to become underlined and changed into a link to the WoWhead page for that item.
Any suggestions?

Uninstall the product completly.
Download the latest 0.3.1a version and add the product again.

sergiod06 12-31-2007 04:44 PM

Quote:

Originally Posted by sweede (Post 1404708)
Now that i think about it, there may be a way to run the bbcode processor over an HTML based template w/bbcode in it using the parse_templates hook or something horribly inefficient like that


Now when you say "Custom HTML page" , do you mean
Vba- >Add Page- > Page type of ??

Template Page or HTML File page ?

Yes, I put in HTML File page.

sweede 12-31-2007 06:33 PM

Also, im updating the plugin . xml file to include the above plugin and an option to enable/disable the specific hook if you do not use VbAdvanced CMPS

sweede 01-01-2008 04:41 PM

Quote:

Originally Posted by sweede (Post 1412795)
Also, im updating the plugin . xml file to include the above plugin and an option to enable/disable the specific hook if you do not use VbAdvanced CMPS

My plugin didnt work as intended. there was to many issues elsewhere to make it work using the hooks supplied by vbadvanced CMPS.

You instead can enable this for HTML Included pages only by adding
Code:

                                require_once(DIR . '/includes/class_bbcode.php');
                                $tmp_parser =& new vB_BbCodeParser($vbulletin);
                                $home[$modid]['content'] =  $tmp_parser->do_parse($home[$modid]['content'], 1,0,1,1,0,0);

at line 321 of the /includes/vba_cmps_include_top.php file.

You still will have issues with any javascript included in the HTML file though.

comicus 01-03-2008 12:06 AM

I've been using gitem stats for awhile, but was excited to see this one. Am i completely misunderstanding something or do your users have to know the wowhead item number in order to make this work? With gitem stats you just used [item]name[/item] and it would give you a mouseover tooltip/link. with this, it appears that you have to include the actual wowhead item number when trying to create the link. is that right? if so...is there any way to make this mimic gitem in that regard? i'd hate to expect my users to go and look the item number up everytime they want to post something.

any assistance would be appreciated. Thanks. =)

Newfarm 01-03-2008 04:02 AM

This works with [item]Spiteblade[/item] :)

sweede 01-03-2008 05:41 AM

What it does is similar to how the itemstats works.

you post an item with the item tag, [item]foo[/item]

The first thing it does is it looks up the name foo , in the database (the database stores the item name, the item quality and the item ID). It reads the item ID and quality and writes the URL.

If it cannot find the item name there, it checks wowhead to see if the site exists. The URL to a wowhead item is pretty simple, http://www.wowhead.com/?item=[ItemName]&xml , for example http://www.wowhead.com/?item=Nightseye&xml

I just read the item ID from the xml and write the URL to match whats required by the wowhead javascript http://www.wowhead.com/?powered

sweede 01-03-2008 06:06 AM

Quote:

Originally Posted by comicus (Post 1414246)
i'd hate to expect my users to go and look the item number up everytime they want to post something.

any assistance would be appreciated. Thanks. =)


I've found that my users would rather post the item link

http://www.wowhead.com/?item=33585

when trying to list their "wish" lists and whatnot...

so, i updated the plugin

comicus 01-03-2008 10:57 AM

Quote:

Originally Posted by Newfarm (Post 1414384)
This works with [item]Spiteblade[/item] :)

strange. not for me it doesn't. it creates a link....and if you click on it, it works. however, there is no mouseover tooltip. maybe i'm doing something wrong. there aren't really any instructions. do i have to do anything other than import the product? any thoughts? (yes, i just installed the newest version). thanks.

sweede 01-03-2008 11:19 AM

Install the Updated XML file (0.3.5a)
Due to this bug, http://www.vbulletin.com/forum/proje...?issueid=24174

The product name of my template was changed from what it should be to vbulletin and when i exported the product last, the template wasnt included in the export.

comicus 01-03-2008 11:23 AM

sweede. you just made my day! love it! thank you! =)


All times are GMT. The time now is 04:57 PM.

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.01397 seconds
  • Memory Usage 1,841KB
  • 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
  • (3)bbcode_html_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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