Ein Google Ad Sense auf der Tikiwiki Site einbinden
in Werbebanner erstellen -> Header, Footer, Menü

Siehe auch: AdSense

Banner Methodik

Erstelle ein Banner

  1. Nach dem Aktivieren der Bannerfunktion gehe zu: Admin > Banner.
  2. Klicke auf den Create banner / Erstelle Banner Button.
  3. In dem Bereich Zone , erstelle eine neue Zone, indem du einen Namen in die "Zone Text Box" eingibst (eventuell "AdSenseSkyscraperWide" oder so ähnlich), dann klicke auf den Create / Erstellen Button.
  4. Die Seite wird sich neu aufbauen. Kehre zum Bereich Zone zurück und wähle deine neue Zone aus dem Ausklappmenü aus.
  5. Fügen nun weiter unten auf der Seite, in der HTML code "Text Box" den Code ein, den AdSense dir gegeben hat.

Benutzung eines Banners in einem Modul - falls gewünscht

  1. Gehe zu: Admin > Modules.
  2. Klick auf den User Modules Tab.
  3. Du befindest dich nun im Bereich Create a new user module / Erstelle ein neues Benutzer Modul:
    1. Gebe einen Module Namen ein, zum Beispiel 'AdSenseSide'.
    2. Gebe einen Titel ein ('Ad'?) oder ein Leerzeichen, wenn du keinen Titel wünscht (oder du kannst später den 'notitle' Parameter auf da Modul anwenden).
    3. Im Banner Zonen Ausklappmemnü, wählst du dann den Namen der Banner Zone, die du vorhin erstellt hast. Klicke auf das Plus Symbol Icon, um den Bannercode zu dem Modul hinzuzufügen.
    4. Klicke auf den Create / __Erstellen Button.
  4. Klicke auf den Assign/Edit Modules / Zuweisen/Bearbeiten Tab.
  5. Du befindest dich nun im Bereich Assign new module / Neues Modul Zuweisen:
    1. Wähle dein frisch erstelltes Modul im Modul Name Ausklappmenü.
    2. Wähle eine Position (left/right bzw. links/rechts) und Reihenfolge, um die Position des Menüs festzulegen.
    3. In Gruppen Benutze Control+Klick bzw. STRG+Klick um alle gewünschten Gruppen auszuwählen, die das Modul sehen können sollen (eventuell Anonymous und Registered).
    4. Benutze Preview / Vorschau wenn gewünscht. Und vergiss nicht Assign / Bestätigen bzw. Speichern zu klicken, um die Einstellungen zu speichern


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:

Image
Copy to clipboard
{literal} <!-- google_ad_client = "pub-00000000000000"; /* 468x15, created 06/02/08 */ google_ad_slot = "0123456789"; google_ad_width = 468; google_ad_height = 15; //--> {/literal}


2- Erstelle ein Modul

Name: mygoogleadsense
Titel: Advertisment bzw. Werbung
Daten: {include file="mygoogleadsense.tpl"}

Image

3a Du kannst das Modul wie üblich zuweisen


3b oder es in eine Wikiseite integrieren

Image
Copy to clipboard
{MODULE(module=>mygoogleadsense, decorations=>n)}{MODULE}


Javascript Module Methode -Tutorial von David Mattison


Dies ist ein Tutorial auf Englisch
note: I don't see how this can work as Google AdSense uses javascript and javascript it stripped for security reasons.

(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
{literal}<{/literal}script type="text/javascript"><!-- google_ad_client = "pub-00000000000000"; google_ad_width = 160; google_ad_height = 600; google_ad_format = "160x600_as"; google_ad_type = "text_image"; google_ad_channel = "9238635124"; google_color_border = "006666"; google_color_bg = "EEF5EE"; google_color_link = "006666"; google_color_text = "000000"; google_color_url = "000000"; google_ui_features = "rc:6"; //--> {literal}<{/literal}/script> {literal}<{/literal}script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> {literal}<{/literal}/script>


Beachte den Gebrauch von {literal}<{/literal}, um das Javascript SCRIPT Element zu umgehen.