The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I need help with javascript. And its really quite important for me to solve this problem. I would like to use a tab panel in my current showthread.php I did add the .css styles and also the javascript (.js) code to the root directory. Everything is fine. But due to a reason i do not know, vbulletin convert the links. The tab example : http://www.divx-world.com/tab.html So the link of tab1 and others should be like "javascript:;" but vbulletin convert this link to "javascript%3Cb%3E%3C/b%3E:;" Please help me about this problem so i can solve it. Thanks in advance... |
#2
|
||||
|
||||
![]()
Have you tried turning off your modifications and seeing if the issue is fixed? I have never heard of vbulletin doing that to links.
|
#3
|
|||
|
|||
![]()
It seems to work fine for me in firefox.
|
#4
|
|||
|
|||
![]()
Thanks for your answers and helps, but :
Lynne : I try to use this java script tab panel on a clean vbulletin. So there is no any modification. Opserty : The link i gave above is an example of what i want to do on my vbulletin. Thats working fine. But when i use same thing inside vbulletin, it changes the links to as mentioned above. |
#5
|
|||
|
|||
![]()
Oh ok, well thats fairly useless
![]() It would be helpful to see an example in vBulletin that has the issue. ![]() |
#6
|
|||
|
|||
![]()
I am really sorry that i did not give that address much more before.
Here is an example in vBulletin : http://www.divx-world.com/showthread.php?p=42114 It may seems that its working. Luckly its working in this thread. But actually when i add some other info into tab panel content, tabs doesnt work. And as you can see, when you come on a tab, the link appear as : http://www.domain-name.com/javascript%3Cb%3E%3C/b%3E:; But originally it should be as "javascript:;" |
#7
|
||||
|
||||
![]()
Looking at the source code for your tabs on that page, I see this:
<a class="down" href="javascript<b></b>:;">Film Bilgileri</a> What does it say in your template because you shouldn't have that html in there (although the tabs work for me, as you noted). |
#8
|
|||
|
|||
![]()
Below, is the code of this tab panel i used in showthread template. Ofcourse the codes after the body tag. So as you can see through the original code on showthread.php template, the links should be as "javascript:;"
As you also mentioned, its working at first post. But when i add some info to the panel content (example given below) the tabs doesnt work anymore. Example of the modified content : http://www.divx-world.com/showthread.php?p=42238 Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css" media="screen"> <!-- @import url("p7tp/p7tp_01.css"); --> </style> <script type="text/javascript" src="p7tp/p7tpscripts.js"></script> </head> <body onload="P7_initTP(1,0)"> <div id="p7TP1" class="p7TPpanel"> <div class="p7TPheader"> <h3><strong>Filmin Adı Buraya Yazılacak!</strong></h3> </div> <div class="p7TPwrapper"> <div class="p7TP_tabs"> <div id="p7tpb1_1" class="down"><a class="down" href="javascript:;">Film Bilgileri</a></div> <div id="p7tpb1_2"><a href="javascript:;">Dublaj Bilgileri</a></div> <div id="p7tpb1_3"><a href="javascript:;">Altyazı Bilgileri</a></div> <div id="p7tpb1_4"><a href="javascript:;">Kodek Bilgileri</a></div> <div id="p7tpb1_5"><a href="javascript:;">Ek Bilgiler</a></div> <br class="p7TPclear" /> </div> <div class="p7TPcontent"> <div id="p7tpc1_1"> <h4>Panel Content...</h4> <p>Bu b?l?m i?erisinde filmin dvd kapağı veya afişi ile birlikte, ekran g?r?nt?leri yer alabilir.</p> </div> <div id="p7tpc1_2"> <h4>Panel Content...</h4> <p>Bu b?l?mde ise paylaşılan filmdeki dublaj se?enekleri g?rsel a?ıdan daha g?zel olacak (?lke bayrakları ile birlikte) şekilde detaylı olarak sunulabilir.</p> </div> <div id="p7tpc1_3"> <h4>Panel Content...</h4> <p>Bu b?l?mde ise, dublaj se?eneklerinde olduğu gibi yine g?rsel ve anlaşılabilirlilik a?ısından daha g?zel olacak bir i?erikle sunulabilir.</p> </div> <div id="p7tpc1_4"> <h4>Panel Content...</h4> <p>?zellikle DVDRip veya HDRip paylaşımlarda ?ok ?nemli olduğundan dolayı, bu b?l?mde paylaşılan filme ait ?eşitli kodek bilgileri sunulabilir.</p> </div> <div id="p7tpc1_5"> <h4>Panel Content...</h4> <p>Son olarak bu b?l?mde ise, eğer gerekli ise ek a?ıklamalarda bulunulabilir. Filmde yaşanan herhangi bir sorun veya d?zeltme ile ilgili olarak ?nceden bilgi vermek adına bu b?l?m faydalı olacaktır</p> </div> </div> </div> <!--[if lte IE 6]> <style type="text/css">.p7TPpanel div,.p7TPpanel a{height:1%;}.p7TP_tabs a{white-space:nowrap;}</style> <![endif]--> </div> </body> </html> |
#9
|
||||
|
||||
![]()
A couple of things... I'm not javascript expert, but those links just don't seem right. Usually I see a call as
Code:
<a href="javascript:function()">blahblah</a> |
#10
|
|||
|
|||
![]()
The line which calls the javascript (located in showthread.php) :
<script type="text/javascript" src="p7tp/p7tpscripts.js"></script> The line which calls the .css file (located in showthread between <head> tags : <!-- @import url("p7tp/p7tp_01.css"); --> </style> So i beleive there is nothing wrong with those id's. But please let me say it again that, i do appreciate a lot all your kind responses Lynne. Thank you very much. I hope some other friends will also help or advise me about how to solve this problem. Due my website is movie review site, each thread has very long and different comments. So with this tab panel, i would like to have cleaner and better looking forum. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|