Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Question on Reboot child framework
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 2:48 pm

Would prefer to do it in the overlay so that the style sheet doesn't over-ride it if someone picks a different one through the theme switcher

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 2:55 pm

OK, so you could try:

Stylesheet:

#spMainContainer .spTopicListSection .spEven {
    background: <?php echo($newPostsBackgroundEven); ?>;
}

#spMainContainer .spTopicListSection .spOdd {
    background: <?php echo($newPostsBackgroundOdd); ?>;
}

Overlay:

$newPostsBackgroundEven            =        $baseColor;    or    '#xxxxxx';
$newPostsBackgroundOdd            =        $baseColor;    or    '#xxxxxx';

And of course remember that if you are using the new post expansion button per forum in group view, it displays the new posts in the same format with the same classes, so it will change there also.

Should work, let me know if not and I'll test it out.

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 3:11 pm

will do, will that take care of hover as well?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 3:20 pm

No, figured we should see if it's the right class structure first.

For hover, you would need to do the same process, but adding :hover after the .spEven and .spOdd, and also the variables both inside the CSS and in the overlay. I.e:

#spMainContainer .spTopicListSection .spEven:hover {
    background: <?php echo($newPostsBackgroundEvenHover); ?>;
}

#spMainContainer .spTopicListSection .spOdd:hover {
    background: <?php echo($newPostsBackgroundOddHover); ?>;
}

$newPostsBackgroundEvenHover     =      $baseColor;    or    '#xxxxxx';
$newPostsBackgroundOddHover     =      $baseColor;    or    '#xxxxxx';
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 3:25 pm

quick question, is this something I need to modify or add?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 3:34 pm

You'll need to add.

In post #42, the code under 'stylesheet' will need to go in your child theme reboot.php (or reboot-child.php, whatever it's called)

And the code under 'overlay' will need to be added to each overlay for which you want to be able to change the colours.

In fact, that might be a bit of a snag. Give it a try, and if it works OK test some of the overlays that don't have the change, it might throw a few warnings..

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 8:55 pm

I couldn't get it to work, so I just edited

$listViewBackGroundColor and $listViewBackGroundHover for the color I wanted, it's not odd/even but it looks better than the white with grey hover

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2015 - 10:49 pm

so all set then?

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Apr 8, 2015 - 7:08 am

Yes sir

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 8, 2015 - 10:50 am

Good to know 🙂

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625