MyBB Community Forums

Full Version: Can't properly import a new theme
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I originally posted this in the themes support area but someone suggested this be posted here.
http://community.mybb.com/thread-87644-p...#pid641006
Please forgive me for a duplicate thread.


For some reason, i'm having an awful hard time importing a new theme into my test board.

I cannot get the thing to accept it's own templates no matter what I do. When It uploads and goes to the theme properties area, it's not showing any choice of templates for the theme to use. It's forcing Default templates on the theme.

What I did:

Export the Default template.
Opened it in a text editor and made my usual changes to theme name, editor name and path for images.
Saved.
Uploaded via ACP - select NO for custom items only
Select YES for import style sheets.

It uploads and goes to the theme properties page and it shows the theme correctly named but it does not give me a choice on what templates it should follow.
Normally it automatically says it's going to follow the theme's templates but this one is forcing Default on me.

I've deleted and tried to install several times now. All the same.

Now, since v. 1.6.1 this has been going on.
I also noticed this bit of code at the top:

<theme name="Default" version="1601">
	<properties>
		<templateset><![CDATA[1]]></templateset>
		<imgdir><![CDATA[images]]></imgdir>
		<logo><![CDATA[images/logo.gif]]></logo>
		<tablespace><![CDATA[4]]></tablespace>
		<borderwidth><![CDATA[1]]></borderwidth>
		<editortheme><![CDATA[default]]></editortheme>
	</properties>

The first line, regarding templateset - should I be inserting my own number in there or what? I've never touched this in the past. It's always worked fine.

I've also tried exporting the Default theme differently.
Normally I select NO on the first option (Include customized items only?
If you wish to include items (css and stylesheets) inherited from parent themes select "no", otherwise only customized elements will be exported.)
And YES on the second (Include templates).
I tried hitting NO and NO - yields the same importing results.

Anyone else finding this issue?
I've come to the conclusion it's the software and not me.

How? Why?

First of all, working with the above is a fresh install of v 1.6.1
I took the default theme from one of my own working sites and exported it, edited in my usual way and then imported to the test board. It WORKED FINE!

I dropped all the tables in the test board about half an hour ago.
I took another fresh copy of Mybb and re-installed.
I exported the default theme, edited exactly the same, imported. STILL NOT WORKING.

Whatever is going on, I can't figure out. I'm no coder.
All I know is that I can use an exported and edited theme from any other board I have but this fresh install of Mybb 1.6.1.
Have you edited any templates of this theme prior to exporting? Maybe there just aren't any...?
No edits. I did exactly as I described above.

I can export the default theme from any other board and it imports properly.
(2011-02-02, 10:53 PM)frostschutz Wrote: [ -> ]Have you edited any templates of this theme prior to exporting? Maybe there just aren't any...?

You're right. I triple checked today and the templates are not exporting from the theme.

I've tried exporting several different ways through the ACP and no matter what I check, it's not exporting the default templates.

This is a fresh install of Mybb 1.6.1

All my other boards are 1.6.1 but have gone through various upgrades, some as far back as 1.2. They all export fine.

Could there be a bug in the system?
See the answer in the other thread:
http://community.mybb.com/thread-87644-p...#pid641510
It doesn't export the full template set, only what's changed. If no templates are changed, it exports no templates.
Feel free to close the other thread. I apologize for the duplicate but I did as suggested by another member and figured staff would lock the redundant thread. Hell, you can delete it if you have to.

Matt, I've done this over 100 times and it indeed exported the default templates. It may not have ever been a full template set, but it was a working, independent theme when I imported it in.
It's exporting them off the other sites, so why not this one with a fresh install? I've not touched the default templates on the other sites.

Is this a new thing in 1.6.1? Because before I upgraded to 1.6.1, it worked fine. In fact, when my test board went from 1.6.0 to 1.6.1, it exported correctly. I was having some issues (not related to this) and I wiped out the board and put in a fresh install and that's when this started happening.
Right, I made a new theme with a new template set, and edited one template. When I export it and I set 'Include customized items only?' to No, I get an export file that just contains the template I edited. If I set 'Include customized items only?' to Yes, I get all the CSS and the template I edited. Either way, when I import the theme, it creates a new template set, with the edited template, and the theme is set to be using that new template set. If you've not edited any templates, whether you set 'Include customized items only?' to Yes or No, it won't export any templates, and that's not changed since 1.6.0, it works exactly the same on my 1.6.0 forum as my 1.6.1 forum, and my 1.4.14 forum for that matter. Are you're saying you want it to create a new template set, and have it set to use that, even if there are no changes to the templates whatsoever...?? Because it's never worked like that.