vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   using jquery instead of yui (https://vborg.vbsupport.ru/showthread.php?t=229743)

winstone 12-07-2009 10:40 PM

using jquery instead of yui
 
Hello,

I'm in process of finishing a mod (hopefully) and for all the ajax functions within the mod I've decided to use jquery library as I'm more familiar with it's syntax than Yahoo UI library

As far as I can see there are no conflicts between two, however I was wondering if I can exclude YUI libraries on my mods

The only vbulletin built-in javascript code I use is WYSIWYG editor (which probably uses a separate vbulletin-editor.js file), I can't think of anything else that I use

By default, when {vb:raw headinclude} is executed in the templates, it includes vbulletin-core.js along with yui-connector and yui-min I think, would it be OK to remove them? and actually is there anyway to do that?

derfelix 12-08-2009 02:20 AM

I think.. vbulletin-core.js needs the yui lib.. and also the init in footer is bound to check for it...
(not sure.. but check it out.. do a fetch_object(some id) in your code.. (that uses the main vbulletin js..)
if that works after removing the yui then you can do it.
PS i wouldnt.. check out the yahoo dev pages.. there is a simple beginner tutorial for the ajax stuff. IMHO its easier to read through 3 pages, that to mess around with the vbulletin core stuff..)
F.

ragtek 12-08-2009 10:06 PM

No, you can't remove them.
vBulletin is using the yui library on many parts!

I'm using both of them and having no problems


All times are GMT. The time now is 01:03 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.00940 seconds
  • Memory Usage 1,706KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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