Page 4 of 40 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 395
  1. #31
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    190
    Plugin Contributions
    0

    Default Re: Contest System [support thread]

    I tried to both the correct coding and the first coding still left a different error:

    1. This is the new error I get for the admin display
    1146 Table 'divabou_zc2.contest' doesn't exist
    in:
    [SELECT zen_contest .`date_entered`, COUNT(*) contestant_count FROM `contest` `contest` GROUP BY `contest`.`date_entered` ORDER BY `contest`.`date_entered` DESC limit 10]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


    2. This is what I did for my photo to show with the code you left

    Link to contest Page
    $content .='<a href="'.zen_href_link("contest").'">Enter Our Contest</a><br />';
    // Uncomment the below line and change image name and location to meet your needs.
    // $content .='<a href="http://divaboutiques.com/store/index.php?main_page=contest'.zen_href_link("contest").'"><img src="images/FN90302RD.jpg" alt="Our Contest" border="0" title="ENTER TO WIN - Our contest gives away one prize to the winning contestent."/></a>';
    $content .= '</div>';

    I don't know if I added the image photo in the wrong area, but when I uploaded the file I received this error on my front page.

    Parse error: syntax error, unexpected T_STRING in /home/divabou/public_html/store/includes/templates/diva/sideboxes/tpl_contest_sidebox.php on line 16
    Diva Boutiques
    www.divaboutiques.com

  2. #32
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    190
    Plugin Contributions
    0

    Default Re: Contest System [support thread]

    Okay so I went back in to play around with the code to see if I placed the image somewhere wrong. I chenged it to this:


    PHP Code:
    // Link to contest Page
    $content .='<a href="'.zen_href_link("contest").'">Enter Our Contest</a><br />';
    // Uncomment the below line and change image name and location to meet your needs.
    // $content .='<a href="'.zen_href_link("contest").'"><img src="/store/images/FN90302RD.jpg" alt="Our Contest" border="0" title="ENTER TO WIN - Our contest gives away one prize to the winning contestent."/></a>';
      
    $content .= '</div>'

    This error went away:
    PHP Code:
    Parse errorsyntax errorunexpected T_STRING in /home/divabou/public_html/store/includes/templates/diva/sideboxes/tpl_contest_sidebox.php on line 16 
    But the image is still not showing up in the contest sidebox????
    Diva Boutiques
    www.divaboutiques.com

  3. #33
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    771
    Plugin Contributions
    7

    Default Re: Contest System [support thread]

    Quote Originally Posted by divaboutiques View Post
    I tried to both the correct coding and the first coding still left a different error:

    1. This is the new error I get for the admin display
    1146 Table 'divabou_zc2.contest' doesn't exist
    in:
    [SELECT zen_contest .`date_entered`, COUNT(*) contestant_count FROM `contest` `contest` GROUP BY `contest`.`date_entered` ORDER BY `contest`.`date_entered` DESC limit 10]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


    2. This is what I did for my photo to show with the code you left

    Link to contest Page
    $content .='<a href="'.zen_href_link("contest").'">Enter Our Contest</a><br />';
    // Uncomment the below line and change image name and location to meet your needs.
    // $content .='<a href="http://divaboutiques.com/store/index.php?main_page=contest'.zen_href_link("contest").'"><img src="images/FN90302RD.jpg" alt="Our Contest" border="0" title="ENTER TO WIN - Our contest gives away one prize to the winning contestent."/></a>';
    $content .= '</div>';

    I don't know if I added the image photo in the wrong area, but when I uploaded the file I received this error on my front page.

    Parse error: syntax error, unexpected T_STRING in /home/divabou/public_html/store/includes/templates/diva/sideboxes/tpl_contest_sidebox.php on line 16
    I am assuming that the contest systems is working.
    and there is a contest table in your data base.

    1. This should fix your admin stat error
    PHP Code:
    $contest_query "SELECT `divabou_zc2.contest`.`date_entered`, COUNT(*) contestant_count FROM `contest` `contest` GROUP BY `contest`.`date_entered` ORDER BY `contest`.`date_entered` DESC limit 10"
    2. need to uncomment line so remove the two //
    PHP Code:
    $content .='<a href="'.zen_href_link("contest").'"><img src="/store/images/FN90302RD.jpg" alt="Our Contest" border="0" title="ENTER TO WIN - Our contest gives away one prize to the winning contestent."/></a>'
    • 446F63746F722057686F •

  4. #34
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    190
    Plugin Contributions
    0

    Default Re: Contest System [support thread]

    I am assuming that the contest systems is working.
    and there is a contest table in your data base.

    1. This should fix your admin stat error

    PHP Code:
    $contest_query = "SELECT `divabou_zc2.contest`.`date_entered`, COUNT(*) contestant_count FROM `contest` `contest` GROUP BY `contest`.`date_entered` ORDER BY `contest`.`date_entered` DESC limit 10";

    2. need to uncomment line so remove the two //

    PHP Code:
    $content .='<a href="'.zen_href_link("contest").'"><img src="/store/images/FN90302RD.jpg" alt="Our Contest" border="0" title="ENTER TO WIN - Our contest gives away one prize to the winning contestent."/></a>';
    1. I'm getting this error now

    1146 Table 'divabou_zc2.contest' doesn't exist
    in:
    [SELECT `divabou_zc2.contest`.`date_entered`, COUNT(*) contestant_count FROM `contest` `contest` GROUP BY `contest`.`date_entered` ORDER BY `contest`.`date_entered` DESC limit 10]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    2. Your suggestion worked and now the picture is showing, but it is showing very BIGGGGGGGG, how can I scale down the picture to fit the box now?
    Diva Boutiques
    www.divaboutiques.com

  5. #35
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    771
    Plugin Contributions
    7

    Default Re: Contest System [support thread]

    2. Your suggestion worked and now the picture is showing, but it is showing very BIGGGGGGGG, how can I scale down the picture to fit the box now?
    You must add width and height or resize the image.
    This example is 100px X 100px:
    PHP Code:
    $content .='<a href="'.zen_href_link("contest").'"><img src="/store/images/FN90302RD.jpg" width="100" height="100" alt="Our Contest" border="0" title="ENTER TO WIN - Our contest gives away one prize to the winning contestent."/></a>'
    • 446F63746F722057686F •

  6. #36
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    771
    Plugin Contributions
    7

    Default Re: Contest System [support thread]

    As for item 1. I was sleeping on that one here should be the right code.

    PHP Code:
    $contest_query "SELECT `date_entered`, COUNT(*) contestant_count FROM " .TABLE_CONTEST" GROUP BY `date_entered` ORDER BY `date_entered` DESC limit 10"
    • 446F63746F722057686F •

  7. #37
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    190
    Plugin Contributions
    0

    Default Re: Contest System [support thread]

    Thank you
    Thank you
    Thank you
    It worked!
    Diva Boutiques
    www.divaboutiques.com

  8. #38
    Join Date
    Mar 2009
    Posts
    21
    Plugin Contributions
    0

    Default Re: Contest System [support thread]

    Using:

    Zen Cart 1.3.8a
    Database Patch Level: 1.3.8
    v1.3.8 [2009-03-10 15:49:55] (Fresh Installation)
    Server OS: Linux 2.6.18-92.1.10.el5PAE
    Database: MySQL 5.0.67.d7-ourdelta-log
    Server Date: 03/15/2009 00:04:42
    Database Date: 03/15/2009 00:04:42
    Server Up Time: 00:04:42 up 10 days, 8:01, 0 users, load average: 2.35, 3.07, 2.52
    HTTP Server: Apache
    PHP Version: 5.2.8 (Zend: 2.2.0)
    PHP Memory Limit: 64M
    PHP Safe Mode: Off
    PHP File Uploads: On
    Max Size: 8M
    POST Max Size: 8M
    Database Data Size: 1,590 kB
    Database Index Size: 909 kB


    http://www.hillcountrytactical.com/catalog

    When I try to enter the contest I get the following error.

    1054 Unknown column 'contest_code' in 'where clause'
    in:
    [select count(*) as total from customers where customers_email_address = 'sonjamichelle######################' and customers_id = '0' AND contest_code = '25']
    The "contest" table exists with columns:

    id
    contestant_name
    contestant_email
    contestant_ip_address
    date_entered
    validated
    contest_code
    OMIT


    Searching the net, this error seems to stem from changes with "join" from ver 4 to ver 5.

    I am NOT a SQL person so I don't even know where to begin to deug this.


    One other problem I noticed is that when I goto the contest report screen and choose to add customers who purchased during the contest period, I see no customers to add.

  9. #39
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    771
    Plugin Contributions
    7

    Default Re: Contest System [support thread]

    sonjamichelle

    Open this file /includes/templates/YOUR_TEMPLATE/templates/tpl_contest_default.php
    and find around line 96
    PHP Code:
    $check_members_email_query "select count(*) as total from " TABLE_CUSTOMERS " where customers_email_address = '" zen_db_input($entry_email_address) . "' and customers_id = '" . (int)$customer_id "' AND contest_code = '" CONTEST_CODE "'"
    Replace with this
    PHP Code:
    $check_members_email_query "select count(*) as total from " TABLE_CUSTOMERS " where customers_email_address = '" zen_db_input($entry_email_address) . "' and customers_id = '" . (int)$customer_id "'"
    Add Customers Button
    There is no list created prior to the adding of customers to a contest.
    If you wish to pick customers from a list, this can only happen after adding them to the contest. Then you can go through the list and delete the unwanted ones.

    This patch and others will be added to the version 1.4 update.
    • 446F63746F722057686F •

  10. #40
    Join Date
    Mar 2009
    Posts
    21
    Plugin Contributions
    0

    Default Re: Contest System [support thread]

    Re: Patch

    Worked like a charm!! Thank you very much!!

    RE: Add Customers Button

    On the adding of customers, when you goto the admin section from reports/contest prize entries, there's a add customers button. Clicking that button yields;

    Contest Prize Entries
    Add Entries for Existing Customers

    Add entries for customers who have brought products during the contest period.

    Contest Dates 03/10/2009 - 03/17/2009 Entrants Name Email Address
    By the text of this page it makes me think that it will pull data on customers who made purchases and list them. I can then add them to the current contest from here based on the fact they made a purchase during the contest dates.

    Did I misunderstand the purpose of this particular page?

    The word in red; is that a typo?

    Oh, just a possible bug heads up, nothing major. But if you choose not to use a qualifying question, the submit button disappears.

    Again, thanks for the quick patch!!!!

 

 
Page 4 of 40 FirstFirst ... 2345614 ... LastLast

Similar Threads

  1. Save For Later Support Thread
    By swguy in forum All Other Contributions/Addons
    Replies: 116
    Last Post: 3 May 2013, 05:35 PM
  2. Better Together Contribution Support Thread
    By swguy in forum All Other Contributions/Addons
    Replies: 579
    Last Post: 21 Apr 2013, 04:59 AM
  3. Autoresponder+ for ZC v1.3.x [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 227
    Last Post: 13 Dec 2012, 07:42 PM
  4. SnapShot [support thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 32
    Last Post: 26 Oct 2012, 08:38 PM
  5. PO Box Ban [support thread]
    By Steven300 in forum Addon Shipping Modules
    Replies: 23
    Last Post: 28 Oct 2009, 11:58 PM

Bookmarks

Posting Permissions

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