Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Updating YUI for vBulletin 3.8 (YUI 2 currently 2.9.0)
Eric's Avatar
Eric
Join Date: May 2006
Posts: 792

 

Kentucky
Show Printable Version Email this Page Subscription
Eric Eric is offline 05-27-2011, 10:00 PM

In vBulletin 4, the developers recently upgraded the bundled YUI version to 2.9.0 from 2.7.0. Since vB 3.8 is EOL, I found a way to manually update the bundled YUI version. I've tested vB 3.8 with YUI 2.9.0 as much as I could, and did not run into any problems.

Changes since 2.7.0 (mainly "Animation", "Connection", "DragDrop/Drag & Drop", "Yahoo"):

2.9.0: http://yuilibrary.com/projects/yui2/...e/Rollup_2.9.0
2.8.0: http://yuilibrary.com/projects/yui2/...e/Rollup_2.8.0

2.9.0 contains fixes for IE9, among others.

There is not a way to move from 2.x to 3.x yet for YUI given the extensive amount of changes that would be needed in vBulletin... maybe one day.

Anyway, to update, follow these steps:
  1. Backup your current YUI folder. It is located at /clientscript/yui/.
  2. Download YUI 2's latest version (currently 2.9.0) by going to: http://developer.yahoo.com/yui/2/ - you need to select "Full Developer Kit".
  3. Once downloaded, extract to your hard drive.
  4. Open the resulting /yui_2.9.0/yui/ folder (or the version you downloaded) and find the build folder.
  5. Copy the following files to your forum root. You will need to allow them to overwrite.
    Code:
    /animation/animation-min.js          => /your forum root/clientscript/yui/animation/animation-min.js
    /connection/connection-min.js        => /your forum root/clientscript/yui/connection/connection-min.js
    /connection/connection-min.js        => /your forum root/clientscript/yui/connection.js
    /dragdrop/dragdrop-min.js            => /your forum root/clientscript/yui/dragdrop/dragdrop-min.js
    /yahoo-dom-event/yahoo-dom-event.js  => /your forum root/clientscript/yui/yahoo-dom-event/yahoo-dom-event.js
    /yahoo-dom-event/yahoo-dom-event.js  => /your forum root/clientscript/yui/yahoo-dom-event.js
  6. Edit /includes/class_core.php and find:
    PHP Code:
    define('YUI_VERSION''2.7.0'); 
    replace with:
    PHP Code:
    define('YUI_VERSION''2.9.0'); 
    save.

And there you go, you have the latest and greatest YUI 2.x.
Reply With Quote
  #2  
Old 05-29-2011, 11:10 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not just skip step 1 - 5 and use YUI on google?
Reply With Quote
  #3  
Old 05-30-2011, 01:39 PM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could, but I would update both. Mods may not always follow the YUI path option.
Reply With Quote
  #4  
Old 07-10-2011, 07:52 AM
kevin.kool kevin.kool is offline
 
Join Date: Nov 2009
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found that 3.8.7 release has updated to YUI 2.9.0 because of when i open class_core.php it's showing up define('YUI_VERSION', '2.9.0'); already.
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 08:17 AM.


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.03832 seconds
  • Memory Usage 2,229KB
  • Queries Executed 19 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (1)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete