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.
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.
This is more of a support forum question then a theme support question , because those are for more minor problems...
A link to your site would be helpful
I'll repost in support then.

Since it's a test board, I have registrations off and I'm the only member. I don't see how giving a link is going to help right now.
Why don't you just create a new theme directly from the ACP then export it after?
When the head of the XML shows this it imports it with the name "Default"
<theme name="Default" version="1601">

Change the line in the XML page to:
<theme name="Somethingelse" version="1601">
and it will import with the name Somethingelse
(2011-02-04, 02:03 AM)Gene_RI Wrote: [ -> ]When the head of the XML shows this it imports it with the name "Default"
<theme name="Default" version="1601">

Change the line in the XML page to:
<theme name="Somethingelse" version="1601">
and it will import with the name Somethingelse

Yes that is the usual path I take.

It's the theme. There is some kind of bug that is not allowing the default theme to export with the templates.

Scoutie - tried that too - it's not exporting the templates.

The problem comes down to exporting of the default theme, changing it's name and path to images and NO TEMPLATE EDITS and re-importing back in. It's not exporting the templates.

Again, this is a fresh install of all new files of v 1.6.1. I took all new files yesterday and installed a fresh clean board.

I can export any theme from any of my live sites and it imports into this test site fine. That's because the templates are exporting. I've done this well over 100 times without issue. I am convinced there is a bug in the system.
You should have just PMed anyone from staff to move this thread there rather than opening a new one.

Use the thread in Support:

http://community.mybb.com/thread-87666.html