The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need assistance with jQuery+Prototype.js conflict.
Hey guys, I need some help.
The mod developer is somewhat busy in life and too busy to fix his paid products...(I know sad no?) Currently the donation system uses prototype.js and I currently run jQuery on my forums page. The donation bar will not load showing the progression. See here: http://www.47r-squad.com/forum.php See front page: http://www.47r-squad.com that's how it supposed to work. These are the mods I currently use that are conflicting: - https://vborg.vbsupport.ru/showthread.php?t=276419 - https://vborg.vbsupport.ru/showthrea...light=awcoding Your assistance will be greatly appreciated. |
#2
|
||||
|
||||
What is causing your issue is that you are running the tooltip mod. You just need to change the code for the jQuery to use noconflict
In your tooltip mod code change it to HTML Code:
<script> $.noConflict(); jQuery("#scanudesc a[title]").tooltip({ position: "bottom right", effect: "slide" }); </script> EDIT whats weird is the jQuery tooltip code is embedded and called for every forum you have. Bad coding. It should have been called in the head due to it not having dynamic content. |
#3
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=276419&highlight=description" target="_blank">https://vborg.vbsupport.ru/showt...ht=description</a>
It actually looks like he has his JS wrapped around a couple conditionals in the plugins. |
#4
|
|||
|
|||
Quote:
|
#5
|
||||
|
||||
if you edit the actual plugin in the admincp and make the changes to both instances (because he is using a if else conditional) it should work.
It appears it's in the HTML Code:
<title>Code replace</title> <hookname>parse_templates</hookname> --------------- Added [DATE]1326251138[/DATE] at [TIME]1326251138[/TIME] --------------- Code:
<vb:if condition="$forum[islastshown]"> <script> $("#scanudesc a[title]").tooltip({ position: "bottom right", effect: "slide" }); </script></vb:if><vb:else /> <script> $("#scanudesc a[title]").tooltip({ position: "bottom right", effect: "slide" }); </script> </vb:if> --------------- Added [DATE]1326251193[/DATE] at [TIME]1326251193[/TIME] --------------- Although its possible it won't work because the prototype code is called before the jQuery.... |
#6
|
||||
|
||||
Quote:
|
#7
|
||||
|
||||
Hope all goes well Glad I could help, btw for future onlookers
the code needed to be changed from HTML Code:
<script> $("#scanudesc a[title]").tooltip({ position: "bottom right", effect: "slide" }); </script> HTML Code:
<script> $.noConflict(); jQuery("#scanudesc a[title]").tooltip({ position: "bottom right", effect: "slide" }); </script> Quote:
forumhome_forumbit_level2_post template. but it is also inside the plugin but it was disabled. |
Благодарность от: | ||
thecore762 |
#8
|
|||
|
|||
Thank you for fixing it for me
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|