Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Mick. on November 21, 2009, 08:57:00 PM

Title: packing a RC2 theme question
Post by: Mick. on November 21, 2009, 08:57:00 PM
I created an RC2 "Curve" variant theme but im having trouble loading it.

After i load it to my forum and select it in my profile, it shows: "Unable to load the 'main_above' template."


I have these folders and its files...

-CSS
-images
-languages
-scripts

and the files,

-index.php
-index.template.php
-theme_info.xml


Is there something wrong with this?

<?xml version="1.0"?>
<theme-info xmlns="http://www.simplemachines.org/xml/theme-info" xmlns:smf="http://www.simplemachines.org/">
<!-- Theme name, used purely for aesthetics. -->
<name>simpleB&W</name>
<!-- Author: your email address or contact information.  The name attribute is optional. -->
<author name="BlueDevil">[email protected]</author>
<!-- Website... where to get updates and more information. -->
<website>http://www.simplemachines.org/</website>
<!-- Template layers to use, defaults to "main". -->
<layers>html,body</layers>
<!-- Templates to load on startup.  Default is "index". -->
<templates>index</templates>
<!-- Base this theme off another?  Default is blank, or no.  It could be "default". -->
<based-on></based-on>
<id>bluedevil:simpleB&W</id>
</theme-info>
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 06:50:09 PM
For some reason when loading the new theme in Admin, is not showing (RC2) next to the theme's name in "Theme Settings".

Its because in the server when looking at the new theme's folder, is showing the index.template.php, index.php and template.info and some images empty at 0kb.

It seems the ZIP is not saving the folders and files right.   Any ideas?
Title: Re: packing a RC2 theme question
Post by: ethankcvds on November 23, 2009, 06:58:04 PM
What program are you using to compress the theme. How are you compressing it Zip, BZip, or GZip?
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 07:06:50 PM
Quote from: ethankcvds on November 23, 2009, 06:58:04 PM
What program are you using to compress the theme. How are you compressing it Zip, BZip, or GZip?

Im using WinZip and compressing it as Zip.
Title: Re: packing a RC2 theme question
Post by: Arantor on November 23, 2009, 07:10:27 PM
It doesn't like the & in the theme name.
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 07:12:41 PM
Quote from: Arantor on November 23, 2009, 07:10:27 PM
It doesn't like the & in the theme name.

I changed the name and the same thing happens.   How about capital letters?
Title: Re: packing a RC2 theme question
Post by: Arantor on November 23, 2009, 07:13:35 PM
And the ID too. & isn't normally permitted in XML because it means something else too.
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 07:16:16 PM
Heres my current one....


<?xml version="1.0"?>
<theme-info xmlns="http://www.simplemachines.org/xml/theme-info" xmlns:smf="http://www.simplemachines.org/">
    <!-- For the id, always use something unique - put your name, a colon,

and then the package name. -->
<id>bluedevil:BlueSkies</id>
<version>2.0 RC2</version>
<!-- Theme name, used purely for aesthetics. -->
<name>BlueSkies</name>
<!-- Author: your email address

or contact information.  The name attribute is optional. -->
<author name="BlueDevil">[email protected]</author>
<!-- Website... where to get updates and more information. -->


<website>http://www.curvevariations.com/</website>
<!-- Template layers to use, defaults to "html,body". -->
<layers>html,body</layers>
<!-- Templates to load on startup.  Default is "index". -->


<templates>index</templates>
<!-- Base this theme off another?  Default is blank, or no.  It could be "default". -->
<based-on></based-on>
</theme-info>



Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 07:18:52 PM
This what ive done....

I copied the index.template.php, index.php to my new theme.

Also copied the images folder with everything in it except the mainblock.png and the gfx.png.  I replaced them with my own.

Same with the CSS folder.

Im thinking the problem here is the theme.info
Title: Re: packing a RC2 theme question
Post by: Arantor on November 23, 2009, 07:19:39 PM
And that's saved as theme-info.xml in the top directory of the zip archive?
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 07:23:13 PM
Quote from: Arantor on November 23, 2009, 07:19:39 PM
And that's saved as theme-info.xml in the top directory of the zip archive?

At the moment its called theme_info

Hmmm..... ill try your way.
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 07:27:45 PM
Nope. That didnt work.

The 3 main files are still shown as 0kb in the server.
Title: Re: packing a RC2 theme question
Post by: Arantor on November 23, 2009, 07:30:39 PM
Can you attach the theme zip file here please?
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 07:31:30 PM
here..
Title: Re: packing a RC2 theme question
Post by: Arantor on November 23, 2009, 07:47:22 PM
Have to say I'm mighty confused. I don't get why it's doing that, sorry :(
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 07:49:12 PM
Quote from: Arantor on November 23, 2009, 07:47:22 PM
Have to say I'm mighty confused. I don't get why it's doing that, sorry :(

Did you find everything correct?    Where you able to load it and see "'main_above' template." ??
Title: Re: packing a RC2 theme question
Post by: Arantor on November 23, 2009, 07:55:41 PM
No, it doesn't work for me either but I have no idea why.
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 08:00:39 PM
Quote from: Arantor on November 23, 2009, 07:55:41 PM
No, it doesn't work for me either but I have no idea why.

That sucks.   lol.     
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 08:20:44 PM
You know,   im using the WinZip "Evaluation Version".  Is this a problem?
Title: Re: packing a RC2 theme question
Post by: Arantor on November 23, 2009, 08:22:41 PM
Don't think so, I was able to open the zip just fine. Might want to try 7-zip though...
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 10:25:35 PM
Quote from: Arantor on November 23, 2009, 08:22:41 PM
Don't think so, I was able to open the zip just fine. Might want to try 7-zip though...

Im using WinZip 14.  I investigated a bit further, i downloaded a theme from the them site, unzipped it and zipped it back up. Then loaded into my forum and it didnt work.

Is there a setting that i dont know about in winzip?
Title: Re: packing a RC2 theme question
Post by: Arantor on November 23, 2009, 10:31:10 PM
Maybe. Though I know others have had problems, which is why I suggested 7-zip (since I know that works reliably with SMF's unpacking system)
Title: Re: packing a RC2 theme question
Post by: Mick. on November 23, 2009, 10:32:51 PM
Quote from: Arantor on November 23, 2009, 10:31:10 PM
Maybe. Though I know others have had problems, which is why I suggested 7-zip (since I know that works reliably with SMF's unpacking system)

7-Zip worked.  Thank you.  Just need to get used it.