greentrain
Forum Replies Created
-
I am still seeing this problem… and Facebook is still issuing a warning.
Forum: Plugins
In reply to: [Cyclone Slider] Not recognizing templateThere is definitely a problem here.
I have since purchased a couple of the premium themes, and placed them in the appropriate location. They show up as options when editing the slideshow, and mods made to the template’s slider.php are working… it is just not using the template’s css files.
It is working!
Here is the final code:
function metaslider_nivo_params($options, $slider_id) { $options['afterChange'][] = "current_slide_no = jQuery('#metaslider_{$slider_id}').data('nivo:vars').currentSlide;"; $options['afterChange'][] = "jQuery('#nivo-slider-status > .current-slide').html(current_slide_no+1);"; return $options; } add_filter('metaslider_nivo_slider_parameters', 'metaslider_nivo_params', 10, 2); function metaslider_nivo_js($javascript, $slider_id) { $javascript .= "jQuery('#nivo-slider-status').show(); var total = jQuery('#metaslider_{$slider_id}').data('nivo:vars').totalSlides; jQuery('#nivo-slider-status > .total-slides').html(total); var current_slide_no = jQuery('#metaslider_{$slider_id}').data('nivo:vars').currentSlide; jQuery('#nivo-slider-status > .current-slide').html(current_slide_no+1);"; return $javascript; } add_filter('metaslider_nivo_slider_javascript', 'metaslider_nivo_js', 10, 2);For anyone using this, please note that you need to add:
<div id="nivo-slider-status"> <span class="current-slide"></span> of <span class="total-slides"></span> </div>somewhere in your template.
There seemed to be some missing semi-colons in the first bit of code. I added them like so…
function metaslider_nivo_params($options, $slider_id) { $options['afterChange'][] = "current_slide_no = jQuery('#nivo-slider').data('nivo:vars').currentSlide;"; $options['afterChange'][] = "jQuery('#nivo-slider-status > .current-slide').html(current_slide_no+1);"; return $options; } add_filter('metaslider_nivo_slider_parameters', 'metaslider_nivo_params', 10, 2);Still not completely working. All the code seems to be getting added properly, but the slide numbers are not populating. The console says that total is not defined:
Uncaught ReferenceError: total is not defined http://www.jaisatya.com:102
metaslider_53 http://www.jaisatya.com:102
timer_metaslider_53Searched for nivo api, but could not find. So close…
Forum: Plugins
In reply to: [Cyclone Slider] Not recognizing templateFor me, even renaming and selecting my custom theme did not solve the problem (not recognizing the theme css file). My workaround is importing the custom cycloneslider css via the site’s style.css.
Just added…
@import url(./cycloneslider/[customnamehere]/style.css);Not ideal, but workable.
Forum: Networking WordPress
In reply to: 403 Forbidden on one subdirectoryWhat does “bouncing http” mean? How does one go about doing it?
Forum: Networking WordPress
In reply to: 403 Forbidden on one subdirectoryOk. A band-aid has been applied.
I started to think that this might just have been an error that got stuck in some kind of cache on the server. And while there is still some mystery how all the rewrites create virtual directories on the server, I figured “why not create a physical directory, put an index.html file into it and clear the cache.”
Well at first it did not want to let create the directory… It thought there already was one. But if I created it locally and uploaded via ftp… it let me “create” the physical directory.
I hit the new /enlightenedmotherhood/ URL once. I went back and deleted the physical directory. Went back to /enlightenedmotherhood/ and… It worked!!! My WordPress multisite is shining through.
I am still interested in thoughts on causes and possible optimizations for preventing this from happening again.
Thanks for your time.
Same problem here.
It is looking for files in the child theme’s folder when all the template files are kept in the parent theme folder.
I am not sure how to fix this. I do not want to place template files in child theme folder… the developer has insisted that this would make any future upgrades/patches harder to implement.
Any help would be appreciated.