Forums / General Questions / Where do I set max word count for reviews

Where do I set max word count for reviews

Started by darkangel on 22 Aug 2013, 10:38 AM · Views: 612

Results 1 to 3 of 3
22 Aug 2013, 10:38 AM
#1
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Where do I set max word count for reviews

I found where to set the minimum amount so that they only want to enter 10 words that is fine but how do I set a max amount.

22 Aug 2013, 1:46 PM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Where do I set max word count for reviews

DarkAngel:

I found where to set the minimum amount so that they only want to enter 10 words that is fine but how do I set a max amount.

I've looked at the code, and I'm not seeing anything anywhere where a maximum limit is being checked. This means the current max will be the size of the database record (~64kb).

If you wish to add a check to limit for some other maximum it seems that the file you'll need to edit to add the check is
/includes/modules/pages/product_reviews_write/jscript_main.php

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

22 Aug 2013, 8:18 PM
#3
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Where do I set max word count for reviews

Thanks, I sort of thought so but thanks for confirming.