Giving the following code:
class Xhibit_Setting_Page extends scbBoxesPage {
function setup() {
$this->args = array(
'page_title' => 'Xhibit Settings',
'columns' => 4
);
$this->boxes = array(
array( 'pluginCustomPermalinks', 'Permalink settings', 'normal' )
);
}
function pluginCustomPermalinks_box() {
echo $this->form_table( array(
array(
'title' => 'Permalink',
'type' => 'text',
'name' => 'permalink',
),
) );
}
}
Where I try to save the form, it does nothing.
Ik was hoping that it would automaticly save the form (like scbAdminPage does.
Going thru your code, I saw that the form_handler of scbBoxesPage calls pluginCustomPermalinks_handler in the above class.
I’m unsure what to put into pluginCustomPermalinks_handler, so the form get saved.
Any help or pointers are very welcome!
]]>Hi there
I can’t get check boxes to save their checked/unchecked state? I followed the example plugin, and I’m using only the scbAdminPage part of the plugin (its a very simple plugin that I’m building).
]]>It would be nice to have the ability to specify the MySQL table type (MyISAM, InnoDB) when invoking scb_install_table(). It should be fairly easy to implement.
Thank you!
]]>I have built 2 plugins using the scbFramework and they both work fine individually but I can’t activate them both at the same time because I get complaints of can't redeclare scb_init()
and such-like. This is fine – I’ve followed the instructions on the wiki and put the framework folder scb
in the root of the plugins directory and the file scb-load.php
in the plugin root as well. But now I am having trouble calling the scb-load.php
file. I assume that file still needs to be required by the plugins, so instead of
require dirname( __FILE__ ) . '/scb-load.php';
I have used
require_once plugins_url( 'scb-load.php' , dirname(__FILE__) );
but then I get
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/gillespieza/mydomain.com/wp-content/plugins/salamander-film-festival/salamander-film-festival.php on line 37
Warning: require_once(https://mydomain.com/wp-content/plugins/scb-load.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/gillespieza/mydomain.com/wp-content/plugins/salamander-film-festival/salamander-film-festival.php on line 37
Fatal error: require_once() [function.require]: Failed opening required 'https://mydomain.com/wp-content/plugins/scb-load.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/gillespieza/mydomain.com/wp-content/plugins/salamander-film-festival/salamander-film-festival.php on line 37
From my googling, I understand this is some sort of security issue that is present on certain hosts, and there are various solutions but they all involve contacting your host or changing your php.ini file, and none of these solutions will work for a plugin intended for general release.
What am I doing wrong, or is there a different way to require the scb-load.php file?
]]>Is there a way to parse shortcodes with html()? Or is there another way I could make a shortcode render on an options page?
]]>Hi,
I’m a beginner developer and just started with wordpress plugin development.
I use scb Framewoks to make my live a little bit easyer..
I’ve created a new table and optiop using:
scb_init( 'my_plugin_init' );
function my_plugin_init() {
new scbTable( 'example', __FILE__, "
example_id int(20),
example varchar(100),
PRIMARY KEY (example_id)
");
$defaults = array(
'color' => 'orange',
'size' => 'large',
'version' => '1.5'
);
$options = new scbOptions('apz_options', __FILE__, $defaults);
}
When I’m uninstalling the plugin, the table and options didn’t deleted.
What should I do to remove it?
I use r53 of scbFramework.
]]>I’m getting this error when I try to activate WP_Pagenavi, and also when I try to activate the scbFramework Example plugin. I know it’s probably something with my theme or a clashing plugin, but I’m wondering if you could give me some tips on what to check for.
Thanks for all you do in the WP world ??
]]>As the title suggests, if anything as a tool just for generating form HTML?
Including load.php and running scbForms::input(…) produces and error that suggests the form class isn’t being included.
Thanks
Phill
Hi,
I have version r34 of this scb framework. It looks great and I am looking forward to using it. When running through the example, I found that the db table added was not being removed. I don’t see anything in the code that will process the various uninstall_<pluginname> actions that are added through scbUtil – is there something I am missing here? Adding the table works fine, and I can see in load.php how the scb_activation_xxx actions are processed.
Thanks.
]]>First of all, thank you for sharing scbFramework with us!
I’m looking at the Smart Archive Reloaded plugin to understand the basic workflow with the framework and I’m wondering why did you create a register mechanism in the AdminPage class instead of just instantiating an object and using it that way?
Does it have to do with keeping the admin functionality in a separate file? What is the philosophy?
Also, which functions did you choose to name with a leading underscore? I see not all named that way are private and not all private functions have such a name convention. Is there a different rationale?
]]>I just made a plugin with the scbFramework so that I could see the $wp_query within a posts_where filter and it works perfectly so far using WP_Query and query_posts but it doesn’t seem to work when I call it within a widget. Does this have anything to do with the scbFramework and is there anything I can do to filter queries within a widget?
]]>