In need of a bored coders assistance.

Started by unrelenting, April 09, 2006, 10:01:14 PM

Previous topic - Next topic

unrelenting

I'm using the SMF version 1.1 RC2

I am not a coder. I am a graphics man and struggle with HTML much less php and such. I am looking for a bit of assistance. I have put together a board for a friend and am wanting to modify the default theme a bit. I created a new theme from the Themes and Layout area of admin. I made it with the Create a copy of Default named. From there I have been editing the index.template.php. I have done a little bit just by guessing but there is one big challenge that I have yet to figure out with this technique:D

First, this is how it started:



I did my guess work to get the top area removed like this:



Finally, this is where I'm hung. I want it to look like this third picture but I cant seem to figure out how. I copied the code that put the smflogo.gif in its original spot up top to several different places down further to no avail. I tried all sorts of things and got nothing but errors.  :-\



Here is the code that I took out to cut off the top part:


echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<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>';


I'm assuming this is what I need to add lower in the code, but where:


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


If anyone can help me out on this I would be grateful. If not, then I can live with it.  :D


Elmacik

Find this:

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2">

Add after:

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


This should work :)
Home of Elmacik

unrelenting

Quote from: Elmacik on April 09, 2006, 10:16:22 PM
Find this:

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2">

Add after:

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


This should work :)

Thank you. Finally some progress. That worked with no errors but it only added the text forum name. I wanted to add the smflogo.gif that I posted in that last line of code in my previous post.

Elmacik

I placed the codes this way;
If you entered a logo url in => Admin -> Current Theme -> Header Logo URL,
the forum will show up that image there.
If you left that logo URL blank,
the forum will show up the forum name thats in => Admin -> Server Settings -> Forum Title
-- This is the original way it works actually. :)
Home of Elmacik

unrelenting

Elmacik, you.....are.....the.....man!

Brilliant. If I could hug you I wouldn't, but I'd sure shake your hand.  ;D

Thanks.

Advertisement: