ShoppingAds Custom Tag for Mango

I created a new custom tag called "ShoppingAds".  I am not a fan of using custom tags in Mango, I prefer the plugins.  Why? Well with the custom tags you have to insert them into your skin templates and I honestly dont like doing that.  What if the skin template gets updated?  It becomes a pain to maintain/manage.  For now creating custom tags to handle Ads and such seems to be easier though so thats what I used. 

I am not sure if I am a fan of ShoppingAds, the javascript seems to slow down my page loads, but that may be because I went a little overboard on how many I am displaying (I need to fix that). 

Below is a couple things you want to do before implementing the tag on your mango powered blog site:

1.     In the root of your mango blog, under the tag folder create a new folder called custom

2.     Drop the custom tags in this custom folder

3.     Now on any of your mango skin templates add the following snipet of code at the top of the page:

          <cfimport prefix="custom" taglib="../../tags/custom">

4.     In order to use the tags simply add the following code to the appropriate place in your skin template page:

<!--- ads by google adsense custom tag (large banner version)--->       
<custom:ShoppingAds adclient="YOURID" adkw="What you want to sell here" attitude="true" adwidth="120" adheight="240" colorbg="ECFDCE" colorborder="ECFDCE" /> 

5.     You will need to apply for your own ShoppingAds account before you can begin.  Check out there help section for adding keywords and such.

Download ShoppingAd Tag


Good luck and I hope you find this useful!


0 responses to “ShoppingAds Custom Tag for Mango”


Leave a Reply