The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using this code in a template - Any ideas how?
I am wanting to use this code but cant and I am not sure why it isnt working within the templates, the install instructions ask me to please this after calling the script between the <head></head> tags but when I do it displays this on the browser when it shouldnt. It is part of a Jquery script:
Code:
jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox() }) Thank you. ________ Persian Cooking |
#2
|
||||
|
||||
You should ask for help at the place you got the install instructions.
|
#3
|
|||
|
|||
Are you putting the code inside of 'script' tags?
|
#4
|
|||
|
|||
I doubt I will get any help as theyre just Jquery coders and probably dont use vbulletin, the script works fine outside of vbulletin that's why I asked for some help on here if anyone knows how to get it to work.
RLshare: I have put the code outside of the script tags yes, is this incorerect? If so, Is it meant to be within the script tags? ________ Georgian recipes |
#5
|
|||
|
|||
Anytime you put client side script in a page, it needs to be within script tags to tell the browser that it is a script to be executed and not content to be displayed.. with the exception of actually putting the script in the markup
Code:
<script type="text/javascript"> //Your code </script> |
#6
|
|||
|
|||
Thank you, I havent had much experience with jquery or JS but you learn something new every day, thanks for this RLShare, it works perfectly
________ MAGIC FLIGHT |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|