roger995
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Plugin shortcodes not working with child themeSolved: The conflict was due to some mailchimp js code I had embedded in the footer template part.
Fwiw, meanwhile still using Twenty Twenty-two theme I was able to manage a fair amount of formatting for a vertical events listing with this short code:
[events_list limit=”20″ pagination=”1″]<div class=”event-list-view-item”><span class=”event-list-item-title”>#_EVENTLINK</span>, #_EVENTDATES #_EVENTTIMES #_LOCATIONLINK<div class=”event-list-item-desc”>#_EVENTEXCERPT{30,…}</div></div>[/events_list]
This is the page https://wp.times-up.org/calendar/calendar-list-view
Used info from this documentation:
https://wp-events-plugin.com/documentation/shortcodes
https://wp-events-plugin.com/documentation/event-search-attributes/I’m changing the problem example page to https://wp.times-up.org/calendar/locations
Need to get things working with a shortcode for the initial example page (https://wp.times-up.org/calendar)Fixed thanks to this info:
Imagely bug report:
“Looks like Fancybox is trying to open a link which is not an image so I am wondering if that’s due to the setting that you are using in “NextGen Gallery -> Other Options -> Lightbox Effects – > What must the lightbox be applied to?”.
Perhaps it is set to apply to all the images. Can you set it to “Only apply to NextGEN and WordPress images”Me:
“Boom. That was set to ‘only apply to nextGen and wordpress images’ by the person that i’m helping. Wasn’t an issue until we updated the latest nextGen. Things working now.”Thanks!Thanks Gaby. Just submitted the bug report. Btw Chrome Developer console shows 2 errors after clicking on those links:
1)
jquery.js?ver=1.12.4-wp:4
[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.send @ jquery.js?ver=1.12.4-wp:4
ajax @ jquery.js?ver=1.12.4-wp:4
n._evalUrl @ jquery.js?ver=1.12.4-wp:4
Ga @ jquery.js?ver=1.12.4-wp:3
append @ jquery.js?ver=1.12.4-wp:3
(anonymous) @ jquery.js?ver=1.12.4-wp:3
X @ jquery.js?ver=1.12.4-wp:3
html @ jquery.js?ver=1.12.4-wp:3
success @ jquery.fancybox-1.3.…ck.js?ver=3.3.17:24
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
x @ jquery.js?ver=1.12.4-wp:4
c @ jquery.js?ver=1.12.4-wp:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1.12.4-wp:4
ajax @ jquery.js?ver=1.12.4-wp:4
I @ jquery.fancybox-1.3.…ck.js?ver=3.3.17:23
(anonymous) @ jquery.fancybox-1.3.…ck.js?ver=3.3.17:37
dispatch @ jquery.js?ver=1.12.4-wp:3
r.handle @ jquery.js?ver=1.12.4-wp:32)
jquery.js?ver=1.12.4-wp:4
Uncaught TypeError: Cannot read property ‘msie’ of undefined
at eval (eval at <anonymous> (jquery.js?ver=1.12.4-wp:2), <anonymous>:18:219)
at eval (eval at <anonymous> (jquery.js?ver=1.12.4-wp:2), <anonymous>:46:290)
at eval (<anonymous>)
at jquery.js?ver=1.12.4-wp:2
at Function.globalEval (jquery.js?ver=1.12.4-wp:2)
at text script (jquery.js?ver=1.12.4-wp:4)
at Wb (jquery.js?ver=1.12.4-wp:4)
at x (jquery.js?ver=1.12.4-wp:4)
at c (jquery.js?ver=1.12.4-wp:4)
at Object.send (jquery.js?ver=1.12.4-wp:4)
at Function.ajax (jquery.js?ver=1.12.4-wp:4)
at Function.n._evalUrl (jquery.js?ver=1.12.4-wp:4)
at Ga (jquery.js?ver=1.12.4-wp:3)
at n.fn.init.append (jquery.js?ver=1.12.4-wp:3)
at n.fn.init.<anonymous> (jquery.js?ver=1.12.4-wp:3)
at X (jquery.js?ver=1.12.4-wp:3)
at n.fn.init.html (jquery.js?ver=1.12.4-wp:3)
at Object.success (jquery.fancybox-1.3.4.pack.js?ver=3.3.17:24)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at x (jquery.js?ver=1.12.4-wp:4)
at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)hi,
I should have mentioned that I did all of those things. And all plugins and core are all up to date. Sever in running PHP 7.4 ALSO I should mention that we’re using the classic editor which I know presented some NextGen related issues recently.Yeah, I should have included my local environment info as it is possibly a factor – though I haven’t had this sort of issue until now (Looked around for the plugin requirements, but didn’t find). Software is pretty far behind – OSX 10.75, PHP 5.3.28 (guessing default setup – didn’t turn on anything special at install), mysql 5.6.13, Apache/2.2.26.
Here’s a sampling of apache error log:
[Fri Mar 16 19:28:48 2018] [notice] child pid 1600 exit signal Segmentation fault (11)
[Fri Mar 16 19:29:03 2018] [error] [client ::1] PHP Parse error: parse error in /Library/WebServer/Documents/sandbox/wp-content/plugins/jc-importer/app/libs/class-iwp-debug.php on line 18[Fri Mar 16 19:30:39 2018] [notice] child pid 1627 exit signal Segmentation fault (11)
[Fri Mar 16 19:31:42 2018] [error] [client ::1] PHP Parse error: parse error in /Library/WebServer/Documents/sandbox/wp-content/plugins/jc-importer/app/libs/class-iwp-debug.php on line 18Thanks!
Wasn’t easy, but this is working (did a similar one for event tags as well).
add_filter('em_category_output_placeholder','cat_em_placeholder_mod',1,3); function cat_em_placeholder_mod($replace, $EM_Category, $result){ if ( $result == '#_CATEGORYPASTEVENTS' ) { $em_termID = $EM_Category->term_id; $args = array('category'=>$em_termID,'order'=>'DESC','scope'=>'past','pagination'=>1, 'limit'=>20); $args['format'] = get_option('dbem_category_event_list_item_format'); $args['format_header'] = get_option('dbem_category_event_list_item_header_format'); $args['format_footer'] = get_option('dbem_category_event_list_item_footer_format'); $replace = EM_Events::output($args); } return $replace; }
hi again,
Just successfully upgraded NextGen to 2.0.40 on the site using the imagebrowser over which I initially started this thread. Everything is working with one substantial glitch. My custom ‘nggallery.css’ stylesheet keeps getting over-ridden by the default imagebrowser stylesheet. If I reload the browser, then the custom style sheet is properly referenced. But randomly(?), the image browser stylesheet takes over again when navigating through images. It behaves the same whether I’m using legacy shortcode or the current gallery code.
Stylesheet here:
/wp-content/ngg_styles/nggallery.css
Was able to select in NextGen settings.Customized template here:
/wp-content/themes/[my_child_theme]/nggallery/imagebrowser.php
Was able to select in NextGen image browser settings.When I disable this file everything works perfectly:
plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_imagebrowser/static/style.cssI suppose another consideration is that my custom imagebrowser template is the one I used with pre 2.x NextGen.
thanks again
r@photocrati – Yes, saw the ImageBrowser feature recently. Works beautifully. Thanks!!
hi,
I guess the issue is that there isn’t a way to apply the imagebrowser (instead of an effect) to a gallery using ‘NextGen Basic Thumnails’.
I see that I can now choose ‘no lightbox’ in lightbox effects area. Is there some code one can insert into the associated ‘code’ field to get the imagebrowser to kick in there?
thanks!
r@photocrati
yep, exactly.Yep, that did it. Thanks much.
??
I have the same exact problem. Width parameter goes through, but not height. I’ve tried various heights. Working offline, so no url, but the shortcode is:
[thkBC height="600" width="700" anchortext="Link Anchor Text" title="ThickBox Title" type="inline" inline_id="test1"]
thanks
exact same problem/info as alerman2