Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: jaisi - lokakuu 05, 2011, 09:00:21 IP

Otsikko: how to add flash banner ??
Kirjoitti: jaisi - lokakuu 05, 2011, 09:00:21 IP
hi guys i need a help how to add flash banner logo.

i'am using light theme by SMFSimple forum version 2.0 Glod.


Thanks in advance
Otsikko: Re: how to add flash banner ??
Kirjoitti: jaisi - lokakuu 07, 2011, 08:50:48 AP
Sorry for dumping need a help
Otsikko: Re: how to add flash banner ??
Kirjoitti: jaisi - lokakuu 07, 2011, 01:51:40 IP
hello guys please help me how to add flash logo in header
Otsikko: Re: how to add flash banner ??
Kirjoitti: Illori - lokakuu 07, 2011, 01:57:17 IP
jaisi please do not bump within 24 hours we are all volunteers and reply if and when we know the answer
Otsikko: Re: how to add flash banner ??
Kirjoitti: mashby - lokakuu 07, 2011, 10:47:14 IP
It's gonna be a matter of editing the index.template.php file for whatever theme you are running.
Otsikko: Re: how to add flash banner ??
Kirjoitti: darren1981 - lokakuu 07, 2011, 10:59:49 IP
index.template.php

<div id="top_section">
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';

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>


That's around line 150-200 depending on what else you have going on in your header section... you will need to replace some code in there.. replace the H1 tags with you flash object script.
Otsikko: Re: how to add flash banner ??
Kirjoitti: mashby - lokakuu 07, 2011, 11:18:40 IP
Lainaus käyttäjältä: darren1981 - lokakuu 07, 2011, 10:59:49 IP
index.template.php

<div id="top_section">
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';

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>


That's around line 150-200 depending on what else you have going on in your header section... you will need to replace some code in there.. replace the H1 tags with you flash object script.
Not sure one would want to replace the h1 tags. Adding to the stuff you have might work, but it is all dependent on the theme the OP is running.
Otsikko: Re: how to add flash banner ??
Kirjoitti: jaisi - lokakuu 08, 2011, 12:15:54 AP
Thank you for replying but i don't have any script i have only Flash image .swf