News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

InfoBar

Started by allever, October 28, 2005, 03:28:18 AM

Previous topic - Next topic

carola0102

Very nice mod! But I have changed the theme of the forum, so now this mod is not visible. I tried to make the mod appear, but all in vain  :(
I should edit the index.template.php right? what exactly should I edit there? can anyone help?

Vinspire

Quote from: carola0102 on July 02, 2006, 12:04:15 PM
Very nice mod! But I have changed the theme of the forum, so now this mod is not visible. I tried to make the mod appear, but all in vain  :(
I should edit the index.template.php right? what exactly should I edit there? can anyone help?

Try reading the install.xml file ... All the instruction is inside there :)

torquone

A question : this mod works also for smf 1.1.2 ?

Thank you very much :D
My site : http://www.quattrochiacchiere.net [nofollow]

Hondo

Hi,
yes the mod works at 1.1.2 - you only have to install it manually.

Andreas

DitherTask

My changes for SMF 1.1.5:
php
<edit file>
$themes_dir/default/index.template.php
</edit file>

<search for>
// ]]></script>
<title>', $context['page_title'], '</title>';
</search for>

<add after>
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/infobar.css?fin11" />';
</add after>

<search for>
</head>
<body>';
</search for>

<replace>
</head>';
if ($context['user']['is_guest'] && !in_array($context['current_action'], array('login', 'login2', 'register', 'register2', 'activate', 'smstats', 'help', 'reminder', '.xml', 'verificationcode')))
echo '
<body style="padding-top: 33px;">
<div id="info"><div id="infobar">', parse_bbc( $txt['infobarText'] ), '</div></div>';
else
echo '
<body>';
</replace>

css
At 1st you need to remove the body class redefinition from css and replace the #info class to this:
  #info
  {
overflow: visible;
width: 100%;
position: absolute;
top: 0px;
right: 0px;
z-index:2;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
  }

This allows to show the infobar correctly in proper situations (I don't think it's needed at login/register etc)

Advertisement: