Ask A Question

Views: 120,989

Results 281 to 300 of 399
16 Jan 2012, 4:06 PM
#281
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Ask A Question

Any way to make this mod a popup with just the form, maybe jscript?

17 Jan 2012, 2:18 AM
#282
lala_rock avatar

lala_rock

New Zenner

Join Date:
Dec 2011
Posts:
41
Plugin Contributions:
0

Re: Ask A Question

Hi fellow zenners, I know this is a noob question, how am I going to change the email recipient of Ask A Question About This Product? I would just like to know if what I followed from http://www.zen-cart.com/forum/showthread.php?t=166212 is working. I just made Simple CSS/PHP AntiSpam solution on ask a question, I want to test if its working.

Thanks

17 Jan 2012, 3:13 AM
#283
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Re: Ask A Question

Or How can you make the ask a question page show on the product page, instead of bringing the customer to another page.

29 Feb 2012, 2:56 AM
#284
k1979 avatar

k1979

New Zenner

Join Date:
Dec 2010
Posts:
29
Plugin Contributions:
0

Re: Ask A Question

Thanks for a great mod.

Now I install and test.
It looks working well...
But if I click the back button, I am placed at the index page instead of previous product page.
The "contact_us" page works fine, it takes me to the previous page.

Any suggestions?

8 Aug 2012, 6:58 AM
#285
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Ask A Question

I have just started to get spam email through this so I switched it off.

Has anyone added any anti-spam code to it they could share before I do it?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

8 Aug 2012, 11:32 AM
#286
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Ask A Question

torvista:

I have just started to get spam email through this so I switched it off.

Has anyone added any anti-spam code to it they could share before I do it?
Me, too! Here's my updated copy, using the reCaptcha version:

<?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>
8 Aug 2012, 5:05 PM
#287
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Ask A Question

torvista:

I have just started to get spam email through this so I switched it off.

Has anyone added any anti-spam code to it they could share before I do it?

I've used one of the Captcha's with Ask a Question for years. But I recently got rid of captcha when someone mentioned under the Hack/Security thread that putting up with some spam/jibberish is better than putting captcha in front of customers. I don't know, though. I'm going to upgrade to 1.5 soon and will look a the css thing that supposedly tricks spam, but has nothing in the way of real customers.

Steve
prommart.com

8 Aug 2012, 9:31 PM
#288
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Ask A Question

some spam/jibberish is better than putting captcha in front of customers

...maybe its me but I am finding Captchas getting more difficult lately.
offtopic article here this week with some alternative ideas:
http://designshack.net/articles/accessibility/should-we-kill-the-captcha/

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

13 Aug 2012, 1:38 PM
#289
welshop_com avatar

welshop_com

Zen Follower

Join Date:
Aug 2004
Location:
Newport, Wales
Posts:
262
Plugin Contributions:
0

Re: Ask A Question

Having read the majority of the posts on this thread I realise that a number of others have had problems with Ask a Question being flagged as duplicate content & titles by Google webmaster tools.
The problem is I have over 1000 warnings associated with this (examples below) and dont want to remove the mod as its good for customers.

Ask a Question | Mug Shop
http://www.mug-shop.co.uk/index.php?main_page=ask_a_question&products_id=1000
http://www.mug-shop.co.uk/index.php?main_page=ask_a_question&products_id=1003

As far as I can tell no one has come up with a solution to this problem as yet, so I was thinking of trying to use the robots.txt file to Disallow: /*ask_a_question so that bots would not crawl anything with ask_a_question in the url string.

Anyone know if this will work or got an alternative?

Cheers
Brinley

13 Aug 2012, 1:41 PM
#290
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Ask A Question

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.

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.

13 Aug 2012, 2:41 PM
#291
welshop_com avatar

welshop_com

Zen Follower

Join Date:
Aug 2004
Location:
Newport, Wales
Posts:
262
Plugin Contributions:
0

Re: Ask A Question

Thx SwGuy

I hadnt thought of using the Meta_tags.php file so will use both options on different sites and report back which work.

Cheers
Brinley

13 Aug 2012, 3:06 PM
#292
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Ask A Question

I must be losing my sight, where exactly do you find the duplicate content report in the webmaster tools?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

13 Aug 2012, 3:20 PM
#293
welshop_com avatar

welshop_com

Zen Follower

Join Date:
Aug 2004
Location:
Newport, Wales
Posts:
262
Plugin Contributions:
0

Re: Ask A Question

Just tested both methods and adding ask_a_question to the ROBOTS_PAGES_TO_SKIP in includes/languages/english/YOUR_TEMPLATE/meta_tags.php worked

Adding Disallow: /*ask_a_question to the robots.txt file did not work when using a sitemap crawler as it included all ask_a_question pages associated with every product.

Torvista: Meant duplicate description not content - and that can be found under Optimisation > HTMl improvements on GWT

Cheers
Brinley

7 Feb 2013, 8:40 AM
#294
uae_designer avatar

uae_designer

New Zenner

Join Date:
Oct 2010
Posts:
9
Plugin Contributions:
0

Re: Ask A Question

Just a question, we have products in our website but for a specific product, the email must be sent to another email address and not to us? How can this be done? I tried modifying the module so that the "Ask a Question" link would not appear on that specific product but it is actually not working (I tried changing if (isset($_GET['products_id'])) to if (isset($_GET['products_id']) !== '127'). Either modifying the contact email address or just hiding the "Ask a Question" link would be fine. Many thanks for your help.

7 Feb 2013, 11:16 AM
#295
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Ask A Question

The mail is sent in includes/modules/pages/ask_a_question/header.php. So you could check $_GET['products_id'] there before the zen_mail call and send it to the other person if appropriate.

As an aside though, since this is your store, you might want to keep control of all inbound email and just manually forward it to the other person so you can control follow up.

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.

7 Feb 2013, 2:19 PM
#296
uae_designer avatar

uae_designer

New Zenner

Join Date:
Oct 2010
Posts:
9
Plugin Contributions:
0

Re: Ask A Question

swguy:

The mail is sent in includes/modules/pages/ask_a_question/header.php. So you could check $_GET['products_id'] there before the zen_mail call and send it to the other person if appropriate.

As an aside though, since this is your store, you might want to keep control of all inbound email and just manually forward it to the other person so you can control follow up.

How do you do this?

9 Feb 2013, 9:57 PM
#297
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Ask A Question

Hey-Ho!

great mod still working great for many years now! one or two gibberish spams would come and go over the years but now Im getting 100+ spams a day via AAQ, does the contact us CSS thingy work on AAQ? or is adding reCaptcha the only option? :lookaroun

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

9 Feb 2013, 11:21 PM
#298
rfree190 avatar

rfree190

Zen Follower

Join Date:
Sep 2007
Posts:
176
Plugin Contributions:
0

Re: Ask A Question

Just installed in 1.5.1 and works great. I added a few extra fields to the form and it sends fine.

But, I'd really like to make the Ask a Question into a Popup Form on the product page so the customer is never taken away from the product he is interested in. Any chance someone would be able to help me get this working?

Thanks!

15 Feb 2013, 1:47 PM
#299
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Ask A Question

dharma:

Hey-Ho!

great mod still working great for many years now! one or two gibberish spams would come and go over the years but now Im getting 100+ spams a day via AAQ, does the contact us CSS thingy work on AAQ? or is adding reCaptcha the only option? :lookaroun

Update, got AAQ working with the CSS AntiSpam solution from the contact us form http://www.zen-cart.com/showthread.php?166212-Simple-CSS-PHP-AntiSpam-solution-for-a-contact-form&p=1143960#post1143960 :flex:

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

3 Mar 2013, 6:05 PM
#300
andy_c27 avatar

andy_c27

Zen Follower

Join Date:
Oct 2010
Location:
United Kingdom
Posts:
477
Plugin Contributions:
0

Re: Ask A Question

thanks ,,I've tried it a few times now and it never works for me ..weird