redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

This content is restricted to buyers of Metaboxes.

Open michaelkk opened this issue 12 years ago • 19 comments

Hi Just purchased the metabox extension but can't enter the documentation... I get this error: "This content is restricted to buyers of Metaboxes."

Thanks

michaelkk avatar Feb 12 '14 15:02 michaelkk

There is no documentation yet, contact Dovy if You need help.

maarcin avatar Feb 12 '14 15:02 maarcin

I see... Actually Im struggling with the $opt_name, When I change it from "redux_demo" to something else, the metaboxes disappear.

michaelkk avatar Feb 12 '14 16:02 michaelkk

You have to also change $redux_opt_name in config.php to match Yours.

maarcin avatar Feb 12 '14 16:02 maarcin

i׳ve change it to: $option_name = "ks_page_metabox"; and in the front end:
global $redux_demo; print_r($redux_demo); Still doesn't work...

Thanks

michaelkk avatar Feb 12 '14 16:02 michaelkk

global $ks_page_metabox; print_r($ks_page_metabox);

or use code from sample theme

global $ks_page_metabox;
$data_r = print_r($ks_page_metabox, true);
$data_r_sans = htmlspecialchars($data_r, ENT_QUOTES);
echo $data_r_sans;

maarcin avatar Feb 12 '14 16:02 maarcin

doesn't work... It works perfectly only if I change it back to "redux_demo"

Here is the full code:

Settings <= } add_action('redux/metaboxes/'.$option_name.'/boxes', 'redux_add_metaboxes'); } require_once(dirname(**FILE**).'/loader.php'); //////// Front End ////////// global $ks_page_metabox; print_r($ks_page_metabox);

michaelkk avatar Feb 12 '14 16:02 michaelkk

Put global $ks_page_metabox; print_r($ks_page_metabox); somewhere on the page, it won't show anything if You put it in the content.php

maarcin avatar Feb 12 '14 16:02 maarcin

I've just added documents on the extensions loader (loader.php): http://reduxframework.com/docs/extension-docs/extensions-loader/

Seems like you didn't update the opt_name in there too.

I am working on the metaboxes documentation now. ;)

dovy avatar Feb 12 '14 16:02 dovy

hi dovy, I already changed the opt_name in the loader.php but still have no luck with that.

maarcin, its on the page.php

michaelkk avatar Feb 12 '14 17:02 michaelkk

Do you have permalinks working? How are your URLs. There is a bug I am wading through in the wordpress core. ;)

dovy avatar Feb 12 '14 17:02 dovy

Yes its currently running on localhost so I can't send you a link

michaelkk avatar Feb 12 '14 19:02 michaelkk

Michael

Sounds like you are you using sample-config.php as your options source (or a copy of it)?

In there, in the method setArguments() you'll see a few lines below, the variable opt_name defined.(Line 1315 in the version I have) It will probably say redux_demo. Change it to ks_page_metabox

'opt_name'  => 'redux_demo', // This is where your data is stored in the database and also becomes your global variable name.

chrishoward-au avatar Feb 13 '14 01:02 chrishoward-au

Hi qwertydude, changed it and it works! thanks.

Few more questions:

  1. Fields like switch, typography, media upload and more doesn't work on metaboxes... it works only if I add the field (even with another id) type to the option panel
  2. Do I have to change the class name from "Redux_Framework_sample_config" to something else? (if I change it, I get an error - Fatal error: Class 'Redux_Framework_sample_config' not found )
  3. Can I hide the default text? 01
  4. Is it possible to delete the old sample-config.php and "tests" folder?

Thanks again

michaelkk avatar Feb 13 '14 12:02 michaelkk

  1. @michaelkk are you using 1.0.6? I thought I fixed that. I'll look into it further.
  2. Yes. There are two references to that class name in the file. Change it both places.
  3. In your ReduxFramework arguments you can set default_show to false and default_mark to '' and you'll be good.

dovy avatar Feb 13 '14 21:02 dovy

@dovy 3 doesn't work. I have the same problem and I have

'default_show' => false,
'default_mark' => '',

and it still shows defaults

maarcin avatar Feb 13 '14 21:02 maarcin

Ahh, so I need to pass in an args parameter then for metaboxes to override. sigh Heh. Can that wait until next week? Working on the webinar. ;)

dovy avatar Feb 13 '14 21:02 dovy

Yeah sure... Look forward for this webinar :)

michaelkk avatar Feb 13 '14 23:02 michaelkk

Just upgraded to 1.0.6 but these fields doesn't work

michaelkk avatar Feb 14 '14 10:02 michaelkk

K, Just pushed a fix. I'll be emailing everyone about the new release. Sorry for the delay. I couldn't reproduce. I've been able to now. ;)

dovy avatar Feb 18 '14 19:02 dovy