Page 1 of 2 12 LastLast
Results 1 to 10 of 1501

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    52
    Plugin Contributions
    0

    Default Re: Testimonial Manager 1.3.7

    Clyde,

    Thanks for a great mod. Two quick (related questions).

    Where would I go to set the e-mail field as optional (on the client side) and the country field as required (again, on the client side)?

    Thanks :-)

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

    Default Re: Testimonial Manager 1.3.7

    Quote Originally Posted by Brian Flanagan View Post
    Clyde,

    Thanks for a great mod. Two quick (related questions).

    Where would I go to set the e-mail field as optional (on the client side) and the country field as required (again, on the client side)?

    Thanks :-)
    You'll have to change the error handling code in includes/modules/pages/testimonials_add/header_php.php

    And

    You'll have to change the code in the submission form
    includes/templates/YOUR_TEMPLATE/templates/tpl_testimonials_add_default.php

  3. #3
    Join Date
    Dec 2007
    Posts
    52
    Plugin Contributions
    0

    Default Re: Testimonial Manager 1.3.7

    Brilliant - that worked! All changed. The only other minor thing that I'd like to do is change the order of the fields (i.e. have country and e-mail swapped around now that country is required and e-mail is optional). Had a quick play but couldn't seem to get it. Can you point me in the direction of the section of code that needs to be changed? Thanks!

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

    Default Re: Testimonial Manager 1.3.7

    Quote Originally Posted by Brian Flanagan View Post
    Brilliant - that worked! All changed. The only other minor thing that I'd like to do is change the order of the fields (i.e. have country and e-mail swapped around now that country is required and e-mail is optional). Had a quick play but couldn't seem to get it. Can you point me in the direction of the section of code that needs to be changed? Thanks!
    All the form fields are located in:

    includes/templates/YOUR_TEMPLATE/templates/tpl_testimonials_add_default.php

    Just move them where you want them

  5. #5
    Join Date
    Dec 2007
    Posts
    52
    Plugin Contributions
    0

    Default Re: Testimonial Manager 1.3.7

    Thanks again! I now have this setup just how I want it! Thanks heaps :-)

  6. #6
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Testimonial Manager 1.3.7

    I find that I do not need most of the definitions in testimonials_add.css except for:
    Code:
    option {background:#fff; color:#000;}
    optgroup {background:#fff; color:#000; font-family:verdana, arial, helvetica, sans-serif;}
    optgroup option {background:#fff; color:#000;}
    which I am not sure where they are utilized. If I determine that I do not need the entire testimonials_add.css file, can I simply not upload it to the server? Thanks.

  7. #7
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: Testimonial Manager 1.3.7

    BTW, when editing a testimonial that has an image previously added, the image gets deleted even when the Delete Image's radio button was set to 'No'. Am I missing something?

  8. #8
    Join Date
    Sep 2006
    Posts
    40
    Plugin Contributions
    0

    Default Re: Testimonial Manager 1.3.7

    Based on the following:

    Quote Originally Posted by clydejones View Post
    You'll have to change the error handling code in includes/modules/pages/testimonials_add/header_php.php

    And

    You'll have to change the code in the submission form
    includes/templates/YOUR_TEMPLATE/templates/tpl_testimonials_add_default.php
    I'm trying to modify the code so that the Testimonial Title doesn't show up when someone adds their testimonial. I changed the ~includes/modules/pages/testimonials_add/header_php.php by commenting out:
    Code:
    $error = false;
       //   if ($testimonials_title == '') {
       //     $error = true;
       //     $messageStack->add('new_testimonial', ERROR_TESTIMONIALS_TITLE_REQUIRED);
      //    }
    then I changed the ~includes/templates/YOUR_TEMPLATE/templates/tpl_testimonials_add_default.php by commenting out the following:
    Code:
    <fieldset>
    <!--<label class="inputLabel" for="testimonials_title"><?php echo TEXT_TESTIMONIALS_TITLE; ?></label>
    <?php echo zen_draw_input_field('testimonials_title', '', 'size="18" id="testimonials_title"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />-->
    
    <label class="inputLabel" for="testimonials_name"><?php echo TEXT_TESTIMONIALS_NAME; ?></label>
    <?php echo zen_draw_input_field('testimonials_name', $name, 'size="18" id="testimonials_name"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />
    Now, everything works fine for customers to add testimonials, but I can't approve anything. When I go into the Admin-->Tools-->Testimonials Manager I get an error at the top of Zen Cart stating:

    Error: Testimonials title required.
    This won't allow it to show up. Any help would be appreciated.

    Cheers

  9. #9
    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 Happyworker View Post
    Based on the following:



    I'm trying to modify the code so that the Testimonial Title doesn't show up when someone adds their testimonial. I changed the ~includes/modules/pages/testimonials_add/header_php.php by commenting out:
    Code:
    $error = false;
       //   if ($testimonials_title == '') {
       //     $error = true;
       //     $messageStack->add('new_testimonial', ERROR_TESTIMONIALS_TITLE_REQUIRED);
      //    }
    then I changed the ~includes/templates/YOUR_TEMPLATE/templates/tpl_testimonials_add_default.php by commenting out the following:
    Code:
    <fieldset>
    <!--<label class="inputLabel" for="testimonials_title"><?php echo TEXT_TESTIMONIALS_TITLE; ?></label>
    <?php echo zen_draw_input_field('testimonials_title', '', 'size="18" id="testimonials_title"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />-->
    
    <label class="inputLabel" for="testimonials_name"><?php echo TEXT_TESTIMONIALS_NAME; ?></label>
    <?php echo zen_draw_input_field('testimonials_name', $name, 'size="18" id="testimonials_name"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />
    Now, everything works fine for customers to add testimonials, but I can't approve anything. When I go into the Admin-->Tools-->Testimonials Manager I get an error at the top of Zen Cart stating:

    This won't allow it to show up. Any help would be appreciated.

    Cheers
    admin/testimonial_manager.php

    look for this section of code

    Code:
            if (empty($testimonials_title)) {
              $messageStack->add(ERROR_PAGE_TITLE_REQUIRED, 'error');
              $page_error = true;
            }

  10. #10
    Join Date
    Sep 2006
    Posts
    40
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Perfect, thanks :)

 

 
Page 1 of 2 12 LastLast

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