TinyPortal

Development => Support => Topic started by: microbone on November 16, 2007, 09:11:37 AM

Title: Small question regarding <script src=""></script>
Post by: microbone on November 16, 2007, 09:11:37 AM
Hey there

I´m new to php/tp and have a small question regarding <script src=""></script>!

If I want a functionality from this tag availible all over the site like forum...portal etc where do I have to put this tag then?

Best Regards
bone
Title: Re: Small question regarding <script src=""></script>
Post by: Dragooon on November 16, 2007, 09:43:20 AM
index.template.php in your Theme's fiolder
Title: Re: Small question regarding <script src=""></script>
Post by: microbone on November 16, 2007, 09:44:21 AM
sweet...thnx for the reply Dragooon!
Title: Re: Small question regarding <script src=""></script>
Post by: microbone on November 16, 2007, 10:12:05 AM
Another question to this....

Reason for asking is that i´m getting a Template Parse Error!
page after placing the tag....

Where do i need to put the tag?

could i use it like this:
<script src="http://someweb.com/somescript.js"></script>
or do i have to format i like this:
<script language="JavaScript" type="text/javascript" src="http://someweb/somescript.js"></script>

Best Regards
bone
Title: Re: Small question regarding <script src=""></script>
Post by: IchBin on November 16, 2007, 02:35:29 PM
Your parse error is probably because you are breaking a php echo statement when you put the code in the template.

www.php.net/echo
Title: Re: Small question regarding <script src=""></script>
Post by: microbone on November 18, 2007, 08:54:47 PM
Tnhx a lot for your reply....that did it :)