Blog posts tagged with 'nopCommerce topic'

We will demonstrate you how to add an advertising flash banner in your nopCommerce web site as a nopCommerce topic.
First let's say that we want to add an advertisin flash banner on the home page.
There is a topic in nopCommerce called HomePageText, which we will use in this example.
But before that you need to make sure that you have the actual flash movie on your server.
We would sugest to create a separate folder in the root folder of your application and add any new flash files there.
This way you will have all your flash banners at one single place.
So first create a folder called banners in your root folder.
Then upload your banner file in the banners folder. Let's say my file is called banner-728x90.swf, which as the name implies is 728 pixels in width and 90 pixels in height.
So your file should be accessible at the following address http://YourStoreName.com/banners/banner-728x90.swf.
So now we need to add the banner in the HomePageText topic.
In the Admin panel go to Content Management -> Topics and find HopePageText topic and click edit.
Edit the text as HTML and paste the following code and then Save the topic:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" height="90" width="728"><param name="movie" value="http://YourStoreName.com/banners/banner-728x90.swf" />
<!--[if !IE]>--><object data="http://YourStoreName.com/banners/banner-728x90.swf" height="90" type="application/x-shockwave-flash" width="728"> <!--<![endif]-->
<p>Alternative content</p> 
<!--[if !IE]>--> </object><!--<![endif]-->
</object>


You should now have your advertising flash banner on you nopCommerce Home page.
Note that if your banner have different dimensions you need to change the height and the width attributes to match them.
Aslo don't forget to change the YourStoreName.com with the domain name of your web site.

Using the snippet above you can easily add new banners at any topic in nopCommerce.

Hope this helps!

Find us on Facebook