Advertisement:

Author Topic: 2.0 Sunset  (Read 60015 times)

Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 470
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: 2.0 Sunset
« Reply #20 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.

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.
« Last Edit: September 06, 2008, 07:15:45 PM by chadon »

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #21 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?

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #22 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.

Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 470
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: 2.0 Sunset
« Reply #23 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?

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #24 on: September 04, 2008, 03:51:04 PM »
I mean this:


I highlighted the links to the last posts red.

A warning displayed below the avatar:


And another issue, please look at the green bar at the top of the board:


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.

Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 470
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: 2.0 Sunset
« Reply #25 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.

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #26 on: September 04, 2008, 04:56:05 PM »
chadon,

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

Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 470
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: 2.0 Sunset
« Reply #27 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  ;)
« Last Edit: September 04, 2008, 05:02:56 PM by chadon »

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #28 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?

Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 470
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: 2.0 Sunset
« Reply #29 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.

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #30 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!

Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 470
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: 2.0 Sunset
« Reply #31 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

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #32 on: September 05, 2008, 11:53:32 PM »
thanks a lot, chadon!!!

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #33 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?

Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 470
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: 2.0 Sunset
« Reply #34 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. ;)
« Last Edit: September 06, 2008, 10:27:03 AM by chadon »

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #35 on: September 06, 2008, 10:44:03 AM »
Thanks for the tip! Yes, it worked :)

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #36 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?




Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 470
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: 2.0 Sunset
« Reply #37 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;"

Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 470
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: 2.0 Sunset
« Reply #38 on: September 06, 2008, 07:13:28 PM »
I made a button generator 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.

Offline poolhall

  • Jr. Member
  • **
  • Posts: 316
Re: 2.0 Sunset
« Reply #39 on: September 06, 2008, 08:05:46 PM »
Wow chadon! Great stuff from you! :)

Thanks for the previous answer too, I got it done.