Loading...
 
Features / Usability

Features / Usability


Module Error Blocks Page Displays

posts: 4

My TikiWiki is currently entirely inaccessible and I cannot figure out how to get it operational again. Your help would be greatly appreciated.

I was trying to get Google Adsense to appear and installed the JSFile plugin to allow JavaScript. I had already created a Module to appear in my right column to display Adsense, and here is where I crashed everything:

In the module I included the following reference:

{JSFILE(file=js-file_name.js)}{JSFILE}

Based on these instructions for using JSFile:

'Use the following syntax (replacing js-file_name.js with the name of the new .js file) in the wiki page where you want the javascript to run: {JSFILE(file=js-file_name.js)}{JSFILE}' (Note: I changed the .js file name to match my Adsense code.)

TikiWiki did not like the reference. At first an error message appeared that the file could not be found. Then, nothing. I get a blank, white screen each time I try to access any page. The source code for the blank page reveals the following:

<div id="Google" style="display:block;">


Since I cannot access any pages I cannot delete the JSFile reference through admin. I apparently need to manually modify one of the TikiWiki pages / templates to prevent the display from being blocked.

How do I do this?

Thanks, Brian Kindsvater



posts: 2881 United Kingdom

Login to the database using phpmyAdmin

just into the modules table and delete the offending module line

Depending on your tiki version, wiki plugins and wiki parsing doesnt work in modules

The only successful way to use google sadsense adverts is to hard code a .tpl for them

Damian

posts: 37 United States

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


posts: 4

Damian:

Thanks for the excellent tip. That did the trick and was easy to do.

Brian


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting