Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk
Hi, I like this plugin. And I installed it. Everything works excepting adding Testimonial.
When I click" add a testimonial", it redirects to "/index.php?main_page=testimonials_add" page. But this page is blank. I checked my logs file. It reads:
PHP Parse error: syntax error, unexpected '=' in /home8/simonhai/public_html/includes/functions/testimonials.php on line 14
Below is the testimonial file
[/PHP]PHP Code:
[PHP]<?php
/**
* Testimonials Manager
*
* @package Template System
* @copyright 2007 Clyde Jones
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: Testimonials_Manager.php v1.5.5e
*/
function zen_db_insert_id() {
global $db;
return = $db->Insert_ID();
}
//EOF
my site is www.thedancinghair.com
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
The file /includes/functions/testimonials.php was changed in the most recent version of this plugin. Previous versions did not have this problem.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
That was one line that never made sense to me!
In the $_POST line 39I could not find it in the template form anywhere!Code:$testimonials_id = zen_db_prepare_input($_POST['testimonials_id']);
Then in line 93I can understand why we would get it from the database, just not sure why now! The function is not used anywhere else!Code:$testimonials_id = zen_db_insert_id();
I've commented it out and did away with the function without any issues for some years now..
Just wondering why its in the POSTing side of the form. The Function exists in Admin and works there... Also thinking maybe there was some mixing of the admin code with the catalog side!
Dave
Always forward thinking... Lost my mind!
Hey, I still need your help. In all testimonials page, CSS does not work. Check below pic:
I added below codes to my template stylesheet.css
PHP Code:
.testimonial {
color: #000;
padding: 0 5px 5px 5px;
text-align:left;
}
.testimonial p {
margin: 0; padding: 5px 0;
}
.testimonial span {
float:right;
}
.testimonialImage {
margin: 0;
padding: 0;
text-align: center;
}
Bookmarks