Author Topic: Templating problem  (Read 1956 times)

Offline Valiant

Templating problem
« on: October 21, 2006, 01:25:51 am »
Hi,

I tried making changes to the shop.template to fit my site layout.

However, the left content bar doesn't seem to show up. And at the "view other member's inventory" page, I get this error:

Quote
|  Viewing Inventory of member ID 1 (Valiant)/left_content.png' alt='' />

Here's the header:

Code: [Select]
function shop_header() {
global $txt, $context, $modSettings, $scripturl, $settings;
    echo "
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td cellpadding='0' cellspacing='0' width='30' height='30'><img src='", $settings['images_url'], "/top_left.png' alt='' /></td>
<td cellpadding='0' cellspacing='0' height='30' background='", $settings['images_url'], "/top_content.png'></td>
<td cellpadding='0' cellspacing='0' width='30' height='30'><img src='", $settings['images_url'], "/top_right.png' alt='' /></td>
</tr>
<tr>
[b]<td cellpadding='0' cellspacing='0' width='30' background='", $settings['images_url'], "/left_content.png' alt='' /></td>[/b]
<td>
<table width='100%' cellpadding='3' cellspacing='0'><tr><td valign='bottom'>". theme_linktree()."</td></tr></table>";

echo <<<EOT
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="padding-top: 1ex;"><tr>
<td width="180" valign="top" style="width: 26ex; padding-right: 10px; padding-bottom: 10px;">
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="bordercolor">
<tr>
<td class="catbg">{$txt['shop']} Stuff</td>
</tr>
<tr class="windowbg2">
<td class="smalltext" style="line-height: 1.3; padding-bottom: 3ex;">
                            <a href="$scripturl?action=shop">{$txt['shop']} Home</a><br />
<a href="$scripturl?action=shop;do=buy">{$txt['shop_buy']}</a><br />
<a href="$scripturl?action=shop;do=inv">{$txt['shop_yourinv']}</a><br />
<a href="$scripturl?action=shop;do=sendmoney">{$txt['shop_send_money']}</a><br />
<a href='$scripturl?action=shop;do=senditems'>{$txt['shop_send_item']}</a><br />
<a href="$scripturl?action=shop;do=invother">{$txt['shop_invother']}</a><br />
{$context['shop_trade_link']}
{$context['shop_bank_link']}
                            <!--More Coming Soon!<br />-->
</td>
</tr>
</table>
</td>
<td valign="top">
EOT;
}

Here's the footer in case it helps:

Code: [Select]
function shop_footer() {
global $txt, $context, $modSettings, $scripturl, $settings, $sourcedir;

//Get the SMFShop version information (file only loaded if not loaded previously)
require_once("{$sourcedir}/shop/shopVersion.php");

echo "</td></tr></table>";
echo "<p align='right'>Powered by SMFShop {$shopVersion['version']} (Build {$shopVersion['build']}), &copy; 2005, 2006 <a href='http://www.dansoftaustralia.net/'>DanSoft Australia</a><br />";

// If this SMFShop version is a development (unreleased) version
if ($shopVersion['develVersion'] == true) {
echo "<i>Development version!</i> {$shopVersion['SVNid']} ({$shopVersion['SVNdate']})";
}

echo "</p>
</td>
<td cellpadding='0' cellspacing='0' width='30' background='", $settings['images_url'], "/right_content.png'></td>
</tr>
<tr>
<td cellpadding='0' cellspacing='0' width='30' height='30'><img src='", $settings['images_url'], "/bottom_left.png' alt='' /></td>
<td cellpadding='0' cellspacing='0' height='30' background='", $settings['images_url'], "/bottom_content.png'></td>
<td cellpadding='0' cellspacing='0' width='30' height='30'><img src='", $settings['images_url'], "/bottom_right.png' alt='' /></td>
</tr>
</table>";
}


Thanks for your help!