Download for SMF 1.0 (http://virtualchill.com/designs/forums/smf/simplywhite/SimplyWhite.zip)
Download for SMF 1.1 (http://virtualchill.com/designs/forums/smf/simplywhite/SimplyWhite1.1RC1.zip)
Preview (http://www.virtualchill.com/index.php?action=forum;theme=4)
Note: Please uncheck: "Show buttons as images instead of text" in the theme settings page for this theme.
It is a white and light gray colored theme and things are going fairly well for it.
Some of its unique features is that it uses no buttons but rather CSS. A good example of this can be found with the top buttons (Home, Help, Search, etc)
This should open room for multi-language support right from the start.
I really like the looks of this one. Can't wait for a download. :)
Nice theme :).
-Dan The Man
Looking nice .. light theme would be great addition indeed. If I may suggest, removing all the images even those for the topic icons as well. Also with multi gray scale Divs you can add a nice shadow .. something like this:
http://www.alnabri.net/kjklj
An elegant theme, simple and beautiful, liked it :)
Thanks for the comments.
I changed the look of the top buttons making them look like tabs. This was done by simply adding a padding-bottom CSS to the class they were in.
I plan to do a similar effect to the New Topic, New Reply, etc buttons also.
Also on and off no longer are images. They share the same class as the top buttons currently.
Also no longer images are the bottom php, mysql, xhtml, and CSS buttons. Which are also currently using the same class as the top buttons.
Feel free to tell me what you think. ;)
I think it is a great theme. :) Are you planning on keeping the spacers in the menu? Maybe looking better without them.
very nice theme
I like it because it'S nearly based on text buttons
Something similar http://www.bloczone.net/smf/index.php?;action=forum;theme=18 :)
Quote from: xenovanis on June 15, 2005, 03:29:51 PM
I think it is a great theme. :) Are you planning on keeping the spacers in the menu? Maybe looking better without them.
I just removed the (|) between each of them. Though I am not sure if removing all of the space between them would look the best.
Quote from: klumy on June 15, 2005, 03:31:45 PM
very nice theme
I like it because it'S nearly based on text buttons
It has been something I have wanted to do for a long time and I am glad I am finally making a theme with the use of CSS instead of images. :)
Quote from: Owdy on June 15, 2005, 03:33:41 PM
Something similar http://www.bloczone.net/smf/index.php?;action=forum;theme=18 :)
The color scheme is quite similar, but I think the general feel of that theme is quite a bit different then this theme. :)
Quote from: akabugeyes on June 15, 2005, 03:55:01 PM
I just removed the (|) between each of them. Though I am not sure if removing all of the space between them would look the best.
That is what I meant actually, this looks really good!
Screenshots anyone?
Here is something you need to be logged in to see:
(http://virtualchill.ath.cx/designs/forums/smf/simplywhite/new-no_new.gif)
As you can see the difference between the on and off buttons is the font color. Customizable in the stylesheet with ease. :)
Also note the category effect when a category contains a board with new posts. Too much? Just right?
Very nice theme.
I think its my favorite out of all of your themes ;)
After a whole lot of fixing upon how the theme appeared on IE and a ton of fixes of invalid XHTML, I finally present you with the download of Simply White.
See first post for download link and preview.
I hope you like it!
Feel free to tell me what you think! :)
I like the look. Just FYI, the "User Info" and "Forum News" boxes are broken in Safari 1.3. They break out of the container, continuing off the right side of the page, requiring a horizontal scroll to see the right edges.
I will look into it, but unfortunately I don't have a Mac so I will be unable to test in Safari. But hopefully I can figure out why it is doing that. Thanks for letting me know.
Update: Simply White is now fully compatable with SMF 1.1 Beta 3 Public!
But not only is it compatable, but much has changed since the first Simply White that makes it better than ever!
+ Now buttons change colors when you hover over them. (style.css)
+ Headerbodies class is now used for both Forum News and User Info (index.template.php)
+ Logo added
+ Line Break added after "View Profile WWW Email" to make it look cleaner (Display.template.php)
+ Mark ALL messages as Read link now a button not just a link (BoardIndex.template.php)
It is highly recommended not to try to upgrade your Simply White theme until you are using SMF 1.1. I do not know how well the theme would work in SMF 1.0. If requested, I will provide the changes for SMF 1.0.
Download (http://virtualchill.ath.cx/designs/forums/smf/simplywhite/SimplyWhite1.1.zip)
Hi,
I really like the theme ~ congrats
I'm using SMF 1.1 Beta 3 Public, I tried to upload the 1.1 version with package manager & got tis error
The package you tried to upload either is not a valid package or has become corrupted.
Any ideas? do I need to unzip it & upload manually?
Thanks
Simply White doesn't need to be/can't be installed through the package manager.
You can install the theme for SMF 1.1 through "Themes and Layout". And if you are upgrading the theme from the one released for SMF 1.0, you can overright the files. Or just install the new one and delete the old one.
Ah! I knew I was doing something wrong but couldn't figure out what
Thanks for the speedy reply
One last thing the button images don't work (den.buildtolearn.net/forums/Themes/SimplyWhite1/images/english/home.gif)
There isn't an english folder in images nor can I find the images
All help is appreciated :)
That is because Simply White doesn't use images for the buttons. ;)
What you are seeing for the buttons is CSS. You can edit the look however you like in style.css. And if you do so wish to replace the buttons with actual images instead, you can enable the theme setting "Show buttons as images instead of text" and upload images into a folder you name "english" inside the images folder of the theme. You then would probably want to delete the class "button" in style.css.
I have a question for you, I am very new to this and want to make my forum look like the rest of my site. I really like this theme and was wondering if it is very hard to customize? I would like to put my background and colors into it.
Simply White is actually quite easy to customize.
Check the style.css file. (Which can be edited through the admin cp)
If you need any help understanding what class is for what, I can explain it to you. ;)
i like this theme very nice and simple good job
If I want to change the background, where exactly do I put that. I am sorry for the dumb questions but I really am not sure what I am doing. :-[
No problem, we all have to start somewhere. ;)
In Simply White there is the style.css file as I have mentioned before.
There should be two different backgrounds:
.bodyarea
and
.body
Where you see: background-color: ___________
is where you will want to edit it.
You can use solid color names like: blue, green, etc or use hex color codes that start with # and contain 6 numbers. Google search "Hex Color Codes" if you wish to make your colors a little more creative than just plain blue and etc. Although if you want it to match your site I suppose you already have the color you need.
Now, you mentioned in a PM that you got a parse error from trying to change something, I would recommend uploading a clean Simply White over the current one or try to trace back to what you changed to produce the error in the first place.
just what I need. will be using on my site shortly
If I want to put a background instead of just a background color what would I do?
background-image: url(images/name.gif);
Where the name.gif image would be located in your Simply White images folder. You can also just replace the images/name.gif part with a full url to the image.
I just want to make sure I don't screw this up again, so this is what it currently says?
<div class="headerbodies" style="position: relative; margin-right: 0px; background-image: url(', $settings['images_url'], '/);">
and this is my background url: http://photobucket.com/albums/y79/irimomof3/th_stripedbg.gif
how exactly should it look?
You don't have to make it so hard. ;)
Simply White (as does every other SMF theme) has a stylesheet file called style.css.
This file can be edited in the admin cp.
When you open Simply White's style.css file search for "body"
In that class, change:
background-color: white;
to:
background-image: url(http://photobucket.com/albums/y79/irimomof3/th_stripedbg.gif);
next I think you will want to add something like:
margin-left: 50px;
margin-right: 50px;
in the class "body" also.
to give some room for the background image to be shown.
Thank you so much!! Is there a way to get the words at the top of my regular page (www.beyondpaper.net) where it says Beyondpaper.net and then links below it also on top of my forum? I hope you don't mind the questions. I really appreciate all your help!!
Very nice & simple, easy loading... ;)
Quote from: mirigoyen on July 02, 2005, 12:12:13 AM
Thank you so much!! Is there a way to get the words at the top of my regular page (www.beyondpaper.net) where it says Beyondpaper.net and then links below it also on top of my forum? I hope you don't mind the questions. I really appreciate all your help!!
In index.template.php, you could add the links perhaps somewhere such as right after:
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';
add
echo ' <br />Links here!';
If that doesn't look right, I can try to help you find a better location.
I did that and now I can't get my page to open it says :
Unable to load the 'main_above' template.
what should I do?
This is what it looks like:
<span style="font-family: Georgia, sans-serif;
font-size: xx-large;">', $context['forum_name'],
'</span>'; echo ' <br
/>http://i3.photobucket.com/albums/y79/irimomof3/bp
header.jpg!'; </td>
</tr> <tr
id="upshrinkHeader"',
empty($options['collapse_header']) ? '' : '
style="display: none;"', '>
<td valign="top">
<div class="newsinfo">', $txt['user_info'], '</div>
Try:
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';
echo ' <br /> <img src="http://i3.photobucket.com/albums/y79/irimomof3/bpheader.jpg" />
Ok, now it says:
Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.
You can also try refreshing this page
this is what my code looks like:
<span style="font-family: Georgia, sans-serif;
font-size: xx-large;">', $context['forum_name'],
'</span>';
echo ' <br /> <img
src="http://i3.photobucket.com/albums/y79/irimomof3
/bpheader.jpg" />
</td>
</tr> <tr id="upshrinkHeader"',
empty($options['collapse_header']) ? '' : '
style="display: none;"', '>
<td valign="top">
<div class="newsinfo">', $txt['user_info'], '</div>
<div
Works for me.
Do you have an echo '
right before <span style="font-family: Georgia, sans-serif;
font-size: xx-large;">', $context['forum_name'],
'</span>';
It should be from logo comment to the next comment: // This part is the logo and forum name. You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif;
font-size: xx-large;">', $context['forum_name'],
'</span>';
echo ' <br /> <img
src="http://i3.photobucket.com/albums/y79/irimomof3
/bpheader.jpg" />
</td>
</tr> <tr id="upshrinkHeader"',
empty($options['collapse_header']) ? '' : '
style="display: none;"', '>
<td valign="top">
<div class="newsinfo">', $txt['user_info'], '</div>
<div class="headerbodies" style="position: relative; margin-right: 0px; background-image: url(', $settings['images_url'], '/);">
<table width="100%" cellpadding="0" cellspacing="5" border="0"><tr>';
if (!empty($context['user']['avatar']))
echo '<td valign="middle">', $context['user']['avatar']['image'], '</td>';
echo '<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">';
// If the user is logged in, display stuff like their name, new messages, etc.
Did you edit anything else in the file that could be giving it a parse error?
No I only changed that one part. I just redid it with the info you put and it still says parse error.
// This part is the
logo and forum name. You should be able to change
this to whatever you want...
echo '
<span style="font-family: Georgia,
sans-serif;
font-size: xx-large;">', $context['forum_name'],
'</span>';
echo ' <br /> <img
src="http://i3.photobucket.com/albums/y79/irimomof3
/bpheader.jpg" />
</td>
</tr> <tr id="upshrinkHeader"',
empty($options['collapse_header']) ? '' : '
style="display: none;"', '>
<td valign="top">
<div class="newsinfo">', $txt['user_info'], '</div>
<div class="headerbodies"
style="position: relative; margin-right: 0px;
background-image: url(', $settings['images_url'],
'/);">
<table width="100%" cellpadding="0" cellspacing="5"
border="0"><tr>';
if (!empty($context['user']['avatar']))
echo '<td valign="middle">',
$context['user']['avatar']['image'], '</td>';
echo '<td width="100%" valign="top"
class="smalltext" style="font-family: verdana,
arial, sans-serif;">';
// If the user is logged in, display stuff
like their name, new messages, etc.
It is working fine for me.
So you didn't edit any other files?
If you can't seem to fix it. I would recommend uploading a clean index.template.php and then try it again.
No, that's all I did. I didn't save it before I edited it though. Can you email me a copy of the original?
I have sent you a pm with a modified version of index.template that includes the logo.
Hopefully it will work.
That worked :) THank you!!! How can I make the top part of the page even up with the bottom? The top of the board is a lot wider than the bottom forum part.
Do you mean the News box and the User CP box?
You can adjust their widths in the style.css:
.headerbodies
{
width: 730px;
}
decrease that to whatever you like. But not too much.
Cool, that worked!! Ok, I just have 2 more questions for you then I will leave you alone ;D on top of my header is the words beyondpaper.net can that be removed? Also on the buttons where it says home, help, search, etc. how do I remove the red x in the white box? THanks so much!!!!!
Find and Remove: <span style="font-family: Georgia,
sans-serif;
font-size: xx-large;">', $context['forum_name'],
'</span>';
To remove the forum name.
As for the red boxes where the buttons are, just go to your admin cp and go to "Current Theme Settings" and uncheck the box that says something like "Show buttons as images instead of text".
I was thinking for some reason when I released the theme that it would already have the box unchecked. I guess in a future version I will just remove all the references to the images. Firefox doesn't show missing images, so I didn't quite realize it until now.
I did exactly what you said to remove the name and it gave me another parse error :'(
Template Parse Error!
There was a problem loading the /Themes/simplywhite/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme
nevermind, I found it. There was an extra echo in there. :D
Thank you so much for all your help!!!!!
I went back to my forum today and made a post and then after I hit enter. The forum went back to the bigger size that it was before I edited it. How do I resize the top part to fit the rest of the page?
look at it here: www.beyondpaper.net
I am not so sure I know what you mean.
Are you talking about the headerbodies? With the forum news and user info boxes?
Yeah that is the part I am talking about. On my screen it is almost double the size of what the forum part is. Is there a way to take the forum news out?
To remove the forum news box in Simply White,
Find:
if (!empty($settings['enable_news']))
echo '
<div class="newsinfo">', $txt['forum_news'],'</div>
<div class="forumnews">
', $context['random_news_line'],'
</div>';
and erase it.
I by no means want to rush things but I have to ask, how far are you from a stable release?
I would love to use this theme on my LIVE web site.
If you need any help/beta testing/hosting for the theme...you know where to ask
For the most part the theme is fine from what I can see. I believe there are a few problems in IE that I will work on fixing along with it not relying on having the "Show buttons as images instead of text" unchecked.
Hi,
I love the potential of this theme, especially along the lines of use for multiple languages.
I have a question though.... I want to change the "New" and "No New" to graphics, and I have done that changing 3 lines (lines 120 to 130) of the BoardIndex.template.php It works fine, except when I go to Child boards, to the left of Child boards it still displays the gray box with "No New" in it. I cannot find another line in any of the code that displays this.
Can you tell me where it might be?
thanks....
The code you changed for BoardIndex.template.php just needs to also be changed in MessageIndex.template.php to show Child Boards with No and No New posts images.
ahhhhhhhh..... I did not look there..... Thanks!!!!!!!
This is a very clean and simple theme. I like it. :)
Quote from: nameless on July 15, 2005, 01:09:26 PM
This is a very clean and simple theme. I like it. :)
I second that post. : )
One thing I did notice though, you theme still seems to be looking for the images that would be in the
english folder (as indicated by the huge list of errors in the cPanel error log.
For example, in index.template I see:
Line 451 <a class="button" href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>
Since I don't know PHP I have no idea what to remove to prevent it from looking for home.gif.
I love this, especially the ease of modding it with the CSS file. However, I'm getting lots of error messages like the one below. Any ideas how I can cure this? Using the 1.0 version with SMF 1.05
Use of undefined constant no_new - assumed 'no_new'
File: /home/cactus/public_html/board/Themes/Test Theme/BoardIndex.template.php (eval?)
Line: 101
I just looked at my error log and I have 962 pages of errors. including:
Quote8: Use of undefined constant no_new - assumed 'no_new'
File: /home/scrap4/public_html/forum/Themes/simplywhite/BoardIndex.template.php (eval?)
Line: 101
8: Undefined index: show_custom_bar
File: /home/scrap4/public_html/forum/Themes/simplywhite/BoardIndex.template.php (eval?)
Line: 186
8: Undefined index:
File: /home/scrap4/public_html/forum/Themes/default/languages/Admin.english.php (eval?)
Line: 167
And the list goes on. What can I do about this? :-[
Sorry about those errors.
For the first one, open BoardIndex.template.php and find:
$txt[no_new]
$txt[newchildposts]
$txt[newposts]
and make it so it looks like this: $txt['no_new']
$txt['newchildposts']
$txt['newposts']
As for the second error, I would just delete all of this (located in BoardIndex.template.php as well): // A custom block for the info center, you NEED the Custom Bar in Info Center mod to have this run!
if ($settings['show_custom_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $modSettings['blockcustomtitle'], '</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
', $modSettings['blockcustom'], '
</td>
</tr>';
}
// End of Mod. Won't ever use it? Then just delete everything from top comments down to here.
since you probably aren't using this mod anyway which I included built in so it would work for this mod I made that was never approved here. :P
And as for the the third error.... it doesn't appear this theme is causing it but rather the default theme. It also doesn't say what exactly is wrong with it so I am not really sure. ::)
for the first one I need to fix. I can't find it is it close to the top or half way through?
It is close to the top.
Search for:
foreach ($category['boards'] as $board)
They are almost right under there.
Are you sure you are searching in BoardIndex.template.php?
Ok, I did the first one but the second one said there is an error on my board and wouldn't open. Since I just launched my site I set it back to the original and just edited it with the first info. Should I delete all the errors and see what ones show up again? Are these critical errors that will mess up my board eventually?
Quote from: mirigoyen on July 26, 2005, 10:52:03 PM
Ok, I did the first one but the second one said there is an error on my board and wouldn't open. Since I just launched my site I set it back to the original and just edited it with the first info. Should I delete all the errors and see what ones show up again? Are these critical errors that will mess up my board eventually?
You can delete all the errors from your error log if you would like. If any errors are still there they will just show up again so you will know. None of those errors will mess up your board.
I have a question about when there is a new post on my board it shows the red x and says new. Is there anyway to get rid of the red x?
Quote from: mirigoyen on August 12, 2005, 11:05:13 PM
I have a question about when there is a new post on my board it shows the red x and says new. Is there anyway to get rid of the red x?
I assume that means there is a broken image. Can you post me your Simply White BoardIndex.template.php file in a [code] [/code] tag?
<?php
// Version: 1.0.1; BoardIndex
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
<td valign="bottom">', theme_linktree(), '</td>
<td align="right">';
if (!$settings['show_sp1_info'])
echo '
', $txt[19], ': ', $modSettings['memberCount'], ' • ', $txt[95], ': ', $modSettings['totalMessages'], ' • ', $txt[64], ': ', $modSettings['totalTopics'], '
', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['latest_member']['link'] . '</b>' . $txt[581] : '');
echo '
</td>
</tr>
</table>';
// Show the news fader? (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<div class="tborder" style="margin-bottom: 2ex;">
<table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr class="titlebg" align="center">
<td>', $txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">';
// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #000000;"><b>', $context['news_lines'][0], '</b></div>
<script language="JavaScript1.2" type="text/javascript"><!--
// The fading delay (in ms.)
var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";
// List all the lines of the news for display.
var smfFadeContent = new Array(
"', implode('",
"', $context['fader_news_lines']), '"
);
// --></script>
<script language="JavaScript1.2" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>
</div>';
}
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
and boards. (see below.) */
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="3">
<tr>
<td colspan="4" class="catbg', $category['new'] ? '2' : '', '" height="18">';
// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';
echo '
', $category['link'], '
</td>
</tr>';
// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr class="windowbg2">
<td class="windowbg" width="5%" align="center" valign="top">';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<div class="new_posts">', $txt['newposts'], '</div>';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<div class="new_childposts">', $txt['newchildposts'], '</div>';
// No new posts at all! The agony!!
else
echo '<div class="no_new_posts">', $txt['no_new'], '</div>';
echo '</td>
<td align="left">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
}
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 10ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
', $board['topics'],' ', $txt[330], '
</span></td>
<td class="smalltext" valign="middle" width="22%">';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], ' ', $txt[525], ' ', $board['last_post']['member']['link'];
echo '
</td>
</tr>';
}
}
echo '
</table></div>
<br />';
}
if ($context['user']['is_logged'])
{
echo '
<div class="nonexistant" style="padding: 0px;"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="nonexistant">
<td align="right" class="smalltext">';
// Show the mark all as read button?
if ($settings['show_mark_read'])
echo '
<a id="button" href="', $scripturl, '?action=markasread;sa=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>';
echo '
</td>
</tr>
</table></div>';
}
// Here's where the "Info Center" starts...
echo '
<br />
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
';
// A custom block for the info center, you NEED the Custom Bar in Info Center mod to have this run!
if ($settings['show_custom_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $modSettings['blockcustomtitle'], '</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
', $modSettings['blockcustom'], '
</td>
</tr>';
}
// End of Mod. Won't ever use it? Then just delete everything from top comments down to here.
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[214], '</td>
</tr>
<tr>
<td class="windowbg2">';
// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext">
', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table width="100%" border="0">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td align="left" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
<td valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
<td align="left" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';
echo '
</table>';
}
echo '
</td>
</tr>';
}
// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg2" width="100%">
<span class="smalltext">';
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';
// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', '<a href="', $event['href'], '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], '</a>', $event['is_last'] ? '<br />' : ', ';
// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>';
}
// Show a member bar. Not heavily ornate, but functional at least.
if ($settings['show_member_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[331], '</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<b><a href="', $scripturl, '?action=mlist">', $txt[332], '</a></b>
<div class="smalltext">', $txt[200], '</div>
</td>
</tr>';
}
// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[645], '</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<table border="0" width="90%"><tr>
<td class="smalltext">
<div style="float: left; width: 50%;">', $txt[490], ': <b>', $modSettings['totalTopics'], '</b></div>', $txt[489], ': <b>', $modSettings['totalMessages'], '</b><br />', !empty($context['latest_post']) ? '
' . $txt[659] . ': "' . $context['latest_post']['link'] . '" (' . $context['latest_post']['time'] . ')<br />' : '', '
<a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</td>
<td width="32%" class="smalltext" valign="top">
', $txt[488], ': <b><a href="', $scripturl, '?action=mlist">', $modSettings['memberCount'], '</a></b><br />
', $txt[656], ': <b>', $context['latest_member']['link'], '</b><br />';
// If they are logged in, show their unread message count, etc..
if ($context['user']['is_logged'])
echo '
', $txt['smf199'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
echo '
</td>
</tr></table>
</td>
</tr>';
}
// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg2" width="100%">
<a href="', $scripturl, '?action=who">', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], (empty($context['num_users_hidden']) ? '' : ' (' . $context['num_users_hidden'] . ' ' . $txt['hidden'] . ')'), '</a><br />
<span class="smalltext">';
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
</td>
</tr>';
// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[159], '</td>
</tr><tr>
<td class="windowbg2" valign="top">
<b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
<div class="smalltext">
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
</div>
</td>
</tr>';
}
// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg2" valign="middle">
<form action="', $scripturl, '?action=login2" method="post" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>', $txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>', $txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>', $txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>', $txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="', $txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>';
}
echo '
</table></div>';
}
?>
That code does not seem to cause it. :-\
Do you mean something else than what appears to the left of the board names on the board index when there is a new post in the board?
Perhaps do you mean the 'new' link that is next to each topic inside of a board?
yeah, I mean when there is a new post you go to that board and right besid it there is a new with an x in it.
(http://photobucket.com/albums/y79/irimomof3/th_newbttn.jpg)
oops that is a small pic, do you need a bigger one? You can see up in the left hand corner there is a box that is telling me I have a new post and just to the left of the word new it has an X. Maybe if you went to my site and looked. it's www.beyondpaper.net
No, I see what you mean. :)
I am sorry for the error..... :-[
In MessageIndex.template.php
Find:
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a class="button" href="', $scripturl, '?topic=', $topic['id'], '.from', $topic['newtime'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';
Replace:
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a class="button" href="', $scripturl, '?topic=', $topic['id'], '.from', $topic['newtime'], '#new">',$txt[302],'</a>';
Your awesome!! THank you so much!!!!
Is there a way to disable the box on top that tells you how long you have been logged in? I have several people that don't like that feature, I think it makes them feel guilty for being on to long. ;)
Quote from: mirigoyen on August 15, 2005, 11:36:59 AM
Is there a way to disable the box on top that tells you how long you have been logged in? I have several people that don't like that feature, I think it makes them feel guilty for being on to long. ;)
The entire user info box or just the sentence that says how long you have been online?
Quote from: sakamuyo on June 19, 2005, 03:32:49 PM
I like the look. Just FYI, the "User Info" and "Forum News" boxes are broken in Safari 1.3. They break out of the container, continuing off the right side of the page, requiring a horizontal scroll to see the right edges.
I had the same problem using Firefox on Windows.
There's an emtpy (invisible) cell to the right, probably left for forum logos. The size of the cells in the header table are fixed. 730 and 262 (±paddings/amargins) this is way larger then 800, and yes, I use 800 px resolution.
I solved the problem by removing that cell from the template file. And deleting the width setting from the
.headerbodies. This way the sections stretch all width of the screen regardless of the resolution.
The easier solution would be to remove the {width: 730px;}. If you remove that it will show up fine regardless on the resolution setting.
You could correct that in the main download, it would avoid the problems "low-res" people are having.
Anyway, it's a nice and simple theme. I really love it.
Rudolf
Okay, thanks for the info.
I will be updating the theme shortly with that fix and a few other small things. :)
I'm looking forward to it !!! (especially because I'm looking for a "no-button" theme and I can't access your website for now... ;) )
Quote from: edcrfv on September 03, 2005, 09:18:24 AM
I'm looking forward to it !!! (especially because I'm looking for a "no-button" theme and I can't access your website for now... ;) )
Sorry about that. :) I have moved my theme downloads to another server and didn't update the url to it. You can now download it. ;)
I've checked this in the css validator ,passed ok but some warnings
URI : http://www.virtualchill.com/index.php?action=forum;theme=4
Line : 83 (Level : 2) Redefinition of margin-top : #autoXML22652102265210
URI : http://www.virtualchill.com/Themes/SimplyWhite1/style.css?beta3
Line : 3 (Level : 1) You have no color with your background-color : .board_rules
Line : 12 (Level : 1) You have no background-color with your color : a:visited
Line : 12 (Level : 1) You have no background-color with your color : a:visited
Line : 17 (Level : 1) Same colors for color and background-color in two contexts .button:hover and a:hover
Line : 17 (Level : 1) You have no background-color with your color : a:hover
Line : 24 (Level : 1) You have no background-color with your color : .nav:visited
Line : 24 (Level : 1) You have no background-color with your color : .nav:visited
Line : 24 (Level : 1) You have no background-color with your color : .nav:visited
Line : 30 (Level : 1) You have no background-color with your color : a.nav:hover
Line : 30 (Level : 1) Same colors for color and background-color in two contexts .button:hover and a.nav:hover
Line : 43 (Level : 1) You have no background-color with your color : td
Line : 60 (Level : 1) You have no background-color with your color : button
Line : 60 (Level : 1) You have no background-color with your color : button
Line : 60 (Level : 1) You have no background-color with your color : button
Line : 75 (Level : 1) You have no background-color with your color : select
Line : 85 (Level : 1) Same colors for background-color and color : .hrcolor
Line : 85 (Level : 1) Same colors for background-color and color : .hrcolor
Line : 117 (Level : 1) You have no background-color with your color : .codeheader
Line : 117 (Level : 1) You have no background-color with your color : .codeheader
Line : 133 (Level : 1) You have no background-color with your color : .meaction
Line : 176 (Level : 1) You have no background-color with your color : .titlebg a:hover
Line : 176 (Level : 1) Same colors for color and background-color in two contexts .button:hover and .titlebg a:hover
Line : 197 (Level : 1) You have no color with your background-color : .bordercolor
Line : 204 (Level : 1) You have no color with your background-color : .tborder
Line : 226 (Level : 1) You have no color with your background-color : #headerarea
Line : 236 (Level : 1) You have no background-color with your color : .sep
Line : 236 (Level : 1) Same colors for color and background-color in two contexts .catbg2 and .sep
Line : 236 (Level : 1) Same colors for color and background-color in two contexts .catbg and .sep
Line : 242 (Level : 1) You have no color with your background-color : #bodyarea
Line : 262 (Level : 1) You have no color with your background-color : .headerbodies
Line : 276 (Level : 1) You have no color with your background-color : .forumnews
Line : 358 (Level : 1) You have no color with your background-color : .no_new_posts:hover
Line : 358 (Level : 1) You have no color with your background-color : .no_new_posts:hover
Line : 358 (Level : 1) You have no color with your background-color : .no_new_posts:hover
Line : 403 (Level : 1) You have no color with your background-color : .newsinfo
! Theme updated for SMF 1.1 RC1. A number of changes have also been made to improve the look of the theme and usability.
Download (http://virtualchill.com/designs/forums/smf/simplywhite/SimplyWhite1.1RC1.zip)
Live Demo
(http://www.virtualchill.com/smf/index.php?theme=7)
I want to add a counter to the bottom of my forum and I was wondering if you could tell me how I would go about doing that. What page would I edit??
Thanks,
Hi.
I currently have 'Show buttons as images instead of text' unchecked but I want the profile buttons to use the images.
In Display.template.php (below) what do I have to change to show the image buttons instead of the usual "View Profile Email Personal Message (Online)"?
I'm guessing it's to do with '$settings['use_image_buttons']' but I've no idea how to remove it...
Thanks.
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';
// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';
// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
mirigoyen, do you have the code for the counter? It would probably need to be added somewhere in index.template.php of the theme.
hyt, erase each occurance in Display.template.php of:
', ($settings['use_image_buttons'] ? ' (appears after <a href.......>)
and
' : $txt[X]), ' (appears after border="0" />)
So if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';
Would become: if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '"><img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" /></a>';
Quote from: akabugeyes on December 17, 2005, 01:01:54 PM
hyt, erase each occurance in Display.template.php of:
', ($settings['use_image_buttons'] ? ' (appears after <a href.......>)
and
' : $txt[X]), ' (appears after border="0" />)
Thanks mate. Appreciated.
this theme rocks awesome work akabugeyes
i have a question. the "new - no new messages in this forum section" text buttons at the index page.. they work fine with english (displayed).. but when i tried change the default language they aren't shown anymore
why?
got it
was the
$txt['forum_news'] ='Forum News';
$txt['user_info'] ='User Info';
$txt['no_new'] ='No new';
$txt['newposts'] ='New';
$txt['newchildposts'] ='New';
$txt['blank'] ='<span class="sep">-</span>';
at the index.languagename.php
^^ thx anyway
how do I get the on/off images to work in child boards?
I have tried all the links in this thread but have not been able to see anything, I keep getting error messages or sent back to this thread.
I really would like to see the theme!