Forums / Basic Configuration / Using banners on external site

Using banners on external site

Locked
Results 1 to 7 of 7
This thread is locked. New replies are disabled.
02 Jan 2010, 17:57
#1
odessey1 avatar

odessey1

New Zenner

Join Date:
Mar 2008
Posts:
33
Plugin Contributions:
0

Using banners on external site

I have a question, Is there a way to use sidebox anywhere to display zencart banner group on an external website, the external page is a php index file. and also the external site is on the same server.
Thanks in Advance
03 Jan 2010, 17:03
#2
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Posts:
1,054
Plugin Contributions:
2

Re: Using banners on external site

There are a couple of ways to do it, but you are going to have to code some custom script, regardless of how you end up doing it.

1 - Create a small script on your own store space which just displays a random banner, and then embed this page within an iFrame on your other site. Messy, but secure, as no passwords or database access is needed by 2nd site.

2 - Create a little javascript file on your own server which builds the banners for you. You can then include the javascript as a linked file within as many sites as you need, muchthe same as Google does with their advertising.

3 - the worst way to do it, but it may work depending on your server setup and permissions - use the Sidebox Anywhere contrib to place the sidebox within your other site. You will need to have the correct permissions as you will need to be able to include the store files within yuor other PHP script.

If it was me, I would go for option 2 - it's a little more work, but it is far more flexible, and can be re-used at a later date with loads of sites, rather than just one.

Absolute
04 Jan 2010, 15:12
#3
odessey1 avatar

odessey1

New Zenner

Join Date:
Mar 2008
Posts:
33
Plugin Contributions:
0

Re: Using banners on external site

Thanks, for your help, I really want to use the "Sidebox anywhere"
contribution if I could. That way I could still use the backend banner manager.

Any help on this would be great.
05 Jan 2010, 14:53
#4
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Posts:
1,054
Plugin Contributions:
2

Re: Using banners on external site

You would be able to use the backend manager with all 3 of the suggestions I provided.

If you want to use the Sidebox Anywhere, just install that contribution within the other site, and follow the install instructions.

Absolute
05 Jan 2010, 19:29
#5
odessey1 avatar

odessey1

New Zenner

Join Date:
Mar 2008
Posts:
33
Plugin Contributions:
0

Re: Using banners on external site

Okay, where im stuck is the instructions explain to name the module you want to display i.e. "whats_new.php".

Were im confused is what page do I call for the banners?
05 Jan 2010, 22:18
#6
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Posts:
1,054
Plugin Contributions:
2

Re: Using banners on external site

In the Layout Box COntroller, within the admin, you have a whole host of sideboxes in there, with the filename for each. You'll see banner_box_all.php or something similar, and then other boxes which have the word banner within them. Just choose the banner box you want to display, and use that filename.

Absolute
06 Jan 2010, 20:00
#7
odessey1 avatar

odessey1

New Zenner

Join Date:
Mar 2008
Posts:
33
Plugin Contributions:
0

Re: Using banners on external site

Thanks so much.