Page 82 of 151 FirstFirst ... 3272808182838492132 ... LastLast
Results 811 to 820 of 1501
  1. #811
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clydejones View Post
    For version 1.5.0 (the most recent)

    1. Here's the section from tpl_testimonials_add_default.php for those two section (lines 94 - 111)

    2. This is the css for testimonials_add.css see no references to background url *.png's
    yes, so i changed the php to this:
    PHP Code:
    <li> 
    <label class="inputLabel" for="testimonials_title"><?php echo (($error == true && $entry_title_error == true) ? TEXT_TESTIMONIALS_TITLE zen_image($template->get_template_dir(RETURN_WARNING_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_WARNING_IMAGERETURN_WARNING_IMAGE_ALTRETURN_WARNING_IMAGE_WIDTHRETURN_WARNING_IMAGE_HEIGHT) : TEXT_TESTIMONIALS_TITLE zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_REQUIRED_IMAGERETURN_REQUIRED_IMAGE_ALTRETURN_REQUIRED_IMAGE_WIDTHRETURN_REQUIRED_IMAGE_HEIGHT)); ?></label> 
    <?php echo (($error == true && $entry_title_error == true) ? zen_draw_input_field('testimonials_title''$testimonials_title''size="25" id="testimonials_title"') . ERROR_TESTIMONIALS_TITLE_REQUIRED zen_draw_input_field('testimonials_title''$testimonials_title''size="25" id="testimonials_title"')); ?> 
    </li> 
    <?php echo TEXT_TESTIMONIALS_DESCRIPTION_INFO ?> 
    <?php if ($error == true && $entry_description_error == true) { ?> 
    <li> 
    <label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION zen_image($template->get_template_dir(RETURN_WARNING_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_WARNING_IMAGERETURN_WARNING_IMAGE_ALTRETURN_WARNING_IMAGE_WIDTHRETURN_WARNING_IMAGE_HEIGHT); ?></label> 
    <?php echo zen_draw_textarea_field('testimonials_html_text''30''7''$testimonials_html_text''id="testimonials_html_text"') . ERROR_TESTIMONIALS_DESCRIPTION_REQUIRED?> 
    </li> 
    <?php } else {  ?> 
    <?php if ($error == true && $entry_description_big_error == true) { ?> 
    <li> 
    <label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION zen_image($template->get_template_dir(RETURN_WARNING_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_WARNING_IMAGERETURN_WARNING_IMAGE_ALTRETURN_WARNING_IMAGE_WIDTHRETURN_WARNING_IMAGE_HEIGHT); ?></label> 
    <?php echo zen_draw_textarea_field('testimonials_html_text''30''7''$testimonials_html_text''id="testimonials_html_text"') . ERROR_TESTIMONIALS_TEXT_MAX_LENGTH?> 
    </li> 
    <?php } else {  ?> 
    <li> 
    <label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_REQUIRED_IMAGERETURN_REQUIRED_IMAGE_ALTRETURN_REQUIRED_IMAGE_WIDTHRETURN_REQUIRED_IMAGE_HEIGHT); ?></label> 
    <?php echo zen_draw_textarea_field('testimonials_html_text''30''7''$testimonials_html_text''id="testimonials_html_text"'); ?> 
    </li> 
    <?php }  

    ?>
    1. Is there a particular reason not to do so? (ie, did i introduce drawbacks?)


    2. ehrm, now i am really puzzled :)
    i am sure i never put it in there so it is probably a left over from an initial version, and i obviously didn't overwrite it with the current one. Anyway, forget, move on...

    thanks,
    Jeroen

  2. #812
    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
    yes, so i changed the php to this:
    PHP Code:
    <li> 
    <label class="inputLabel" for="testimonials_title"><?php echo (($error == true && $entry_title_error == true) ? TEXT_TESTIMONIALS_TITLE zen_image($template->get_template_dir(RETURN_WARNING_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_WARNING_IMAGERETURN_WARNING_IMAGE_ALTRETURN_WARNING_IMAGE_WIDTHRETURN_WARNING_IMAGE_HEIGHT) : TEXT_TESTIMONIALS_TITLE zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_REQUIRED_IMAGERETURN_REQUIRED_IMAGE_ALTRETURN_REQUIRED_IMAGE_WIDTHRETURN_REQUIRED_IMAGE_HEIGHT)); ?></label> 
    <?php echo (($error == true && $entry_title_error == true) ? zen_draw_input_field('testimonials_title''$testimonials_title''size="25" id="testimonials_title"') . ERROR_TESTIMONIALS_TITLE_REQUIRED zen_draw_input_field('testimonials_title''$testimonials_title''size="25" id="testimonials_title"')); ?> 
    </li> 
    <?php echo TEXT_TESTIMONIALS_DESCRIPTION_INFO ?> 
    <?php if ($error == true && $entry_description_error == true) { ?> 
    <li> 
    <label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION zen_image($template->get_template_dir(RETURN_WARNING_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_WARNING_IMAGERETURN_WARNING_IMAGE_ALTRETURN_WARNING_IMAGE_WIDTHRETURN_WARNING_IMAGE_HEIGHT); ?></label> 
    <?php echo zen_draw_textarea_field('testimonials_html_text''30''7''$testimonials_html_text''id="testimonials_html_text"') . ERROR_TESTIMONIALS_DESCRIPTION_REQUIRED?> 
    </li> 
    <?php } else {  ?> 
    <?php if ($error == true && $entry_description_big_error == true) { ?> 
    <li> 
    <label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION zen_image($template->get_template_dir(RETURN_WARNING_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_WARNING_IMAGERETURN_WARNING_IMAGE_ALTRETURN_WARNING_IMAGE_WIDTHRETURN_WARNING_IMAGE_HEIGHT); ?></label> 
    <?php echo zen_draw_textarea_field('testimonials_html_text''30''7''$testimonials_html_text''id="testimonials_html_text"') . ERROR_TESTIMONIALS_TEXT_MAX_LENGTH?> 
    </li> 
    <?php } else {  ?> 
    <li> 
    <label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_REQUIRED_IMAGERETURN_REQUIRED_IMAGE_ALTRETURN_REQUIRED_IMAGE_WIDTHRETURN_REQUIRED_IMAGE_HEIGHT); ?></label> 
    <?php echo zen_draw_textarea_field('testimonials_html_text''30''7''$testimonials_html_text''id="testimonials_html_text"'); ?> 
    </li> 
    <?php }  

    ?>
    1. Is there a particular reason not to do so? (ie, did i introduce drawbacks?)


    2. ehrm, now i am really puzzled :)
    i am sure i never put it in there so it is probably a left over from an initial version, and i obviously didn't overwrite it with the current one. Anyway, forget, move on...

    thanks,
    Jeroen
    1. no, no drawbacks, but you can replace that section with the following: I've added some code to re-display a truncated testimonial if it exceeds the maximum length you've set.
    PHP Code:
    <li>
    <label for="testimonials_title"><?php echo (($error == true && $entry_title_error == true) ? TEXT_TESTIMONIALS_TITLE zen_image($template->get_template_dir(RETURN_WARNING_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_WARNING_IMAGERETURN_WARNING_IMAGE_ALTRETURN_WARNING_IMAGE_WIDTHRETURN_WARNING_IMAGE_HEIGHT) : TEXT_TESTIMONIALS_TITLE zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_REQUIRED_IMAGERETURN_REQUIRED_IMAGE_ALTRETURN_REQUIRED_IMAGE_WIDTHRETURN_REQUIRED_IMAGE_HEIGHT)); ?></label>
    <?php echo (($error == true && $entry_title_error == true) ? zen_draw_input_field('testimonials_title'$testimonials_title'size="25" id="testimonials_title"') . ERROR_TESTIMONIALS_TITLE_REQUIRED zen_draw_input_field('testimonials_title'$testimonials_title'size="25" id="testimonials_title"')); ?>
    </li>
    <?php echo TEXT_TESTIMONIALS_DESCRIPTION_INFO ?>
    <?php 
    if ($error == true && $entry_description_error == true) { ?>
    <?php $testimonials_html_text 
    zen_trunc_string($testimonials_html_text,ENTRY_TESTIMONIALS_TEXT_MIN_LENGTH); ?>
    <li>
    <label for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION zen_image($template->get_template_dir(RETURN_WARNING_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_WARNING_IMAGERETURN_WARNING_IMAGE_ALTRETURN_WARNING_IMAGE_WIDTHRETURN_WARNING_IMAGE_HEIGHT); ?></label>
    <?php echo zen_draw_textarea_field('testimonials_html_text''30''7'$testimonials_html_text'id="testimonials_html_text"') . ERROR_TESTIMONIALS_DESCRIPTION_REQUIRED?>
    </li>
    <?php } else {  ?>
    <?php 
    if ($error == true && $entry_description_big_error == true) { ?>
    <?php $testimonials_html_text 
    zen_trunc_string($testimonials_html_text,ENTRY_TESTIMONIALS_TEXT_MAX_LENGTH); ?>
    <li>
    <label for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION zen_image($template->get_template_dir(RETURN_WARNING_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_WARNING_IMAGERETURN_WARNING_IMAGE_ALTRETURN_WARNING_IMAGE_WIDTHRETURN_WARNING_IMAGE_HEIGHT); ?></label>
    <?php echo zen_draw_textarea_field('testimonials_html_text''30''7'$testimonials_html_text'id="testimonials_html_text"') . ERROR_TESTIMONIALS_TEXT_MAX_LENGTH?>
    </li>
    <?php } else {  ?>
    <li>
    <label for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' RETURN_REQUIRED_IMAGERETURN_REQUIRED_IMAGE_ALTRETURN_REQUIRED_IMAGE_WIDTHRETURN_REQUIRED_IMAGE_HEIGHT); ?></label>
    <?php echo zen_draw_textarea_field('testimonials_html_text''30''7'$testimonials_html_text'id="testimonials_html_text"'); ?>
    </li>
    <?php 
    }
    ?>
    You should use the css I included since the formatting for the form has changed and the new css takes care of that.

  3. #813
    Join Date
    Nov 2006
    Posts
    296
    Plugin Contributions
    2

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clydejones View Post
    1. no, no drawbacks, but you can replace that section with the following: I've added some code to re-display a truncated testimonial if it exceeds the maximum length you've set.

    You should use the css I included since the formatting for the form has changed and the new css takes care of that.
    zen_trunc_string, another function introduced for me, learning every day :)
    Thanks a lot, Clyde, rechecking my css's as we speak...

  4. #814
    Join Date
    Dec 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Anyway to get this mod to display on the center column, main page only>?

  5. #815
    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 nikki72 View Post
    Anyway to get this mod to display on the center column, main page only>?
    No, it is written to use separate pages.

  6. #816
    Join Date
    May 2007
    Location
    SW Florida
    Posts
    1,051
    Plugin Contributions
    2

    Idea or Suggestion Re: Testimonial Manager Support Thread

    Nice Work Clyde "As Usual" Thanks

    I skipped the last 81 pages so go ahead and flame me if this is a rhetorical question.

    Are You planing an add-on that would allow the user to upload an image, possibly use IH2 to resize the image and provide image hover effect, then use lightbox or hoverbox to zoom the image?

    Just a thought.
    JOhn ><>
    Newest Site: ChargerPros - Stuff4Toys

  7. #817
    Join Date
    May 2007
    Location
    SW Florida
    Posts
    1,051
    Plugin Contributions
    2

    Default Re: Testimonial Manager Support Thread

    ooops - Delete

    Thanks Again
    JOhn ><>
    Newest Site: ChargerPros - Stuff4Toys

  8. #818
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,296
    Plugin Contributions
    1

    Default Re: Testimonial Manager Support Thread

    I would like to remove the requirement for a Testimonial Title to be entered by the customer. I can remove the relevant text and form part from the 'add my testimonial' page, but there is obviously more to be done/commented out to stop error messages appearing.

    Any suggestions?

    Cheers

  9. #819
    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 simon1066 View Post
    I would like to remove the requirement for a Testimonial Title to be entered by the customer. I can remove the relevant text and form part from the 'add my testimonial' page, but there is obviously more to be done/commented out to stop error messages appearing.

    Any suggestions?

    Cheers
    Well you could add an option to the Testimonial Manager configuration table to display or not display the title.

    Then add conditional statements to
    includes/modules/pages/testimonial_add/header_php.php
    and
    includes/templates/YOUR_TEMPLATE/templates/tpl_testimonials_add_default.php

  10. #820
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,296
    Plugin Contributions
    1

    Default Re: Testimonial Manager Support Thread

    That's great, thanks for your help Clyde.

 

 

Similar Threads

  1. v150 Testimonial Manager Support Thread (for ZC v1.5.x)
    By countrycharm in forum All Other Contributions/Addons
    Replies: 261
    Last Post: 13 Jan 2025, 11:14 PM
  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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR