Hi, okay at home now and can take a closer look on proper screen. Done a little compare and contrast on your file contents and YES there are some difference I think you need altered.
Here is the contents of my module file with calls and pointer changed to suit your messageme box.
Code:
<?php
/**
* secure sidebox - allows a secure sidebox to be added to your site
* with secure connection check
*/
// test if box should display
$show_messageme_sidebox = true;
if (($_SERVER['HTTPS']== 'on' ) || (in_array($current_page_base,explode(",",'login,logoff,account,create_account,shopping_cart,checkout_shipping,checkout_payment,checkout_confirmation,checkout_success,checkout,fec_confirmation,login,no_account')) )) {
$show_messageme_sidebox = false; // this line makes the whole box not show on certain pages, not just the contents. just like in the file tpl_main_page.php
// the above comma seperated list needs to match any pages you list there. tpl_main_page.php about line #41
}
elseif ($show_messageme_sidebox == true) { //shows the box everywhere else.
require($template->get_template_dir('tpl_messageme.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_messageme.php');
$title = BOX_HEADING_MESSAGEME_SIDEBOX;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
else{ // refreshes the page only if the box shows and the page is on SSL connection
echo '<script type="text/javascript">
//<![CDATA[
if (window.location.protocol != "http:")
window.location.href = "http:" + window.location.href.substring(window.location.protocol.length);
//]]>
</script>'; }
?>
Don't know if the rest of your files are okay? as I suggested last night if you send the rest I can check.
This should be how your /includes/templates/YOUR_TEMPLATE/sideboxes/tpl_messageme.php could look (without seeing it I can't be sure)
(guessing on the 3nd contents .= calls)
Code:
<?php
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= '<div>' . TEXT_MESSAGEME_SIDEBOX . '</div>';
$content .= '';
$content .= '</div>';
?>
And your /includes/languages/english/extra_definitions/YOUR_TEMPLATE/your_sidebox_defines.php file
Don't know unless I see it. the one for this mod looks like this.
Code:
<?php
/**
* secure sidebox definitions - text or code for inclusion in a new secure sidebox
* with secure connection check
*/
define('BOX_HEADING_SECURE_SIDEBOX', 'Socialise');
define('TEXT_SECURE_SIDEBOX', '<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-****************"></script>
// All of this gets changed to whatever you want to have showing when the box shows. Text, javascript, php
');
?>
Hope this helps, but if not keep the questions coming.
Bookmarks