Banner Methodik | |
Erstelle ein Banner | |
|
Benutzung eines Banners in einem Modul - falls gewünscht | |
|
Benutzung im Header / Footer oder in einer Wikiseite - wenn gewünscht | |
Das Banner kann in einem Admin > Look & Feel Bereich eingefügt werden, oder auch in einer Wikiseite mit folgendem Ausdruck: (oder wie auch immer du deine Banner Zone benannt hast). |
Template Datei (.tpl) Methode | |
Grundsätzlicher Rat: wenn du ein Javascript in ein tpl einfügst, dann benutze NICHT den Tikiwiki-Template-Editor um das tpl zu modifizieren, da das Javascript aus sicherheitsgründen "stripped" (gekürzt/gelöscht/gestrippt?) wird. Du musst einen externen Editor ausserhalb Tikiwiki benutzen. 1- Erstelle eine Datei mit dem Namen templates/mygoogleadsense.tpl und füge den von Google bereitgestellten Code ein. {literal} und {/literal} bewirkt, dass keinerlei Javascript Code mit Smarty Code in Konflikt gerät:
Copy to clipboard
2- Erstelle ein Modul Name: mygoogleadsense
3a Du kannst das Modul wie üblich zuweisen 3b oder es in eine Wikiseite integrieren Copy to clipboard
|
Javascript Module Methode -Tutorial von David Mattison | |
Dies ist ein Tutorial auf Englisch (thanks to David Mattison) Log in as the Admin or with Admin privileges to your Tiki Wiki. Open up the Admin menu so you can see all the options. Click on the Admin (click!) link at the very top, then click on the Features link. Make sure x HTML Pages is selected. Click Save Changes immediately below the top section of Features. Look at the Admin Menu again and select the Modules option. Select the Create new user module hyperlink at the bottom of the screen. The data fields are filled in as follows: Name = Google Adsense (or whatever you want to call the module — this name only appears in the Module section) Title = Google Ads (or whatever you want to call the module wherever it's displayed in your Tiki Wiki) Data = copy and paste the Javascript code from the Google Adsense site into this field You can modify the above parameters plus whatever new ones Google Adsense has developed. Click the Create/Edit button. Your new Module now appears at the top of the screen in the block title User Modules. PART TWO Now you have to Assign the module to a location and make it visible. Click on the "assign" hyperlink for your new Google Adsense module or select it from the dropdown list in the block titled Assign new module. You may need to play around with the Order, the Groups and the Visibility settings to get it to display at all times. I found that I often had to log out as Admin in order to see these module changes. PART THREE Good luck! PART FOUR If the above does not work and my good luck wish fails, as has happened with some others who've reported on their experiences to me, I'm afraid I don't have many suggestions to offer. One option you could try would be to create an HTML Page via the "HTML pages" option in the Admin menu. The trick would then be to get that HTML page into a narrow columnar block. Another option you could try would be the "Dynamic content" tool on the Admin menu. |
Javascript Module mit Benutzung von literal Tags | |
Eine andere Alternative: Benutze den Smarty {literal} Tag um dem Javascript Code von Google Adsense "zu entkommen". Dies erlaubt dir den Code einfach (nahezu) mit cut/paste bzw. auschneiden/einfügen direkt in ein Modul einzufügen. Zum Beispiel: Copy to clipboard
Beachte den Gebrauch von {literal}<{/literal}, um das Javascript SCRIPT Element zu umgehen. |