News:

Wondering if this will always be free?  See why free is better.

Main Menu

2.0 Sunset

Started by chadon, April 17, 2008, 03:28:10 PM

Previous topic - Next topic

chadon

#20
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.

poolhall

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?

poolhall

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.

chadon

Quote from: 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?

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:
QuoteNumber 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?

poolhall

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.

chadon

QuoteThe 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.

poolhall

chadon,

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

chadon

#27
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

<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.  ;)

Quotechadon,

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  ;)

poolhall

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?

chadon

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:

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


Before add:
<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:

// 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:

// 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:
*/.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.

poolhall

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!

chadon

 >:( 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:
.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

poolhall

thanks a lot, chadon!!!

poolhall

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?

chadon

#34
 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:

<div class="quoteheader"><a href="

In style.css, I look for the mention "quoteheader" and here is what I find:
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:

.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. ;)

poolhall

Thanks for the tip! Yes, it worked :)

poolhall

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?




chadon

Here is another thing that shouldn't be there :)

In Display.template.php search for:

<div style="font-weight: bold;"

and remove style="font-weight: bold;"


chadon

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.

poolhall

Wow chadon! Great stuff from you! :)

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

Advertisement: