SunRise

Started by SychO, September 22, 2018, 10:12:35 PM

Previous topic - Next topic

Jackmoon



Sorry to bother you, it's until I get to know the subject and its hahahaha code.

Where can I change the color of the bar of mobile browsers? within CSS files and what class

SychO

index.template.php

look for <meta name="theme-color"
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Jackmoon


serega06

Hello, I really liked your theme =) I had a question, how to change the standard board icons? I tried many ways but nothing helped, everything does not work. I would be very grateful for the help!

SychO

you'll find the images in the theme's images folder in your forum's Themes folder
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

serega06

Yes, but how can I make a different icon for each section? :o

SychO

You need a mod for that, you can search mods here https://custom.simplemachines.org/mods/
but there's no guarantee that any of them will work on the theme
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

serega06


Kindred

That mod works just fine if it is properly installed and the instructions followed....

1- did you apply it to this theme when you installed the mod?
2- did you create and place the new icons in a subdirectory of this theme as well as the default theme?

If you have problems with a specific mod, then you should ask in the support thread for that mod (since it is up to the author of the mod to provide support (or not). :) )
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

serega06

I installed it to the SunRise template. There is a different code that needs to be replaced ... the icons work but the template starts crooked work

Kindred

So, the mod actually WORKS --    it just needs manual modification to display nicely within this theme.
(which is likely to be true of almost any modern theme, since the original mod code was intended for the SMF Curve default, that is not at all modern. :) )
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

serega06

Yes, that's the problem :-\ :-[

Kindred

in that case, you just have to translate the code into a format that this theme uses....   


So, compare the Curve/default theme original code and what tat mod changes it to...

then take the SunRise original code and make the same sort of changes.

it's not a 1:1 replace in most modern themes - you have to use some basic human pattern matching and logic instead of computer 1:1 matching/logic.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

serega06


serega06

It works :-* :-* 8) 8)
/* 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.) */
$alter = true;
foreach ($category['boards'] as $board)
{
echo '
<tr id="board_', $board['id'], '" class="windowbg">
<td class="icon "', !empty($board['children_new']) ? ' rowspan="2"' : '', '>
<a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';
// If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
{
if (file_exists($settings['theme_dir'] . '/images/icons/' . $board['id'] . '/' . $context['theme_variant_url'] . 'on.png'))
$board_new_img = '/icons/' . $board['id'];
else
$board_new_img = '';
echo '
<img src="', $settings['images_url'], $board_new_img, '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" class="tooltip" title="', $txt['new_posts'], '" />';

}
// Is it a redirection board?
elseif ($board['is_redirect'])
{
if (file_exists($settings['theme_dir'] . '/images/icons/' . $board['id'] . '/' . $context['theme_variant_url'] . 'redirect.png'))
$board_redirect_img = '/icons/' . $board['id'];
else
$board_redirect_img = '';
echo '
<img src="', $settings['images_url'], $board_redirect_img, '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
}
// No new posts at all! The agony!!
else
{
if (file_exists($settings['theme_dir'] . '/images/icons/' . $board['id'] . '/' . $context['theme_variant_url'] . 'off.png'))
$board_nonew_img = '/icons/' . $board['id'];
else
$board_nonew_img = '';
echo '
<img src="', $settings['images_url'], $board_nonew_img, '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
}
echo '
</a>
</td>

serega06

Quote from: SychO on April 28, 2019, 12:22:08 PM
You need a mod for that, you can search mods here https://custom.simplemachines.org/mods/
but there's no guarantee that any of them will work on the theme
SychO, Where can I change this text?

Kindred

Change that text how?

That text is the linktree aka breadcrumbs and is generated automatically by the system as you click down to different pages/layers.

Or did you actually mean " how do I change the layout of that section because there is too much padding right now"?
(please be clear in what you actually want when you ask questions)

If that, then it's handled in index.css and you can use any of the browser webdev tools to play around with the CSS until you find out what works -- and then apply those changes to the file based on your experiments.

What is your forum URL?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

serega06

Quote from: Kindred on April 29, 2019, 03:12:13 PM
Change that text how?

That text is the linktree aka breadcrumbs and is generated automatically by the system as you click down to different pages/layers.

Or did you actually mean " how do I change the layout of that section because there is too much padding right now"?
(please be clear in what you actually want when you ask questions)

If that, then it's handled in index.css and you can use any of the browser webdev tools to play around with the CSS until you find out what works -- and then apply those changes to the file based on your experiments.

What is your forum URL?

I meant only a running line) I already found, thanks)

serega06

https://github.com/realdigger/SMF-Optimus [nofollow]
Can this mod work with this theme? I would install it, but I think it will be all in vain

Kindred

Did youj try to install it?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: