Thread: Ask A Question

Page 31 of 40 FirstFirst ... 212930313233 ... LastLast
Results 301 to 310 of 399
  1. #301
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by ATSWorld View Post
    thanks ,,I've tried it a few times now and it never works for me ..weird
    did you try the above link and change both files?

    /includes/templates/YOUR_TEMPLATE/templates/tpl_ask_a_question_default.php
    /includes/modules/pages/ask_a_question/header.php
    Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

  2. #302
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by swguy View Post
    This is a good idea. Another thing you might do is add ask_a_question to the list ROBOTS_PAGES_TO_SKIP in includes/languages/english/YOUR_TEMPLATE/meta_tags.php.
    Hello Scott - Since product name and image are being pulled and displayed, is it hard to code so it would pull the Meta tags for that product as well?
    Using Zen Cart 1.5.1

  3. #303
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,313
    Plugin Contributions
    125

    Default Re: Ask A Question

    It wouldn't be hard to do but I don't understand why you think this would be a good idea.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #304
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Ask A Question

    Some search engines are ignoring both robots.txt and ROBOTS_PAGES_TO_SKIP.

    Since they are ignoring the above, and are indexing these pages anyway, lets give them what they are looking for, the metas!

    I hope I am making sense. Thanks.
    Using Zen Cart 1.5.1

  5. #305
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by swguy View Post
    It wouldn't be hard to do but I don't understand why you think this would be a good idea.
    Scott - Would you please give a direction. Thanks
    Using Zen Cart 1.5.1

  6. #306
    Join Date
    Feb 2013
    Posts
    345
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by lat9 View Post
    Me, too! Here's my updated copy, using the reCaptcha version:
    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // |  Ask a question page.  Note that this uses the email settings from   |
    // |  the contact_us page; there are no separate settings.                | 
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    //
    ?>
    <div class="centerColumn" id="askAQuestion">
    <?php echo zen_draw_form('ask_a_question', zen_href_link(FILENAME_ASK_A_QUESTION, 'action=send&products_id=' . $_GET['products_id'])); ?>
    
    <h1><?php echo HEADING_TITLE . $product_info->fields['products_name']; ?></h1>
    
    
    <?php
      if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>
    <div class="mainContent success"><?php echo sprintf(TEXT_SUCCESS, $product_info->fields['products_name']); ?></div>
    
    <div class="buttonRow"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
    
    <?php
      } else {
    ?>
    
    <?php echo '<a href="' . zen_href_link(zen_get_info_page($_GET['products_id']), 'products_id=' . $_GET['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $product_info->fields['products_image'], $product_info->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT) . '</a>'; ?>
    
    <div id="contactUsNoticeContent" class="content">
    <?php
    /**
     * require html_define for the contact_us page.  
     */
      require($define_page);
    ?>
    </div>
    
    <?php if ($messageStack->size('contact') > 0) echo $messageStack->output('contact'); ?>
    
    <fieldset id="contactUsForm">
    <legend><?php echo FORM_TITLE; ?></legend>
    <div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
    <br class="clearBoth" />
    
    <?php
    // show dropdown if set
        if (CONTACT_US_LIST !=''){
    ?>
    <label class="inputLabel" for="send-to"><?php echo SEND_TO_TEXT; ?></label>
    <?php echo zen_draw_pull_down_menu('send_to',  $send_to_array, 'id=\"send-to\"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />
    <?php
        }
    ?>
    
    <label class="inputLabel" for="contactname"><?php echo ENTRY_NAME; ?></label>
    <?php echo zen_draw_input_field('contactname', $name, ' size="40" id="contactname"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />
    
    <label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL; ?></label>
    <?php echo zen_draw_input_field('email', ($error ? $_POST['email'] : $email), ' size="40" id="email-address"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />
    
    <label for="enquiry"><?php echo ENTRY_ENQUIRY . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
    <?php echo zen_draw_textarea_field('enquiry', '30', '7', $enquiry, 'id="enquiry"'); ?>
    <?php
    	/*
    	*	reCAPTCHA modification begin
    	*/
    	
    	if(CONTACT_US_RECAPTCHA_STATUS == 'true')
    	{
    		
    ?>
    	         <!-- start modification for reCaptcha -->
                 <div class="recaptcha">
                 <label class="inputLabel" for="recaptcha"><?php echo ENTRY_SECURITY_CHECK . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
                  			<script language="javascript" type="text/javascript">
    								var RecaptchaOptions = {
    								   theme : '<?php echo CONTACT_US_RECAPTCHA_THEME;?>',
    								   tabindex : 3
    								};
    						</script>              	
                   <?php echo recaptcha_get_html(CONTACT_US_RECAPTCHA_PUBLIC_KEY); ?>
                  </div>
                  <!-- end modification for reCaptcha -->
    <?php
    	}
    	/*
    	*	reCAPTCHA modification begin
    	*/
    ?>
    </fieldset>
    
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
    <?php
      }
    ?>
    </form>
    </div>

    i added this code to the tpl_ask_a_question_default.php file and nothing happened.. no capcha shows up on my site.. what am i missing?? http://www.swordsofhonor.com/index.p...oducts_id=4976
    Last edited by lidlchris; 25 Sep 2013 at 02:51 AM. Reason: missing something.

  7. #307
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Ask A Question

    Medium Product Image

    I want to display 'Medium' product image instead of the default 'Small' image in the 'Ask a Question' contact page.

    Here's what I have in tpl_ask_a_question_default.php :

    Code:
    <?php echo '<br/><br/><CENTER><a href="' . zen_href_link(zen_get_info_page($_GET['products_id']), 'products_id=' . $_GET['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $product_info->fields['products_image'], $product_info->fields['products_name'], 250, 250) . '</a></CENTER>'; ?>
    How can I change above to pull the 'Medium' product image?

    Thanks in advance.

  8. #308
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Ask A Question

    For what it's worth, I recently submitted an update to this plugin to be more compatible with ZC 1.5.x, to apply applicable data sanitization, and to take advantage of the bot checks implemented in ZC 1.5.1.

    I should have provided notification of submission, but that's come and gone. It is now available for download. It does not address other things like the recent discussion of images.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #309
    Join Date
    Sep 2014
    Location
    ohio
    Posts
    216
    Plugin Contributions
    0

    Default Re: Ask A Question

    How can I place the ask a question on each item when items are displayed in a category? So that users don't have to click on the item then ask a question, they can simply do it from the item's listing in category view

    https://www.zen-cart.com/showthread....65#post1313665
    Last edited by mespe; 22 Jun 2016 at 03:13 AM.

  10. #310
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Ask A Question

    "Category" view is provided through tpl_product_listing_default. It takes a little bit to add a submit button as an individually controlled object, but the code provided in the readme can be applied anywhere the button is to be placed provided the appropriate products_id information is available.

    I'm so sorry this didn't get sent sooner, I began the reply when the question was asked, and even pressed the submit button; however, where I was had a bad signal so it didn't go through. I was just now going through extra windows and chased down the thread number to realize this.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 31 of 40 FirstFirst ... 212930313233 ... LastLast

Similar Threads

  1. Ask A Question module
    By okibi in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Apr 2007, 01:55 PM
  2. Ask a question 1.7
    By Kodam in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Apr 2007, 11:16 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR