var cot_loc0=(window.location.protocol...
Typo in previous post, sorry.
var cot_loc0=(window.location.protocol...
Typo in previous post, sorry.
For the <a>, I believe you have to put in in your code, just some where in your template code.
Or you can write a piece of code that append that to an element on your page '<a href="http://www.instantssl.com" id="comodoTL">SSL</a>'
I would go for the 1st choice since it's easier
For the second part, I never tried the body_onload but I dont think you need to put the script tag there if the file is .js. You only have to put the script tag if the file is .php (you can put .php files in the jscript folder)
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Hey yellow,
Thanks indeed for quick answer.
Don't want to pester you very much.
Just a couple q.:
I know it would be easier to just hack the files as has been done so far, I did it myself and it works, but it doesn't look good and makes upgrades more difficult.
The whole point is to leave them files alone.
-------------------------------------
Or you can write a piece of code that append that to an element on your page '<a href="http://www.instantssl.com" id="comodoTL">SSL</a>'
-------------------------------------
How would I append that anchor tag?
What would be the syntax?
I cannot use document.write()...
Regarding the second issue, will try it both ways.
Probably you are right and no script tags are needed.
It's testing time!
When you edit the template file, it is not considered hacking in the code (obviously you do have to edit those files to change your template anyway).
The reason why I did not give the specific code because such code can have unexpected behavior on different browsers, so I usually do it using jquery or some other frameworks (which take care of the compatibility issue for me)
Also, after looking closely at your code, you may not even have to put it in the body onload, you can put that whole thing at the bottom of your page as well.
Some may argue that it's not good to do so, but if you have GoogleAnalytics or AdSense on your page you do the same thing anyway.Code:<a href="http://www.instantssl.com" id="comodoTL">SSL</a> <script language="JavaScript" type="text/javascript"> COT("images/cornertrust.gif", "SC2", "none"); </script>
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Yes, yes, that's the way it's been working.
And, yes, you do have to modify template files, that's not hacking.
It's just the javascripts that can be loaded dynamically, the wiki explains that in detail.
It can be done site-wide (header and body), and even page per page.
You may object that there is no need to fix something that works.
I kinda agree, it's just a "good practice" issue, recommended by DrByte.
Oh well, I'll have to review my javascript books and do some more research.
I do appreciate greatly your dedication.
Thank you so much and Happy Holidays!
Since I am not sure about the anchor, left it as is in the common tpl_main_page.php
The javascript I put in includes/templates/CUSTOM/jscript/on_load/on_load_comodocorner.js, without the script tags.
It didn't work.
However, it did work if I put it back in the template, with the script tags.
I am testing on a local demo site, without any other mods installed.
Any developer listening? DrByte?