staze
Forum Replies Created
-
This is NGG free that I’m needing support on. As I mentioned in my ticket with pro support, I only emailed to kick this back into the light. The issue still exists. with the free NGG.
Great. Once I get an answer from that ticket, I’ll post back here so people also having this issue can know the outcome.
Just updated to 3.1.5 of NGG, and this issue still occurs.
Just updated to 3.1.5, issue still occurs.
As in other ticket, spun up entirely new site. Added two slideshows via widgets. Got the same “404” for the wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/static/slideshow/nextgen_basic_slideshow.min.css
Looking in that directory, that file doesn’t exist. But ngg_basic_slideshow.min.css does.
Symlink fixes, but some code is referencing the wrong thing. Or that file just needs renamed (or lazily duplicated)
Completely different issue. I just spun up a completely new test site, completely new install of NGG. Added two slideshow widgets to the page, and got this error.
Again, it seems to be because it’s trying to add “slick” a second time, but since it’s already there, it errors.
Uncaught TypeError: Cannot read property 'add' of null at e.initADA (slick.min.js:1) at e.init (slick.min.js:1) at new e (slick.min.js:1) at a.fn.init.i.fn.slick (slick.min.js:2) at Object.<anonymous> (ngg_basic_slideshow.min.js:1) at Function.each (jquery.js:2) at HTMLDocument.<anonymous> (ngg_basic_slideshow.min.js:1) at i (jquery.js:2) at Object.fireWith [as resolveWith] (jquery.js:2) at Function.ready (jquery.js:2) at HTMLDocument.K (jquery.js:2)See link I posted to start with. Somehow NGG needs to be changed to address this. I’m an NGG Pro owner, should I submit this as a ticket there?
Same result.
Forum: Plugins
In reply to: [Dirty Code] PHP7 preg_replace brokenClosing! Thanks!
Forum: Plugins
In reply to: [Dirty Code] PHP7 preg_replace brokenThat did it, thanks! =D
Finished block:
function trunc_c2c_preserve_code_formatting( $text ) { $text = str_replace(array('$', "'"), array('$&;', ''&;'), $text); $tags = array('code', 'pre'); foreach ($tags as $tag) { $text = preg_replace_callback( "^(<$tag>)\n?([\S|\s]*?)\n?(</$tag>)^i", function ($m) use ($tag) { return "<$tag>" . trunc_c2c_prep_code($m[2]) . "</$tag>"; }, $text ); } $text = str_replace(array('$&;', ''&;'), array('$', "'"), $text); return $text; }Forum: Plugins
In reply to: [Dirty Code] PHP7 preg_replace brokenThanks! Only issue is it still seems to echo a “<tag>” at the top of the output.
I’ve now got:
function trunc_c2c_preserve_code_formatting( $text ) { $text = str_replace(array('$', "'"), array('$&;', ''&;'), $text); $tags = array('code', 'pre'); foreach ($tags as $tag) { $text = preg_replace_callback( "^(<$tag>)\n?([\S|\s]*?)\n?(</$tag>)^i", function ($m) use ($tag) { return '<$tag>' . trunc_c2c_prep_code($m[2]) . '</$tag>'; }, $text ); } $text = str_replace(array('$&;', ''&;'), array('$', "'"), $text); return $text; }Forum: Plugins
In reply to: [Dirty Code] PHP7 preg_replace brokenmade it a little way with:
$text = preg_replace_callback( "^(<$tag>)\n?([\S|\s]*?)\n?(</$tag>)^i", function ($m) { return '<$tag>' . trunc_c2c_prep_code($m[2]) . '</$tag>'; }, $text );Problem is that it’s not replacing the <$tag> properly since they’re still a variable. =/
Forum: Plugins
In reply to: [Dirty Code] PHP7 preg_replace brokenSure, but it’s in relation to this plugin…
I’ll dig in to those threads on SO.
Thanks!
fixed this by moving all the pictures into blogs.dir… which is odd since I converted to multisite after 3.5 was released…
Forum: Plugins
In reply to: [EWWW Image Optimizer] Conflict with NextGen galleryFix provided worked great! Thanks!
Forum: Plugins
In reply to: [EWWW Image Optimizer] Conflict with NextGen galleryAlso just tried with Photocrati Pro theme (5.0.1) and Nextgen Pro (which has to hove Nextgen Activated)… same result. =/