Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

poll 1.3 Some problems help


Salvo

Recommended Posts

Posted

Hi

I have installed the poll 1.3 and all (almost) works fine now.

 

in catalog/includes/applications_top.php

the read me file say to add this..

 

// set the pollbooth parameters (can be modified through the administration tool)

// $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from phesis_poll_config');

// while ($configuration = tep_db_fetch_array($configuration_query)) {

// define($configuration['cfgKey'], $configuration['cfgValue']);

// }

 

But it give me error and it doesn't work..

commenting it, it works fine... Strange eh? why? what s this code for?

 

from config I have allowed more than 1 votel per person, but it still gives tell me that only one vote is allowed... why?

 

Thanks

 

Salvo

Posted

I still can't understand why I have the error with the code above

 

~Any Help would be appreciated

 

Ps: has the comment been implemented? I can't see it in 1.3

Posted

I am not familiar with this contribution (questions regarding contributions should go in the approprate forum) .... but it looks to me like you have not made all the necessary database changes - did you put in all the configuration values?. You should not comment the code to try and fix the problem.

Posted

The database changes?

 

I uploaded the tables and works fine in the admin part. everything works fine. only when I insert the bit of code which is mentioned in the readme.txt file that gives the problem...

 

Does anyone know what are these values and where are entered?

 

cfgKey, configuration_value as cfgValue

 

Thanks

Posted

Salvo

 

But it give me error and it doesn't work..

 

What error message are you getting. Where in application_top.php did you place the code.

 

commenting it, it works fine... Strange eh? why? what s this code for?

 

The code will still work, but use default values. The code loads the poll configuration data from the database.

 

from config I have allowed more than 1 votel per person, but it still gives tell me that only one vote is allowed... why?  

 

Because you commented out the code to load the configuration parameters :roll:

Trust me, I'm an Accountant.

Posted

Hi, Thanks for ansering Ian,

 

I am at work now, I don't remember exactly where I placed the code.

That maybe the reason.

 

Where in application_top.php should it be inserted?

 

Thanks again

 

Salvo

Posted

Salvo

 

I am at work now,

 

Me too :cry:

 

It does say in the install file. Will look later, also please post what error message you are getting.

Trust me, I'm an Accountant.

Posted
Salvo

 

I am at work now,

 

Me too :cry:

 

It does say in the install file. Will look later, also please post what error message you are getting.

 

I will post the error later tonight..

 

Sal

Posted

Ian,

I have resolved the problem, that code should go at the end of the application_top_php, or at least after database.php

 

by the way, in the install.txt is mentioned to put "at the end" to all amendament but not to the one in question.

to that one it is written like this:

 

( to application_top.php in /catalog/includes )

 

is not mentioned "at the end" that is why I put it half way :-) :-)

 

Thanks again

Salvo...

 

PS: I have read that comment is not implemented yet, any idea when?

Posted

Ian, instead of opening a new threat, I just corry on with this...

 

I was just wandering..

 

I have the site in two languages. now I like to open two polls. one in language A and the other in the other language B.

 

with question in Language A and B...

 

Now, if the English speaking language is surfing the site, I like to show the poll which is marked English.

 

If the Italian speaking language is surfing the site, I like to show the poll which is marked Italian..

 

How do I achieve this?

 

Salvo

Posted

Hi Ian

Hi Salvo

 

I have and other trouble with this contribution, anybody help me ! Thanks !

 

Fatal error:

Cannot redeclare pollnewest() (previously declared in /home/capsulas/capsulasdeconocimiento-www/catalogo/includes/boxes/polls.php:6) in /home/capsulas/capsulasdeconocimiento-www/catalogo/includes/boxes/polls.php on line 5

 

My beta site version:

www.capsulasdeconocimiento.com/catalogo/default.php

  • 2 weeks later...
Posted

Hi, I added new poll and it works, but one problem is that I click poll manager and get error message as the following:

 

Warning: mktime() [function.mktime]: Windows does not support negative values for this function in C:Inetpubwwwrootshop3catalogadminincludesfunctionsgeneral.php on line 113

 

Warning: date() [function.date]: Unexpected error in C:Inetpubwwwrootshop3catalogadminincludesfunctionsgeneral.php on line 113

[/url][/u]

Archived

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

×
×
  • Create New...