Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In port/Export #50

Closed
elliot-huffman opened this issue May 21, 2014 · 21 comments
Closed

In port/Export #50

elliot-huffman opened this issue May 21, 2014 · 21 comments
Labels
Triage-2019 Triage of old issues. Would be used as reference for more recent ones.

Comments

@elliot-huffman
Copy link

I and a few others would like to have this feature. It would make site backups and deployments easier.

Could you put it in the Theme Options? Thanks!

P.S. Where is your change log? I can't find it on Wordpress or your website.

@ScottishSamurai
Copy link

You can find his change log on his site at the top there is a version number, currently 2.1.5 with a gear next to it. Or you can follow this link which I copied:
http://demo.alxmedia.se/wp-content/themes/hueman/changelog.txt

@elliot-huffman
Copy link
Author

Thanks for the link and info!

On Wed, May 21, 2014 at 7:59 PM, ScottishSamurai
notifications@github.comwrote:

You can find his change log on his site at the top there is a version
number, currently 2.1.5 with a gear next to it. Or you can follow this link
which I copied:
http://demo.alxmedia.se/wp-content/themes/hueman/changelog.txt


Reply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-43831974
.

Elliot

DISCLAIMER:
This e-mail is for the intended recipient(s) only

If you have received it by mistake please let me know by reply and then
delete it from your system; access, disclosure, copying, distribution or
reliance on any of it by anyone else is prohibited.

If you as intended recipient have received this e-mail incorrectly, please
notify the sender (via e-mail) immediately.

@Gummibeer
Copy link
Contributor

@elliot-labs what do you want to In- and Export? From the Theme? Don't know wich part of Wordpress is a Theme-Task to In-/Export?

@beceha
Copy link

beceha commented May 22, 2014

He means the import and export option for the Theme Options/settings page(s).

That's discussed a lot in the theme's support forum; because when you've made huge changes in the theme options page of HUEMAN, then you have no possibility to save them, to export them, for example to import exactly these settings to another blog - or just to backup these settings.

@Gummibeer
Copy link
Contributor

Oh yeah, now I get it! :)

I will / can create this function if I get a list of all Settings (the names in the database) and I hope that these Settings will all get saved as a Wordpress Option!?
update_option('name') and get_option('name')

@beceha
Copy link

beceha commented May 22, 2014

I'm not a coder/developer but as far as I know, theme settings as well as special, custom plugin settings are mostly saved/exported/imported as XML-file

HUEMAN theme settings are made with Option Tree - doesn't OptionTree offer the possibility to export its settings, therefor the theme settings of HUEMAN?

@Gummibeer
Copy link
Contributor

I will have a look at OptionTree - and yes, if I code it my own I will create a XML-File.

@Gummibeer
Copy link
Contributor

Got it ... it's Line 14 of functions.php add_filter( 'ot_show_pages', '__return_false' );
Add // by your own at linestart or wait for an update of the theme.

@AlxMedia would be nice if you can integrate an option to dissable/enable the OptionTree Settings Page or delete it.

@beceha
Copy link

beceha commented May 22, 2014

Thanks, works perfect! It would be great, if that's implemented in the next theme update :-)

@Gummibeer
Copy link
Contributor

To disable this Setting is a risk, so do you a favour and enable it after the backup. ;)
You can destroy the full Theme with a wrong click cause you can edit all Options there. That's why it is disabled ... I'm working on a solution to enable it with a Setting and no Code-Changes but it's not so easy. :(

@Gummibeer
Copy link
Contributor

Tested and solved this Issue:

/* dis-/enable OptionTree-Settings Page - @Gummibeer (via GitHub)
/* functions/theme-options.php -> Line 145
/* // General: OptionTree
        array(
            'id'        => 'admin-ot-page',
            'label'     => 'Option Tree Page',
            'desc'      => 'Show OptionTree Pages in Admin-Area',
            'std'       => 'off',
            'type'      => 'on-off',
            'section'   => 'general'
        ),
/* ------------------------------------ */
function remove_ot_menu () {
    if ( ot_get_option('admin-ot-page') == 'off' ) {
        remove_menu_page( 'ot-settings' );
    }
}
add_action( 'admin_init', 'remove_ot_menu', 2 );

@AlxMedia Add it to the functions.php and the Array in the comment to functions/theme-options.php.

@elliot-huffman
Copy link
Author

Thanks for the understanding and willingness to implement the inport/export feature! I am looking forward to seeing it in the next update!

@Gummibeer Gummibeer mentioned this issue May 22, 2014
@Gummibeer
Copy link
Contributor

Sorry for so much Commits - my forked repository was dirty and I have to delte it. :/
Now there is a Pull-Request for this Enhancement with, I hope, all changes.

@elliot-huffman
Copy link
Author

Did you test the new settings?

@Gummibeer
Copy link
Contributor

#50 (comment)
"Tested and solved" ;)

Yes, if I don't forget anything it should work. In my Wordpress-Installation it works fine. :)

@elliot-huffman
Copy link
Author

Cool! That was the fastest feature implementation that I have ever seen!

Where will the inport/export button/setting be?

@Gummibeer
Copy link
Contributor

I'm not the Theme Developer - that's why it's just a Pull-Request - implement it by your own or wait for the real update - sry. :/

@elliot-huffman
Copy link
Author

lol k. I got confused because you were listed as a contributor. I thought that you could do stuff with it.

For the importing and exporting all that was required was that simple code change?

@Gummibeer
Copy link
Contributor

It's a standard OptionTree Function to Backup the Settings - but it's in the OptionTree Settings-Page and it's recommended to disable this page for "normal" users (not developers) cause you can destroy the whole theme if you don't know what you have to do there.

I will try to bugfix the Issue referenced in 53.

@elliot-huffman
Copy link
Author

Thanks!

@Gummibeer
Copy link
Contributor

The last Commit in the Pull Request #52 solve the Bug that the Add Media Lightwindow loads infinite.
No Bugs fonud with the new solution.

signaleleven pushed a commit to ItalianSpaceAstronauticsAssociation/hueman that referenced this issue Jan 13, 2015
signaleleven pushed a commit to ItalianSpaceAstronauticsAssociation/hueman that referenced this issue Jan 13, 2015
Issue presscustomizr#50
Conflicts:
	functions/theme-options.php
signaleleven pushed a commit to ItalianSpaceAstronauticsAssociation/hueman that referenced this issue Jan 13, 2015
@ghost ghost closed this as completed Nov 28, 2019
@ghost ghost added the Triage-2019 Triage of old issues. Would be used as reference for more recent ones. label Nov 28, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage-2019 Triage of old issues. Would be used as reference for more recent ones.
Projects
None yet
Development

No branches or pull requests

4 participants