Can anybody help me please. I am having difficulty inserting the following PHP code into my newly installed Blank Sidebox.
Code that I require within the Sidebox:
<?php
/**
Social bookmarking / social shopping links - by That Software Guy
@copyright Copyright That Software Guy, 2006-2007
@license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
**/
$linktitle = STORE_NAME;
$linktitle = urlencode($linktitle);
$linkpath = HTTP_SERVER . DIR_WS_CATALOG;
while (strstr($linkpath, '&'))
$linkpath = str_replace('&', '&', $linkpath);
$linkpath = urlencode($linkpath);
define('SOCIAL_NETWORKING_MAIN_PAGE', '1');
?>
<?php
require($template->get_template_dir('tpl_social.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_social2.php');
?>
This is my template file:
<?php
/**
* blank sidebox - allows a blank sidebox to be added to your site
*
* @package templateSystem
* @copyright 2007 Kuroi Web Design
* @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: blank_sidebox.php 2007-05-26 kuroi $
*/
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
// Replace the text and HTML tags between the apostophes on lines 19 and 20.
// Use as many or as few lines using this model as you need for your custom content.
// If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
// If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
$content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>';
$content .= '<p>You can include text, links, images, HTML markup and even PHP code</p>';
$content .= '</div>';
?>
When I replace the text in red with the above PHP code it doesn't work - can anybody please tell me where I'm going wrong.
Bookmarks