PDA

View Full Version : A 3.8. Plugin isnt running anymore


swissknife
04-11-2010, 09:51 AM
I had a templateedit and a plugin for vB 3.8. that changes the adsense block. But this isnt runing on vB4 anymore. Would anyone please make it for vB4 working?

(sry for my bad english)

Template:

<if condition="$show['guest']"><div align="center">
$random_navad_a[$random_number]
</div></if>

Plugin:

$random_number = rand(1, 2);

$random_navad_a[1] = '<script type="text/javascript"><!--
google_ad_client = "pub";
/* 300x250, Erstellt 09.01.10 */
google_ad_slot = "";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
$random_navad_a[2] = '<script type="text/javascript"><!--
google_ad_client = "pub";
/* 300x250, Erstellt 10.01.10 */
google_ad_slot = "";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
';

Thank you!!!!

Speysider
04-11-2010, 04:36 PM
As I understand it, you will need to change the if code to read this:
<vb:if condition="$show['guest']"><div align="center">
$random_navad_a[$random_number]
</div></vb:if>