Advertisement:

Author Topic: SunRise  (Read 29906 times)

Offline Jackmoon

  • Newbie
  • *
  • Posts: 6
Re: SunRise
« Reply #200 on: April 26, 2019, 03:39:29 PM »


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

Online SychO

  • Customizer
  • Sophist Member
  • *
  • Posts: 1,187
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: SunRise
« Reply #201 on: April 26, 2019, 03:45:39 PM »
index.template.php

look for <meta name="theme-color"

Imazighen

Offline Jackmoon

  • Newbie
  • *
  • Posts: 6
Re: SunRise
« Reply #202 on: April 26, 2019, 03:49:40 PM »
Thanks guy

Offline serega06

  • Semi-Newbie
  • *
  • Posts: 10
Re: SunRise
« Reply #203 on: April 28, 2019, 11:17:00 AM »
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!

Online SychO

  • Customizer
  • Sophist Member
  • *
  • Posts: 1,187
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: SunRise
« Reply #204 on: April 28, 2019, 11:48:45 AM »
you'll find the images in the theme's images folder in your forum's Themes folder

Imazighen

Offline serega06

  • Semi-Newbie
  • *
  • Posts: 10
Re: SunRise
« Reply #205 on: April 28, 2019, 12:07:01 PM »
Yes, but how can I make a different icon for each section? :o

Online SychO

  • Customizer
  • Sophist Member
  • *
  • Posts: 1,187
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: SunRise
« Reply #206 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

Imazighen

Offline serega06

  • Semi-Newbie
  • *
  • Posts: 10
Re: SunRise
« Reply #207 on: April 28, 2019, 12:28:35 PM »
I tried to install https://custom.simplemachines.org/mods/index.php?mod=511 but it does not work :-[ :-[ :-[ :(

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,063
  • Gender: Male
    • Kindred-999 on GitHub
Re: SunRise
« Reply #208 on: April 29, 2019, 07:57:48 AM »
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). :) )
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline serega06

  • Semi-Newbie
  • *
  • Posts: 10
Re: SunRise
« Reply #209 on: April 29, 2019, 08:28:35 AM »
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

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,063
  • Gender: Male
    • Kindred-999 on GitHub
Re: SunRise
« Reply #210 on: April 29, 2019, 08:32:02 AM »
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. :) )
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline serega06

  • Semi-Newbie
  • *
  • Posts: 10
Re: SunRise
« Reply #211 on: April 29, 2019, 08:35:08 AM »
Yes, that's the problem :-\ :-[

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,063
  • Gender: Male
    • Kindred-999 on GitHub
Re: SunRise
« Reply #212 on: April 29, 2019, 12:59:26 PM »
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.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline serega06

  • Semi-Newbie
  • *
  • Posts: 10
Re: SunRise
« Reply #213 on: April 29, 2019, 01:04:30 PM »
I'll try )) ;)

Offline serega06

  • Semi-Newbie
  • *
  • Posts: 10
Re: SunRise
« Reply #214 on: April 29, 2019, 01:27:55 PM »
It works :-* :-* 8) 8)
Code: [Select]
/* 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>

Offline serega06

  • Semi-Newbie
  • *
  • Posts: 10
Re: SunRise
« Reply #215 on: April 29, 2019, 03:07:42 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?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,063
  • Gender: Male
    • Kindred-999 on GitHub
Re: SunRise
« Reply #216 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?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline serega06

  • Semi-Newbie
  • *
  • Posts: 10
Re: SunRise
« Reply #217 on: April 29, 2019, 03:47:04 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)

Offline serega06

  • Semi-Newbie
  • *
  • Posts: 10
Re: SunRise
« Reply #218 on: April 29, 2019, 04:42:37 PM »
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

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,063
  • Gender: Male
    • Kindred-999 on GitHub
Re: SunRise
« Reply #219 on: April 29, 2019, 07:29:40 PM »
Did youj try to install it?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.