Ask A Question

Views: 120,990

Results 81 to 100 of 399
7 Feb 2007, 2:01 PM
#81
swguy avatar

swguy

Administrator

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

Ask A Question

I just don't think there are that many spammers who are copying and pasting text into forms. Most spammers buy email addresses in bulk. YMMV of course.

Please feel free to modify AAQ in any way that works for your store.

Scott

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 2007, 6:32 PM
#82
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

I agree about the spamming, most just use bulk e-mails to send crap. Well I've tried the mod and no luck. All I can think is I've added Subject to the Contact Us form, only way I can get it working is by adding the Configuration switch, looking at the code on Line 13 of the header_php.php it makes sense, as it checks is customer logged in (yes/no) and allow guest is false > goto login screen. So i'm gonna have to make them login to ask a question.

8 Feb 2007, 4:22 AM
#83
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Ask A Question

swguy:

I just don't think there are that many spammers who are copying and pasting text into forms. Most spammers buy email addresses in bulk.
See the ongoing discussions on the Links Manager and Links Submit mod support threads. Looks like spammers are having fun submitting using those mods. But I am betting most are trying to get a URL posted (link spam) versus sending email spam.

Never the less, having an option to disable guests from submitting the AAQ/contact form would be good feature.

Or maybe I am missing something? That is, if I disable in admin the ability for guests to submit contact form, does this then also apply to submission of the AAQ form? If that is case, then my question/request has alseady been answered/fulfilled. ;)

Woody

8 Feb 2007, 5:14 AM
#84
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Ask A Question

Woodymon:

Or maybe I am missing something? That is, if I disable in admin the ability for guests to submit (the) contact form, does this then also apply to submission of the AAQ form?

In an attempt to answer my question I just searched through ZC 1.37 admin for this function, to allow enable/disable guests from submitting the contact form. But I could not find. I thought this was available in previous ZC 1.27 shop?

I did find under Config . Email Options > Allow Guest To Tell A Friend
but no method to Allow Guest to submit Contact form (or not).

So does ZC 1.37 not provide this option?

Woody

8 Feb 2007, 9:36 AM
#85
swguy avatar

swguy

Administrator

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

Re: Ask A Question

Woodymon:

In an attempt to answer my question I just searched through ZC 1.37 admin for this function, to allow enable/disable guests from submitting the contact form. But I could not find. I thought this was available in previous ZC 1.27 shop?

I did find under Config . Email Options > Allow Guest To Tell A Friend
but no method to Allow Guest to submit Contact form (or not).

So does ZC 1.37 not provide this option?

Woody

The new Ask A Question, in the downloads area, does not provide this option. I took all the extra configs out to simplify it. If you don't like it, add them back. I would encourage you to download the previous version, but it has somehow disappeared from the "older downloads" area.

Please feel free to modify this - or indeed any - contrib so that it meets the needs of your shop. That's kind of the idea behind open source.

Good luck,
Scott

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.

8 Feb 2007, 11:38 AM
#86
swguy avatar

swguy

Administrator

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

Re: Ask A Question

Woodymon:

See the ongoing discussions on the Links Manager and Links Submit mod support threads. Looks like spammers are having fun submitting using those mods. But I am betting most are trying to get a URL posted (link spam) versus sending email spam.
Woody

Submitting a link which could be seen by every user of a site (if no approval mechanism is used and moderation is lax) is completely different than submitting an email which will only be seen by one person.

Dealing with spam is part of the cost of doing business. If you force people to create an account just to ask you a simple question, you will lose customers. That having been said, if you want to operate in this manner, simply add the code back in.

Scott

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.

10 Feb 2007, 8:53 PM
#87
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

I've narrowed down the problem i've got and hope you can help.

When I echo back the php code that is submitted it is not posting the email address entered. Instead the default text is displayed. Here's the echo result

$name = My Full Name
$email = Enter email address
$enquiry = My Message typed here

IF you login then it will work because it is picking up the email address from the database and not the form. I have looked in tpl_ask_a_question_default.php and can't see anything wrong??

<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" />
10 Feb 2007, 9:18 PM
#88
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

OMG

Finally fixed it,

/lionblade_com/includes/templates/classic/templates/tpl_ask_a_question_default.php

There is a Missing line

</form> to close the form I added at the bottom before the </div> tag and work's now. Are you sure all your's work fine??
11 Feb 2007, 2:09 AM
#89
swguy avatar

swguy

Administrator

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

Re: Ask A Question

Nice catch. I'll post a new version shortly.

Scott

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.

14 Feb 2007, 6:37 PM
#90
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Ask A Question

Where do you control the placement of the ask a question button?

Namsingh,

Is your product page in a table? How did you make the ask a question aligned to with the other 2 buttons?

Thank you

14 Feb 2007, 6:44 PM
#91
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

There is no setting for alignment. I tried really hard to get it done in CSS but images are tricky. So i created a table yes, this is the code used in product_info_display.php

<table align="center"> <tr> <td> <!--bof Additional Product Images --> <?php /** * display the products additional images */ require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?> <!--eof Additional Product Images --> </td> <td> <!--bof ask a question --> <div id="productAskQuestion"> <?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) . '</a>'; ?></div> </a> </div> <!--eof ask a question --> </td> <td> <!--bof Reviews button and count--> <?php if ($flag_show_product_info_reviews == 1) { // if more than 0 reviews, then show reviews button; otherwise, show the "write review" button if ($reviews->fields['count'] > 0 ) { ?> <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div> <p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p> <?php } else { ?> <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div> <br class="clearBoth" /> <?php } } ?> <!--eof Reviews button and count --> </td> <td> <!--bof Tell a Friend button --> <?php if ($flag_show_product_info_tell_a_friend == 1) { ?> <div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div> <?php } ?> <!--eof Tell a Friend button --> </td> </tr> </table>
14 Feb 2007, 8:31 PM
#92
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Ask A Question

Thanks for the quick reply. Mine didn't work out like yours did when using tables so i had to use CSS instead.

Do you know ho to move the main image itself? i.e. from the left to right or center? what is the code for it?

Thank you

22 Feb 2007, 11:08 AM
#94
swguy avatar

swguy

Administrator

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

Re: Ask A Question

The fix discovered by NamSingh has been posted to the downloads area. Thanks, NamSingh!

Scott

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.

22 Mar 2007, 9:00 PM
#95
jenbrink_fuse_net avatar

jenbrink_fuse_net

New Zenner

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

Re: Ask A Question

swguy:

When I did it in my cart, the button did not say, "Ask a Question" (I didn't use the supplied button), so I had to add some link text - but I forgot to delete this when I posted the solution. Thanks to Phid for noticing this - but he has missed one problem line (the extra div). The correct code is

<div id="askQuestion" class="biggerText"> <?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) . '</a>'; ?> </div> <br /> <br class="clearBoth" />

Thanks,
Scott

Ok. I'm slow. Where do I put this code in the file? Under what line?
Thanks:blush:

22 Mar 2007, 10:15 PM
#96
jenbrink_fuse_net avatar

jenbrink_fuse_net

New Zenner

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

Re: Ask A Question

[email protected]:

Ok. I'm slow. Where do I put this code in the file? Under what line?
Thanks:blush:

Wow I am slow today. I guess I should read with my glasses on!
Sorry about the dumb question.

In the Read me file, I missed the word Alternately you can....

:blush:

23 Mar 2007, 6:03 AM
#97
darkwander avatar

darkwander

Zen Follower

Join Date:
May 2005
Location:
Australia
Posts:
321
Plugin Contributions:
0

Re: Ask A Question

For anyone that is also interested, i have added a Sidebox to swguy mod. This allows for a sidebox to pop up when you are viewing a product. It only works when you are looking at Products and will be hidden when you are not..

http://www.delightsoftheflesh.com/zencart/mods/ask.zip

Thanks to swguy for making the original mod.

23 Mar 2007, 4:36 PM
#98
swguy avatar

swguy

Administrator

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

Re: Ask A Question

The Zen Cart forum has a downloads area for sideboxes - you might consider hosting it here instead.

http://www.zen-cart.com/index.php?main_page=index&cPath=40_52

Thanks for your contribution!

Scott

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.

24 Mar 2007, 3:02 AM
#99
darkwander avatar

darkwander

Zen Follower

Join Date:
May 2005
Location:
Australia
Posts:
321
Plugin Contributions:
0

Re: Ask A Question

swguy:

The Zen Cart forum has a downloads area for sideboxes - you might consider hosting it here instead.

http://www.zen-cart.com/index.php?main_page=index&cPath=40_52

Thanks for your contribution!

Scott

I uploaded it there several days ago and it still isnt showing so i decided to post it here as well, until it is uploaded.

28 Mar 2007, 12:49 AM
#100
markov avatar

markov

New Zenner

Join Date:
Sep 2006
Posts:
32
Plugin Contributions:
0

Re: Ask A Question

Hi Scott,
I have a query about your "Ask a Question" Contrib.

If I create a Zen Cart in Showcase mode - ie no commerce - I would like to use your ,"ask a question" contrib to enable prospective clients to email specific questions about any specific product. (now comes the tricky part)


However - when a client fills in a question and then presses send - can the email address details and name be held somehow - so that if the Client then goes to another product and asks another question etc - he/she does not have to re-enter all her details ad nauseum.

Is this possible as is with this contribution? As far as I can see a kind of similar thing that I may be thinking of is happening on this website - http://www.activepromo.com.au