News:

Wondering if this will always be free?  See why free is better.

Main Menu

Change banner?

Started by SGA360, July 28, 2007, 10:27:53 PM

Previous topic - Next topic

SGA360

I am looking to change my banner. I was trying to create a Forum similar to 2K Sports and the default version with red color was the closest I could find. You can view my Forums at hxxp:2kgaming.com/forums [nonactive]. The top section it says Forums, is there a way I can remove that rectangular box and add my own banner that has the same width?

Deaks

ok you want to remove the top (where it says forum) and add yoru own banner.

look in index.template.php for

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">';

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';


and make it

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">
<img src="INSERTLOGOHERE.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';


where i have INSERTLOGOHERE.gif put the url to your logo.

I have left the catbg class in the above but you can simply remove that.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

SGA360

I appreciate you posting back. I still though am having a problem, I can't find the file, index.template.php. I have searched the other index files and do not find any of the code similar to the code you posted above.

Deaks

I can assure its there :)

The file is found in Themes/red

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

SGA360

Hmm, interesting. There is one folder, which is images. Then there are two other files, which are style.css and theme_info.xm. Maybe I am missing something.

Deaks

okay you are going to need to modify the one in the default theme (please make a copy just incase)
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

ASF

Quote from: sloopz on July 29, 2007, 12:28:09 PM
ok you want to remove the top (where it says forum) and add yoru own banner.

look in index.template.php for

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">';

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';


and make it

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">
<img src="INSERTLOGOHERE.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';


where i have INSERTLOGOHERE.gif put the url to your logo.

I have left the catbg class in the above but you can simply remove that.

Well thank u, that kinda solved the problem i had on here

http://www.simplemachines.org/community/index.php?topic=185552.0

but there is still space showing on the right handside??

ASF

Hey no worries..Thanks

Problem solved..Thanks

SGA360

Thanks for the help, it works now! I appreciate the quick replies and answering my questions.

Advertisement: