renoproc
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Maximum upload file sizeA simple example in .htaccess file
<IfModule mod_php5.c> php_value post_max_size 10M php_value upload_max_filesize 40M php_value memory_limit 500M </IfModule>Forum: Fixing WordPress
In reply to: Error saving media attachment when file size is over 2MBA simple example in .htaccess file
<IfModule mod_php5.c> php_value post_max_size 10M php_value upload_max_filesize 40M php_value memory_limit 500M </IfModule>sounds this problem comes from the nextgen-gallery/js/jquery.cycle.all.js,
line 278$slides.css({position: 'absolute', top:0, left:0}).hide().each(function(i) {
which dynamically put a “position : absolute” css tag on imagesimpossible to solve it like that, you can try at your own risks to change position: ‘absolute’ to position : ‘relative’
in this case be sure that you’re not using the compressed js file nextgen-gallery/js/jquery.cycle.all.min.jsU’re welcome Benedikt.
What do you think about the email I sent to you with the porposal to be able to use nextgen gallery tags given to pictures in scrollgallery plugin ? That could be useful
solved
I’ve modified the nggScrollGallery.php file of the 2.0.2beta to put js scripts inclusion code of the version 1. And that works fine now.
But not sure if that the best way to do it, Benedikt can you take a look ?Moifications in nggScrollGallery.php ———–
in public function SGShow commented these lines :
//only if we have output enque the registered scripts wp_enqueue_script('mootools'); wp_enqueue_script('scrollGallery2'); wp_enqueue_script('powertools');in public function SG2_enqueueScripts modified these lines :
wp_register_script( 'mootools', SG2_URL.'/scrollGallery/js/mootools-core-1.3.2-full-compat.js', false, '1.3.2',false); wp_register_script( 'scrollGallery2', SG2_URL.'/scrollGallery/js/scrollGallery2.js', array('mootools'), '1.12',false); wp_register_script( 'powertools', SG2_URL.'/scrollGallery/js/powertools-mobile-1.1.1.js', array('mootools'), '1.1.1',false);for these ones (as the nggScrollGallery.php version 1 model) :
// As a precaution, deregister any previous 'mootools' registrations. wp_deregister_script(array('mootools')); wp_register_script( 'mootools', SG2_URL.'/scrollGallery/js/mootools-core-1.3.2-full-compat.js', false, '1.3.2',true); wp_deregister_script(array('scrollGallery')); wp_register_script( 'scrollGallery2', SG2_URL.'/scrollGallery/js/scrollGallery2.js', array('mootools'), '1.12',true); wp_deregister_script(array('powertools')); wp_register_script( 'powertools', SG2_URL.'/scrollGallery/js/powertools-mobile-1.1.1.js', array('mootools'), '1.1.1',true); if (function_exists('wp_enqueue_script')) { wp_enqueue_script('mootools'); wp_enqueue_script('scrollGallery2'); wp_enqueue_script('powertools'); }And just remember do not erase the
<?php wp_footer(); ?>line from footer.php of your theme.