et les modifs a effectuer.
<id>
InfoBar
</id>
<version>
1.00
</version>
<mod info>
This MOD will display an Internet Explorer 6 SP2 style info bar at the top of
your forum for guests to registers. This text can be easily changed to any text
that you like. It uses the forum's parse_bbc function, allowing you to use
smileys, graphics, links, etc. Just change $txt['infobarText'] in
Modifications.english.php
This mod is a conversion of phpBB InfoBar from
http://www.phpbbhacks.com/download/5541.
This mod works with default and classic themes.
Enjoy!
Allever
</mod info>
<author>
Allever
</author>
<homepage>
www.dealsaddict.net</homepage>
<edit file>
$themes_dir/default/index.template.php
</edit file>
<search for>
var smf_session_id = "', $context['session_id'], '";
// ]]></script>
<title>', $context['page_title'], '</title>';
</search for>
<add after>
echo '<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/infobar.css" />';
</add after>
<search for>
}
// ]]></script>
</head>
<body>';
</search for>
<add after>
if (!$context['user']['is_logged'])
echo '<div id="info"><div id="infobar">', parse_bbc( $txt['infobarText'] ), '</div></div>';
</add after>
<edit file>
$themes_dir/classic/index.template.php
</edit file>
<search for>
var smf_session_id = "', $context['session_id'], '";
// ]]></script>
<title>', $context['page_title'], '</title>
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc1" />';
</search for>
<add after>
echo '<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/infobar.css" />';
</add after>
<search for>
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
</head>
<body>';
</search for>
<add after>
if (!$context['user']['is_logged'])
echo '<div id="info"><div id="infobar">', parse_bbc( $txt['infobarText'] ), '</div></div>';
</add after>
<edit file>
$languagedir/Modifications.english.php
</edit file>
<search for>
// Version: 1.1 RC1; Modifications
</search for>
<add after>
$txt['infobarText'] = '
You haven\'t registered an account yet? Please click here to register for free!';
</add after>