kolshix
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Change address wp-sitemap.xml@bcworkz
Please
read the comment
1 from
sitemap.xml
2 to
somename_sitemap.xml
3 without
redirectI didn’t ask about USER_AGENT
Forum: Fixing WordPress
In reply to: Change address wp-sitemap.xmlForum: Plugins
In reply to: [PNG to JPG] Dark images after conversionBlack image is problem of hosting GD library. I test plugin on 4 hosting – and
on 1 of hosting – photos become much darker and duller after conversionForum: Plugins
In reply to: [WP Performance] conflict with file_get_contents();as always I had to solve the problem through code
open “WP-Performance.php”
... defined( 'ABSPATH' ) or exit; # (after) here my code $string = $_SERVER['REQUEST_URI']; if(stristr($string, 'download-file') === FALSE) { ... # ORIGINAL CODE ... }
- This reply was modified 4 years ago by kolshix.
Forum: Plugins
In reply to: [WP Performance] conflict with file_get_contents();I tried any options – the files are destroyed when the plugin is turned on
try on the forehead test site$image_url = 'https://site.com/image.png'. '?key_e=93585676651'; ob_clean(); header('Content-type: png'); header("Content-Disposition: attachment; filename=\"image.png\""); header('Content-Transfer-Encoding: binary'); echo file_get_contents($image_url);
1 – 35 tables
2 – Is single website
3 – DB 350mb.sql (140mb.zip)
4 – 6000 caching posts and 100000 AttachmentsI checked the cache folders and the attachment page, it indicates
<!– Cached by WP Optimize (gzip) – https://getwpo.com – Last modified: Mon, 28 Oct 2019 09:30:56 GMT –>
I also checked the cache files on the server and they are present (Url image.php)
> wp-contents > cache > wpo_cache > domain > post name > name attachment-page-from-gallery 1 > name attachment-page-from-gallery 2 > name attachment-page-from-gallery 3 ...
https://site.com/name-of-post/attachment-page-with-image-png/
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Spam in search log))))
the funny thing is that I was also attacked by Chinese spammers.
All domains led to Chinese sites- This reply was modified 4 years, 11 months ago by kolshix.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Spam in search logNow I use
/**** START */ function search_filter_spam($query) { if ($query->is_search ) { $url = get_search_query('s'); $regex = "((https?|ftp)\:\/\/)?"; // SCHEME $regex .= "([a-z0-9+!*(),;?&=\$_.-]+(\:[a-z0-9+!*(),;?&=\$_.-]+)?@)?"; // User and Pass $regex .= "([a-z0-9-.]*)\.([a-z]{2,3})"; // Host or IP $regex .= "(\:[0-9]{2,5})?"; // Port $regex .= "(\/([a-z0-9+\$_-]\.?)+)*\/?"; // Path $regex .= "(\?[a-z+&\$_.-][a-z0-9;:@&%=+\/\$_.-]*)?"; // GET Query $regex .= "(#[a-z_.-][a-z0-9+\$_.-]*)?"; // Anchor if(preg_match("/^$regex$/i", $url)) { // <code>i</code> flag for case-insensitive // if(get_headers($url, 1)){ echo 'Stop SPAM!'; exit(); } } } add_action('pre_get_posts', 'search_filter_spam');
Maybe there are other solutions, more correct.
Forum: Plugins
In reply to: [360 Product Rotation] Bkav VEX.WebshellI checked
and found the line.... * * TLDR: <?php echo Rotate_Tool::get_iframe('jewels/neck/jewel-03');?> * ....
If the line is deleted
antivirus does not find the virushttp://www.shelldetector.com/file/07ddcf8dab891a766b03343a1bdc8e77e833f144c5cb52f7c15871152b150a32
all OK ))) Why ??
Forum: Plugins
In reply to: [360 Product Rotation] Bkav VEX.Webshellfile name
Rotate_Tool.php
Forum: Developing with WordPress
In reply to: webp with transparencytried on another hosting, everything works well,
problem in the settings of the hosting or PHP
(I did not find the solution)great, it works mfrh_rename( $mediaId ).
before I used OPTIONS “Rename on Post Save” but now I will create “Custom Fields”
// additional filter for rename image add_filter( 'wp_insert_post_data' , 'filter_post_data' , '99', 2 ); function filter_post_data( $data , $postarr ) { $auto_rename = get_post_meta($postarr['ID'],"need_rename_or_not"): if ( $auto_rename == "ON"){ ..... mfrh_rename( $mediaId ); ..... } }
Why … ?
work on test hosting for: TESTING CRON, FILTER, SEO GOOGLE, AUTO POSTING
I have 4000 posts – 3,800 planned for the future
in each from 3 to 150 pictures – more than 82 000 picturesimagine how difficult it is to rename 80,000
I try to do everything automatically without human intervention
Forum: Plugins
In reply to: [Relevanssi - A Better Search] new WP_Query(“s”) + Relevanssi( “ss” = “s_fav” )
1 – add in Template user_fav.php
relevanssi_do_query();
2 – edit lib/search.php... if (!is_search() && empty($_GET["s_fav"])) { ... $wp_query->query_vars['s'] = $_GET["s_fav"]; ...
will not help – because redirect to Standart Template page.php with search results (The search now works)
BUT I want to display the search results in Template user_fav.php
- This reply was modified 5 years, 9 months ago by kolshix.
- This reply was modified 5 years, 9 months ago by kolshix.
- This reply was modified 5 years, 9 months ago by kolshix.
- This reply was modified 5 years, 9 months ago by kolshix.
- This reply was modified 5 years, 9 months ago by kolshix.
- This reply was modified 5 years, 9 months ago by kolshix.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] pre_get_posts + post__inpriority 1000 not work.
I had to enter the code into the plugin simply-exclude
(can someone help it be)... function se_get_action_data($action='') ... $arr_fav_ids = get_user_meta( get_current_user_id(), "wpfp_favorites", true); $fav_search = $_GET['in_fav'] ; $fav_search = mb_substr( $fav_search , 0, 10); $fav_search = trim($fav_search); $fav_search = stripslashes($fav_search); $fav_search = htmlspecialchars($fav_search); if ( $fav_search == 1 ){ foreach($this->se_cfg['data']['post_types'] as $key => $data){ // ID search $key = array_search($id, $arr_fav_ids); if ($key !== false){ // ORIGINAL CODE } }else{ // ORIGINAL CODE } ...