Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Need Some Help With Inserting JavaScript Into Page 
 
Hi guys.

I wonder if anyone here could help me but I'm not sure how to do this.
I have some JavaScript that records the demographics of the user when hit the page.

E.g. IP address origin country browser operators system type. etc.

I'm unsure of where to insert this into icyphoenix .
I get it work on HTML very easily on my homepage

I wish nomatter where some the looks on the forum that this
script will be loaded every time.
What files do I have edit

If somebody could give me a clue where to look at sure I can figure out the rest

The code is pretty simple see below

with thanks




<head>
<body>
<script language="javascript" src="src/hits.js"></script>
 



 
darkasylumSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Need Some Help With Inserting JavaScript Into Page 
 
Hi darkasylum,

Usually you would put something like that in the overal footer wich makes it autmatically sniff all pages  

Greetings Joshua203
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Need Some Help With Inserting JavaScript Into Page 
 
darkasylum wrote: [View Post]

<script language="javascript" src="src/hits.js"></script>


I would also change that string to:

<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/hits.js"></script>

And put the hits.js in templates/common/js/hits.js

As for the best place to put it - One would need the full application to see how it pans out the best.
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Need Some Help With Inserting JavaScript Into Page 
 
to me , it looks like this js api is hosted on a proper server
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron