News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

packing a RC2 theme question

Started by Mick., November 21, 2009, 08:57:00 PM

Previous topic - Next topic

Mick.

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>

Mick.

#1
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?

ethankcvds

What program are you using to compress the theme. How are you compressing it Zip, BZip, or GZip?
No Pm's for support please!

Mick.

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.

Arantor

It doesn't like the & in the theme name.
Holder of controversial views, all of which my own.


Mick.

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?

Arantor

And the ID too. & isn't normally permitted in XML because it means something else too.
Holder of controversial views, all of which my own.


Mick.

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>




Mick.

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

Arantor

And that's saved as theme-info.xml in the top directory of the zip archive?
Holder of controversial views, all of which my own.


Mick.

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.

Mick.

Nope. That didnt work.

The 3 main files are still shown as 0kb in the server.

Arantor

Can you attach the theme zip file here please?
Holder of controversial views, all of which my own.


Mick.

#13
here..

Arantor

Have to say I'm mighty confused. I don't get why it's doing that, sorry :(
Holder of controversial views, all of which my own.


Mick.

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." ??

Arantor

No, it doesn't work for me either but I have no idea why.
Holder of controversial views, all of which my own.


Mick.

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.     

Mick.

You know,   im using the WinZip "Evaluation Version".  Is this a problem?

Arantor

Don't think so, I was able to open the zip just fine. Might want to try 7-zip though...
Holder of controversial views, all of which my own.


Advertisement: