Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Wowhead Item tooltips for World of Warcraft Details »»
Wowhead Item tooltips for World of Warcraft
Version: 0.4.5b, by sweede sweede is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.x Rating:
Released: 11-29-2007 Last Update: 05-19-2008 Installs: 90
DB Changes Uses Plugins Auto-Templates
Re-useable Code Translations Is in Beta Stage  
No support by the author.

Please see https://vborg.vbsupport.ru/showthread.php?t=183035 for updated version

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 12-31-2007, 04:44 PM
sergiod06 sergiod06 is offline
 
Join Date: Sep 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sweede View Post
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.
Reply With Quote
  #33  
Old 12-31-2007, 06:33 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #34  
Old 01-01-2008, 04:41 PM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sweede View Post
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.
Reply With Quote
  #35  
Old 01-03-2008, 12:06 AM
comicus comicus is offline
 
Join Date: Jul 2006
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. =)
Reply With Quote
  #36  
Old 01-03-2008, 04:02 AM
Newfarm Newfarm is offline
 
Join Date: Nov 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works with [item]Spiteblade[/item]
Reply With Quote
  #37  
Old 01-03-2008, 05:41 AM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #38  
Old 01-03-2008, 06:06 AM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by comicus View Post
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
Reply With Quote
  #39  
Old 01-03-2008, 10:57 AM
comicus comicus is offline
 
Join Date: Jul 2006
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Newfarm View Post
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.
Reply With Quote
  #40  
Old 01-03-2008, 11:19 AM
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #41  
Old 01-03-2008, 11:23 AM
comicus comicus is offline
 
Join Date: Jul 2006
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08089 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete