I’ve tried clearing my log from previous version, just in case that it could cause any problem. Then I’ve waited some time until it’s again populated with data and some different domains. I’ve tried again with custom rules but it doesn’t shows any domain yet but however I can see many different domains into the log. So I believe that there is something not working fine.
]]>– My question is how to add rules/logic?
– Specifically, I needed page cache to be saved according to a *combination* of cookie groups.
For example: unique cache for these:
cookie1=3,cookie2=dog
cookie1=3,cookie2=cat
But it isn’t the way W3TC works, it seems
Thanks
]]>Here’s an example of such spam: https://prnt.sc/1wz3wmz
I noindexed ?= pages but they build links to these spammy search URLs, so there is a chance Google will ignore noindex in robots.
Is there a way to diallow all non-Latin characters or special characters like emojis, etc. from being searched?
]]>So having abit of issue working this one out. So my client www.justember.com has 2 types of products so far. One is a 2 piece cube candle set (hidden on the store currently) and one is a 1.3kg wax skull.
They want to be able to have the shipping based on 2 box sizes which cost different amounts to post. so they have a small box and a medium box:
So you can get up to 8 sets of cube candles in the smaller box for £3.20 delivery. If someone orders two skulls or one skull plus a set of cubes then it’ll be the medium size box for £5.30.
Can anyone help me with how id go about setting this up in woo, or a plugin i need for custom rules? Ive thought about a few options but they keep falling on their faces.
Even if i could set it up so the cart applies the shipping cost to total weight of the items been bought?
Thanks in advance!
]]>Looking further into NinjaWP docs, I found out that with .htninja file
it’s possible to create custom rules to use with the FW engine.
I’ve put this file in public_html folder and it’s loaded correctly by
the FW (see attached screenshot).
I was doing some tests using a WPScan web service
(https://hackertarget.com/wordpress-security-scan/) and trying to block
some IP I found looking at FW’s log.
Here’s the rule that I used from your .htninja-sample file:
$ip_array = array( ‘104.237.147.13’ , ‘104.237.147.13’ , ‘104.211.30.57’
, ‘34.230.71.33’ );
if ( in_array( $_SERVER[“REMOTE_ADDR”], $ip_array ) ) {
return ‘BLOCK’; // blacklist
}
However, running the scan service nothing happens…. IPs are not
blocked…
Am I missing something? Do I have to set something else in .htninja
file?
Thanks for any help!
Best regards
]]>I have installed Wishlist Member, and used this code https://www.ads-software.com/support/topic/custom-conditions-for-wishlist-member-levels/ with a couple of modifications to make it work without error in admin panel.
My problem is the exact thing the post above is having, on front-end the condition parameter I’ve set is returning 1, but IF Menu doesn’t seem to recognize it and doesn’t SHOW the menu items when parameter is true.
I found this in error.log:
PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in <root-dir>/wp-content/plugins/if-menu/if-menu.php on line 106
I’m using the latest version of the plugin.
Help please?
thanks,
Froi
I am having trouble following the documentation and creating custom instant article rules. Part of the confusion is because of the disconnect between FB documentation and the Plugin’s documentation. Your recent updates to the documentation are really helpful, but there are still a few things I am unclear about.
In FB documentation (https://developers.facebook.com/docs/instant-articles/sdk/transformer), it shows how to create a custom rule:
class MyCustomRule extends Rule
{
public function matchesContext($context)
{}
public function matchesNode($node)
{}
public function apply($transformer, $container, $node)
{}
}
But is the plugin already creating this for us or do I need to add this code to my functions.php file? For instance, I need to add in a rule for SimplePullQuote, I tried adding the following to the custom rules in the plugin interface:
{
"rules":
[{
"class": "PullQuoteRule",
"selector" : "div.simplePullQuote"
}, {
"class": "AddtoAnyRule",
"selector" : "div.addtoany_share_save_container"
}, {
"class": "AddtoAnyRule",
"selector" : "div.addtoany_content_bottom"
}, {
"class": "ImageRule",
"selector" : "div.single-image"
}, {
"class": "SuperscriptRule",
"selector" : "sup" //<sup>
}
]
}
But when I save and then go to a post, the FB IA interface cannot load the scripts and the activity indicator just infinitely scrolls. I am guessing this is because there is no e.g., “PullQuoteRule” class? So then would I need to add this to functions.php in my WP theme?
class MyCustomRule extends Rule
{
public function PullQuoteRule($context)
{}
}
I know some of this extends to the FB documentation, but I am finding it really confusing. I have tried to follow other threads, but none of them lead me to an answer that works. Really hoping for some help here.
Thank you in advance,
Donna