Author Topic: Modifying the EEV's Forum Link To Go To The REAL Homepage  (Read 1083 times)

0 Members and 1 Guest are viewing this topic.

kc3ase

  • Guest
Modifying the EEV's Forum Link To Go To The REAL Homepage
« on: August 29, 2015, 03:01:19 am »
This message is for Admins if Dave would like to do this.

I've bolded the area. The text link here, "EEVblog Electronics Community Forum", has the same problem I found. It goes to the same location as the Home button; the forum which isn't very nice because users get stuck on the forum and there's no way to go back. I've changed mine to go to the web's actual home page and left the home button with the icon alone. I see you've already modified this php script somewhat. I checked this with both templates users can use and it seems to work fine. This code is just a small PHP variation. Just enough to get the job done. This also means the SMF forum title has to change.

From the index.template.php file

function template_body_above()
{
       
        global $context, $settings, $options, $scripturl, $txt, $modSettings;
//$scripturl used to be where http main page is now
   echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
   <div id="header"><div class="frame">
      <div id="top_section">
         <h1 class="forumtitle">
         <a href="', 'http://www.eevblog.com', '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '[/url]
         </h1>';

        // the upshrink image, right-floated
   echo '
         <img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
   echo '
         ', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '
      </div>
      <div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
« Last Edit: August 29, 2015, 03:15:56 pm by kc3ase »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf