Alrighty, I can’t quite figure out how to use the supporter code in my theme. I’m not too well-versed in php.
I’m trying to add some adsense blocks & have an alternative banner display if the blog is a supporter blog, coded in via a different function. What am I doing wrong here? I’m getting a "syntax error, unexpected ‘}’" @ the else.
<?php if (supporter_hide_ads()) {
newThemeOptions_showHeaderBanner()
} else {
<script type="text/javascript"><!–
google_ad_client = "";
google_ad_slot = "";
google_ad_width = 468;
google_ad_height = 60;
//–>
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
}?>
Furthermore, how is the above code different from the following (from the instructions)? Is it simply not triggered by the "disable ads" in the menu?
if (is_supporter()) {
//blog has been upgraded to a supporter
//code or content goes here
} else {
//blog has not been upgraded to a supporter
//code or content goes here
}
Thanks…