fadi
Forum Replies Created
-
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] Plugin being blocked by cloudflareThank you!!
yeah it was on, turned it off and its working now
Forum: Plugins
In reply to: [Ajax Search Lite - Live Search & Filter] Plugin being blocked by cloudflareHi Ernest,
Sorry, the website was under DDOS attack last week, now its back to normal security measures.
I did add a WAF rule for URI containt ajax to skip all other rules and its still not working:maybe its not cloudflare related? any idea what else might be causing this issue
Forum: Developing with WordPress
In reply to: Issue with API after 6.2 updateThank you very much, I tried it but for some reason it doesn’t update the post, as requests used to do! I noticed that I started getting response code 200, instead of 201 that I used to get.
By the way, I found out why my original code stopped working, its because the hosting “SiteGround” started blocking requests with user agent “python-requests”.
I tried setting the user-agent manually:postcontent = { "content" : content, "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" }
but for some reason it doesn’t really change, when I print the response I can see that the user-agent still python-requests:
837 <Response [400]> b'400 - Bad Request | Your browser sent a request this server could not understand.\n' https://www.example.com/wp-json/wp/v2/pages/837 {'User-Agent': 'python-requests/2.28.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic user: pass', 'Content-Length': '12023', 'Content-Type': 'application/json'}
- This reply was modified 1 year, 11 months ago by fadi.
Forum: Developing with WordPress
In reply to: Issue with API after 6.2 update@tavy87 thank you, since I’m not familiar with urllib3, any idea how to convert my code into urllib3?instead of requests?
I tried to do so, but I kept getting errorsForum: Plugins
In reply to: [Comment Reply Email Notification] Plugin stopped workingI found out what was the issue!
I placed the code you sent me in the wrong place, this where it should go:
// Change the title of send button. 'label_submit' => $comment_send, // Change the title of the reply section. 'title_reply' => $comment_reply, // Change the title of the reply section. 'title_reply_to' => $comment_reply_to, // Cancel Reply Text. 'cancel_reply_link' => $comment_cancel, // Redefine your own textarea (the comment body). 'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" placeholder="' . $comment_body . '"></textarea></p>', // Message Before Comment. 'comment_notes_before' => '', // Remove "Text or HTML to be displayed after the set of comment fields". 'comment_notes_after' => '', 'title_reply_before' => '<h4><span>', 'title_reply_after' => '</span></h4> ', // Submit Button ID. 'id_submit' => 'submit', ];
Forum: Plugins
In reply to: [Comment Reply Email Notification] Plugin stopped workingHi, thank you for your reply.
I tried adding it to the comments.php page, it helped showing the checkbox again, but still don’t get an email when comment get a reply.
I”ve checked the “Comment subscriptions” and no new emails were added, the last email was added 12/03/2022.// URL Field. 'url' => '<p class="comment-form-url"><input id="url" name="url" placeholder="' . $comment_url . '"></input></p>', ], // Change the title of send button. 'label_submit' => $comment_send, // Change the title of the reply section. 'title_reply' => $comment_reply, // Change the title of the reply section. 'title_reply_to' => $comment_reply_to, // Cancel Reply Text. 'cancel_reply_link' => $comment_cancel, // Redefine your own textarea (the comment body). 'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" placeholder="' . $comment_body . '"></textarea></p>', // Message Before Comment. 'comment_notes_before' => '', // Remove "Text or HTML to be displayed after the set of comment fields". 'comment_notes_after' => '', 'title_reply_before' => '<h4><span>', 'title_reply_after' => '</span></h4><p class="comment-form-comment-subscribe"><label for="cren_subscribe_to_comment"><input checked id="cren_subscribe_to_comment" name="cren_subscribe_to_comment" type="checkbox" value="on"> ?????? ??? ???? ??? ??????</label></p> ', // Submit Button ID. 'id_submit' => 'submit', ]; comment_form( $comments_args ); ?>
Forum: Plugins
In reply to: [Content Aware Sidebars - Fastest Widget Area Plugin] Widget Stylefound out that the issue was that I was using depreciated widget type (text), that was the reason.
In the custom sidebar I used custom html which apparently caused having different style.
a quick fix was to give the widgets a custom class “textwidget”Forum: Plugins
In reply to: [Recent Posts Widget Extended] Styling issue after version 2Hi,
I used to have styles_default on true before, changed it to false and it worked, thanks!Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Widget Visibility issueTried disabling all plugins + using default theme, didn’t help, same issue!
Forum: Plugins
In reply to: [Recent Posts Widget Extended] HTML before and after stopped workingcan anyone please answer me?
Forum: Plugins
In reply to: [Simple Posts Ticker - Easy, Lightweight & Flexible] RTL supportGreat, thank you very much!
Forum: Plugins
In reply to: [Enhanced Category Pages] How to hide the listing of postsany help?
Forum: Plugins
In reply to: [Enhanced Category Pages] Can’t hide the comments sectionany help?
Forum: Plugins
In reply to: [Recent Posts Widget Extended] margin between text and thumbDone, fixed thanks for your advice.
Added custom css:.rpwe-thumb { margin: 2px 10px 2px 10px;}
Forum: Plugins
In reply to: [Recent Posts Widget Extended] margin between text and thumbThanks for the Inspect editor tip, I’ve found out the all I need is to change thumb margin from default (margin: 2px 10px 2px 0;) to (margin: 2px 10px 2px 10px;)
how can I do that?