Topic: where do i add javascript.....?

where do i add a javascript in the header?

i seen this..

$forum_head['commonjs'] = '<script type="text/javascript" src="'.$base_url.'/include/js/common.js"></script>';

could i do the same line and use my script in that location?

$forum_head['testjs'] = '<script type="text/javascript" src="'.$base_url.'/include/js/test.js"></script>';

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: where do i add javascript.....?

quaker wrote:

could i do the same line and use my script in that location?

Yes, you could

Re: where do i add javascript.....?

sweet, thanks.. once i come back form vacation i will be releasing my lightbox gallery for 1.3.. version 1.

*version 2 will have a upload and delete function..

thanks...

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: where do i add javascript.....?

update on the link for the gallery..

http://256studio.com/pun13/gallery.php
lightbox gallery mod from 1.2 converted to punbb1.3

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

5

Re: where do i add javascript.....?

To be a rock, and not to roll.

http://256studio.com/pun13/gallery/11.jpg

Re: where do i add javascript.....?

quaker wrote:

where do i add a javascript in the header?
could i do the same line and use my script in that location?

$forum_head['testjs'] = '<script type="text/javascript" src="'.$base_url.'/include/js/test.js"></script>';

Though, you'd better use separate dir for non-core files.
To avoid forum upgrading issues you should compose extension, adding the next line to hd_head hook:

$forum_head['js_my_ext_id'] = '<script type="text/javascript" src="'.$ext_info['url'].'/js/test.js"></script>';

See pun_bbcode for example.

Carpe diem

Re: where do i add javascript.....?

Hcgtv, i got a few better photos of cote than that..hehe... yes cote is her name....!!

Anatoly, i got to learn how to make the extension.... lol..

remember I'm an old dog hard to learn new tricks..

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: where do i add javascript.....?

quaker wrote:

Anatoly, i got to learn how to make the extension.... lol..

remember I'm an old dog hard to learn new tricks..

You have to learn new tricks not to become too old dog tongue
See pun_bbcode as an extension sample to learn by.

Carpe diem

Re: where do i add javascript.....?

lol.. easy there young one..

older people sometimes are wiser.. maybe i think we are more lazier and we know how to get stuff done with out all the B.S. ...

lmao..

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

10 (edited by quaker 2008-06-27 12:00)

Re: where do i add javascript.....?

Anatoly, this is for you... can u ever say you dated sister.. well more than dated..hahahaha... evil grins....





http://i27.tinypic.com/1z3tgtt.jpg

p.s. that the only thing they have on....  wooohooo..

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!