GoodOmens
Forum Replies Created
-
Forum: Plugins
In reply to: [EasyRecipe] Ratings & ReviewsAre there any plans to fix ratings using Jetpack comments?
Forum: Hacks
In reply to: Adding custom image class to only certain categories?Thanks – I’ll look into that class.
Forum: Plugins
In reply to: [Firelight Lightbox] FancyBox and Jetpack Tiled Mosaic Theme – Can't ScrollThanks for the reply.
I actually implemented a slightly different approach. I added the following code to my functions.php file:
add_filter(‘the_content’, ‘addshadowboxrel’, 12);
add_filter(‘get_comment_text’, ‘addshadowboxrel’);
function addshadowboxrel ($content)
{ global $post;
$pattern = “/<a(.*?)href=(‘|\”)([^>]*).(bmp|gif|jpeg|jpg|png)(‘|\”)(.*?)
>(.*?)<\/a>/i”;
$replacement = ‘<a$1href=$2$3.$4$5 rel=”post-‘.$post->ID.'”$6>$7’;
$content = preg_replace($pattern, $replacement, $content);
return $content;
}This allows fancy box to use the REL tag. Works like a charm – it now scrolls through only images in a post which is a nice side effect.
Forum: Plugins
In reply to: [Akismet Anti-spam: Spam Protection] Apache 2.4: .htaccess is no goodYup – came here to report the same thing.
Replaced with:
Require all denied <FilesMatch "^(form|akismet)\.(css|js)$"> Require all granted </FilesMatch> #allow access to any image <FilesMatch "^(.+)\.(png|gif)$"> Require all granted </FilesMatch>And all is peachy