Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Theme Site Themes => Topic started by: ForumMustang.com on April 17, 2008, 03:28:10 PM

Title: 2.0 Sunset
Post by: ForumMustang.com on April 17, 2008, 03:28:10 PM
Link to the theme (http://custom.simplemachines.org/themes/index.php?lemma=618)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcustom.simplemachines.org%2Fthemes%2Findex.php%2Faction%2Cdownload%2Flemma%2C618%2Fimage%2Cthumb&hash=2139d6d1d7bcae89d0fe965dbb9cdb49)

Updated version of the Sunset theme (http://custom.simplemachines.org/themes/index.php?lemma=569) for SMF 2.0. Comes with some SEO features such as site name and page name in the meta title and H1 tags on the header image... H1 tags can be replaced by your own logo in the admin section, the same way you do with the default theme.
Live demo (http://1000-ads-canada.com/forum/index.php)

Some members using SMF in other languages than English have no buttons showing in their navigation menu.
If you need theme, you can generate buttons in your language here: Button generator (http://1000-ads-canada.com/buttons/index.php)
You will need to rename them to:
home.gif
help.gif
search.gif
calendar.gif
login.gif
logout.gif
register.gif
moderate.gif
and place them in your language folder:
Themes/sunset/images/language_folder/
Title: Re: 2.0 Sunset
Post by: Joomlamz on April 20, 2008, 01:24:25 AM
yes good work nice themes
Title: Re: 2.0 Sunset
Post by: Fussilet on April 22, 2008, 04:03:32 PM
excellend theme , good work
Title: Re: 2.0 Sunset
Post by: sipko on June 06, 2008, 10:55:59 PM
Just installed this but none of the icons in the post box work. For example, when you click on the B bold type, the centering, the quote, or any other of the icons, nothing happens.  Also the new member awaiting approval link at the right hand top of the forum doesn't work either (which shows up when a new person registers and is awaiting admin approval).

Any help would be appreciated as I love this theme. 

I'm using 2.0 Beta 3.1 if that is a factor.

Title: Re: 2.0 Sunset
Post by: ForumMustang.com on June 07, 2008, 08:57:14 AM
  :o I adapted this theme from a 1.1.4 theme and as there is no documentation about what has been changed, I probably missed a lot of things.
 Thank you for reporting this, I will try to fix it as soon as I can  ;)
Title: Re: 2.0 Sunset
Post by: sipko on June 07, 2008, 12:17:22 PM
Thanks!
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on June 07, 2008, 12:53:36 PM
 This theme is based on the classic YaBB one so I had to recreate it from the beginning with the latest version to make sure there is no bug left. I am glad it only took 995 downloads before I received the first bug report. Thanks a lot Sipko.
 You can delete the theme you have on your forum and download the new version or overwrite the old files with FTP. There is probably a lot of modifications and I can't list them all.
 I don't have the registrations set to have an admin to approve members so I couldn't test the link but it should be displayed. If it doesn't, let me know.
Thank you again.
Title: Re: 2.0 Sunset
Post by: sipko on June 07, 2008, 03:28:41 PM
Perfect! Thanks.
Title: Re: 2.0 Sunset
Post by: tkoenings on August 14, 2008, 01:48:37 PM
I installed this theme and I really like it, good job. I have a problem though, when I change to one of the language packs such as brazil - the center menu options disappear (profile, admin, calendar, etc...). They are still there because I can mouse over them, see the links appear in the bottom of the browser, and then click on them to get back to english.

Any ideas? I would like to use the theme but need to use other language packs too.
Title: Re: 2.0 Sunset
Post by: tkoenings on August 14, 2008, 01:50:58 PM
Oh, one other comment is that you could probably reduce the size of the banner image a great deal - I took it down from 144kb to 20kb.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on August 14, 2008, 02:12:55 PM
Thanks for the compliments. I only made the buttons in English but they are all based on the Classic YaBB SE's theme buttons so you can move the images from there to the language image folder of your 2.0 Sunset theme.
There is also an option in admin allowing you to display text links instead of images.
Theme Settings > 2.0 Sunset > Uncheck: "Show buttons as images instead of text"
I didn't realize the size of the banner would be a problem, thanks for letting me know. I will see what I can do.
Title: Re: 2.0 Sunset
Post by: snakesmaster on August 20, 2008, 10:29:04 AM
Nice work bud! What about to translate it in spanish? I need it!  ;)
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on August 20, 2008, 11:46:41 AM
The only files you would need to use this theme in a Spanish forum would be the ones in the images folder.

Like I explained in my previous post you can use the ones from the Classic Yabb SE theme you have in your installation

Or rename the folder:
Themes/sunset/images/english/
To:
Themes/sunset/images/spanish/

If this doesn't work you may have to rename it to: spanish_latin, spanish_es, spanish_latin

If you need any help you can also PM me the URL of your forum and I will find a solution for you. I don't really know much about forums running other languages than English  :)
Title: Re: 2.0 Sunset
Post by: snakesmaster on August 21, 2008, 04:11:25 AM
Ok, it works fine with the images! Is it possible to change all the english texts in this version too?
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on August 21, 2008, 10:52:20 AM
To change the English text you will need to install the Spanish language pack. I just checked the download section of Simplemachines and I didn't find any Spanish language pack for SMF 2.0, so I am not sure if it can be done.
You will probably have to search the forum or ask the question in a new topic.
Title: Re: 2.0 Sunset
Post by: poolhall on September 03, 2008, 09:47:27 AM
Really good skin, looks professional! Thanks a lot, chadon!

I have a question about it, though. I can't find the way of displaying the options "Show new replies to your posts" and "Show unread posts since last visit", which usually can be found in the forum header. How can I restore  or maybe access them from another forum page?

Regards,
poolhall
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 03, 2008, 10:39:55 AM
Thanks for the compliment Poolhall.
The theme is based on the classic Yabb SE one and this function is not available but it can installed easily.

Open index.template.php

Find:
Code: [Select]
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>', $context['allow_pm'] ? ', ' . $txt['msg_alert_you_have'] . ' <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt['msg_alert_messages'] : $txt['message_lowercase']) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']) : '', '<br />

After add:
Code: [Select]
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a>

EDIT:
The theme has been updated in the download page. There is no need to modify the file if you have the latest version.
Title: Re: 2.0 Sunset
Post by: poolhall on September 03, 2008, 10:45:23 AM
thank you very much, chadon! I will try it tonight and let you know.

Regards,
poolhall
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 03, 2008, 11:00:55 AM
I updated the theme with this mod in the download section so it might be easier for you to uninstall the theme and reinstall it with the new files.
Thanks for letting me about this bug ;)
Title: Re: 2.0 Sunset
Post by: poolhall on September 03, 2008, 11:10:55 AM
Thanks a lot! It was not really a bug, more of a feature  :D

Regards,
poolhall
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 03, 2008, 11:47:19 AM
Thanks to poolhall's ideas, I made a new blank button so you can translate the navigation images in other languages.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.1000-ads-canada.com%2Fforum%2FThemes%2Fsunset%2Fblank.gif&hash=e36fc9458620d54e8d4cf208cd886d70)
Here is the images you need in Themes/sunset/images/language_folder/
home.gif
help.gif
search.gif
calendar.gif
login.gif
logout.gif
register.gif
moderate.gif
and more if you have mods installed.

If some of you want to share your translated images, you can post them here and I will add them to the theme download page. Thanks.

Edit: Check the download page for this theme to find out how you can create the buttons in your own language.
Title: Re: 2.0 Sunset
Post by: poolhall on September 03, 2008, 09:01:09 PM
chadon,

Would it be possible for you to add links to last posts in the Last Post column, like it made on the default theme?
Title: Re: 2.0 Sunset
Post by: poolhall on September 03, 2008, 09:32:43 PM
Another thing that I noticed is that a moderator warning issued to a user does not show up on the boards even if the option Show warning status to all users is checked in the Warning System settings. If you switch the skin to a default one, you can see the warning.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 04, 2008, 01:51:14 PM
chadon,

Would it be possible for you to add links to last posts in the Last Post column, like it made on the default theme?

I am not sure what you mean. If you are talking about the last n posts displayed at the bottom of the home page, it works on my test site and you have to set it in Configuration => Themes and Layout => Themes settings => 2.0 Sunset Theme and enter the number of posts you want to display in the following field:
Quote
Number of recent posts to display on board index
 

I will look into the warning message issue. I have never tested that function so I am not sure where to look. Can you tell me where the warnings are supposed to be displayed?
Title: Re: 2.0 Sunset
Post by: poolhall on September 04, 2008, 03:51:04 PM
I mean this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg234.imageshack.us%2Fimg234%2F2420%2Flastpostgb5.jpg&hash=1f2073fcae510590f473c5c11d53bebd)
I highlighted the links to the last posts red.

A warning displayed below the avatar:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg186.imageshack.us%2Fimg186%2F2498%2Fwarningnp1.jpg&hash=7b4cf0aaf7922ac2e3557553c45456fb)

And another issue, please look at the green bar at the top of the board:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg211.imageshack.us%2Fimg211%2F3193%2Ftopbarxn0.jpg&hash=17d4011787a8892b213cf3d5feb37aba)

The highlighted columns Board Name, etc , are not corresponding to the columns of the board. I'm not sure, maybe it's better to not have that bar at all or make it exactly like the board columns.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 04, 2008, 04:35:30 PM
Quote
The highlighted columns Board Name, etc , are not corresponding to the columns of the board.
I didn't notice that and yes it shouldn't be there. The Classic Yabb theme had the same bug so if it has been fixed, it shouldn't be too hard to correct it here.
I will do it tomorrow and let you know what to do about the other features then.
Title: Re: 2.0 Sunset
Post by: poolhall on September 04, 2008, 04:56:05 PM
chadon,

I'd like to reiterate that I really appreciate your efforts! :)
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 04, 2008, 05:00:52 PM
The theme has been updated without the column displaying board name, topics, posts, last posts.
If you want to manually fix it, you have to remove the following code from MessageIndex.template.php

Code: [Select]
<tr class="titlebg">
<td colspan="2">', $txt['board_name'], '</td>
<td width="6%" align="center">', $txt['board_topics'], '</td>
<td width="6%" align="center">', $txt['posts'], '</td>
<td width="22%" align="center">', $txt['last_post'], '</td>
</tr>

I will work on your other requests tomorrow.  ;)

Quote
chadon,

I'd like to reiterate that I really appreciate your efforts!

If I want to share my stuff it has to be good and you are a great helper  ;)
Title: Re: 2.0 Sunset
Post by: poolhall on September 04, 2008, 11:19:15 PM
Thanks, chadon, it worked! Will be patiently waiting for implementing other requested features, if possible. :)

I have a couple more questions/suggestions.

How can I change the color of hyperlinks in posts without changing the color of boards' and topics' names? Now hyperlinks are indistinguishable from regular text unless you accidentally hover the mouse over the text.

And the other question, would it be possible for you to change positioning of Locked Topic and Sticky Topic icons and to move them to the right of topic name, like it is in the default theme?
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 05, 2008, 09:46:42 AM
OK, I updated the theme in the theme download section with the mods listed below except the link color in posts. If some of you don't want the new features, you will probably figure out what to do to remove them from the install instructions  :)


1. To add the last post icon link:


Open MessageIndex.template.php

Find:
Code: [Select]

<span class="smalltext">', $topic['last_post']['time'], '<br />', $txt['by'], ' ', $topic['last_post']['member']['link'], '</span></td>

Before add:
Code: [Select]
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" style="float: right;" /></a>

2. To show warning status

Open Display.template.php

Find:
Code: [Select]

// 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>';
}
}
// Otherwise, show the guest's email.
elseif (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<br />
<br />
<a href="', $message['member']['show_email'] == 'no_through_forum' ? $scripturl . '?action=emailuser;sa=email;msg=' . $message['id'] : 'mailto:' . $message['member']['email'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" border="0" />' : $txt['email']), '</a>';

// Done with the information about the poster... on to the post itself.

Replace by:
Code: [Select]

// 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>';
}

// Are we showing the warning status?
if (!isset($context['disabled_fields']['warning_status']) && $message['member']['warning_status'] && ($context['user']['can_mod'] || !empty($modSettings['warning_show'])))
echo '
<br />
', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;u=' . $message['member']['id'] . ';sa=issueWarning">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '"/>', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span>';
}
// Otherwise, show the guest's email.
elseif (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<br />
<br />
<a href="', $message['member']['show_email'] == 'no_through_forum' ? $scripturl . '?action=emailuser;sa=email;msg=' . $message['id'] : 'mailto:' . $message['member']['email'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" border="0" />' : $txt['email']), '</a>';

// Done with the information about the poster... on to the post itself.

3. To change link color in posts

Open style.css

Find:
Code: [Select]
*/.bbc_color a{ color: inherit;}

Replace the word "inherit" by the color of your choice in this format #000000

4. To move the locked and sticky topic icons

 it can certainly be done but I looked at the code in the default theme for this function and I have a hard time to understand it and it seems there is a lot to do to move two of the icons from the rest of them. Maybe someone else can give you the answer if you open a new topic in the support section.
Title: Re: 2.0 Sunset
Post by: poolhall on September 05, 2008, 10:00:47 AM
Thanks chadon!

Regarding hyperlinks color, I actually tried yesterday changing style.css here:
.bbc_color a{   color: inherit;}

but the boards names and topics names, which are also hyperlinks, would change their color too!
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 05, 2008, 11:25:44 AM
 >:( That classic theme is full of bugs and sorry, I should have tested it before.

In style.css, you can add this code at the end of the file:
Code: [Select]
.post a {color:#000000;font-weight: bold;}You can change the color and remove the font weight mention if you don't want bold text in your links.
I tested it this time and it works  ;D
Title: Re: 2.0 Sunset
Post by: poolhall on September 05, 2008, 11:53:32 PM
thanks a lot, chadon!!!
Title: Re: 2.0 Sunset
Post by: poolhall on September 06, 2008, 12:35:26 AM
chadon, I hate to bother you that much, but I am again with the hyperlink color question :)

When I change .post a color, it also changes the color of quotes headers in the posts (Quote from: vanex on Yesterday at 10:23:37, for example) because they are also hyperlinks. And also this doesn't affect links color in private messages.
How can I correct these two issues too?
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 06, 2008, 10:23:08 AM
 What I do to edit the style.css is to look at the html source of the page and look for the element I need to edit. In your case it would be:

Code: [Select]
<div class="quoteheader"><a href="
In style.css, I look for the mention "quoteheader" and here is what I find:
Code: [Select]
The "Quote:" and "Code:" header parts... */.quoteheader, .codeheader{ color: #030303; text-decoration: none; font-style: normal; font-weight: bold; font-size: x-small; line-height: 1.2em;}/*

As you can see there is no link style for that portion so all you have to do is to add it in the file:

Code: [Select]
.quoteheader a {color:#000000;}You might want to duplicate the line for codeheader as well.

With the explanation I gave you, you should find out what to do with the private messages, if not let me know. ;)
Title: Re: 2.0 Sunset
Post by: poolhall on September 06, 2008, 10:44:03 AM
Thanks for the tip! Yes, it worked :)
Title: Re: 2.0 Sunset
Post by: poolhall on September 06, 2008, 04:47:04 PM
chadon,

What if for some elements div class is not defined? I see in the html source there is <div style="font-weight: bold;... for subject links inside every post (above dates) that I'd like to change too because they are too big and are repeated with every post and don't really give any useful information. Is there a way I can change it?



Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 06, 2008, 06:59:04 PM
Here is another thing that shouldn't be there :)

In Display.template.php search for:

Code: [Select]
<div style="font-weight: bold;"
and remove
Code: [Select]
style="font-weight: bold;"
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 06, 2008, 07:13:28 PM
I made a button generator (http://1000-ads-canada.com/buttons/index.php) if you need the menu buttons in a different language. There is not much to it yet and you can't set the font color at the moment but I will improve it.
Title: Re: 2.0 Sunset
Post by: poolhall on September 06, 2008, 08:05:46 PM
Wow chadon! Great stuff from you! :)

Thanks for the previous answer too, I got it done.
Title: Re: 2.0 Sunset
Post by: poolhall on September 09, 2008, 11:42:50 PM
chadon,

I found a little bug. Time to generate the page does not show up, even if this feature turned on in the admin panel.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 10, 2008, 10:39:43 AM
 I didn't have this feature enabled and I didn't see this bug. It does show up but with black font in the black background.
 I upgraded the zip file by moving it above the SMF copyright.
If you want to fix it yourself, you can modify the font or the background color in style.css or like I did:

In index.template.php find and delete this code:

Code: [Select]
// Show the load time?
if ($context['show_load_time'])
echo '
<div align="center" class="smalltext">
', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '
</div>';
}

function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';

find:
Code: [Select]
<a href="' . $scripturl . '">', $context['page_title'] != "$context[forum_name] - Index" ? "$context[forum_name] - " : '', $context['page_title'], '</a><br />add right after:

Code: [Select]
';
// Show the load time?
if ($context['show_load_time'])
echo '
<div align="center" class="smalltext">
', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '
</div>';
}

function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';
echo '
<br />
Title: Re: 2.0 Sunset
Post by: poolhall on September 10, 2008, 10:43:43 AM
much appreciated!  :)
Title: Re: 2.0 Sunset
Post by: tkoenings on September 20, 2008, 07:26:06 AM
Thank you very much for creating the blank buttons. I'll give that a try.

I also need the spanish language pack, I need to check to see if someone has created one for version 2.0 yet. I think that people are waiting until this version is stabilized / mature.

Again, great job on the skin. The size of the image is an issue for me since I want overseas users to access this and bandwidth is not nearly as good as here. It is easy to reduce the image size, a program like photoshop allows you to "save for web".  Reducing the size of the image and turning on http compression brings the size of most pages down to around 40kb.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 20, 2008, 11:36:19 AM
Two complaints about the size of that image, I guess this is becoming a priority :). I updated the package with a 44kb version of the same one and if any of you would like to update it without reinstalling the theme you can get it in the demo forum:
http://1000-ads-canada.com/forum/Themes/sunset/images/titlebg.jpg

I am part of the translation team and I know there is some people working on the Spanish language pack. If it's not available yet, it will be soon :)

Thanks for your feedback tkoenings.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 22, 2008, 12:33:19 PM
If you had this theme installed in the beta 3 and recently upgraded to the beta 4 version of SMF you will need two extra template files.
You can download the ones attached here and place them in your /Themes/sunset/ folder. The theme pack in the download section has also been upgraded with the new files.
Thank you TheVDM for your bug report  ;)
Title: Re: 2.0 Sunset
Post by: baijianpeng on September 26, 2008, 11:05:54 PM
I found one thing inconvenient in Sunset for SMF 2.0 beta4: when composing a post, the Subject field is below the textarea, this is not compatible with people's regular habit.

Please move the Subject field up to above the textarea.

If the author really love the current layout, could you please add an option for us to move it up?

Another request:

At the top of the page, there shows welcome messages. Could you please add a new feature to show current user's avatar on the left of those welcome messages?

Thanks.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 27, 2008, 12:19:57 PM
Baijianpeng,
I updated the Post.template.php attachment file in my previous post with a fix for the subject field location. The theme pack has also been updated.
I will see what I can do to add the member's avatar in the header and I will get back to you when I find a solution.
Thanks for your suggestions.
Title: Re: 2.0 Sunset
Post by: baijianpeng on September 27, 2008, 07:18:21 PM
Great ! I applied your new version and the subject field now appears above the textarea.

Thank you very much!

Another suggestion: Can you make that Extra Options link on the same page EXPANDED by default? Now it is collapsed by default and some users who are not familiar with SMF can't find the place to attach file and image. I think make it expanded is a better idea.

Thanks.
Title: Re: 2.0 Sunset
Post by: baijianpeng on September 27, 2008, 07:35:23 PM
Since the author is so responsive, I would like to report two bugs to help improving this theme.

1.  When enter the Admin backend, Sunset theme can't show those Admin images. Those images were in the Themes/default/images/admin folder. It seems that Sunset did not retrieve them from there but tried to load them from the own /images/admin folder.

2.  The footer of the page, "Powered by" should be in the same line with following text, but not. See attached screenshot.  Oh, my god, I just noticed that I can't attach files here. But I am sure you understand what I mentioned.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 27, 2008, 08:55:00 PM
 I understood what you meant with the copyright line  :)
Here is how you can fix it.
In the index.template.php file
find:
Code: [Select]
', theme_copyright(), 'add before:
Code: [Select]
<br />
I checked in my websites running with the beta 4 and this theme and the admin images are showing properly with the path to Themes/default/images/admin/

You can try to do the following test:
Access the admin page where the images don't show with the default theme. View the page source code and look for the URL path of an image that didn't show with the Sunset theme.
The path should be a full one like this: domain.tld/forum/Themes/default/images/admin/image-name.png
If you only have:
images/admin/image-name.png
then you have a bug with your installation. If the full path is showing with the default theme, let me know what version you have and I will look more into it.

About the expanded extra option link, I would also like to know how to fix it. Most of the members in my forum don't even know they can attach files and I have never been able to find a solution for that. I will try to look for it harder and let you know if I find a solution :)

I have been tring to find a way to add the member's avatars in the header today but I still have a hard time to get it in a correct location. I will keep you updated if I can get it done.
Title: Re: 2.0 Sunset
Post by: baijianpeng on September 27, 2008, 10:25:23 PM
Maybe the admin images error was caused by my bridge. I had integrated SMF 2.0 beta4 into Joomla! 1.5.7 by SJSB bridge.

Maybe the Extra Option expanding needs some Core SMF code to be modified. Hope the SMF developer team will fix this, or give us the option at backend to set it expanded by default.

Thanks for your kindly help.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 28, 2008, 02:14:41 AM
I found a solution about the expanded option link. It was in fact easier than I tought.

In Post.template.php
Find:
Code: [Select]
// Code for showing and hiding additional options.
if (!empty($settings['additional_options_collapsable']))
echo '
var currentSwap = false;

and replace the word false by true.

Thanks for your question. Now I can do the change so my forum's members can post files :)
Title: Re: 2.0 Sunset
Post by: baijianpeng on September 28, 2008, 04:33:00 AM
It works at my website, too. Hahahaha !

Thank you !
Title: Re: 2.0 Sunset
Post by: Pete Penguin on June 13, 2011, 05:57:11 PM
I have just upgraded to 2.0, and I like the theme. Simple & I can use my site's header to blend n. However, when I go to post, it show 4-different boxes:

http://www.petespoll.com/forum/

just try to post, or reply.
Title: Re: 2.0 Sunset
Post by: MrGrumpy on June 13, 2011, 06:17:08 PM
This theme is over 3 years old and was made for an earlier RC version of SMF 2 and would need updating to work with SMF 2 final
Title: Re: 2.0 Sunset
Post by: kilbourncm on September 20, 2011, 10:53:04 PM
I'm in the same boat, 4 boxes, can't post. I guess the only thing to do is get a new theme then?
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on October 13, 2011, 10:05:54 PM
Sorry for the delay but the theme has finally been updated. I have been testing it all day on a production forum and everything seems fine. If you notice any bug, let me know.
Title: Re: 2.0 Sunset
Post by: Linda.V on October 21, 2011, 08:52:06 AM
Nice theme chadon and thanks for updating ;)
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on October 24, 2011, 01:47:01 PM
Thank you. :)
Title: Re: 2.0 Sunset
Post by: MSmith on January 02, 2012, 11:54:06 PM
Great theme!    :)

We ran it on SMF 1.1. After we upgraded to 2.0 we also upgraded to the 2.0 Sunset. It looks and functions better than before along the added SEO, security and other features I’m very pleased!

Thanks,
Marc
Ephesians4Forum.org
 
Title: Re: 2.0 Sunset
Post by: Linda.V on January 03, 2012, 03:05:51 AM
Great theme!    :)
Indeed, a great classic theme!
Thanks again for the update chadon ;)
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on January 03, 2012, 08:04:08 AM
Thank you Marc and Linda, glad you like it. :)
Title: Re: 2.0 Sunset
Post by: MSmith on January 04, 2012, 11:31:12 PM
I would like to add a link to our facebook and twitter. Can we add it as a button in the upper navigation bar just under the banner? If so, how?

Thanks,
Marc
Ephesians4Forum.org/forums
Title: Re: 2.0 Sunset
Post by: Linda.V on January 05, 2012, 02:13:17 AM
Hello chadon,

I also would like to ask you 2 things about the header.

May I change the height of the header and if yes where can I do this?

I'd like to change the logo, colour the header and put on the left side my little logo, could you also tell me how to do this?

Thanks ;)
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on January 05, 2012, 07:56:48 AM

I would like to add a link to our facebook and twitter. Can we add it as a button in the upper navigation bar just under the banner? If so, how?
Hi Marc


This has nothing to do with theme files but you can find instructions on how to do this here:
http://wiki.simplemachines.org/smf/How_do_I_add_buttons_to_SMF_2.0


Quote
May I change the height of the header and if yes where can I do this?
Hi Linda
In the index.template.php of the theme's folder find:
Code: [Select]
<td valign="middle" height="261" align="left">';
And replace the 261 value with the one of your choice.


Quote
I'd like to change the logo, colour the header and put on the left side my little logo, could you also tell me how to do this?
I am not sure if I understand your question but if you want to replace or modify the header image, you will have to replace it by giving the same name to your new image and placing it in the same folder as the existing one:
yoursite.com/Themes/sunset/images/titlebg.jpg


If you would like to ad a logo above the header image and if Sunset is your deflault theme, you have to go to your admin panel under Configuration > Current theme  and enter the URL of your logo in the following field:


Logo image URL:
(leave blank to show forum name or default logo.)
If Sunset is not your default theme go in
Themes and layout > Theme settings and click on the 2.0 Sunset theme link.


I hope this helps.  :)
Title: Re: 2.0 Sunset
Post by: Linda.V on January 06, 2012, 12:43:51 AM
Thanks for your help chadon.
Title: Re: 2.0 Sunset
Post by: MotorCookie on January 28, 2012, 12:36:03 PM
This theme is what I've been looking for. I just need to make the forum width wider.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on January 28, 2012, 08:07:51 PM
To make the forum wider, you will have to open index.template.php, search for the following code:
Code: [Select]
width="950" and change the 950 value with the width of your choice. You will find it 3 times in the file and you will have to replace all 3.

The header image has also been set to be displayed with a width of 950 pixels so if you want to have a wider forum, this image will have to be replaced. I am sorry but I did this theme years ago and I don't have the original image to give you anymore.
Title: Re: 2.0 Sunset
Post by: Linda.V on January 29, 2012, 01:55:21 AM
Hello chadon,

I also would like to make the forum wider, can I than change 3x the width="950" to width="95%" ?
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on January 30, 2012, 07:13:43 AM
Yes you can use a percentage but you may have problems with the header image if the resolution of some computers is greater than the width of the image.
Title: Re: 2.0 Sunset
Post by: JohnS on January 30, 2012, 03:16:43 PM
Hi Chadon
I very much like the theme and I can match it into the rest of my site. But I have a strange issue which I will try and explain.
I just enabled some custom fields for registration, now when I go to look at the forum profile for anyone the fields are there but they move, for example the space between the top section and the custom fields keeps getting bigger by adding one line about every second.
This only happens in IE9, in IE8 the fields do not move but they are not lined up with the descriptions.
This problem does not happen in Firefox.
Have you any idea what this could be? Or any clue to where I should look.
There is no problem in the default curve theme. So I am assuming it is something in the 2.0 Sunset theme.
Many thanks
John
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on January 30, 2012, 04:19:09 PM
Hi John.
I never tried the custom fields with this theme but I will see what I can do. Thanks for letting me know about this bug. :)
Title: Re: 2.0 Sunset
Post by: JohnS on January 30, 2012, 04:35:55 PM
Many thanks Chadon, I have not had time tonight since it cropped up, but will see if I can look at it as well tomorrow. Must be something in the CSS I would think.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on January 30, 2012, 05:49:25 PM
I see a little problem with the display of the menu in the profile page but I don't see anything wrong with the custom fields with IE9. Here is a link below for my test forum, can you tell me how it looks at your end?
http://1000-ads-canada.com/forum/index.php?action=profile;u=1

If you don't see the bug, can you give me a link to your forum here or by private message?
Title: Re: 2.0 Sunset
Post by: JohnS on January 31, 2012, 01:27:35 PM
I have looked at the coding but it is beyond me, though there is a tick function set to 1 second intervals in that page, so that is probably causing it, but why I do not know.
I have PM's you a password as you will only be able to see it if logged in.
Thanks
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on January 31, 2012, 05:43:46 PM
I was able to reproduce the problem on your forum and on mine as well and managed to get a fix by removing the tick fonction but I have no explanation on why it is happening and what this function is needed for.  ???

The tick function is in the Profile.template.php file from the default theme so if you want to use my fix, you have to place a Profile.template.php attached here in the sunset theme folder. I can't say if it's a safe mod or if there won't be any side effects but it did get rid of the bug and if you plan to do it, it's at your own risk, I am sorry for not being able to be of a better help. :(
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on January 31, 2012, 05:45:34 PM
By the way, here is the code I removed from the Profile.template.php file, maybe someone will be able to say what it is for.

Code: [Select]
<script type="text/javascript"><!-- // --><![CDATA[
                                    function tick()
                                    {
                                        if (typeof(document.forms.creator) != "undefined")
                                        {
                                            calcCharLeft();
                                            setTimeout("tick()", 1000);
                                        }
                                        else
                                            setTimeout("tick()", 800);
                                    }

                                    function calcCharLeft()
                                    {
                                        var maxLength = ', $context['signature_limits']['max_length'], ';
                                        var oldSignature = "", currentSignature = document.forms.creator.signature.value;

                                        if (!document.getElementById("signatureLeft"))
                                            return;

                                        if (oldSignature != currentSignature)
                                        {
                                            oldSignature = currentSignature;

                                            if (currentSignature.replace(/\r/, "").length > maxLength)
                                                document.forms.creator.signature.value = currentSignature.replace(/\r/, "").substring(0, maxLength);
                                            currentSignature = document.forms.creator.signature.value.replace(/\r/, "");
                                        }

                                        setInnerHTML(document.getElementById("signatureLeft"), maxLength - currentSignature.length);
                                    }

                                    addLoadEvent(tick);
                                // ]]></script>
   
Title: Re: 2.0 Sunset
Post by: JohnS on February 01, 2012, 05:06:24 AM
Hi Chadon
Many thanks for this. As far as I can see the tick function updates the character count in the signature. Removing it should not give a problem but I am trying to seek some further information on this. Strange that it only affects your profile and not the default one, there must be some interaction somehow.
Thanks for all your prompt help
Best wishes
John
Title: Re: 2.0 Sunset
Post by: impreza on February 19, 2012, 01:17:26 PM
nice done, thank you
Title: Re: 2.0 Sunset
Post by: justjim on May 04, 2012, 05:49:25 PM
Chadon

Very nice theme.
Could you direct me to the right section in the style.css sheet (or other file) to change the font color in the header? I.E. where is says "Welcome, guest login, etc.

Thank you
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on May 04, 2012, 08:02:27 PM
Hi Justjim and thank you for the compliment.

Near the end of the style.css file you will see the code needed for everything in the header under ".top".

The page and forum title is within this code:
Code: [Select]
.top h1 {    color: #F0FFF0;

and the "welcome, guest login, etc" is below the previous code:

Code: [Select]
.top p {    color: #C0C0C0;
Title: Re: 2.0 Sunset
Post by: eafshar on July 01, 2012, 04:57:11 AM
Hi!  this is by far the best template i have found so far.. could yo please help me change the background color and add a repeating image instead. i am refering to the background image of all the pages which is currently black.  And also where the link to the sunset image is located for when i want to change it.

many MANY THANKS!
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on July 01, 2012, 09:41:42 AM
Hi Eafshar, thank you for the compliment. :)

To modify the background you can modify the style.css file located in the sunset folder.

At the begining of the file find the following code:

Code: [Select]
body {background : #000000;}
and replace it with:

Code: [Select]
body
 {
 background-image:url('images/name-of-image.jpg');
 background-color:#000000;
 }

You will have to replace name-of-image.jpg by the name of the file by the one you want to use and upload this file in the /themes/sunset/images folder of your forum.
The background color #000000 is for a black color but you can replace it with a valid hml color code and find it in websites like the following ones:
http://www.google.com/search?q=html+color+codes

To replace the sunset image in the header you will have to name the file you want to use "titlebg.jpg" and place it in the images folder of the sunset theme or replace titlebg.jpg with the name of your image in the following code located at the end of the style.css file:

Code: [Select]
.top
{
    background: url(images/titlebg.jpg) #E9F0F6 repeat-x;
}

I haven't tested the codes I'm giving you so if you have any trouble, let me know and I will look deeper into this.  ;)
Title: Re: 2.0 Sunset
Post by: eafshar on July 01, 2012, 06:50:54 PM
Thank you Chadon!

i used

body
{
   background-image: url('images/pattern_1.jpg');
   background-repeat: repeat;
}

and

deleted the .topr background as i wanted to have the same background as the rest of the site.

It is working very well!  However i am also interested in changing the width of the top banner
check http://consciousnesscentre.ca/forum/ (http://consciousnesscentre.ca/forum/) .   please direct me as to where the width of the top banner is controled.  Thank you!
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on July 01, 2012, 07:31:42 PM
It's looking good.  :)

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

Find:
Code: [Select]
<td valign="middle" height="261" align="left">
and add a value or a percentage for the width like this:

Code: [Select]
<td valign="middle" height="261"  width="70%" align="left">
and:
Code: [Select]
<td valign="middle" align="right">can become:
Code: [Select]
<td valign="middle"   width="30%" align="right">
Title: Re: 2.0 Sunset
Post by: eafshar on July 01, 2012, 10:25:37 PM
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. 
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on July 02, 2012, 06:01:01 AM
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: [Select]
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['page_title'] != "$context[forum_name] - Index" ? "$context[forum_name] - " : '', $context['page_title'], '" />
and replace it with:

Code: [Select]
<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'], '" />
Title: Re: 2.0 Sunset
Post by: rlake on May 07, 2013, 01:19:06 AM
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
Title: Re: 2.0 Sunset
Post by: rlake on May 12, 2013, 07:25:46 PM
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
Title: 2.0 Sunset - Switch main navi from graphics to text links
Post by: debiwebi on November 24, 2015, 08:27:16 PM
Hopefully this is the right place to ask a question, I see it's been a couple of years since anyone has posted here.

I've been using 2.0 Sunset for almost a year now and still really love it. I redid the graphics for the navigation, but am now thinking I'd like to just go with plain text rather than graphics for the main navigation, because I may want to add a mod (or two) that could affect those links.  http://speakingofseth.com/

Is this something you can tell me how to do? I'm not a coder, but can fumble my way around enough to get by.

Thanks.

Title: Re: 2.0 Sunset
Post by: ForumMustang.com on November 24, 2015, 11:05:28 PM
Hi

All depends what you want to do. If you only want to delete the background image, you have to edit the file Themes/sunset-2-0-1-5/style.css

Find the following code:

Code: [Select]
.top
{
background-color: #FFFFFF;
background-image: url(images/titlebg.jpg);
background-repeat: no-repeat;
}

and replace with:

Code: [Select]
.top
{
background-color: #FFFFFF;
background-repeat: no-repeat;
}

You will also need to change the white background #FFFFFF with the color of your choice.
http://www.w3schools.com/html/html_colors.asp

Let me know if you need more help.
Title: Re: 2.0 Sunset
Post by: debiwebi on November 25, 2015, 12:15:00 AM
All depends what you want to do. If you only want to delete the background image, you have to edit the file Themes/sunset-2-0-1-5/style.css

Okay, thanks, I didn't know if there was someplace other than the style sheet that I needed to change. I didn't want to end up with pesky missing image symbols. I will give that a try this week and if I run into problems I'll definitely give you a shout.

Thanks so much for your prompt response!
Title: Re: 2.0 Sunset
Post by: debiwebi on November 25, 2015, 11:55:22 PM
Oops, I guess we misunderstood each other.

I would like to not have images for the main navigation links: the links for home, help, search, log in, register (see attachment).

I just want them to be text links. Is there a way I can do that? If the change will affect all the other links throughout the forum, that's fine too.
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on November 26, 2015, 11:18:13 AM
Ho, I see. Like with any other theme, you will have to go in the admin section in "themes and layout" and "theme settings", click on the Sunset 2.0 name and uncheck the "Show buttons as images instead of text" box.
Title: Re: 2.0 Sunset
Post by: debiwebi on November 26, 2015, 11:27:02 AM
That simple, huh? There's so much to know about SMF. Thanks so much for the speedy reply!  :)
Title: Re: 2.0 Sunset
Post by: gaswigg on September 19, 2018, 12:33:44 PM
Hi im going to jump this ahead 3 years but Love the theme but im having a problem with installing a mod called Adk Personal Icons Forums. It wants to replace 3 lines of type in the BoardIndex.template.php and the MessageIndex.template.php it then tells you to search for this line of code and I have searched and searched for them lines of code and come up with nothing can you help below are the 6 lines of code to be replaced and what to replace but I can't find the lines of code to be replaced Please help this mod is great and works well on the default theme's and one other question will your theme work with PHP 7.0 and higher or just up to 5.6. please remember im not a coder so but I can work thru it some. Thanks bunches

 <file name="$themedir/BoardIndex.template.php">
   <operation>
      <search position="replace"><![CDATA[
                     <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
]]></search>
      <add><![CDATA[
                     <img id="AdkPif_'.$board['id'].'" src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="*" title="*" />';
]]></add>
   </operation>
   <operation>
      <search position="replace"><![CDATA[
                     <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
]]></search>
      <add><![CDATA[
                     <img id="AdkPif_'.$board['id'].'" src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
]]></add>
   </operation>
   <operation>
      <search position="replace"><![CDATA[
                     <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
]]></search>
      <add><![CDATA[
                     <img id="AdkPif_'.$board['id'].'" src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="*" title="*" />';
]]></add>
   </operation>
</file>
<file name="$themedir/MessageIndex.template.php">
   <operation>
      <search position="replace"><![CDATA[
                     <img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
]]></search>
      <add><![CDATA[
                     <img id="AdkPif_'.$board['id'].'" src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="*" title="*" />';
]]></add>
   </operation>
   <operation>
      <search position="replace"><![CDATA[
                     <img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
]]></search>
      <add><![CDATA[
                     <img id="AdkPif_'.$board['id'].'" src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
]]></add>
   </operation>
   <operation>
      <search position="replace"><![CDATA[
                     <img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
]]></search>
      <add><![CDATA[
                     <img id="AdkPif_'.$board['id'].'" src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="*" title="*" />';
]]></add>
Title: Re: 2.0 Sunset
Post by: ForumMustang.com on September 19, 2018, 01:44:00 PM
Hi, I am sorry but it has been years since I used this theme or updated it and it seems that the mod you are talking about is the same. You should probably get rid if the theme or the mod or both.
https://www.simplemachines.org/community/index.php?topic=463251.0

As for PHP 7.0 I have not tried it but I doubt it would be a problem. If the theme doesn't work, it would rather come from its html code with newer browsers than its php code with newer php versions.
Title: Re: 2.0 Sunset
Post by: Kindred on September 19, 2018, 02:15:54 PM
https://wiki.simplemachines.org/smf/Error_in_mod_installation