vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Updating YUI for vBulletin 3.8 (YUI 2 currently 2.9.0) (https://vborg.vbsupport.ru/showthread.php?t=264339)

Eric 05-27-2011 10:00 PM

Updating YUI for vBulletin 3.8 (YUI 2 currently 2.9.0)
 
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.

Alfa1 05-29-2011 11:10 PM

Why not just skip step 1 - 5 and use YUI on google?

Eric 05-30-2011 01:39 PM

You could, but I would update both. Mods may not always follow the YUI path option.

kevin.kool 07-10-2011 07:52 AM

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.


All times are GMT. The time now is 01:20 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.02365 seconds
  • Memory Usage 1,722KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete