FrankM1 / radium-one-click-demo-install

Once Click Install for Wordpress
Other
114 stars 65 forks source link

Redux Framework Export #2

Closed justiny closed 9 years ago

justiny commented 10 years ago

The exported file created from Redux is a json file. In the init.php file, the $theme_options_file_name is looking for a txt file. Is it possible to link to the json file? or is it necessary to convert the exported Redux options file to a text file?

Thanks!

ghostpool commented 9 years ago

Hi there,

Any news on this? Does this script still work with Redux Framework? I've tested this myself changing the .json extension to .txt and receive an error that the file cannot be read.

justiny commented 9 years ago

Yea, I couldn't get this to work, unfortunately. Never imported any files. Bummer.

mmaumio commented 9 years ago

Ok. I got a fix for it.

Yes. You can upload a .json file. In that case all you have to do is:

Instead of unserializing the .json file $data = unserialize( trim($data, '###') );

decode the json file as an array $data = trim($data, '###'); $data = json_decode( $data, true );

This should work with most of the options framework I believe.

FrankM1 commented 9 years ago

Hi guys a redux extension is now available here https://github.com/Webcreations907/WBC-Importer-extension