News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SunRise

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

Previous topic - Next topic

shadav

Quote from: PFigo on September 25, 2021, 04:03:27 PM
Quote from: SychO on September 17, 2021, 07:51:53 PM
Quote- in footer I need to edit theme author details

You can remove it, not edit it.
I appreciate your comments but it would be good if you read the previous posts first before making your comments.
I would suggest pming sycho for help then

as, again, that is something that you two will need to discuss via pms, not publicly if that is something that Sycho agreed to
no one else will help you with removing the copyright as that goes against the theme license
QuoteBut you may not remove the author's copyrights; either version 2 of the License, or (at your option) any later version.

Shambles

SychO - neat work on this theme.

Decided to grab it a couple of days ago and released it as an optional theme for my members.

Unfortunately, I believe a portion of the "theme settings" section is missing - namely, the bit that specifies which membergroups are allowed to use the theme ("theme permissions").

The result of not having that section is a blank value is made in smf_themes (variable "viewgroups") whenever the settings page is changed/saved.

Overall effect is that function PickTheme in Themes.php gets no data from the "viewgroups" value, thereby denying anyone other than Admin the use of SunRise.

I can manually update the "viewgroups" with a list of membergroup numbers and that fixes it, until the SunRise settings page is used again.

2.0.18

Shambles

.. and here is the fix.

Themes.template.php
Code (Find) Select
    // Do we allow theme variants?

Code ("Add Before") Select
    echo '
            <div class="cat_bar">
                <h3 class="catbg"><img src="', $settings['images_url'], '/icons/config_sm.gif" alt="" class="icon" /> ', $txt['alundra_theme_permissions_title'], '</h3>
            </div>
            <div class="windowbg2">
                <span class="topslice"><span></span></span>
                <div id="theme_permission_settings">';

    if (empty($context['groups']))
        echo $txt['alundra_theme_permissions_guest'];
    else
    {
        echo '
                    <ul class="reset">';

        foreach ($context['groups'] as $group)
        {
            echo '
                        <li><input type="checkbox" name="groups[]" value="', $group['id'], '" id="groups_', $group['id'], '"', $group['checked'] ? ' checked="checked"' : '', ' /> <span', $group['is_post_group'] ? ' style="border-bottom: 1px dotted;" title="' . $txt['mboards_groups_post_group'] . '"' : '', '><label for="groups_', $group['id'], '">', $group['name'], '</label></span></li>';
        }

        echo '
                        <li><input type="checkbox" onclick="invertAll(this, this.form, \'groups[]\');" /> <em>', $txt['check_all'], '</em></li>
                    </ul>
                    <br class="clear" />';
    }

    echo '
                </div>
                <span class="botslice"><span></span></span>
            </div>';



SychO

Quote from: Shambles on October 20, 2021, 09:10:28 AMUnfortunately, I believe a portion of the "theme settings" section is missing - namely, the bit that specifies which membergroups are allowed to use the theme ("theme permissions").

Yea, it's a mod that conflicts with the theme: https://www.simplemachines.org/community/index.php?topic=264667.0, other users using the mod can apply the fix you posted which is cool, though it's not code that can be added to the theme by default.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Shambles

Well, how embarrassing  :-[

I thought that "theme permissions" was standard SMF issue and never gave a second thought to it having been added by me as a mod all those years ago.

I do apologise.

SychO

Tough to keep track with all them mods ey  :P

All good though
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

dodos26

Wait for 2.1 smf version

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

dodos26

Quote from: Diego Andrés on January 11, 2022, 08:23:55 PM
Quote from: dodos26 on January 11, 2022, 08:22:40 PMWait for 2.1 smf version

https://www.simplemachines.org/community/index.php?topic=579912.0
It looks cool at first glance, but .. this is not that same :|
I like the broad theme, I like the look of the sub forum, Brightness switch button. Old better for me.

Anoni1337

Anyone knows how to re order avatar,name on .poster ? I did the thing in Display template but that screws up css for name I guess.I contacted owner of this theme and he refused to help so yea.Any ideas ?

depmod

Does the theme works with SMF 2.1.1?

WarlockWeary

Sorry for the message ...

I have been using your SUNRISE (2.0) Theme on : SMF 2.0.19
I Love it soooo much ! Everything seems to work great but ONE thing ...

When you get a private message ( like this )
Its shows you have a message < Good
You get a number count of how many messages < Good
You get a popup < Good

But when you read the message/s The Number count never goes down?
When you read the message .. I keeps showing you have un-read messages  :(

If I switch to the "stock theme" When you read a message count goes away.
see here we talk about this : https://www.simplemachines.org/community/index.php?topic=581154.0

Any Suggestions ?
Fixes ? or Is it Just me ?

THANKS !
Check out Android Watch Makers !
100's Of Watch Faces For your Android Watch!
https://www.android-watchmakers.com/

Diego Andrés

Seems to be default behavior, it displays the total of messages when there are no new ones.
Yo can change it in the index.template.php

Code (Search) Select
if (allowedTo('pm_read'))
echo '
<li><a class="', $context['user']['unread_messages'] > 0 ? 'notice' : '', '" href="', $scripturl, '?action=pm">' . fontawesome('fas fa-envelope') . ' ', $context['user']['unread_messages'] > 0 ? '<span class="newNumber">'.$context['user']['unread_messages'].'</span> '.$txt['new_messages'] : $txt['messages'].' ('.$context['user']['messages'].')', '</a></li>';

Code (Replace) Select
if (allowedTo('pm_read'))
echo '
<li><a class="', $context['user']['unread_messages'] > 0 ? 'notice' : '', '" href="', $scripturl, '?action=pm">' . fontawesome('fas fa-envelope') . ' ', $context['user']['unread_messages'] > 0 ? '<span class="newNumber">'.$context['user']['unread_messages'].'</span> '.$txt['new_messages'] : $txt['messages'], '</a></li>';

SMF Tricks - Free & Premium Responsive Themes for SMF.

WarlockWeary

Ok then ... I guess I am stupid @!

You are correct .. the Upper left is your avatar and when you hover a drop down shows ..
and it shows i have ( 1-2-3 ect ) messages
( I guess that shows how many i have total in the in-box )
It shows NEW messages with a different Icon thats red .. FFS  Sorry guys !
Check out Android Watch Makers !
100's Of Watch Faces For your Android Watch!
https://www.android-watchmakers.com/

WarlockWeary

Quote from: Diego Andrés on February 26, 2022, 06:10:52 PMSeems to be default behavior, it displays the total of messages when there are no new ones.
Yo can change it in the index.template.php

Code (Search) Select
if (allowedTo('pm_read'))
echo '
<li><a class="', $context['user']['unread_messages'] > 0 ? 'notice' : '', '" href="', $scripturl, '?action=pm">' . fontawesome('fas fa-envelope') . ' ', $context['user']['unread_messages'] > 0 ? '<span class="newNumber">'.$context['user']['unread_messages'].'</span> '.$txt['new_messages'] : $txt['messages'].' ('.$context['user']['messages'].')', '</a></li>';

Code (Replace) Select
if (allowedTo('pm_read'))
echo '
<li><a class="', $context['user']['unread_messages'] > 0 ? 'notice' : '', '" href="', $scripturl, '?action=pm">' . fontawesome('fas fa-envelope') . ' ', $context['user']['unread_messages'] > 0 ? '<span class="newNumber">'.$context['user']['unread_messages'].'</span> '.$txt['new_messages'] : $txt['messages'], '</a></li>';

Worked like a charm ... a big thankyou !
Check out Android Watch Makers !
100's Of Watch Faces For your Android Watch!
https://www.android-watchmakers.com/

blork

Are there any plans to update this to work with 2.1? I really like this theme and it's the main thing holding me back from updating to 2.1

Steve

One theme is holding you back? Shirley there must be a theme available you'd like.
DO NOT pm me for support!

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

blork

Quote from: Steve on July 19, 2022, 08:10:47 PMOne theme is holding you back? Shirley there must be a theme available you'd like.

Sounds silly but yeah! There isn't really another dark theme I like. Some come close but there's always a few issues with them.

Quote from: Diego Andrés on July 19, 2022, 08:48:31 PMIt's available here: https://www.simplemachines.org/community/index.php?topic=579912.0

I hadn't seen that as it's a paid theme so it's not listed in the "customization" section of the SMF site. Looks like it isn't available for sale anymore though. I did notice that the theme author (SychO) has another similar theme available which I'd previously ignored as I didn't see there was a dark mode toggle on it.

https://www.simplemachines.org/community/index.php?topic=575039.0

CSRa

Hello, I'm trying to make edits on the SMF Sunrise theme, but I couldn't manage to set a background image. I've visited many forums, but the suggestions didn't work. Can you help me with this

Advertisement: