Zen Cart Logo
Forums / All Other Contributions/Addons / Contest System [support thread]

Contest System [support thread]

Views: 57,864

Results 221 to 240 of 408
21 Jul 2010, 4:46 PM
#221
coffinwear avatar

coffinwear

Zen Follower

Join Date:
Dec 2009
Location:
Fort Meade, MD
Posts:
124
Plugin Contributions:
0

Contest System [support thread]

Nevermind. I got it. I didn't notice that it said small image width and small image height in the tpl_contest_default.php. Thanks again for your help.

21 Jul 2010, 5:21 PM
#222
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Contest System [support thread]

Coffinwear:

Thanks Skip. That was exactly what I was looking for. Is there a way to change the image size?

Look a couple lines down in the file and you will see.

echo zen_image(DIR_WS_IMAGES . $contest_prize->fields['products_image'], $contest_prize->fields['products_name'], SMALL_IMAGE_WIDTH*2, SMALL_IMAGE_HEIGHT*2);

Adjust to the size you want.

Skip

26 Jul 2010, 10:00 PM
#223
unicorn avatar

unicorn

Zen Follower

Join Date:
Sep 2008
Posts:
107
Plugin Contributions:
0

Re: Contest System [support thread]

I'm trying to get this up and running on my test site, but I'm at a loss.

My shop is Norwegian so I had to rename all the /english to /norwegian, which works fine with other addons. But now it's a mess. The sidebox title is what you would expect to see if the language file was missing, same thing with the admin reports. And when I click on that, I get ...admin/FILENAME_STATS_PRIZE_DRAW.php and of course a "not found". To make it even worse, I get a blank page when I click on "enter our contest", with another language issue in the breadcrumb, saying Home :: NAVBAR_TITLE .

Doesn't this addon work in any other language besides English?

26 Jul 2010, 11:47 PM
#224
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Contest System [support thread]

Unicorn:

I'm trying to get this up and running on my test site, but I'm at a loss.

My shop is Norwegian so I had to rename all the /english to /norwegian, which works fine with other addons. But now it's a mess. The sidebox title is what you would expect to see if the language file was missing, same thing with the admin reports. And when I click on that, I get ...admin/FILENAME_STATS_PRIZE_DRAW.php and of course a "not found". To make it even worse, I get a blank page when I click on "enter our contest", with another language issue in the breadcrumb, saying Home :: NAVBAR_TITLE .

Doesn't this addon work in any other language besides English?

I know there are a fee places in the code that English is hard coded.
You will need to tweak it some to get it to work. In the readme_install.txt file it shows the list of languages files that are used.

Skip

29 Jul 2010, 12:45 PM
#225
unicorn avatar

unicorn

Zen Follower

Join Date:
Sep 2008
Posts:
107
Plugin Contributions:
0

Re: Contest System [support thread]

skipwater:

I know there are a fee places in the code that English is hard coded.
You will need to tweak it some to get it to work. In the readme_install.txt file it shows the list of languages files that are used.

Skip

I can only seem to find text that is easily translated, but no reference to english files..?

29 Jul 2010, 1:12 PM
#226
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Contest System [support thread]

Unicorn:

I can only seem to find text that is easily translated, but no reference to english files..?

Look at this file includes/templates/YOUR_TEMPLATE/templates/tpl_contest_default.php this is the contest main page you will find "MSRP", "Click for Contest Rules text" etc. in this file.

Skip

4 Oct 2010, 2:16 AM
#227
tagyourbaby avatar

tagyourbaby

New Zenner

Join Date:
Feb 2008
Location:
Auckland, NZ
Posts:
53
Plugin Contributions:
0

Re: Contest System [support thread]

Hey Skip

How can i edit the email that goes out to the winners? It has spelling errors etc in it and i need to change the wording.

Thanks

Jess

4 Oct 2010, 1:10 PM
#228
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Contest System [support thread]

You will find the text for the email here.
admin/includes/languages/english/stats_prize_draw.php

You will find the html layout for the email here.
email/email_template_contest.html

Skip

4 Oct 2010, 10:04 PM
#229
tagyourbaby avatar

tagyourbaby

New Zenner

Join Date:
Feb 2008
Location:
Auckland, NZ
Posts:
53
Plugin Contributions:
0

Re: Contest System [support thread]

Thanks, but now my store has flipped out and doesnt want to show properly and if i enter in a date in the admin for a contest to start its saying it was entered in 2036 so the contest is refusing to start.

4 Oct 2010, 10:14 PM
#230
tagyourbaby avatar

tagyourbaby

New Zenner

Join Date:
Feb 2008
Location:
Auckland, NZ
Posts:
53
Plugin Contributions:
0

Re: Contest System [support thread]

Ive got this on 2 stores and the same thing has happened, it seems when the competition ends and is drawn it sets the dates to the year 2036 as when they were last updated.

4 Oct 2010, 11:28 PM
#231
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Contest System [support thread]

Tagyourbaby:

Ive got this on 2 stores and the same thing has happened, it seems when the competition ends and is drawn it sets the dates to the year 2036 as when they were last updated.

There is something wrong with you install there should not be CONTEST HAS ENDED and below that, the Contest form.

As for the date:

You should enter it (mm/dd/yyyy)

Then if you want to display it differently change the 'Contest Date Display Format' admin->configuration->contest

When closing the contest only the contest table is updated with who won.

Skip

5 Oct 2010, 9:37 PM
#232
tagyourbaby avatar

tagyourbaby

New Zenner

Join Date:
Feb 2008
Location:
Auckland, NZ
Posts:
53
Plugin Contributions:
0

Re: Contest System [support thread]

I have done all the files and followed instructions but its just not working, there isnt anything wrong with how i have installed it. Possible problem with the new zencart? I only say its not the install because its doing the exact same thing on both stores.

5 Oct 2010, 11:56 PM
#233
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Contest System [support thread]

Tagyourbaby:

I have done all the files and followed instructions but its just not working, there isnt anything wrong with how i have installed it. Possible problem with the new zencart? I only say its not the install because its doing the exact same thing on both stores.It would help with a more detailed description on what is or is not happening to get a handle on where the problem might be..

6 Oct 2010, 12:16 AM
#234
tagyourbaby avatar

tagyourbaby

New Zenner

Join Date:
Feb 2008
Location:
Auckland, NZ
Posts:
53
Plugin Contributions:
0

Re: Contest System [support thread]

View my website you can see its still got the option to enter even when the competition is closed.

In the admin when i update for a new competition, its not updating the storefront because its stating the last time it was updated was mm/dd/2036 so its not updating the contest due to it thinking we are in year 2036 not 2010. Same thing happens on both my stores.

6 Oct 2010, 12:48 AM
#235
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Contest System [support thread]

I am at a loss why you can not go to admin->configuration->contest NOT admin->reports->Contest Prize Entries **and edit the start date and end date for the contest. **

And are you setting Contest Reference Code with a unique code for each contest?

If none of that helps this debug code might help to see whats with the date.

So I can see what the issue is you will need to add this debug code.
Find in this file /includes/templates/YOUR_TEMPLATE/templates/tpl_contest_default.php
Around line 47

   if ($now >= $start_date && $now <= $close_date) {
    } else {
    	$show_invite = false;
    }

And change it to look like this.

   if ($now >= $start_date && $now <= $close_date) {
   		// Debug see dates
   		echo 'Server Date Now '.date("m/d/Y").'<br />';
   		echo 'Start '.$start_date.' Close '.$close_date.' Now '.$now.' Contest is Active';
    } else {
   		// Debug see dates
   		echo 'Server Date Now '.date("m/d/Y").'<br />';
   		echo 'Start '.$start_date.' Close '.$close_date.' Now '.$now.' Contest is Closed';
    	$show_invite = false;
    }

Now when you enter the contest you will get the time stamp info.
Example: Start 1285905600 Close 1287460800 Now 1286251200 Contest is Active
For the contest to be active now must be between start and close.

Skip

6 Oct 2010, 1:57 AM
#236
tagyourbaby avatar

tagyourbaby

New Zenner

Join Date:
Feb 2008
Location:
Auckland, NZ
Posts:
53
Plugin Contributions:
0

Re: Contest System [support thread]

skipwater:

I am at a loss why you can not go to admin->configuration->contest NOT admin->reports->Contest Prize Entries **and edit the start date and end date for the contest. **

And are you setting Contest Reference Code with a unique code for each contest?

If none of that helps this debug code might help to see whats with the date.

So I can see what the issue is you will need to add this debug code.
Find in this file /includes/templates/YOUR_TEMPLATE/templates/tpl_contest_default.php
Around line 47

if ($now >= $start_date && $now <= $close_date) {
} else {
$show_invite = false;
}

> 
> And change it to look like this.
> ```php
   if ($now >= $start_date && $now <= $close_date) {
   		// Debug see dates
   		echo 'Server Date Now '.date("m/d/Y").'<br />';
   		echo 'Start '.$start_date.' Close '.$close_date.' Now '.$now.' Contest is Active';
    } else {
   		// Debug see dates
   		echo 'Server Date Now '.date("m/d/Y").'<br />';
   		echo 'Start '.$start_date.' Close '.$close_date.' Now '.$now.' Contest is Closed';
    	$show_invite = false;
    }

Now when you enter the contest you will get the time stamp info.
Example: Start 1285905600 Close 1287460800 Now 1286251200 Contest is Active
For the contest to be active now must be between start and close.

Skip

I can go to the admin side and edit the dates but because it is saying last updated mm/dd/2036 it wont update the contest as the system is thinking its year 2036. Ill do a screen shot to show you and ill try that code and let you know.

Attachment #8204

6 Oct 2010, 2:06 AM
#237
tagyourbaby avatar

tagyourbaby

New Zenner

Join Date:
Feb 2008
Location:
Auckland, NZ
Posts:
53
Plugin Contributions:
0

Re: Contest System [support thread]

I got another competition going but when it ends the same problem will happen again...with the entry form underneath the "Contest Closed" how can this be fixed?

6 Oct 2010, 3:01 AM
#238
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Contest System [support thread]

Tagyourbaby:

I got another competition going but when it ends the same problem will happen again...with the entry form underneath the "Contest Closed" how can this be fixed?

Picture is worth 1000 words

See if this fixes your issue.

First thing backup your zencart database.
Use phpmyadmin open your zencart database locate the configuration table. Browse and find in the field configuration_key CONTEST_SHOW edit the date_added to at least the day before your contest started.

Let us know if that fixes it.

Skip

9 Oct 2010, 3:11 AM
#239
jim21 avatar

jim21

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: Contest System [support thread]

Contest app is a great app however I'm having a problem getting the entries to post. When posting a new contestant page simply refreshes and the contestant is not added. I've triple checked that all the files were properly installed. The sql install file ran fine with no errors. Also all the contest admin features are all working as they should. Any help is greatly appreciated. Running latest version of zencart with basic template..

9 Oct 2010, 2:37 PM
#240
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: Contest System [support thread]

Jim21:

Contest app is a great app however I'm having a problem getting the entries to post. When posting a new contestant page simply refreshes and the contestant is not added. I've triple checked that all the files were properly installed. The sql install file ran fine with no errors. Also all the contest admin features are all working as they should. Any help is greatly appreciated. Running latest version of zencart with basic template..

If you leave the form blank and hit submit do you get the error messages?

Then if you just add a name to the name field that error clears and you are left with just two errors?

Are you running an seo mod on the site?

Skip