Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to insert a poll into information.php


HSMagic

Recommended Posts

vzpoll kicks out this very simple code:

 

Javascript code for every kind of page , local or remote use

<script language='javascript' src='http://www.mystore.com/vzpoll/show_java.php'></script>

 

or

 

PHP code for php pages , local use.

include("./vzpoll/config.inc.php");
include("./vzpoll/show.inc");

 

Now how do I fit this into an infobox?

Link to comment
Share on other sites

I looked at the Poll contribution and passed, the vzpoll script has it's own database and has what I need and I want to incorporate it into my store preferably into a box.

 

As I said, I can make it work via plain html outside of the store and it would work in a pop-up, but I really want to plug the code into an info box.

 

Looking at the PHP code, how should I put that into an infobox?

Link to comment
Share on other sites

In that case, take a look at pages 29-31 of the osCommerce 2.2 Milestone 2 Update 051112 Documentation. The section titled Add Boxes describes how to add a new infobox using the framework of an existing one as a starting point. Then you would just encapsulate the poll code in the infobox framework.

Rule #1: Without exception, backup your database and files before making any changes to your files or database.

Rule #2: Make sure there are no exceptions to Rule #1.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...