drumatic
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
yes it get’s activated most of the times, even when it can’t create a table or something, but i can’t tell the user why it happened..
i will take a look at that plugin thanks.
but it would be nicer if you could return a WP_Error or string that get’s displayed, without nasty hacks..
i did a little hack to output messages:
add this to your plugin_activation function:
add_option( ‘myplugin_msg’, ‘Error: Something went wrong’);
function myplugin_message() { if ( $msg = get_option('myplugin_msg') && $_REQUEST['activate'] == 'true' ) { echo ' <script type="text/javascript"> var el = document.getElementById(\'message\'); el.innerHTML = el.innerHTML + \'<p>'. $msg . '</p>\'; </script>'; delete_option('myplugin_msg'); } } add_action( 'wp_print_footer_scripts', 'myplugin_message' );Forum: Hacks
In reply to: Output content without creating a page or posti now dynamicly create pages on plugin activation and put a shortcode into content, people can then place pages whereever they like to.
Forum: Hacks
In reply to: Custom Permalinkwhat kind of a number do you want there instead of a date ?
Forum: Hacks
In reply to: Custom Permalinkdo you have performance problems already ? as long you don’t, don’t mind..
when you get problems, just add %year% or %month% maybe ?
Viewing 5 replies - 1 through 5 (of 5 total)