gerobe
Forum Replies Created
-
Did the beta fix this problem?
Has anyone checked, if the beta fixes the encoding-problems?
See
https://wordpress.org/support/topic/v20-encoding-problemForum: Plugins
In reply to: [WP-Slimbox2 Plugin] overlay appearing on top of imagethis plugin is going to break when they upgrade jQuery in a future WP release
It happened now with WP 3.6
Hi,
I also created a thread because of encoding problems. Strange enough, that I have the false encodings only on Wptouch mobile posts with galleries on them. The desktop view and post without galleries are ok.
@laskowv That’s what I said in my first post 🙂
I found the reason: It was a conflict with the plugin “More fields”, which isn’t maintained anymore, but still worked.
I migrated to “Advanced custom fields” and was able to upgrade NGG.
I just tried to do the update manually by deactivating the plugin and uploading and overwriting the old files with the new ones.
But unfortunately after activating the plugin – all pages are white again.
Forum: Plugins
In reply to: [Pushover Notifications for WordPress] Translation: How?Thank you! I did not know the ckpn prefix and tried others, but now it works. How can I send you the German translation?
Forum: Plugins
In reply to: [XPoster - Share to Bluesky and Mastodon] From YOURLS to WP to TwitterHello!
For those who also want to migrate from YOURLS to Twitter to WP to Twitter here is the way I did it.
Entering the code Joe Dolson suggested won’t work perfectly, because afterwards you will have two shortlink entries in the head section, because WP does enter the post-id as shortlink like
www.domain.com/index.php?p=1234. So we have to use a filter to change that link into “our” YOURLS shortlink.So here is the trick:
First of all install and enable WP to Twitter and deactivate and delete YOURLS to Twitter.
Go to your phpMyAdmin installation, make a backup of the database first(!) and change the existing variable name from YOURLS to Twitter that stores the shortlink into the new one from WP to Twitter by entering the following SQL-Code. Change the wp prefix of wp_postmeta into your own prefix if necessary.
UPDATE 'wp_postmeta' SET 'meta_key' = '_wp_jd_yourls' WHERE 'meta_key' = 'yourls_shorturl'Now enter the following code in the functions.php of your WordPress theme.
add_filter('pre_get_shortlink', 'gb_my_custom_shortlink', 10, 4); function gb_my_custom_shortlink($false, $post_id, $context, $allow_slugs) { if ( (is_single() || is_page()) && !is_home() ) { global $post; $short_link = get_post_meta($post->ID, '_wp_jd_yourls', true); if('' == $short_link) return false; } return $short_link; }This code will look if the post has a shortlink stored and replace the WP default shortlink with the correct YOURLS created link.
Forum: Plugins
In reply to: [XPoster - Share to Bluesky and Mastodon] From YOURLS to WP to TwitterThank you, Joe, for the fast reply!
These are good news, that WP to Twitter also stores the short-url in a custom field. So I can alter your code and look also for the “old” value of the YOURLS-Plugin, display it like in your proposal or check if the post has the new variable _wp_jd_yourls stored.
So post with the new and the old plugin will have their short-link displayed.
Another solution might be to replace the old variable name with the new one inside the SQL-database.
This helped me a lot!
Thank you!
Forum: Plugins
In reply to: [Dynamic Widgets] Missing argument 2 for wpdb::prepare()Hi chevymanusa,
I have seen, that you already could fix this the same way. Great.Forum: Plugins
In reply to: [Dynamic Widgets] Missing argument 2 for wpdb::prepare()This can be fixed by searching the file /classes/dynwid_class.php for the string
prepare($query)and replace it with
prepare($query,null)the string should be found twice in that file.
Forum: Plugins
In reply to: [AVH Extended Categories Widgets] Missing argument 2 for wpdb::prepare()Here is a fix, that worked for me. Change line 62 in avh-db.php from
return $wpdb->prepare('SHOW COLUMNS FROM ' . $table);into
return $wpdb->prepare('SHOW COLUMNS FROM ' . $table,null);Forum: Plugins
In reply to: [Pagebar2] [Plugin: pagebar] Missing argument 1 for postbar()Thank you, Lutz!
Everything is working now without error-messages.
Forum: Plugins
In reply to: [Pagebar2] [Plugin: pagebar] Missing argument 1 for postbar()This does not fix the problem for me. The “Missing argument” error is still there.
Forum: Plugins
In reply to: [Pagebar2] [Plugin: pagebar] Missing argument 1 for postbar()Same here!
Additionally I get the message
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent
when trying to update the plugin options with the new version 2.6