[pmwiki-users] help with custom markup for adsense

Brian brianbashi at gmail.com
Sat Nov 4 22:33:59 CST 2006


Hello pmwiki-users,

  I tried to add custom markup for adsense but am getting a "Parse
  error: syntax error, unexpected T_STRING"

  Here is the code added to my local/config.php:

Markup('adsense', 'directives',
  '/\\(:adsense:\\)/',
  Keep("<script type="text/javascript"><!--
google_ad_client = "pub-";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>"));  
  

-- 
Best regards,
 Brian





More information about the pmwiki-users mailing list