Spread the word...If we did a good job for you, don't be afraid to tell em who helped ya out.
0 Members and 1 Guest are viewing this topic.
<div class="info">', $txt['login_or_register'], '</div>
<form id="search_form" style="margin: 0;" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '"> <input type="text" name="search" value="" class="input_text" /> <input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" /> <input type="hidden" name="advanced" value="0" />'; // Search within current topic? if (!empty($context['current_topic'])) echo ' <input type="hidden" name="topic" value="', $context['current_topic'], '" />'; // If we're on a certain board, limit it to this board ;). elseif (!empty($context['current_board'])) echo ' <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />'; echo '</form>';
echo ' </div> <div class="news normaltext">/* <form id="search_form" style="margin: 0;" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '"> <input type="text" name="search" value="" class="input_text" /> <input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" /> <input type="hidden" name="advanced" value="0" />'; // Search within current topic? if (!empty($context['current_topic'])) echo ' <input type="hidden" name="topic" value="', $context['current_topic'], '" />'; // If we're on a certain board, limit it to this board ;). elseif (!empty($context['current_board'])) echo ' <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />'; echo '</form>'; */ // Show a random news item? (or you could pick one from news_lines...) if (!empty($settings['enable_news']))
The file you tried to save generated the following error:Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in index.template.php on line 243[code]Well the really confused me, so I put the text back into the file, saved... same thing.. Ok, so I remove the comment markers.. saved, still same thing... Hmmm very strange... so I aborted it all. Back to where I was when I made the copy of the theme... brought up the file in Modify Themes, and tried to save without making any changes... I get the same error... Ok, maybe problem in original file... I go to default theme, modify index.template.php... no changes, just save.. and no error. Baffleing... At this point, I just copy that index.template.php over to oeafv1 theme dir.. Now I should have a copy of that same one... Bring it up in Modify Themes... make no change, click save.. and what do you know??? I get the error again????? I am totally confused at this point.. :hlp ??? --Mitch
{ echo ' <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script> <form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '> <div class="info">', $txt['login_or_register'], '</div> <input type="text" name="user" size="10" class="input_text" /> <input type="password" name="passwrd" size="10" class="input_password" /> <select name="cookielength"> <option value="60">', $txt['one_hour'], '</option> <option value="1440">', $txt['one_day'], '</option> <option value="10080">', $txt['one_week'], '</option> <option value="43200">', $txt['one_month'], '</option> <option value="-1" selected="selected">', $txt['forever'], '</option> </select> <input type="submit" value="', $txt['login'], '" class="button_submit" /><br /> <div class="info">', $txt['quick_login_dec'], '</div>'; if (!empty($modSettings['enableOpenID'])) echo' <br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />'; echo ' <input type="hidden" name="hash_passwrd" value="" /> </form>'; }
// Define the upper_section toggle in JavaScript. echo ' <script type="text/javascript"><!-- // --><![CDATA[ var oMainHeaderToggle = new smc_Toggle({ bToggleEnabled: true, bCurrentlyCollapsed: ', empty($options['collapse_header']) ? 'false' : 'true', ', aSwappableContainers: [ \'upper_section\' ], aSwapImages: [ { sId: \'upshrink\', srcExpanded: smf_images_url \'/upshrink.png\', altExpanded: ', JavaScriptEscape($txt['upshrink_description']), ', srcCollapsed: smf_images_url \'/upshrink2.png\', altCollapsed: ', JavaScriptEscape($txt['upshrink_description']), ' } ], oThemeOptions: { bUseThemeSettings: ', $context['user']['is_guest'] ? 'false' : 'true', ', sOptionName: \'collapse_header\', sSessionVar: ', JavaScriptEscape($context['session_var']), ', sSessionId: ', JavaScriptEscape($context['session_id']), ' }, oCookieOptions: { bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ', sCookieName: \'upshrink\' } }); // ]]></script>';
// Define the upper_section toggle in JavaScript. echo ' <script type="text/javascript"><!-- // --><![CDATA[ var oMainHeaderToggle = new smc_Toggle({ bToggleEnabled: true, bCurrentlyCollapsed: ', empty($options['collapse_header']) ? 'true' : 'false', ', aSwappableContainers: [ \'upper_section\' ], aSwapImages: [ { sId: \'upshrink\', srcExpanded: smf_images_url \'/upshrink.png\', altExpanded: ', JavaScriptEscape($txt['upshrink_description']), ', srcCollapsed: smf_images_url \'/upshrink2.png\', altCollapsed: ', JavaScriptEscape($txt['upshrink_description']), ' } ], oThemeOptions: { bUseThemeSettings: ', $context['user']['is_guest'] ? 'true' : 'false', ', sOptionName: \'collapse_header\', sSessionVar: ', JavaScriptEscape($context['session_var']), ', sSessionId: ', JavaScriptEscape($context['session_id']), ' }, oCookieOptions: { bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ', sCookieName: \'upshrink\' } }); // ]]></script>';