Include file in Header

Darker

New Member
Hi!

Feeling like a noobie...

Ok, lets go.

Wanted result:
I have a script (name.js) that shows the date, time and the name of the day.
The result looks like this:
View attachment 9309

The output I want to show in the header at myvBulletin Forum.


Problem:
When i include the file (as name.js or a file called name.php or even the javascript it self) it won´t show.
All I see is either the text (Include file param) or nothing at all (The forum loads perfectly, but I can´t see the output of the script included)

Question:
How do I include either a .js file or a .php file in header at vBulletin?

Hoping for help.
Darker
 

bluescorpion

New Member
If you want to include a PHP script, you need to do a plugin in order to access it in vB. The javascript usually will run directly, have you tried to put it in a template? Here is a tutorial link that explains how to add javascript using a plugin and template. Its not a clock but you can use the same technique to put your code on your site page. Check HERE for the tutorial.

HTH
 

Darker

New Member
I have allready put the javascript into the header successfully but of course I want to use as little as possible to implement so I don´t have to copy and paste a lot in every template I use.

Thank´s for the link, I´ll take a look on it!
 
Top