• Welcome to Simple Machines Community Forum. Please login or sign up.
January 18, 2022, 05:28:46 AM


Join the Facebook Fan Page.


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

Previous topic - Next topic


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.


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.



.. and here is the fix.

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 class="windowbg2">
                <span class="topslice"><span></span></span>
                <div id="theme_permission_settings">';

    if (empty($context['groups']))
        echo $txt['alundra_theme_permissions_guest'];
        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>
                    <br class="clear" />';

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


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


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.


Tough to keep track with all them mods ey  :P

All good though
Checkout My Themes:

Potato  •  Ackerman  •  SunRise  •  NightBreeze


Wait for 2.1 smf version

Diego Andrés

SMF Tricks - Free & Premium Responsive Themes for SMF.


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

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.


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 ?