jamesy40 Posted September 9, 2009 Share Posted September 9, 2009 I just want to say thanks in advance for anyone that can help me. I am definitely not an expert by any means in PHP, and have some pretty good HTML knowledge, but I am stumped here, and I think its just one little thing I messing up. I am trying to move my menu bar at this website http://www.socomfans.com/smf to right below the logo. I found the code I need, but when I move it I get an error. Here is the code I believe that needs to be moved. ', template_menu(); // The main content should go here. echo ' <div id="bodyarea">'; } function template_main_below() { global $context, $settings, $options, $scripturl, $txt; echo ' </div>'; I tried moving that bit of code to the last line of this: <body>'; echo ' <div align="center"> <div id="widthControl"/>'; echo ' <div id="outer"> <div id="mid"> <div id="inner">'; echo ' <div id="header">'; echo ' <a href="', $scripturl, '"><img src="', $settings['images_url'], '/logo.png" alt="Grungy" /></a>'; echo ' </div>'; echo ' <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="catbg" height="32">'; if (empty($settings['header_logo_url'])) echo '<span style="font-family: sans-serif; font-weight: 700; font-size: 120%;">', $context['forum_name'], '</span>'; else echo '<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />'; echo ' </td> <td align="right" class="catbg"></td> </tr> </table>'; I know that the code I tried to copy has the weird ' , characters in front of it. I've tried deleting them adding a function in front of it, still nothing but errors. Any advice would be greatly appreciated. If its easier to put the index.template.php code on here I will just let me know. Thanks again! Link to comment https://forums.phpfreaks.com/topic/173681-php-menu-help-in-smf/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.