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

customers testimonials 6.0

This is a discussion on customers testimonials 6.0 within the Custom Mods and Hacks forums, part of the osCmax V2.5 Forums category; Hi I installed the customers testimonials v6.0, everything works, but when client click in leave a testimonial, show just a ...

      
  1. #1
    Member
    Join Date
    Dec 2009
    Posts
    37
    Rep Power
    0


    Default customers testimonials 6.0

    Hi

    I installed the customers testimonials v6.0, everything works, but when client click in leave a testimonial, show just a blank page.

    I think this is because the BTS, but i dont know change to work .

    I try a lot but not success.

    Anyone has the contribuition installed in OSCMAX 2.5, and send the files changed?

  2. #2
    Member
    Join Date
    Dec 2009
    Posts
    37
    Rep Power
    0


    Default Re: customers testimonials 6.0

    Quote Originally Posted by edura View Post
    Hi

    I installed the customers testimonials v6.0, everything works, but when client click in leave a testimonial, show just a blank page.

    I think this is because the BTS, but i dont know change to work .

    I try a lot but not success.

    Anyone has the contribuition installed in OSCMAX 2.5, and send the files changed?
    help... with this.

  3. #3
    Member
    Join Date
    Aug 2011
    Posts
    48
    Rep Power
    0


    Default Re: customers testimonials 6.0

    Quote Originally Posted by edura View Post
    help... with this.
    It's not as slick and I do not know what this contribution but the infamous KISS (Keep It Simple Stupid) is what I have done on my website.

    I have a testimonial page I update manually and at the top and a "submit a testimonial" button which the user can email me.

    There may be a way to add a "testimonial" in drop down menu of contact us page which you can ask customers to just email it to you then?

    I'm no php expert so this is just my two cents.

  4. #4
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,403
    Rep Power
    61


    1 out of 1 members found this post helpful.

    Default Re: customers testimonials 6.0

    White page = php crash.

    Turn on error messaging (instructions in the wiki) and report error next to fatal error here.

    Regards.
    pgmarshall
    _______________________________

  5. #5
    Member
    Join Date
    Dec 2009
    Posts
    37
    Rep Power
    0


    Default Re: customers testimonials 6.0

    I search but i dont know how do this.
    send the link or how do this.

  6. #6
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,403
    Rep Power
    61


    Default Re: customers testimonials 6.0

    I have a problem and want to see error messages for my store - http://wiki.oscdox.com/v2.5/faq
    pgmarshall
    _______________________________

  7. #7
    Member
    Join Date
    Dec 2009
    Posts
    37
    Rep Power
    0


    Default Re: customers testimonials 6.0

    Warning: require(includes/header.php) [function.require]: failed to open stream: No such file or directory in /home/edura/public_html/loja/customer_testimonials.php on line 35

    Fatal error: require() [function.require]: Failed opening required 'includes/header.php' (include_path='.:/usr/lib/php') in /home/edura/public_html/loja/customer_testimonials.php on line 35

    php file:

    PHP Code:
    <?php
     
    /*
      $Id: customer_testimonials.php 10/17/2008 Exp $
      Released under the GNU General Public License
    */

      
    require('includes/application_top.php');

    /*** Begin Customer Testimonials v6 ***/
    // Redirect user to login page if any of the following are true:
    // 1) Admin has disabled Customer Testimonials mod; or 
    // 2) only registered users permitted to view testimonials and user is not logged in

      
    if ( (TESTIMONIAL_ACTIVE != 'Yes') || ((TESTIMONIAL_REGISTERED_VIEW == "Registered Users Only") && (!tep_session_is_registered('customer_id'))) ) 
      {
              
    $navigation->set_snapshot();
        
    tep_redirect(tep_href_link(FILENAME_LOGIN'''SSL'));
      }
    /*** End Customer Testimonials v6 ***/ 

      
    require(DIR_WS_LANGUAGES $language '/' FILENAME_CUSTOMER_TESTIMONIALS);

      
    $breadcrumb->add(NAVBAR_TITLEtep_href_link(FILENAME_CUSTOMER_TESTIMONIALS));
    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>">
    <title><?php echo TITLE?></title>
    <base href="<?php echo (getenv('HTTPS') == 'on' HTTPS_SERVER HTTP_SERVER) . DIR_WS_CATALOG?>">
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES 'header.php'); ?>
    <!-- header_eof //-->
    <!-- body //-->
    <table border="0" width="100%" cellspacing="3" cellpadding="3">
      <tr>
        <td width="<?php echo BOX_WIDTH?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH?>" cellspacing="0" cellpadding="2">
    <!-- left_navigation //-->
    <?php require(DIR_WS_INCLUDES 'column_left.php'); ?>
    <!-- left_navigation_eof //-->
        </table></td>
    <!-- body_text //-->
        <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td class="pageHeading" colspan="2"><?php echo HEADING_TITLE?></td>
              </tr>
            </table></td>
          </tr>
    <!--      <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?></td>
          </tr> //-->
          <tr>
            <td><br><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td class="main">
                <?php
                
    if ($testimonial_id != '') {
                    
    $testimonial_id ct_sanitise($testimonial_id);
                    
    $full_testimonial tep_db_query("select * FROM " TABLE_CUSTOMER_TESTIMONIALS " WHERE testimonials_id = " . (int)$testimonial_id);
                }
                else {
                    
    $full_testimonial tep_db_query("select * FROM " TABLE_CUSTOMER_TESTIMONIALS " WHERE status = '1' order by rand()");
                }
                while (
    $testimonials tep_db_fetch_array($full_testimonial)) {
                    
    $testimonial_array[] = array('id' => $testimonials['testimonials_id'],
                                                 
    'author' => $testimonials['testimonials_name'],
                                                 
    'location' => $testimonials['testimonials_location'],
                                                 
    'title' => $testimonials['testimonials_title'],
                                                 
    'testimonial' => $testimonials['testimonials_html_text'],
                                                 
    'word_count' => tep_word_count($testimonials['testimonials_html_text'], ' '),
                                                 
    'image' => $testimonials['testimonial_image'],
                                                 
    'date_added' => $testimonials['date_added'],
                                                 
    'email' => $testimonials['testimonials_email']);
                    }
                require(
    DIR_WS_MODULES  'customer_testimonials.php');
                
    ?>
                </td>
              </tr>
            </table></td>
          </tr>
           <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif''1''10'); ?></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif''1''10'); ?></td>
          </tr>
          <tr>
            <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
              <tr class="infoBoxContents">
                <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif''10''1'); ?></td>

    <?php
    /*** Begin Customer Testimonials v6 ***/ 
    // Check to see if user is allowed to write testimonials
    // If not, do not display the button link to the write testimonials page
    // Check 1) writing testimonials by customers is not disabled; and 
    // 2) admin set registered users only and user not logged in; or
    // 3) admin set all users may write testimonials
      
    if ((TESTIMONIAL_REGISTERED_WRITE != "Disabled") && ((TESTIMONIAL_REGISTERED_WRITE == "All Users") || ((TESTIMONIAL_REGISTERED_WRITE == "Registered Users Only") && (tep_session_is_registered('customer_id'))))) {
    ?>
                    <td align="left"><?php echo '<a href="' tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS_WRITE) . '">' tep_image_button('button_write_testimonial.gif'IMAGE_BUTTON_WRITE) . '</a>'?></td>
    <?php
        
    }
    /*** End Customer Testimonials v6 ***/ 
    ?>

                  <td align="right"><?php echo '<a href="' tep_href_link(FILENAME_DEFAULT) . '">' tep_image_button('button_continue.gif'IMAGE_BUTTON_CONTINUE) . '</a>'?></td>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif''10''1'); ?></td>
                  </tr>
            </table></td>
          </tr>
        </table>
        </td>
          </tr>
        </table>
    <!-- body_text_eof //-->
        <td width="<?php echo BOX_WIDTH?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH?>" cellspacing="0" cellpadding="2">
    <!-- right_navigation //-->
    <?php require(DIR_WS_INCLUDES 'column_right.php'); ?>
    <!-- right_navigation_eof //-->
        </table></td>
      </tr>
    </table>
    <!-- body_eof //-->

    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES 'footer.php'); ?>
    <!-- footer_eof //-->

    </body>
    </html>
    <?php require(DIR_WS_INCLUDES 'application_bottom.php');
    function 
    ct_sanitise($vartosanitise) {
    $vartosanitise preg_replace("/[^0-9]/i"""$vartosanitise);
    return 
    $vartosanitise;
    }
    ?>
    I think is because not the format for oscmax, just in oscommerce, BTS.

  8. #8
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,403
    Rep Power
    61


    Default Re: customers testimonials 6.0

    Correct!

    Now you just need to convert the file to use BTS - which is basically copy and paste into 2 files - this may help you - http://wiki.oscdox.com/bts_docs#part..._bts_compliant

    Regards.
    pgmarshall
    _______________________________

  9. #9
    Member
    Join Date
    Dec 2009
    Posts
    37
    Rep Power
    0


    Default Re: customers testimonials 6.0

    ok

    i need a help. is the one contribuition i dont can install in my store.

    http://www.colyseum.com/loja/custome...stimonial_id=1

    Warning: require(templates/fallback/content/CUSTOMER_TESTIMONIALS.tpl.php) [function.require]: failed to open stream: No such file or directory in /home/edura/public_html/loja/templates/superfishcomp/main_page.tpl.php(25) : eval()'d code on line 1

    Fatal error: require() [function.require]: Failed opening required 'templates/fallback/content/CUSTOMER_TESTIMONIALS.tpl.php' (include_path='.:/usr/lib/php') in /home/edura/public_html/loja/templates/superfishcomp/main_page.tpl.php(25) : eval()'d code on line 1

    i get the code, but the other part, like HTML, i dont know how make this.

  10. #10
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,403
    Rep Power
    61


    Default Re: customers testimonials 6.0

    Have you added CUSTOMER_TESTIMONIALS to your filename.php file to tell the system what the filename is?
    pgmarshall
    _______________________________

Page 1 of 2 12 LastLast

Similar Threads

  1. Customers seeing other customers carts/details
    By michelle in forum osCommerce 2.2 Discussion
    Replies: 2
    Last Post: 01-29-2010, 07:29 AM
  2. Customer Testimonials 3
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-23-2009, 08:00 AM
  3. Customer Testimonials 3
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 11-19-2008, 05:00 PM
  4. Customer Testimonials 3
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-12-2008, 06:31 PM
  5. Customer Testimonials v1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-10-2007, 06:22 AM

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
  •