Elxis CMS Forum
Support => Technical support => Topic started by: Basil1962 on March 29, 2015, 23:24:59
-
Hello,
I would like to insert this code in my site
<!-- Histats.com START (standard)-->
<script type="text/javascript">document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script>
<a href="http://www.histats.com" target="_blank" title="free web counter" ><script type="text/javascript" >
try {Histats.start(1,2986088,4,3004,112,48,"00011010");
Histats.track_hits();} catch(err){};
</script></a>
<noscript><a href="http://www.histats.com" target="_blank"><img src="http://sstatic1.histats.com/0.gif?2986088&101" alt="free web counter" border="0"></a></noscript>
<!-- Histats.com END -->
I have inserted in the bottom of the page with html button in edit html source
and it gives me the following result
(http://www.forexrainbow.com/images/19839066456457418104.png)
the site is http://www.forexlegion.com/en/ (http://www.forexlegion.com/en/)
-
Hello @Basil1962
You should open the index.php file of your template as located to templates/ks-iso/ folder and paste the source
code at the bottom area of this document and before </body> tag.
-
Hello webgift thank you for helping,
I have made a potato
I have conected with coreftp and opened the index.html
The file open with notetab and I have inserted the script in the end.
Then I saved the code to the server.
Notetab change something in the format and now index doesnt work
- Extended PHP code and plain text emails removed by datahell -
mow the index say Parse error: syntax error, unexpected '}' in /home/fxleg/public_html/index.php on line 1
any idea how to fix it ?
-
You should edit your template's index.php file, not "index.php" file on your site's root folder.
Get the original "index.php" file from the official release of the Elxis version you use (2009.3?) and put it back to your site to fix the problem you created.
The file you should edit it will be like that:
templates/some-template/index.php
-
Alternatively you could use the most recent backup of your website in order to restore it as it was and try again
as we need to update the index.php file of your selected template.