The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Anyone know how you could get this customized for each user?
|
#12
|
|||
|
|||
Great!! but how can I remove the border?
Thanks |
#13
|
|||
|
|||
Can this clock be added so it is in the user profile and when they fill it out, the countdown shows up for the event in their user postbit in threads? I have seen this work on another bbs and love it..I need this one....
Beth |
#14
|
|||
|
|||
Both versions working fine in 3.0.9; not tested in 3.5.0 yet.
I've got it loaded, I am calling it correctly, and when I go to a URL with the date fields, it works fine in the browser. But when I put it in the IMG tags on my site (whether in a sig or in a regular post), all it shows is the link. When I click on the link, it opens a browser window with the correct counter. Here's an example below; it's between correct IMG tags, yet it just shows as a link. If you click on it, it should show a counter 'til the end of the year. Any suggestions? EIDT: Fixed. If it helps anyone else, you need to enable the Dynamic Links for IMG tags in the admincp. EDIT #2: Managed to turn Dynamic Links for IMG tags back off for security, and just created a new custom BBCode specifically for these countdowns. Create a new code, make the replacement: Code:
<img src="http://www.yourforumname.com/countdown.php?{param}" /></a> Quote:
Code:
<if condition="$post['field37']"> <img src="http://www.yourforum.com/pathto/countdown.php?$post[field37]" /></a> </if> Code:
month=1&day=01&year=2006 __________________________________________________ _________ I wasn't happy with the GD image way to do this, as the countdown was not live (i.e. it did not count down seconds), and you couldn't format the text easily using BBCode. I had found a great countdown script online, but it only worked for the first instance on a page, unless you called it with a different variable each time (impossible if it is put into a signature, for example). So I coded up a small helper script that found the next free variable, then called the main countdown script, and now everything works perfectly. example: click here Here's what's necessary to get this working. First, download the countdown script from: http://andrewu.co.uk/clj/countdown/ Normal script is called countdown.js, the readable version is countdown_expanded.js in case you want to read through the code. You need my small helper script, attached to this post, called countdownhelp.js.txt (remove the .txt when you upload it). Upload them both to the same directory. I use the clientscript directory that's already in vbulletin. Then you need to edit the header include template to call these two scripts. Insert this code pretty much anywhere within that template: Code:
<script type="text/javascript" src="clientscript/countdownhelp.js"></script> <script type="text/javascript" src="clientscript/countdown.js" defer="defer"></script> Code:
<script type="text/javascript"> var countdownnum = getcountdownnum(); document.write("<span id=" + countdownnum + ">{param} UTC-0800</span>"); </script> If this is set up, then all users need to do to insert a countdown anywhere is use the following BBCode: Code:
[countdown]1 Jan 2006 22:57:27[/countdown] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|