Jump to content

How to add and advertising ?


Recommended Posts

hi,
go on the back office, modules, position and you can add an advertising block
thomas

I went there but don't know how to add?
I just see:

Block advertising v0.1
Adds a block to display an advertising

but can not click on it, only can move the position up or down.
Pls advice more details.
Thanks.
Link to comment
Share on other sites

OIC what you mean. Don't go to Positions. Just go to Modules where all the modules are and click [install]
Positions is for positioning (suppose that why it's called positions :)


If I click on [Add a new module]
It will ask me to in put:

Add a new module
Module URL:
Your admin password:


But what I want to do is how to add an ad (advertisement), it should include a URL and an image.

Thanks.
Link to comment
Share on other sites

Firstly, you have to install [block advertising] from modules to make the ad block show on the front of the site
I assume you have already done this step

To then add an advertisment into the advertising blcok, you need to edit the html in \modules\blockadvertising\blockadvertising.tpl

I haven't seen a GUI way to do this in the current release

Link to comment
Share on other sites

Firstly, you have to install [block advertising] from modules to make the ad block show on the front of the site
I assume you have already done this step

To then add an advertisment into the advertising blcok, you need to edit the html in \modules\blockadvertising\blockadvertising.tpl

I haven't seen a GUI way to do this in the current release


@ jtyana,
Could you show me how to modify the tpl file to add an advertising?
assume that the URL is www.mydomain.com, and the image file name is: myimage.jpg

Thanks.
Link to comment
Share on other sites

It's very easy.
Open up the file blockadvertising.tpl found in modules\blockadvertising
Make sure you open the .tpl not the .php file
Use a text editor like notepad. (Don't use MS Word) Use notepad.

When you open blockadvertising.tpl, you will see the domain name www.prestashop.com, type over that with www.mydomain.com

This changes the link from prestashop.com to mydomain.com

Next, you need to change the pic. Simply replace the current "advertising.jpg" with your file. Make sure you rename your pic to be advertising.jpg

That's the easiest way. If you want your pic to be called something else, then open up blockadvertising.php and have a look. You will easily identify what to change ;-)

The same with all files, open them in notepad and have a look. You'll be surprised at how easy it is.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...