The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hello everybody
last week , i inserted 3 javascripts in my header , then the " manage attachments " button in the new reply or new thread or edit post has stopped working , i tried to remove the codes and the button worked again i've contacted vb support but the told me they don't offer support for custom scripting, and told me also to ask here in .org firefox's error console said after i pressed the button " openWindow is not a function " so i've tried to edit the file vbulletin_attachment.js , and changed " openWindow " to " open " and the button worked fine , but i want to use the original file , i'm just asking about how to solve this problem without needing to edit any file the js codes i mentioned are here " i can't remove them from my pages by the way because of ads stuff ;-) " Code:
<!-- begin ad tag (tile=1) --> <script language="JavaScript" type="text/javascript"> ord=Math.random()*10000000000000000; document.write('<script language="JavaScript" src="http://ad.ae.doubleclick.net/adj/madridi.com/ros_leaderboard;tile=1;sz=728x90;ord=' + ord + '?" type="text/javascript"></scr' + 'ipt>'); </script><noscript><a href="http://ad.ae.doubleclick.net/jump/madridi.com/ros_leaderboard;tile=1;sz=728x90;ord=123456789?" target="_blank"><img src="http://ad.ae.doubleclick.net/ad/madridi.com/ros_leaderboard;tile=1;sz=728x90;ord=123456789?" width="728" height="90" border="0" alt=""></a></noscript><!-- End ad tag --> <!-- begin ad tag (tile=2) --> <script language="JavaScript" type="text/javascript"> ord=Math.random()*10000000000000000; document.write('<script language="JavaScript" src="http://ad.ae.doubleclick.net/adj/madridi.com/ros_skyscrapper;tile=2;sz=120x600;ord=' + ord + '?" type="text/javascript"></scr' + 'ipt>'); </script><noscript><a href="http://ad.ae.doubleclick.net/jump/madridi.com/ros_skyscrapper;tile=2;sz=120x600;ord=123456789?" target="_blank"><img src="http://ad.ae.doubleclick.net/ad/madridi.com/ros_skyscrapper;tile=2;sz=120x600;ord=123456789?" width="120" height="600" border="0" alt=""></a></noscript><!-- End ad tag --> <!-- begin ad tag (tile=3) --> <script language="JavaScript" type="text/javascript"> ord=Math.random()*10000000000000000; document.write('<script language="JavaScript" src="http://ad.ae.doubleclick.net/adj/madridi.com/ros_eyeblaster;tile=3;dcopt=ist;sz=0x0;ord=' + ord + '?" type="text/javascript"></scr' + 'ipt>'); </script><noscript><a href="http://ad.ae.doubleclick.net/jump/madridi.com/ros_eyeblaster;tile=3;sz=0x0;ord=123456789?" target="_blank"><img src="http://ad.ae.doubleclick.net/ad/madridi.com/ros_eyeblaster;tile=3;sz=0x0;ord=123456789?" width="0" height="0" border="0" alt=""></a></noscript><!-- End ad tag --> any ideas ? note : i'm using vb 3.6.8 --------------- Added at 19:56 --------------- up ?? --------------- Added at 19:57 --------------- up ?? |
#2
|
|||
|
|||
![]()
For anyone else having this problem, note that it is an issue with doubleclick ads. They use a variable called openWindow which of course conflicts with the function name.
Adding this condtional to your ads in the template should fix it: Code:
<if condition="THIS_SCRIPT != 'editpost' AND THIS_SCRIPT != 'newthread' AND THIS_SCRIPT != 'newreply'"> AD CODE GOES HERE </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|