Seospan
Forum Replies Created
-
I just tried with a twenty-fifteen, along with disabling every external plugin except A1EC… not better.
I’m using “X” V3.0.1 (https://theme.co/x/)
I went looking in database directly… obviously “allday” field never switch to 0 when set to 1. Don’t know if this would come from javascript before saving (which would be strange, a checkbox shouldn’t need js to be saved… ) or from a php script, but definitely not from js after reloading.
Thanks for your reactivity !
When loading the page 2 warnings :
“L’utilisation des « Mutation Events » est obsolète. Utiliser « MutationObserver » à la place.
L’utilisation de « getPreventDefault() » est obsolète. Utiliser « defaultPrevented » à la place.”
(Use of « Mutation Events » is obsolète. Use « MutationObserver » instead.
Use of « getPreventDefault() » is obsolète. Use « defaultPrevented » instead)And sometimes when changing end date, difficult to define exact pattern :
“NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN: Cannot modify properties of a WrappedNative”
But it comes from autocomplete.xml, which is not an A1EC file…Forum: Plugins
In reply to: [Rio Portfolio] Problem with special charsIf anybody one day has the same problem, I found a solution :
In rio-portfolio.php file, the filter tabs calls category slug (the url-friendly name, without special chars) as class to identify, but the grid calls the name and not the slug.
Obviously name and slug are not the same as soon as you have anything such as accentuated chars or /();, etc
So when javascript compares the class of the filter and of the content, nothing matches.
My solution : in rio-portfolio.php, line 660 :
$rio_portfolio_content.='<li data-id=”id-‘.$count.'” data-type=”‘; if(!empty($terms)){ foreach ($terms as $term) { $rio_portfolio_content.= strtolower(preg_replace(‘/\s+/’, ‘-‘, $term->name)). ‘ ‘; } } $rio_portfolio_content.='” class=”images-item” style=”height:’.$portfolio_thumb_height.’px; width: ‘.$portfolio_thumb_width.’px;”>’;
replace $term->name by $term->slug :
$rio_portfolio_content.='<li data-id=”id-‘.$count.'” data-type=”‘; if(!empty($terms)){ foreach ($terms as $term) { $rio_portfolio_content.= strtolower(preg_replace(‘/\s+/’, ‘-‘, $term->slug)). ‘ ‘; } } $rio_portfolio_content.='” class=”images-item” style=”height:’.$portfolio_thumb_height.’px; width: ‘.$portfolio_thumb_width.’px;”>’;
This way the slug is used to identify content, no more problem with special characters !