Customizing SMF > Theme Site Themes

2.0 Sunset

<< < (18/18)

chadon:
It's looking good.  :)

The width of the banner can be changed in index.template.php file.

Find:

--- Code: ---<td valign="middle" height="261" align="left">
--- End code ---

and add a value or a percentage for the width like this:


--- Code: ---<td valign="middle" height="261"  width="70%" align="left">
--- End code ---

and:

--- Code: ---<td valign="middle" align="right">
--- End code ---
can become:

--- Code: ---<td valign="middle"   width="30%" align="right">
--- End code ---

eafshar:
i actually want to change the height  (sorry for saying width, i wasn't thinking)  and make the top banner narrower. i tried to reduce the value for height from 261 but it didnt work. 

chadon:
There is no value set for the height of the image, the 261 value is the height of the header.

The easiest way would be to modify the height of the image with a software like, Photoshop or Gimp or you can modify the index.template.php file to find:


--- Code: ---<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['page_title'] != "$context[forum_name] - Index" ? "$context[forum_name] - " : '', $context['page_title'], '" />
--- End code ---

and replace it with:


--- Code: ---<img src="', $settings['header_logo_url'], '" style="margin: 4px;" height="X" width="Y" alt="', $context['page_title'] != "$context[forum_name] - Index" ? "$context[forum_name] - " : '', $context['page_title'], '" />
--- End code ---

rlake:
I just wanted to say thanks for this theme. You did an awesome job on it and I think it will fit my site well.

I have a question for you. When I put my logo on it, I had a hard time reading the text. Well I edited it and changed the font color and made the font bigger. Now I want to shorten some of the text, since it is bigger, so it looks better. I got everything pretty much cut down to size but I am having a hard time with the part that tells you if you have PM's. I want to change where it says,"Hey, User , you have 9 messages, 0 are new" to "Hey User , you have 0 new messages". I edited the index.template.php file and got it down to where it now says, "Hey, User , you have 0 are new". My problem is that all the test is stored in global variables and I don't know where to find them at. The variable for "Hey," is $txt['hello_member'] and the variable for "are new" I think is stored in $txt['newmessages0'] and/or $txt['newmessages1'].

Thanks for any help you can give me.
rlake

rlake:
Just as an update. I found what variable said what, and just replaced them with what I wanted.

Thanks again for the theme, it is very nice.
rlake

Navigation

[0] Message Index

[*] Previous page

Go to full version