[pmwiki-users] Include URL markup

zgrauer at earthlink.net zgrauer at earthlink.net
Sun May 8 13:48:29 CDT 2005


For what it's worth:

1. The original problem I was reporting was not due to the markup language, but to a missing ; in the previous line
which was not an issue before since it was right at the end.

2. Once I got that figured out, though, I had to do quite a bit of experimenting with the right blend of ' and " (because html might not like ' instead of ", in places where php might and vice versa.

My markup code morphed from 

 Markup('adsense', 'directives',
      "/\\(:adsense:\\)/",
      Keep("
        <script type="text/javascript"><!--
         google_ad_client = "pub-9906382443560085";
         google_ad_width = 180;
         google_ad_height = 150;
         google_ad_format = "180x150_as";
         google_ad_channel ="";
         google_ad_type = "text";
         //--></script>"));

To:

Markup('adsense', 'directives',
      "/\\(:adsense:\\)/",
      Keep("
<TABLE aligh =\" center\" width=\"100%\" border=\"0\" cellspacing=\"0\"
 cellpadding=\"0\">
 <TD align=\"center\" valign=\"center\">
 <p>
 <script type=\"text/javascript\"><!--
 google_ad_client = \"pub-9906382443560085\";
 google_ad_width = 180;
 google_ad_height = 150;
 google_ad_format = \"180x150_as\";
 google_ad_channel =\"\";
 google_ad_type = \"text\";
 //--></script>

 <script type=\"text/javascript\"
   src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
 </script>
 <p>

 </TD>
"));

At this point it worked as I hoped it would.

Thanks for the help.

Zvi.



More information about the pmwiki-users mailing list