Page 16 of 41 FirstFirst ... 6141516171826 ... LastLast
Results 151 to 160 of 408
  1. #151
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Contest System [support thread]

    One more thing.. I have deleted the default contest table record.. Why does the name still continue to appear in the contest winner's list??

  2. #152
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Contest System [support thread]

    Quote Originally Posted by DivaVocals View Post
    One more thing.. I have deleted the default contest table record.. Why does the name still continue to appear in the contest winner's list??
    Nevermind.. reading really is fundamental.. I read this whole support thread before posting and overlooked this in my haste..

    Quote Originally Posted by skipwater View Post
    You must manually add to the winners list: Admin->Tools->Define Pages Editor
    Select from drop drown define_contestwinner.php
    Edit as needed


    If you are referring to when there is no contest running no.

    Skip

  3. #153
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Contest System [support thread]

    I'm on a roll.. I decided to take a look at the query in the YOUR_ADMIN/stats_prize_draw.php file. Figured out that it was not adding customers to the contest until the order status ='3". For my test store this = "Shipped". So I get it now, and all is right with the world..

    Quote Originally Posted by DivaVocals View Post
    Issue:
    Add Entries for Existing Customers does not add customers to the contest. My test contest dates are 01/01/2009 - 12/31/2009, and there are sales during this period. Yet when I click the "Add Customers" button, no customers are added. Is there a fix for this??

  4. #154
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Contest System [support thread]

    Well I've made a BUNCH of change/updatess.. Thought I'd share..

    Files Edited

    • Edited: includes/modules/pages/contest/header_php.php
    • Edited: includes/templates/custom_template/templates/tpl_contest_default.php
    • Edited: YOUR_ADMIN/includes/languages/english/stats_prize_draw.php
    • Added: includes\languages\english\html_includes\YOUR_TEMPLATE\define_contest_descrip.ph p

    Changes Made

    • ~ When a customer is logged in, the contest entry form will automatically fill in their name and e-mail address.
    • ~ Made a minor spelling correction to the admin language file
    • ~ Added contest stylesheet to align the qualifying question correctly. (You can merge the contents of this stylesheet with the store's main stylesheet)
    • ~ Added a contest description define page. Allows you to enter a contest description on the contest page.
    • ~ Updated "Extra Notes" in this readme file to include an explanation for how the "Add Customer" feature works.

    I've bundled this all up and will be submitting it to the downloads section.. Hope I'm not overstepping.. Seeing that I'm new here and all..

  5. #155
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: Contest System [support thread]

    Quote Originally Posted by DivaVocals View Post
    Well I've made a BUNCH of change/updatess.. Thought I'd share..

    Files Edited

    • Edited: includes/modules/pages/contest/header_php.php
    • Edited: includes/templates/custom_template/templates/tpl_contest_default.php
    • Edited: YOUR_ADMIN/includes/languages/english/stats_prize_draw.php
    • Added: includes\languages\english\html_includes\YOUR_TEMPLATE\define_contest_descrip.ph p

    Changes Made

    • ~ When a customer is logged in, the contest entry form will automatically fill in their name and e-mail address.
    • ~ Made a minor spelling correction to the admin language file
    • ~ Added contest stylesheet to align the qualifying question correctly. (You can merge the contents of this stylesheet with the store's main stylesheet)
    • ~ Added a contest description define page. Allows you to enter a contest description on the contest page.
    • ~ Updated "Extra Notes" in this readme file to include an explanation for how the "Add Customer" feature works.

    I've bundled this all up and will be submitting it to the downloads section.. Hope I'm not overstepping.. Seeing that I'm new here and all..
    Wow and all I did was eat all weekend.

    Fantastic updates and addons

    Skip
    • 446F63746F722057686F •

  6. #156
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Contest System [support thread]

    Quote Originally Posted by skipwater View Post
    Wow and all I did was eat all weekend.

    Fantastic updates and addons

    Skip
    I've been on a mission Skip.. My apologies for the flood of postings earlier.. Call it OVER EXUBERANCE!!! Great mod BTW.. I'm glad I could add a little something useful to it, and getting a nod from the man himself (that would be you..) is humbling..

  7. #157
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Contest System [support thread]

    Quote Originally Posted by DivaVocals View Post
    Well I've made a BUNCH of change/updatess.. Thought I'd share..

    Files Edited

    • Edited: includes/modules/pages/contest/header_php.php
    • Edited: includes/templates/custom_template/templates/tpl_contest_default.php
    • Edited: YOUR_ADMIN/includes/languages/english/stats_prize_draw.php
    • Added: includes\languages\english\html_includes\YOUR_TEMPLATE\define_contest_descrip.ph p

    Changes Made

    • ~ When a customer is logged in, the contest entry form will automatically fill in their name and e-mail address.
    • ~ Made a minor spelling correction to the admin language file
    • ~ Added contest stylesheet to align the qualifying question correctly. (You can merge the contents of this stylesheet with the store's main stylesheet)
    • ~ Added a contest description define page. Allows you to enter a contest description on the contest page.
    • ~ Updated "Extra Notes" in this readme file to include an explanation for how the "Add Customer" feature works.

    I've bundled this all up and will be submitting it to the downloads section.. Hope I'm not overstepping.. Seeing that I'm new here and all..
    Has this been uploaded yet? Great add on.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  8. #158
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Contest System [support thread]

    Quote Originally Posted by countrycharm View Post
    Has this been uploaded yet? Great add on.
    Thanks!

    My upload yesterday didn't go through.. Just attempted to re-upload just now.. Hopefully this time it goes through, and it gets approved by the Zen Team..

    ETA: Just got my upload confirmation!
    Last edited by DivaVocals; 30 Nov 2009 at 06:44 PM. Reason: See ETA line..

  9. #159
    Join Date
    Dec 2009
    Posts
    1
    Plugin Contributions
    0

    Default Contest with reCAPTCHA

    For several reasons, I wanted to offer a contest for non-registered visitors. I soon found that my contest was filled with unwanted spam entries so I embedded reCAPTCHA into the template.

    Here is how to do it if you are interested

    If you haven't already, go to http://recaptcha.net/whyrecaptcha.html

    1. Sign up for an account.
    2. Register for your Public and Private Key
    3. Download the reCAPTCHA library and upload recaptchalib.php to your cart's root directory.


    In /templates/your template/templates/tpl_contest_default.php

    Find

    Code:
    } else { // Contest NOT Closed
    
    	// Retrieve Prize details
    	$sql_query = "select p.products_id, p.products_image, p.products_price, pd.products_name, pd.products_description from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and p.products_id ='" . (int)CONTEST_PRIZE_ID . "' and pd.language_id = '" . (int)$_SESSION['languages_id']  . "' limit 1";
    	$contest_prize = $db->Execute($sql_query);
    
    		if (!$contest_prize->RecordCount() > 0) {
    			// Data base error display warning
    			echo '<center><br/><table width="80%" border="0" cellpadding="3" cellspacing="3" bgcolor="#FFFF00" >'.
    			'<tr> '.
    				'<td align="center"><strong>ADMIN ERROR:</strong> The selected Prize Could Not Be Found.</td>'.
    				'</tr>'.
    			'</table></center>';
    		}
    
    		if (isset($_GET['action']) && ($_GET['action'] == 'process')) {
    Insert the following immediately thereafter

    Code:
    // Begin reCAPTCHA code
    require_once('recaptchalib.php');
    $privatekey = "enter the private key you received";
    $resp = recaptcha_check_answer ($privatekey,
                                    $_SERVER["REMOTE_ADDR"],
                                    $_POST["recaptcha_challenge_field"],
                                    $_POST["recaptcha_response_field"]);
    
    if (!$resp->is_valid) {
      die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
           "(reCAPTCHA said: " . $resp->error . ")");
    }
    // End reCAPTCHA code
    Be sure to insert your private key where appropriate

    Now find

    Code:
    				<?php
    				if (CONTEST_QUALIFY == "true") {
    					echo FORM_FIELD_QUALIFING_QUESTION.'<br/>';
    					// Retrived from Data Base
    					echo CONTEST_QUESTION; 
    				?>
    					<label class="inputLabel" for="entry_qualify_answer"><?php echo FORM_FIELD_QUALIFING_ANSWER; ?></label>
    					<?php echo zen_draw_input_field('entry_qualify_answer', $entry_qualify_answer, ' size="1" id="entry_qualify_answer"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    					<br class="clearBoth" />
    				<?php
    				} // End Qualify Question
    Insert the following immediately thereafter

    Code:
    // Begin reCAPTCHA code
    require_once('recaptchalib.php');
    $publickey = "enter the public key you received";
    echo recaptcha_get_html($publickey);
    // End reCAPTCHA code
    Remember to enter your public key where appropriate.

    Save and test.

    Works well for me.

  10. #160
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Contest System [support thread]

    Quote Originally Posted by DivaVocals View Post
    Thanks!

    My upload yesterday didn't go through.. Just attempted to re-upload just now.. Hopefully this time it goes through, and it gets approved by the Zen Team..

    ETA: Just got my upload confirmation!
    Whoo hoo.. ver 1.6.3 is now available in the downloads section!!

 

 
Page 16 of 41 FirstFirst ... 6141516171826 ... LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. ZX Slideshow support thread
    By balihr in forum All Other Contributions/Addons
    Replies: 766
    Last Post: 18 Oct 2025, 11:23 AM
  3. v151 Help with contest system mod
    By tod4life in forum General Questions
    Replies: 1
    Last Post: 15 Dec 2012, 05:26 PM
  4. SnapShot [support thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 32
    Last Post: 26 Oct 2012, 08:38 PM
  5. Contest System addon Error
    By ruralcraftsman in forum All Other Contributions/Addons
    Replies: 18
    Last Post: 5 Feb 2010, 04:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg