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
- 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3536
- Created
- Friday 03 September, 2010 10:37:25 UTC
by MojaveMedia - LastModif
- Monday 06 September, 2010 05:13:37 UTC