Results 1 to 10 of 1501

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Testimonial Manager Support Thread

    Hello Clyde,
    Sorry if my question is allready in here somewhere, i did try reading some of the posts, but digging through 70 pages of comments is not gonna work for me so i'll just shoot.

    First off: thanks for the contribution, great stuff.

    1. I have a concern abouth the maximum input, is there any maximum to what a user (or script) can input in the text field?
    There is probably a maximum to what php can intake but i don't know about that. Is there a way to limit the allowed input to say 1000 chars?

    2. Is it possible to do some sanitation on the input and if not matched just drop the message. (just to rule out james ######## and his friends) I would think off a setting that could be enabled in the admin that if the number of words including www or http:// exceeds the amount of 5 it would either silently discard the message and not even enter it in the database, or produce an error message that there are too many links in it.

    I would take it no well meaning testimonials person would put that many external links in there.

    Thanks,
    Jeroen

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by nagelkruid View Post
    Hello Clyde,
    Sorry if my question is allready in here somewhere, i did try reading some of the posts, but digging through 70 pages of comments is not gonna work for me so i'll just shoot.

    First off: thanks for the contribution, great stuff.

    1. I have a concern abouth the maximum input, is there any maximum to what a user (or script) can input in the text field?
    There is probably a maximum to what php can intake but i don't know about that. Is there a way to limit the allowed input to say 1000 chars?

    2. Is it possible to do some sanitation on the input and if not matched just drop the message. (just to rule out james ######## and his friends) I would think off a setting that could be enabled in the admin that if the number of words including www or http:// exceeds the amount of 5 it would either silently discard the message and not even enter it in the database, or produce an error message that there are too many links in it.

    I would take it no well meaning testimonials person would put that many external links in there.

    Thanks,
    Jeroen
    I'll work on putting something together

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by nagelkruid View Post
    Hello Clyde,


    1. I have a concern abouth the maximum input, is there any maximum to what a user (or script) can input in the text field?
    There is probably a maximum to what php can intake but i don't know about that. Is there a way to limit the allowed input to say 1000 chars?


    Thanks,
    Jeroen
    This fix should take care of this issue.

    Unzip the file, run the SQL statement: (admin -> tools -> install sql patches)
    Copy-and-paste the code into the query field and press 'Send.

    Rename the YOUR_TEMPLATE folder to match the name of your custom template.

    Upload the entire includes folder to your server.

    The fix adds an option in admin -> configuration -> testimonial manager so that you can specify the max length of the testimonial text. by default it is set at 1000.

    It also adds error handling to warn the user if the testimonial text exceeds this limit.
    Attachment 4683
    Last edited by clydejones; 31 Dec 2009 at 02:32 AM.

  4. #4
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clydejones View Post
    This fix should take care of this issue.
    Excellent Clyde, thank you very much.

    Great contribution

  5. #5
    Join Date
    Oct 2008
    Location
    Midwest USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Hi Clyde,

    First off thanks for making this mod, it saved me a lot of work!

    I have scanned this thread and can't really find what I'm looking for, but since it's 50 plus pages long please pardon me if this is repetitious. I have a couple of questions/suggestions...

    1) Can you point me in the right direction to make changes so required fields are optional? (my customer only wants the Name field and testimonial text required)

    2) Couldn't you fill in the email address from the user's database entry if they are logged in?

    My customer is super picky about the customer having to fill things in, he wants to make it as easy as possible for his customers. He has elected to only let logged in customers submit their own testimonials and we are putting a statement up that a customer can optionally email their testimonial directly to the company and the company will add the testimonial for them (this is how they do it now.)

    He wants it so that if a user does add a testimonial all they absolutely need to add is their name and a few words in the testimonials text box.

    Additional comments I have are that I removed the use of blockquote from your all_testimonials page and replaced it with a div that can be styled, this was more to my clients liking. Also adding a class for the fieldsets and legends may prove helpful as well since you are already instructing them to add to the sytlesheet. (please don't take this as complaining, it's a great mod... these are just suggestions that may make it more flexible for advanced users,)

    Thanks again,

    Gary777

  6. #6
    Join Date
    Oct 2008
    Location
    Midwest USA
    Posts
    71
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Hi Again Clyde,


    I did a bit more digging and found the solution to turning off the required fields (such as email )in this thread in case anyone searchs how to turn off email (no results were returned):
    http://www.zen-cart.com/forum/showpo...&postcount=529

    I also came across the additional page specific style sheets and see how you are handling them but don't remember seeing any references in the readme file, you might want to add that in the future.

    I also noticed that when I logged in and added a comment my email field was filled in, but I don't know if it was Firefox filling in or your app??? Can you confirm?

    After playing around a bit more and thinking more on it it dawns on me that you can auto fill everything but the testimonial title and text if the user is logged in... I am still learning the structure of Zen Cart and this is just beyond my reach at this time (and the amount of time I can afford to devote to it right now) but if you'd be kind enough to point me in the right direction I'll take a stab at it and send the results to you (with detailed steps) so you can include it in the next release... If you have time of course.

    Thanks again Clyde, this is great!

    Gary777

  7. #7
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by Gary777 View Post
    Hi Again Clyde,


    I also noticed that when I logged in and added a comment my email field was filled in, but I don't know if it was Firefox filling in or your app??? Can you confirm?

    After playing around a bit more and thinking more on it it dawns on me that you can auto fill everything but the testimonial title and text if the user is logged in... I am still learning the structure of Zen Cart and this is just beyond my reach at this time (and the amount of time I can afford to devote to it right now) but if you'd be kind enough to point me in the right direction I'll take a stab at it and send the results to you (with detailed steps) so you can include it in the next release... If you have time of course.

    Thanks again Clyde, this is great!

    Gary777
    Yes, this is the default behavior for Testimonial Manager.
    If the user is logged in the Name and E-Mail fields will be filled in.
    Since the other fields are optional and not everyone would use them, they are not set up to be filled in automatically.

 

 

Similar Threads

  1. v150 Testimonial Manager Support Thread (for ZC v1.5.x)
    By countrycharm in forum All Other Contributions/Addons
    Replies: 262
    Last Post: 26 Jun 2025, 10:42 AM
  2. Link Manager 3.0 Support Thread
    By clydejones in forum Addon Sideboxes
    Replies: 1987
    Last Post: 6 Aug 2021, 02:56 PM
  3. Poll Manager Support Thread
    By boudewijn in forum Addon Sideboxes
    Replies: 148
    Last Post: 27 Jan 2016, 09:53 AM
  4. Empty Cart Manager [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 26 May 2010, 10:26 AM
  5. [Support Thread] Simple Video Manager
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 1 Nov 2008, 02:44 PM

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