Re: Testimonial Manager Support Thread (for ZC v1.5.x)
Quote:
Originally Posted by
davewest
your most likely thinking you need to add something to languages
Code:
// Testimonial manager meta tags
define('META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS', 'SOME WORDS ');
define('META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER', 'SOME WORDS ');
I did to includes/languages/english/YOUR_TEMPLATE/meta_tags.php
Or none, depending on what common wording you want to have for each post... I use my site name.
Thanks Dave, I didn't really have time to go through it earlier. Should have guessed that really. Long day lol
Re: Testimonial Manager Support Thread (for ZC v1.5.x)
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 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
[/PHP]
my site is www.thedancinghair.com
Re: Testimonial Manager Support Thread (for ZC v1.5.x)
Quote:
Originally Posted by
kevin_remy
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 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
[/PHP]
my site is
www.thedancinghair.com
Yeah, would remove the = from the line:
Code:
return = $db->Insert_ID();
So that it reads:
Code:
return $db->Insert_ID();
Re: Testimonial Manager Support Thread (for ZC v1.5.x)
The file /includes/functions/testimonials.php was changed in the most recent version of this plugin. Previous versions did not have this problem.
Re: Testimonial Manager Support Thread (for ZC v1.5.x)
Quote:
Originally Posted by
mc12345678
Yeah, would remove the = from the line:
Code:
return = $db->Insert_ID();
So that it reads:
Code:
return $db->Insert_ID();
It works. Thank you so much!
Re: Testimonial Manager Support Thread (for ZC v1.5.x)
That was a little mistake from me trying to update it to take out all of the mysql_xx functions, I have resubmitted an updated package to correct it
Re: Testimonial Manager Support Thread (for ZC v1.5.x)
Quote:
Originally Posted by
lankeeyankee
That was a little mistake from me trying to update it to take out all of the mysql_xx functions, I have resubmitted an updated package to correct it
No good deed goes unpunished. :smile:
Re: Testimonial Manager Support Thread (for ZC v1.5.x)
Quote:
Originally Posted by
lankeeyankee
That was a little mistake from me trying to update it to take out all of the mysql_xx functions, I have resubmitted an updated package to correct it
Quote:
Originally Posted by
jeking
No good deed goes unpunished. :smile:
Oops. And I had a part in that too. Sorry. lankeeyankee's update has been published and is available for download
Re: Testimonial Manager Support Thread (for ZC v1.5.x)
That was one line that never made sense to me!
In the $_POST line 39
Code:
$testimonials_id = zen_db_prepare_input($_POST['testimonials_id']);
I could not find it in the template form anywhere!
Then in line 93
Code:
$testimonials_id = zen_db_insert_id();
I can understand why we would get it from the database, just not sure why now! The function is not used anywhere else!
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!
1 Attachment(s)
Re: Testimonial Manager Support Thread (for ZC v1.5.x)
Hey, I still need your help. In all testimonials page, CSS does not work. Check below pic:
Attachment 17115
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;
}