Zen Cart Logo
Forums / All Other Contributions/Addons / Testimonial Manager Support Thread (for ZC v1.5.x)

Testimonial Manager Support Thread (for ZC v1.5.x)

Views: 65,839

Results 81 to 100 of 263
4 Dec 2013, 10:59 PM
#81
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Testimonial Manager Support Thread (for ZC v1.5.x)

Yvonne DeBandi:

Hi, I'm using 1.5 and love testimonial manager. Having a strange issue where things go haywire on all testimonial display when I add testimonial #5.

Admittedly I know just enough about zen to be dangerous and I did add a product field and a switch case request to allow links to a specific product's testimonials. Is it because of my hack or has anyone run into this before?

And yes...I know the styling should all be in my css files, but my server is caching the css results and I can find no quick relief, so please pardon the inline styling here. :-/

Appreciate any help or guidance. Thanks so much!

<?php /** * Testimonials Manager * * @package Template System * @copyright 2007 Clyde Jones * @copyright Portions Copyright 2003-2007 Zen Cart Development Team * @license [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0 * @version $Id: Testimonials_Manager.php v1.5.4 */ ?> <style>

blockquote {margin:0 !important;padding:0 !important;
-webkit-border-radius: 20px; -mozborder-radius: 20px; border-radius: 20px;
box-shadow: 5px 5px 5px #007;;
height:1%;width:95%;
background-color:#ffffff;}

blockquote div {padding:38px 56px;height:1%;margin-left:auto; margin-right:auto;}
</style>

<div class="centerColumn" id="testimonialDefault" style="background-image:url(includes/templates/classic/images/background-wallpaper2.jpg); box-shadow: 5px 5px 5px #007;"> <? switch($_REQUEST['req']){ case "read": ?> <h3> All Testimonials for:</h3> <? $query = mysql_query("SELECT * FROM zen_testimonials_manager WHERE testimonials_pid='{$_GET['testimonials_pid']}'");?> <? $row = mysql_fetch_assoc($query); $pid = $row['testimonials_pid']; {?> <div style="width:250px; height:250px; box-shadow:5px 5px 5px #000080; text-align:center; margin-right:auto; margin-left:auto; border-radius:25px;background-image:url(images/products/<? echo $pid?>.jpg); background-size: 250px 250px;"></div><br /> <? echo "<a href='index.php?main_page=product_info&products_id=".$pid."'>"; echo "<p><br />Click here for product details.</p></a>";?> <?php } ?> <br class="clearBoth" /> <? $query = mysql_query("SELECT * FROM zen_testimonials_manager WHERE testimonials_pid='{$_GET['testimonials_pid']}'");?> <? while($row = mysql_fetch_assoc($query)){ $text = $row['testimonials_html_text']; $pid = $row['testimonials_pid']; $id = $row['products_id']; $title = $row['testimonials_title']; $author = $row['testimonials_name']; ?> <blockquote> <div class="testimonial"> <h3><? echo $title ?></h3> <p>"<?php echo $text?>"</p> <p align="right"><? echo $author?></p> </div> </blockquote><br /><br /> <br class="clearBoth" /> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> <div class="buttonRow forward"><a href="<?php echo zen_href_link(FILENAME_TESTIMONIALS_ADD, '', 'SSL'); ?>"><?php echo zen_image_button(BUTTON_IMAGE_TESTIMONIALS, BUTTON_TESTIMONIALS_ADD_ALT); ?></a></div> <br class="clearBoth" /> </div><? } break; ?> <? default: ?> <span style="color:#fff"><?php echo HEADING_TITLE; ?></span> <?php // $testimonials_query_raw = "select * from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = '" . (int)$_SESSION['languages_id'] . "' order by date_added DESC, testimonials_title"; // $testimonials_split = new splitPageResults($testimonials_query_raw, MAX_DISPLAY_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS);

if (($testimonials_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3'))) {
?>

<div id="productsListingTopNumber" class="navSplitPagesResult back"><?php echo $testimonials_split->display_count(TEXT_DISPLAY_NUMBER_OF_TESTIMONIALS_MANAGER_ITEMS); ?></div> <div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $testimonials_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></div> <br /> <br class="clearBoth" /> <hr /> <?php } // split page ?> <?php $testimonials = $db->Execute($testimonials_split->sql_query); while (!$testimonials->EOF) { $date_published = $testimonials->fields['date_added']; ?> <blockquote> <div class="testimonial"> <table width="100%" border="0" cellpadding="5"> <tr> <td width="44%"><p class="back"><b><a href="<?php echo zen_href_link(FILENAME_TESTIMONIALS_MANAGER, 'testimonials_id=' . $testimonials->fields['testimonials_id']);?>"><?php echo $testimonials->fields['testimonials_title'];?></a></b></p> </td> <td width="56%"><p class="forward"><?php if (DISPLAY_TESTIMONIALS_DATE_PUBLISHED == 'true') { echo zen_date_long($date_published); } ?></p><br class="clearBoth" /></td> </tr> <tr> <td><?php if (($testimonials->fields[testimonials_image]) != ('')) { $testimonials_image = zen_image(DIR_WS_IMAGES . $testimonials->fields[testimonials_image], $testimonials->fields['testimonials_title'], TESTIMONIAL_IMAGE_WIDTH, TESTIMONIAL_IMAGE_HEIGHT); ?><?php /*if (($testimonials->fields['testimonials_url']) == ('http://') or ($testimonials->fields['testimonials_url']) == ('')) {

echo $testimonials_image;
} else {
echo '<a href="' . $testimonials->fields['testimonials_url'] . '" target="_blank">' . $testimonials_image . '</a>';
}*/

?>
<a href="index.php?main_page=product_info&products_id=<? echo $testimonials->fields['testimonials_pid']?>"><img src="images/products/<? echo ($testimonials->fields['testimonials_pid'])?>.jpg" width="250" height="250" alt="Mark Cahill Ministries" /></a><br /><? if ($testimonials->fields['testimonials_pid'] !=0){ echo "<a href='index.php?main_page=product_info&products_id=".nl2br($testimonials->fields['testimonials_pid']."'>"); ?> </p>

<p><br /> Click here for product details.</p> </a> <? } ?></td> <td style="font-size:16px; font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif">"<?php echo nl2br($testimonials->fields['testimonials_html_text']);?>" <p align="right"> <span class="buttonRow back" style="text-align:right; font-size:11px;"><?php echo TESTIMONIALS_BY; ?> <?php echo $testimonials->fields[testimonials_name] . $testimonial_info; ?></span></p></td> </tr> <tr> <td colspan="2"></td> </tr> </table> <?php } ?> </div> </blockquote> <?php $testimonial_info = ''; if ( (!empty($testimonials->fields[testimonials_city])) and (!empty($testimonials->fields[testimonials_country])) ) { $testimonial_info .= NAME_SEPARATOR . $testimonials->fields[testimonials_city] . CITY_STATE_SEPARATOR . $testimonials->fields[testimonials_country]; } if ( (!empty($testimonials->fields[testimonials_city])) and (empty($testimonials->fields[testimonials_country])) ) { $testimonial_info .= NAME_SEPARATOR . $testimonials->fields[testimonials_city]; } if ( (empty($testimonials->fields[testimonials_city])) and (!empty($testimonials->fields[testimonials_country])) ) { $testimonial_info .= NAME_SEPARATOR . $testimonials->fields[testimonials_country]; } if (!empty($testimonials->fields[testimonials_company])) { $testimonial_info .= NAME_SEPARATOR . $testimonials->fields[testimonials_company]; } ?> <br class="clearBoth" /> <br /> <hr /> <?php $testimonials->MoveNext(); } ?> <?php if (($testimonials_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <div id="productsListingBottomNumber" class="navSplitPagesResult back"><?php echo $testimonials_split->display_count(TEXT_DISPLAY_NUMBER_OF_TESTIMONIALS_MANAGER_ITEMS); ?></div> <div id="productsListingListingBottomLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $testimonials_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></div> <?php } // split page ?> <br class="clearBoth" /> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> <div class="buttonRow forward"><a href="<?php echo zen_href_link(FILENAME_TESTIMONIALS_ADD, '', 'SSL'); ?>"><?php echo zen_image_button(BUTTON_IMAGE_TESTIMONIALS, BUTTON_TESTIMONIALS_ADD_ALT); ?></a></div> <br class="clearBoth" /> </div><? } ?> ``` > **mc12345678:** > > don't know what you mean by going haywire

Yep.. I have no IDEA what is meant by "things go haywire on all testimonial display when I add testimonial #5".. Looking at this code doesn't help..(it is NOT enclosed in proper code tags to make reading it easier -- took the liberty of doing it in quoting the post..)

What WOULD help is to see an example of where "things go haywire on all testimonial display when I add testimonial #5" so we can see what the heck that statement means.. (or at LEAST some narrative detail included in the post about what "things go haywire on all testimonial display when I add testimonial #5" means) Then it would help if Yvonne DeBandi could let us know what specific changes she made in the module code (yes I know you posted your code, but don't make us fish through the WHOLE file just to find your changes please :smile:.. make it easy on folks..)

10 Dec 2013, 12:17 AM
#82
yvonne_debandi avatar

yvonne_debandi

New Zenner

Join Date:
Nov 2013
Location:
United States
Posts:
7
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

Hey, thanks for responding. Of course, will be happy to provide details. First time posting and wasn't sure what to expect.

Here is the link to see what is going haywire:
http://a2zsmartgroup.com/mcministries/welcome/index.php?main_page=display_all_testimonials&page=1

If you navigate to page 2 of testimonials you will see that everything then resolves itself and the layout is fine.

As I mentioned, I added a switch case request so that I can retrieve a page that pulls only the testimonials for a specific product.
You can see this here:
http://a2zsmartgroup.com/mcministries/welcome/index.php?main_page=display_all_testimonials?&req=read&testimonials_pid=3

The layout is fine on all counts until I approve testimonial #5.

The code I added is the third block of code down beginning with the SWITCH CASE REQ and ending at the default/break.

<? switch($_REQUEST['req']){ case "read": ?> <h3> All Testimonials for:</h3> <? $query = mysql_query("SELECT * FROM zen_testimonials_manager WHERE testimonials_pid='{$_GET['testimonials_pid']}'");?> <? $row = mysql_fetch_assoc($query); $pid = $row['testimonials_pid']; {?> <div style="width:250px; height:250px; box-shadow:5px 5px 5px #000080; text-align:center; margin-right:auto; margin-left:auto; border-radius:25px;background-image:url(images/products/<? echo $pid?>.jpg); background-size: 250px 250px;"></div><br /> <? echo "<a href='index.php?main_page=product_info&products_id=".$pid."'>"; echo "<p><br />Click here for product details.</p></a>";?> <?php } ?> <br class="clearBoth" /> <? $query = mysql_query("SELECT * FROM zen_testimonials_manager WHERE testimonials_pid='{$_GET['testimonials_pid']}'");?> <? while($row = mysql_fetch_assoc($query)){ $text = $row['testimonials_html_text']; $pid = $row['testimonials_pid']; $id = $row['products_id']; $title = $row['testimonials_title']; $author = $row['testimonials_name']; ?> <blockquote> <div class="testimonial"> <h3><? echo $title ?></h3> <p>"<?php echo $text?>"</p> <p align="right"><? echo $author?></p> </div> </blockquote><br /><br /> <br class="clearBoth" /> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> <div class="buttonRow forward"><a href="<?php echo zen_href_link(FILENAME_TESTIMONIALS_ADD, '', 'SSL'); ?>"><?php echo zen_image_button(BUTTON_IMAGE_TESTIMONIALS, BUTTON_TESTIMONIALS_ADD_ALT); ?></a></div> <br class="clearBoth" /> </div><? } break; ?>

I simply added this code above the original code provided, making the original code the default result. Strangely enough, the error also occurs on the default layout....

Hope this makes sense. Thanks in advance for any guidance or assistance provided. :)

10 Dec 2013, 12:29 AM
#83
yvonne_debandi avatar

yvonne_debandi

New Zenner

Join Date:
Nov 2013
Location:
United States
Posts:
7
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

Nevermind, figured out the cause of the issue. Current code requires a pic for each testimonial. Thanks anyway!

10 Dec 2013, 1:38 AM
#84
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

Yvonne DeBandi:

Nevermind, figured out the cause of the issue. Current code requires a pic for each testimonial. Thanks anyway!

Glad you worked out whatever it was that was at issue.. but if you don't mind some constructive criticism..:D it's still not clear what the issue was or where/how your code is to be used. It's not clear from your post what part of the code you posted is your custom code and what is the default code for this module.. You also don't say which file you updated.. and you are NOT using any of the proper codes for posting code. The reason for using them is twofold:

Makes your code easier to read
Prevents the forum software from parsing the code and accidentally making smilies or other strange characters of your code (it CAN happen)

when posting code you SHOULD use the forum codes for posting code (I've added spaces so the forum software doesn't parse this and you can see the codes I refer to)
[ CODE ] YOUR CODE GOES HERE [ /CODE ]
[ PHP ] YOUR CODE GOES HERE [ /PHP ]

So using the "CODE" forum code, the code you posted looks like this:

<? switch($_REQUEST['req']){
        case    "read": ?>
<h3> All Testimonials for:</h3>        
<? $query = mysql_query("SELECT * FROM zen_testimonials_manager 
WHERE testimonials_pid='{$_GET['testimonials_pid']}'");?>
<? $row = mysql_fetch_assoc($query);
$pid = $row['testimonials_pid']; 
{?>
<div style="width:250px; height:250px; box-shadow:5px 5px 5px  #000080; text-align:center; margin-right:auto; margin-left:auto;  border-radius:25px;background-image:url(images/products/<? echo  $pid?>.jpg); background-size: 250px 250px;"></div><br  />
 <?  echo "<a  href='index.php?main_page=product_info&products_id=".$pid."'>";    echo "<p><br />Click here for product  details.</p></a>";?>
     <?php
   }
?>
<br class="clearBoth" />
<? $query = mysql_query("SELECT * FROM zen_testimonials_manager
WHERE testimonials_pid='{$_GET['testimonials_pid']}'");?>
<? while($row = mysql_fetch_assoc($query)){ 
$text = $row['testimonials_html_text']; 
$pid = $row['testimonials_pid']; 
$id = $row['products_id']; 
$title = $row['testimonials_title'];
$author = $row['testimonials_name']; 
?>
<blockquote>
<div class="testimonial">
<h3><? echo $title ?></h3>
<p>"<?php echo $text?>"</p>
<p align="right"><? echo $author?></p> 
</div>
</blockquote><br /><br />  
<br class="clearBoth" />
<div class="buttonRow back"><?php echo zen_back_link() .  zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>';  ?></div>
<div class="buttonRow forward"><a href="<?php echo  zen_href_link(FILENAME_TESTIMONIALS_ADD, '', 'SSL'); ?>"><?php  echo zen_image_button(BUTTON_IMAGE_TESTIMONIALS,  BUTTON_TESTIMONIALS_ADD_ALT); ?></a></div>

<br class="clearBoth" />
</div><?
 } break;    ?> 

Anyway.. glad it's all working now..

19 Jan 2014, 9:56 PM
#85
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

Hello, i installed it on my site www.kite-addicti***on.es/tienda

Please delete the *

Its working ok in english, but not in spanish. I have copied all the files in the installation languages/english folder to my languages/spanish folder, but still is not appearing there where it should be in the spanish version, while it does on the english one.

Kind regards,

David

21 Jan 2014, 9:03 AM
#86
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

It is working now. When i added a new testimonial in the admin panel it appeared. Now the problem is it seems there are 2 database testimonials, one for spanish one for english, i would like both to point to the same one. Any ideas?

21 Jan 2014, 1:16 PM
#87
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,100
Plugin Contributions:
56

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

I'm using v1.5.2 of Testimonials Manager on one of my sites and it's got a setting in Configuration->Testimonials Manager: Display All Languages. Set to true, and both the English and Spanish testimonials will be displayed on your store.

22 Jan 2014, 8:20 AM
#88
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

lat9:

I'm using v1.5.2 of Testimonials Manager on one of my sites and it's got a setting in Configuration->Testimonials Manager: Display All Languages. Set to true, and both the English and Spanish testimonials will be displayed on your store.

Hi, that is already set to true. The box is displaying in both languages. However if i add a new testimonial while on english language this new testimonial wont appear when i switch language to spanish and viceversa

22 Jan 2014, 1:08 PM
#89
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,100
Plugin Contributions:
56

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

speedyrider:

Hi, that is already set to true. The box is displaying in both languages. However if i add a new testimonial while on english language this new testimonial wont appear when i switch language to spanish and viceversa
When you say that "the box" is displaying in both languages, do you mean that existing testimonials display both English and Spanish, no matter which language is currently selected?

Would you be more specific about that last bit. Are you saying that if you add a new testimonial while the language is set to English that the testimonial displays in the "all testimonials" page in English but not Spanish (and vice-versa)?

23 Feb 2014, 11:40 PM
#90
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

Is there a way of getting the Testimonial Manager to display in a center box on the homepage?

20 Mar 2014, 8:35 AM
#91
kamion avatar

kamion

New Zenner

Join Date:
Mar 2011
Posts:
93
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

I'm upgrading from 1.39h to 1.51. I've dumped my 1.39h database and put it into a new databse for the 1.51 upgrade. I ran zc_install and upgraded the database.

Everything seems working except that when I add plugins, the admin auto-loading doesn't seem to be working.

I have Testimonials Manager installed in 1.39h and I tried to install the new Testimonials Manager in 1.51 but I don't see any of the Testimonial Manager menus in the Admin of my 1.51.

I see the Testimonials sidebox on my store (1.51) and I can view all the "old" testimonials, but no menu in the Admin.

Any ideas what I did wrong, or missed out?

20 Mar 2014, 10:23 AM
#92
kamion avatar

kamion

New Zenner

Join Date:
Mar 2011
Posts:
93
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

Ok, I figured it out.

The admin/includes/auto_loaders/config.tm.php file was deleted from a previous test installation.

Maybe a note should be added to the installation/upgrade about this file getting deleted after installation and it needs to be copied over again for a new install.

24 Mar 2014, 10:14 PM
#93
mikecnz avatar

mikecnz

New Zenner

Join Date:
Mar 2009
Location:
New Zealand
Posts:
76
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

Hi all,

welshop.com:

I have just upgraded Testimonial manager to Version 1.5.4 and noticed that when I submit a testimonial a "Submit my Testimonial" button appears on the "Your testimonial has been successfully submitted" page - which is sure to confuse people.

I've also noticed that a "Submit my Testimonial" button is appearing on the success page - and if clicked it leads back to the "Add my testimonial page" and shows the message "Errors have occured on your submission! Please correct and re-submit!" (which is sure to confuse people!).

I've tried to remove the button - however doing so removes it on both pages (the success page and the add my testimonial page), any ideas would be appreciated.

Thanks,

Mike

25 Mar 2014, 1:42 AM
#94
kamion avatar

kamion

New Zenner

Join Date:
Mar 2011
Posts:
93
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

mikecnz:

I've also noticed that a "Submit my Testimonial" button is appearing on the success page - and if clicked it leads back to the "Add my testimonial page" and shows the message "Errors have occured on your submission! Please correct and re-submit!" (which is sure to confuse people!).

I've tried to remove the button - however doing so removes it on both pages (the success page and the add my testimonial page), any ideas would be appreciated.

Hi Mike,

All you have to do is move one line of code in includes/templates/<your template>/templates/tpl_testimonials_add_default.php

At the bottom of the file, you'll see:

</fieldset>
<br class="clearBoth" />
<?php
  }
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT_TESTIMONIALS, BUTTON_TESTIMONIALS_SUBMIT_ALT); ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) .'</a>'; ?></div>
</form>
<br class="clearBoth" />
</div>

Move the line with the BUTTON_IMAGE_SUBMIT_TESTIMONIALS to the line just after the <br class="clearBoth" /> line:

</fieldset>
<br class="clearBoth" />
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT_TESTIMONIALS, BUTTON_TESTIMONIALS_SUBMIT_ALT); ?></div>
<?php
  }
?>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) .'</a>'; ?></div>
</form>
<br class="clearBoth" />
</div>
25 Mar 2014, 3:14 AM
#95
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

kamion:

All you have to do is move one line of code in includes/templates/<your template>/templates/tpl_testimonials_add_default.php

Move the line with the BUTTON_IMAGE_SUBMIT_TESTIMONIALS to the line just after the <br class="clearBoth" /> line:

As with many of such template pages, the success and form fill is within one page. Looking at the current code and one of my pages I see a possible error. The success part is missing a back button, which may or may not be needed... code in red below.

  if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
?>

<br class="clearBoth" />
<div class="mainContent success"><?php echo TESTIMONIAL_SUCCESS; ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) .'</a>'; ?></div>
<?php
  } else {

The main issue is at the bottom of the page, the buttons are outside the closing "}" and would show up on both success and input pages..

</fieldset> 
<br class="clearBoth" /> 
<?php 
  } 
?> 
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT_TESTIMONIALS, BUTTON_TESTIMONIALS_SUBMIT_ALT); ?></div> 
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) .'</a>'; ?></div> 
</form> 
<br class="clearBoth" /> 
</div>

correct coding should be..

</fieldset>
<br class="clearBoth" />

<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) .'</a>'; ?></div>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT_TESTIMONIALS, BUTTON_TESTIMONIALS_SUBMIT_ALT); ?></div>

<?php
  }
?>

</form>
</div>
25 Mar 2014, 5:46 AM
#96
kamion avatar

kamion

New Zenner

Join Date:
Mar 2011
Posts:
93
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

davewest:

As with many of such template pages, the success and form fill is within one page. Looking at the current code and one of my pages I see a possible error. The success part is missing a back button, which may or may not be needed... code in red below.

My suggestion to only moving the "Submit" line to within the curly bracket will leave the back button appearing on both form fill and success pages.

25 Mar 2014, 7:19 PM
#97
mikecnz avatar

mikecnz

New Zenner

Join Date:
Mar 2009
Location:
New Zealand
Posts:
76
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

Thanks to Kamion and davewest for your help. :D.
Worked a charm.

2 Apr 2014, 2:01 PM
#98
grantopt avatar

grantopt

New Zenner

Join Date:
May 2012
Posts:
36
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

#Testimonials Manager SQL Uninstall
#Designed for: Zen Cart v1.5.0 
#Author: Clyde Jones
#Version:  1.5.3d
#Updated: By CountryCharm 4/15/2012

SET @configuration_group_id=0;
SELECT @configuration_group_id:=configuration_group_id 
FROM configuration_group
WHERE configuration_group_title= 'Testimonials Manager'
LIMIT 1;

DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id;
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id;
DELETE FROM configuration WHERE configuration_key = 'DEFINE_TESTIMONIAL_STATUS';

INSERT INTO `configuration` VALUES (NULL, 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, now(), NULL, 'zen_cfg_textarea_small(');

DROP TABLE IF EXISTS `testimonials_manager`;

DELETE FROM admin_pages WHERE page_key = 'configTestimonialsManager' LIMIT 1;
DELETE FROM admin_pages WHERE page_key = 'TestimonialsManager' LIMIT 1;

I am ready to run the uninstall.sql but stopped before I pushed send after seeing some strange inserts being run. What is the purpose of inserting the 4 configuration settings if I am uninstalling?

2 Apr 2014, 3:07 PM
#99
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

grantopt:

#Testimonials Manager SQL Uninstall
#Designed for: Zen Cart v1.5.0
#Author: Clyde Jones
#Version: 1.5.3d
#Updated: By CountryCharm 4/15/2012

SET @configuration_group_id=0;
SELECT @configuration_group_id:=configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'Testimonials Manager'
LIMIT 1;

DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id;
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id;
DELETE FROM configuration WHERE configuration_key = 'DEFINE_TESTIMONIAL_STATUS';

INSERT INTO configuration VALUES (NULL, 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, now(), NULL, 'zen_cfg_textarea_small(');

DROP TABLE IF EXISTS testimonials_manager;

DELETE FROM admin_pages WHERE page_key = 'configTestimonialsManager' LIMIT 1;
DELETE FROM admin_pages WHERE page_key = 'TestimonialsManager' LIMIT 1;

> 
> I am ready to run the uninstall.sql but stopped before I pushed send after seeing some strange inserts being run.  What is the purpose of inserting the 4 configuration settings if I am uninstalling?

Dunno.. you must've pasted that in somehow.. this ain't part of the uninstall SQL file that comes with this module..
3 Apr 2014, 12:51 AM
#100
grantopt avatar

grantopt

New Zenner

Join Date:
May 2012
Posts:
36
Plugin Contributions:
0

Re: Testimonial Manager Support Thread (for ZC v1.5.x)

DivaVocals:

Dunno.. you must've pasted that in somehow.. this ain't part of the uninstall SQL file that comes with this module..

So I assume this all can be deleted as it is not supposed to be here?

INSERT INTO `configuration` VALUES (NULL, 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, now(), NULL, 'zen_cfg_textarea_small(');

I went back to the plugins section and downloaded a fresh copy of the v1.5.4. Checking the uninstall.sql, the same 4 inserts were present. I then figured I would check other uploaded versions. I downloaded the latest v1.5.5 and 2 other older versions v1.5.3d and v 1.5.2. To my surprise, ALL of them have these same 4 inserts.

To help others who may do a uninstall how do I notify the zencart team that the uploaded uninstall.sql needs to be changed?