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
Overlays help
Avatar
BlueDagger
Member
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2012 - 2:32 am

I didn't want to post this one up in the sticky, so I figured I'd just make a new post. I'm attempting to make a new overlay for the Default theme, but I keep getting "Either the theme CSS file and/or color Overlay file from the selected theme is missing" error. 

 

Even when I just edited one of the already existing overlays (just changed things like the background to all black), saved the php, and updated teh overlay... it didn't make any changes in color. The overlay system seems extremely simple an I love it... but I think I'm doin it wrong or something lol.

 

Oh and I know not to edit andy of the default theme files since they will be potentially overwritten on updates. I merely wanted to add a new overlay file for the default theme so I didn't have to worry about keeping the theme as a whole manually up to date, just the overlay.

Lead site admin for RM40k.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 11, 2012 - 5:04 am

First be warned that overlays will get overwritten as well. I will need Steve to confirm this as has has done all the coding in this area but I think you will find that WP removes the target folder before replacing it with the updated one. I know they plan to introduce file level updating at some point but we don't have that available yet.

So the main question. I will probably need to know a little more about how you are doing things. What are you using to make the edits for example. The first thought is that php can no longer indentify the file as php code.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2012 - 9:39 am

yes, this part of the overlays was done at the start of themes...  all overlays are specified in the spTheme.txt file in the base theme directory...  we really need to change that to instead scan the overlays directory to find available overlays...

so the overlay listed in that file must match the name of the overlay main css (php) file...

we have a ticket open to scan instead of requiring that list...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2012 - 4:03 pm

just to clarify things...

yes, the entire default theme (and our other ones) gets removed by the wp updater when upgrading... so any overlays you add will be lost too...  so again, best to build your own theme... http://codex.simple-press.com/.....g-a-theme/

the wp devs keep talking about partial or incremental upgrades for plugins and themes but havent gotten to it yet... they did do incremental upgrades to core...

just committed changes so the theme overlay stuff works by scanning the overlays directory instead of requiring an edit to the theme definition file...

Avatar
BlueDagger
Member
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2012 - 5:34 pm

Thanks a bunch for all the info guys. My only worry with copying one of the themes is will the theme get out of date if any new design element is introduced? The only thing I'd like to do is change the colors to our sites's colors to better integrate the forums.

Lead site admin for RM40k.com

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2012 - 6:41 pm

at some point, we may try to allow the overlays to be located outside the theme, but we felt it was a big step as we were trying to introduce themes themselves...  so likely in the future, but not in 5.0... 

Once 5.0 releases final, outside chance tomorrow, but next weekend more likely, we will fight hard to maintain backwards compatibility...  the hope is that all user themes remain functional with future versions of sp just like wp...  final updates (we hope) to our 5.0 themes should be pushed out tomorrow either by formal release of updates...

of course, as you indicate, if we introduce new features, a theme may need to be modified in order to use the new feature... but we will document how to do that...

Avatar
BlueDagger
Member
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2012 - 6:52 pm

Sounds good, I'll hold off till next weekend though before I start monkeying with things 🙂

Lead site admin for RM40k.com

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2012 - 6:54 pm

we will be here! wink

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2012 - 6:55 pm

and btw, the main idea of overlays is to make changing colors easier... but it really helps the most if you do a new theme and want to offer it to others with new colors...

if you understand css, you might find it just as easy to start with the css-only theme and modify it for your needs...

but overalys are cool... and will be more so if we locate them outside the theme in the future...

Avatar
BlueDagger
Member
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2012 - 7:23 pm

Yeah the overlays were a really nice feature for a admin such as myself that likes to have a default theme that is updated by the creators but the colors are easily managed by the admin.

Lead site admin for RM40k.com

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626