Ivan Carlos
Forum Replies Created
-
Forum: Plugins
In reply to: [Proxy Cache Purge] Not flushing on plugin or theme updateLooks like the update by Elemental works, the main issue is just that it do not flush dns when a plugin or theme is updated :/
Forum: Plugins
In reply to: [Yoast SEO] Alert to update WordPress but it’s already updatedFixed running the setup assistant
- This reply was modified 4 years, 2 months ago by Ivan Carlos.
Forum: Plugins
In reply to: [Keyring Social Importers] Instagram only import last 20 postsI asked the Keyring author, changed Intagram API to use V1 and its working very fine, but Keyring Social Importers still only impost last 20 posts of Instagram =(
Forum: Plugins
In reply to: [Keyring] Instagram test returns "This connection is NOT working correctly"It’s working fine now, thanks!!!
Forum: Plugins
In reply to: [Keyring Social Importers] Instagram only import last 20 postsI tried, it only get last 20 posts.. =/
I noticed that when I go to Keyring: Service Connections and click on test option, it returns that the connection is NOT working correctly o.o =//
All other connections that I have works fine…
Forum: Plugins
In reply to: [Crayon Syntax Highlighter] Removing scripts and css on non-required postsLol nevermind, the plugin ahves an option for this =)
Forum: Plugins
In reply to: [Video Importer] Timezone issueSolved this changing the function to include “$datecomfuso” variable to include my timezone in class-refactored-youtube-importer.php file:
Final code:
function standardize_video_array( $response ) { $result = array(); if ( isset( $response->items ) ) { foreach ( $response->items as $video ) { if ( isset( $video->snippet ) ) $video = $video->snippet; if ( !isset( $video->description ) ) continue; $tags = array(); $date = date( 'Y-m-d H:i:s', strtotime( $video->publishedAt ) ); $datecomfuso = date('Y-m-d H:i:s', strtotime($date.'+15 hours')); $result[] = array( 'title' => $video->title, 'id' => $video->resourceId->videoId, 'url' => '<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/' . $video->resourceId->videoId . '\" frameborder=\"0\" allowfullscreen></iframe>', 'description' => $video->description, 'date' => $datecomfuso, 'tags' => $tags, 'raw_data' => self::object_to_array( $video ) ); } } return $result; }
Forum: Plugins
In reply to: [YOURLS Link Creator] Too much requests!!I found the problem, it`s caused by the Click Counts refresh cron.
How can we disable or just reduce this request amount?
Could you please offer an option to setup the periodicity of this count call?
Thanks a lot and regards
It appened because WordPress filters <iframe> tags for non admin users/plugins, I fixed removing filers for import_video function:
There is the result:
function import_video( $video_array ) { // TODO: $this->log( 'Importing video from source ID ' . $this->id ); // Remove Filters remove_filter('content_save_pre', 'wp_filter_post_kses'); remove_filter('content_filtered_save_pre', 'wp_filter_post_kses'); // Build the post array $post = $this->build_post_array( $video_array ); // Insert the post $post_id = wp_insert_post( $post ); // Set the categories wp_set_post_terms( $post_id, $this->import_options['categories'], 'category' ); // Add post meta $this->set_post_meta( $post_id, $video_array ); // Execute an action hook after the video is imported do_action( 'refactored_video_importer/single_video_imported', $post_id, $this->provider->slug, $video_array, $this->id, $this->import_options ); // Log // TODO: $this->log( 'Imported new video with a post ID of ' . $post_id ); // Add back filters add_filter('content_save_pre', 'wp_filter_post_kses'); add_filter('content_filtered_save_pre', 'wp_filter_post_kses'); // Return the new post's ID return $post_id; }
As the admin does not answered my question, I can publish a DW Video Import fork to support community if someone have interest
Thanks and regards
I changed too the file /wp-content/plugins/video-importer/providers/youtube/class-refactored-youtube-importer.php , line 189:
Old:
'url' => 'https://youtu.be/' . $video->resourceId->videoId,
New:
'url' => '//www.youtube.com/embed/' . $video->resourceId->videoId,
Thanks and regards
Forum: Plugins
In reply to: [Redirection] Negative value for ip2long output causes MySQL errorI got same problem, in my inderstanding it’s generated by a bruteforce attack.
The insert starts like:
INSERT INTO
wp_redirection_404
(url
,created
,ip
,agent
) VALUES (‘/wp-content/themes/deliciousmagazine/thumb.php’
INSERT INTOwp_redirection_404
(url
,created
,ip
,agent
) VALUES (‘/wp-content/themes/PureType/timthumb.php’
INSERT INTOwp_redirection_404
(url
,created
,ip
,agent
) VALUES (‘/wp-content/themes/PersonalPress/timthumb.php’
INSERT INTOwp_redirection_404
(url
,created
,ip
,agent
) VALUES (‘/wp-content/themes/freshnews/thumb.php’but I even don’t have these themes/patches installed in my WP installation, so I suppose the attacker is trying to force an injection on WordPress to put a redirection on “wp_redirection_404” table.
I will probably disable Redirection plugin and work over these entries by .htaccess, sadly =(
Forum: Plugins
In reply to: [YOURLS Link Creator] Generating YOURLS links for old postsTo buck = to bulk
Shorelines = shortlinks*posting from a mobile device with auto check spelling xD
Forum: Plugins
In reply to: [YOURLS Link Creator] Generating YOURLS links for old postsO solved this problem using bulk edit option in WordPress, just select lot of posts (of all posts of the page), click to buck edit and save.
It take a while to be done and can issue a timeout if you select too much posts, but it does not try to create shorelines for posts that already have it and take faster if you finish the work selecting same list of posts.
I made it setting up 100 posts per page doing it 8 times for a blog with 750 posts.
damn, I installed right now and noticed that’s not working.. =((