Re: Testimonial Manager 1.3.7
Finally got it working correctly...now I'm trying to get the style sheet set to show the box as the others are shown - as with yours... right now I have a box around the clickable title and nothing around the box with the truncated text... The border should encompass the entire side box... so I'm playing with that now...
URL - lorindascandlesandmore.com
Thanks
Re: Testimonial Manager 1.3.7
Try something like this: I took the following from the view source of your site.
<div id="testimonials-managerContent" class="sideBoxContent"><b><a href="http://www.lorindascandlesandmore.com/index.php?main_page=testimonials_manager&testimonials_id=2">Wonderful Candles</a></b></div><div class="testimonial"><p>I just love Lorinda's Candles. They just never seem to lose their scent and they burn so clean. My favorite is Satin Sheets and Fresh Lilac. I won't...<br /><span><strong><a href="http://www.lorindascandlesandmore.com/index.php?main_page=testimonials_manager&testimonials_id=2">Read More -></a></strong></span><img src="includes/templates/template_default/images/OTHER_IMAGE_SILVER_SEPARATOR" alt="" width="100%" height="1" /><br /><a href="http://www.lorindascandlesandmore.com/index.php?main_page=testimonials_manager_all_testimonials">View All Testimonials</a></p></div></div>
You closed one div too soon(I think) - So try this:
<div id="testimonials-managerContent" class="sideBoxContent"><div class="testimonial"><b><a href="http://www.lorindascandlesandmore.com/index.php?main_page=testimonials_manager&testimonials_id=2">Wonderful Candles</a></b><p>I just love Lorinda's Candles. They just never seem to lose their scent and they burn so clean. My favorite is Satin Sheets and Fresh Lilac. I won't...<br /><span><strong><a href="http://www.lorindascandlesandmore.com/index.php?main_page=testimonials_manager&testimonials_id=2">Read More -></a></strong></span><img src="includes/templates/template_default/images/OTHER_IMAGE_SILVER_SEPARATOR" alt="" width="100%" height="1" /><br /><a href="http://www.lorindascandlesandmore.com/index.php?main_page=testimonials_manager_all_testimonials">View All Testimonials</a></p></div></div>
Re: Testimonial Manager 1.3.7
That is what I was looking at... here's the part I don't get... I've not edited your tpl's at all - I've just been looking at them trying to figure out where that code is coming from. I use FF, so when I view the ID's and the classes - nothing appears for the text and the "read more" for either an ID or class. Trying to figure out where the info was being pulled from, I even removed each style sheet one at a time. Did not effect the side box. I've gone into the style sheet and tried to use #testimonial-manager .sideBoxContainer and sideBoxContent to draw the border -
no joy.
You are correct there is an extra <div>, but where is it being pulled from?
I looked at the modules/sideboxes/testimonial-manager.php -
There is the following code: $title = BOX_HEADING_TESTIMONIALS_MANAGER;
$box_id = testimonials_manager;
I tried using that box id to create a new style... nothing... but in that file I don't see the extra <div> My tpl_index_default is standard and so is my tpl_main_page as I've created the entire look of the site via css - so I'm just really confused, as it's not a <div> I've created.
Thanks for looking at this for me.
Re: Testimonial Manager 1.3.7
Found it... finally...LOL...it was right in front of me in the tpl for the side box.... I just kept overlooking it...
Thanks
Re: Testimonial Manager 1.3.7
I'll look at that file and see check to make sure it conforms to other sidebox code.
Re: Testimonial Manager 1.3.7
Here's some CSS styling for the sidebox
Code:
.testimonial {
padding: 0 5px 5px 5px;
text-align:left;
}
.testimonial p {
margin: 0; padding: 0;
}
.testimonial span {
float:right;
}
and here's the modified code for sidebox/tpl_testimonials_manager.php
PHP Code:
$content = '';
for ($i=1; $i<=sizeof($page_query_list); $i++) {
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= '<b><a href="' . zen_href_link(FILENAME_TESTIMONIALS_MANAGER, 'testimonials_id=' . $page_query_list[$i]['id']) . '">' . $page_query_list[$i]['name'] . '</a></b><div class="testimonial">';
if (DISPLAY_TESTIMONIALS_MANAGER_TRUNCATED_TEXT == 'true') {
$content .= '<p>' . zen_trunc_string($page_query_list[$i]['story'],TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH) . '<br /><span><strong><a href="' . zen_href_link(FILENAME_TESTIMONIALS_MANAGER, 'testimonials_id=' . $page_query_list[$i]['id']) . '">Read More -></a></strong></span>';
$content .= zen_draw_separator(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_SILVER_SEPARATOR, '100%', '1');
}
}
if (DISPLAY_ALL_TESTIMONIALS_TESTIMONIALS_MANAGER_LINK == 'true') {
$content .= '<br /><a href="' . zen_href_link(FILENAME_TESTIMONIALS_MANAGER_ALL) . '">' . TESTIMONIALS_MANAGER_DISPLAY_ALL_TESTIMONIALS . '</a></p></div></div>';
}
Re: Testimonial Manager 1.3.7
Hello, how can i separate with a fine line the testimonials in the sidebox?
is there a way to make the field "testimonial title " not as required??
thanks!
Re: Testimonial Manager 1.3.7
For the first part of your question:
Open your includes/templates/YOUR_TEMPLATE/sideboxes/tpl_testimonials_manager.php
and replace the current code with the following:
PHP Code:
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
for ($i=1; $i<=sizeof($page_query_list); $i++) {
$content .= '<b><a href="' . zen_href_link(FILENAME_TESTIMONIALS_MANAGER, 'testimonials_id=' . $page_query_list[$i]['id']) . '">' . $page_query_list[$i]['name'] . '</a></b><div class="testimonial">';
if (DISPLAY_TESTIMONIALS_MANAGER_TRUNCATED_TEXT == 'true') {
$content .= '<p>' . zen_trunc_string($page_query_list[$i]['story'],TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH) . '<br /><span><strong><a href="' . zen_href_link(FILENAME_TESTIMONIALS_MANAGER, 'testimonials_id=' . $page_query_list[$i]['id']) . '">Read More -></a></strong></span></p></div><br />';
$content .= '<hr id="catBoxDivider" />';
}
}
if (DISPLAY_ALL_TESTIMONIALS_TESTIMONIALS_MANAGER_LINK == 'true') {
$content .= '<p><a href="' . zen_href_link(FILENAME_TESTIMONIALS_MANAGER_ALL) . '">' . TESTIMONIALS_MANAGER_DISPLAY_ALL_TESTIMONIALS . '</a></p>';
}
$content .= '</div>';
For the second part; yes its possible but would require modifying several files.
I'll work on it and make a version update as soon as I can manage.
Re: Testimonial Manager 1.3.7
Awesome mod! Question, How come on the testimonials read page, the quote marks don't show up in IE? Also, only the beginning quote marks show in FireFox. Shouldn't there be end quote marks? Thanks for the help!
Re: Testimonial Manager 1.3.7
They should show up. If they don't use the image from the attached file.
upload it to includes/templates/YOUR_TEMPLATE/images
in the testimonials_manager_all_testimonials.css
find the following declaration:
Code:
blockquote{background:url("../images/blockquote.png")0 0 no-repeat;border:1px solid navy;padding:10px 5px 0;}
change the .png extension to .gif
save and upload the file to your server.
The single quote is correct. It was a deliberate choice based on some research into "pull quotes" and "blockquote" styling.Attachment 1306