lavandaol
Forum Replies Created
-
Thank you anyway!!
Soon, I’ll try NGG with another WP template!
Before this – never. only when you said to do!
Is NG Gallery needed to be uninstalled and installed again?A part of code:
…
// Get some constants first
$this->load_options();
$this->define_constant();
$this->define_tables();
$this->load_dependencies();
$this->start_rewrite_module();$this->plugin_name = basename(dirname(__FILE__)).’/’.basename(__FILE__);
// Init options & tables during activation & deregister init option
register_activation_hook( $this->plugin_name, array(&$this, ‘activate’) );
register_deactivation_hook( $this->plugin_name, array(&$this, ‘deactivate’) );// Register a uninstall hook to remove all tables & option automatic
// !! register_uninstall_hook( $this->plugin_name, array(&$this, ‘uninstall’) );register_uninstall_hook( $this->plugin_name, array(‘nggLoader’, ‘uninstall’);
The answer of WP:
Parse error: syntax error, unexpected ‘;’ in /home/microl/microscope.org.ua/www/wp/wp-content/plugins/nextgen-gallery/nggallery.php on line 81The answer was:
=== Parse error: syntax error, unexpected ‘;’ in /home/microl/microscope.org.ua/www/wp/wp-content/plugins/nextgen-gallery/nggallery.php on line 81 ===a part of php code:
===
…
// Get some constants first
$this->load_options();
$this->define_constant();
$this->define_tables();
$this->load_dependencies();
$this->start_rewrite_module();$this->plugin_name = basename(dirname(__FILE__)).’/’.basename(__FILE__);
// Init options & tables during activation & deregister init option
register_activation_hook( $this->plugin_name, array(&$this, ‘activate’) );
register_deactivation_hook( $this->plugin_name, array(&$this, ‘deactivate’) );// Register a uninstall hook to remove all tables & option automatic
// !! register_uninstall_hook( $this->plugin_name, array(&$this, ‘uninstall’) );register_uninstall_hook( $this->plugin_name, array(‘nggLoader’, ‘uninstall’);
// Start this plugin once all other plugins are fully loaded
add_action( ‘plugins_loaded’, array(&$this, ‘start_plugin’) );
…
===Thanks if you can help!!