Re: Re: Module Error Blocks Page Displays
Can you please post an example of a tpl with javascript in it. I have been wanting to use google Adsense for awhile now but was unable to find documention to add a user module that isn't plain old html (through the admin module screen). I have several js scripts that I would like to integrate into user modules but have not been successful.
How do you get a user module to show up in the modules drop down list if you create the .php and the .tpl files for it? I see in the mod-google.php file someone has written out the javascript using echo. I did the same for adsense javascript code and saved it as .php, but then I was unsure what to put in the corresponding .tpl file because it has no form, text, or image to load outside of the javascript. ALso, even though I saved my mod-adsense.php file to the modules directory and my mod-adsense.tpl file to the templates>modules directory I don't see my module in the drop-down list on the Admin modules page.
If you could please help me finish this user module I would love to see it added to the tikiwiki so other users can easily ad google ads to their site 😊
Thanks!!
Kelly