PhotoDune

WP Theme panel & settings

765 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Serbia
  • Has been a member for 4-5 years
rvision_ says

If you make custom admin panel and save theme settings in database, are these settings included in import/export of dummy data?

2952 posts
  • Attended a Community Meetup
  • Australia
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Elite Author
  • Exclusive Author
+6 more
DDStudios says

If you make custom admin panel and save theme settings in database, are these settings included in import/export of dummy data?

I’m not sure, but why not creating default values that can be stored as soon as the user activates your theme?

Makes more sense than having to have your user importing stuff that he doesn’t need to get your theme running.

1141 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
KarmaThemes says
I’m not sure, but why not creating default values that can be stored as soon as the user activates your theme?


+1 That’s how we did it as well.
765 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Serbia
  • Has been a member for 4-5 years
rvision_ says

Guys, default values issue was not my question.

If panel settings are not included with the import/export, wouldn’t be better idea to have theme settings stored locally, for example as JSON , in a file in a theme folder?

960 posts
  • Sold between 100 and 1 000 dollars
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • Exclusive Author
  • Microlancer Beta Tester
  • United States
fillerspace says

Guys, default values issue was not my question. If panel settings are not included with the import/export, wouldn’t be better idea to have theme settings stored locally, for example as JSON , in a file in a theme folder?

http://en.support.wordpress.com/export/ says that an export will contain posts, pages, comments, categories, and tags. You have to export your options separately, which makes sense, because users might be exporting to a blog that uses a different theme, or maybe restoring a backup where they wouldn’t want to overwrite their saved options.

765 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Serbia
  • Has been a member for 4-5 years
rvision_ says

Ok, then – theme options are separated from the blog content?

What do you think about idea to have custom options framework which saves options as a file in theme /data/ folder and has a default options file set? One can, for example, set the theme locally and then upload everything on the server and have the settings he salready set.

Reading those options would be cached, offcourse.

960 posts
  • Sold between 100 and 1 000 dollars
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • Exclusive Author
  • Microlancer Beta Tester
  • United States
fillerspace says

Ok, then – theme options are separated from the blog content?

What do you think about idea to have custom options framework which saves options as a file in theme /data/ folder and has a default options file set? One can, for example, set the theme locally and then upload everything on the server and have the settings he salready set.

Reading those options would be cached, offcourse.

That’s what I’m doing with the theme I’m working on. I just have a giant XML with all of my default option values. Then there is the option to import that XML to set all of the options. There is also an option to export to XML for backup or for setting up another blog with the same options.

765 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Serbia
  • Has been a member for 4-5 years
rvision_ says


Ok, then – theme options are separated from the blog content?

What do you think about idea to have custom options framework which saves options as a file in theme /data/ folder and has a default options file set? One can, for example, set the theme locally and then upload everything on the server and have the settings he salready set.

Reading those options would be cached, offcourse.
That’s what I’m doing with the theme I’m working on. I just have a giant XML with all of my default option values. Then there is the option to import that XML to set all of the options. There is also an option to export to XML for backup or for setting up another blog with the same options.

But they are inserted into database after importing or you’re just reading that settings file?

1763 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Germany
  • Has been a member for 4-5 years
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
BroOf says


Ok, then – theme options are separated from the blog content?

What do you think about idea to have custom options framework which saves options as a file in theme /data/ folder and has a default options file set? One can, for example, set the theme locally and then upload everything on the server and have the settings he salready set.

Reading those options would be cached, offcourse.
That’s what I’m doing with the theme I’m working on. I just have a giant XML with all of my default option values. Then there is the option to import that XML to set all of the options. There is also an option to export to XML for backup or for setting up another blog with the same options.

I work on a same framework. ;) I like the XML idea because it is more flexible.

960 posts
  • Sold between 100 and 1 000 dollars
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • Exclusive Author
  • Microlancer Beta Tester
  • United States
fillerspace says



Ok, then – theme options are separated from the blog content?

What do you think about idea to have custom options framework which saves options as a file in theme /data/ folder and has a default options file set? One can, for example, set the theme locally and then upload everything on the server and have the settings he salready set.

Reading those options would be cached, offcourse.
That’s what I’m doing with the theme I’m working on. I just have a giant XML with all of my default option values. Then there is the option to import that XML to set all of the options. There is also an option to export to XML for backup or for setting up another blog with the same options.
But they are inserted into database after importing or you’re just reading that settings file?

When the user imports, I read the XML , convert it to a PHP array, and then insert that into the database. When using the theme, I read the options from the database. When they are ready to export, I read the options from the database into an array, and then create XML from that.

by
by
by
by
by