Loading...
 
Skip to main content

mod-func-adsense.php

Status
Closed
Subject
mod-func-adsense.php
Version
5.x
Category
  • Error
Feature
Modules
Submitted by
MojaveMedia
Volunteered to solve
Philippe Cloutier
Lastmod by
Philippe Cloutier
Rating
(0)
Description

For the Google Adsense Module:

Google Adsense Client IDs are in the format pub-0123456789012345
Line 42 of mod-func-adsense.php sets this data input type to 'alpha'.
When the user tries to assign the module, the numbers get stripped from the client ID, which is a required field.

I changed 'alpha' to 'striptags' to allow an alpha-numeric entry and then Adsense output works correctly.


Solution

I changed 'alpha' to 'striptags' to allow an alpha-numeric entry and then Adsense works correctly:

'client' => array(
'name' => 'client',
'description' => tra('As provided by Google. Format: "pub-xxxxxxxxxxxxxxxx"'),
'filter' => 'striptags',
'required' => true,
),

This was fixed in r28965 and will be shipped in Tiki 5.2.

Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3536
Created
Friday 03 September, 2010 10:37:25 UTC
by MojaveMedia
LastModif
Monday 06 September, 2010 05:13:37 UTC


Show PHP error messages