Ok, so I want to add a table head to the buy page in smfshop. If I go to the shop home on my forum it says "Shop Welcome to the Shop!" ect.
Now when you go to the buy page it doesn't have a header by default, rather it just shows the categories ect.
So I went to the template for shop (shop.template.php) and found this
// The main shop page (ie. the index)
function template_main()
{
global $txt, $context, $modSettings, $scripturl, $settings;
echo '
<table width="100%" cellpadding="5" cellspacing="1" border="0" class="bordercolor">
<tr class="titlebg">
<td align="center" colspan="2" class="largetext">', $txt['shop'], '</td>
</tr><tr>
<td class="windowbg" valign="top" style="padding: 7px;">
<b>', $txt['shop_welcome'], '</b>
<div style="font-size: 0.85em; padding-top: 1ex;">
', sprintf($txt['shop_welcome_full'], formatMoney($modSettings['shopPointsPerTopic']), formatMoney($modSettings['shopPointsPerPost']));
// Are we using any bonuses at all?
if ($modSettings['shopPointsPerWord'] != 0 || $modSettings['shopPointsPerChar'] != 0)
{
echo $txt['shop_welcome_full2'];
// Are they capped?
if ($modSettings['shopPointsLimit'] != 0)
printf($txt['shop_welcome_full3'], formatMoney($modSettings['shopPointsLimit']));
}
so I tryed changing that a little and then inserting it to the shop-buy.php page... but everytime I insert somethign like that it'll just give me like "error unexpected ';' or '}' or T-something or other ect. on line 117 or something...
so basically...
how do you add the correct code for $txt to the php file and how do you end it correctly so it works