vinx77
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Relevanssi and numbers.Thanks for the quick reply! And goodmorning… what a stupid mistake…
Is there more extensive punctuation-support in the premium version? Such as easy ß->ss, numbers, shortcodes, (not) removing äccènts, etc. Or will there be?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Relevanssi and numbers.Thanks Mikko for the suggestion, as indeed I need to edit with every update. 🙂 I’d prefer if you could add an option for indexing numbers, of course.
Now got below code, but doesn’t work if I put it in my template’s functions.php – rebuilding the index doesn’t work (0 documents in the index). Where should I put it? Or what should I do different?
function relevanssi_remove_punct_not_numbers() { $a = strip_tags($a); $a = stripslashes($a); $a = str_replace("·", '', $a); $a = str_replace("…", '', $a); $a = str_replace("€", '', $a); $a = str_replace("­", '', $a); $a = str_replace(chr(194) . chr(160), ' ', $a); $a = str_replace(" ", ' ', $a); $a = str_replace('’', ' ', $a); $a = str_replace("'", ' ', $a); $a = str_replace("’", ' ', $a); $a = str_replace("‘", ' ', $a); $a = str_replace("”", ' ', $a); $a = str_replace("“", ' ', $a); $a = str_replace("„", ' ', $a); $a = str_replace("´", ' ', $a); $a = str_replace("—", ' ', $a); $a = str_replace("–", ' ', $a); $a = str_replace("×", ' ', $a); $a = preg_replace('/((?!(\.\d)):punct:)+/u', ' ', $a); //$a = preg_replace('/:punct:+/u', ' ', $a); $a = preg_replace('/:space:+/', ' ', $a); $a = trim($a); return $a; } if ( function_exists( 'relevanssi_remove_punct' ) ) { remove_filter('relevanssi_remove_punctuation', 'relevanssi_remove_punct'); add_filter('relevanssi_remove_punctuation', 'relevanssi_remove_punct_not_numbers'); }Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Photon breaking some imagesGot a problem when a filename was “somename-200×300.jpg”. It got renamed on the SDN as “somename.jpg” and gave the “We cannot complete this request, remote data was invalid” error. Uploading the image without the “-200×300” solved the problem. So it seems that the renaming has some bugs.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Relevanssi and numbers.I solved it in common.php
Replace
$a = preg_replace('/([[:punct:]])+/u', ' ', $a);with
$a = preg_replace('/((?!(\.\d))[[:punct:]])+/u', ' ', $a);This leaves numbers like “.55” and “3.7” in the index, while before they were changed to “55” and “3 7”
Hope this helps others too.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Relevanssi and numbers.Same problem here, but then with version numbers. So searching for i.e. “WordPress+3.7” would ignore “3.7”. Especially on technical websites this is a problem.
Thanks for the great plugin! I love it.
That is because I stopped using the sitemap-feature of Yoast two weeks ago. Question remains: so there was no other solution than to replace the sitemap-plugin?
Ok, did not know that. So there was no other solution than to replace the sitemap-plugin?
These files are generated and are not real files. Probably need to fix it in wordpress-seo/inc/class-sitemaps.php
Seems the problem actually is with the Yoast SEO plugin..
Google webmaster tools said there were illegal C0 and C1 characters in the file. “fixed” by installing another plugin for the xml-sitemap.
What does the ‘\T’ do here? Shouldn’t that be a normal space?
$date = mysql2date( “Y-m-d\TH:i:s+00:00”, $url[‘mod’] );Is a WordPress multi-site a solution? http://codex.wordpress.org/Create_A_Network – on site on / and others on /es/, /de/, /nl/, /fr/, etc
Then you share the installation and plugins, but the sites can be in a totally different language and have a different configuration. Right?
When you keep getting an error that jquery is not loaded, you need to check this bug-report or implement Riccardo’s hack and also do the following steps.
find the following code in Minify.php:
if ($ext != ‘.js’ && $ext != ‘.css’) {
return false;
}
And add just below or above:
// don’t add jquery in the cache
if (strpos($file, “jquery.min.js”)===true) {
return false;
}Alternatively you could choose to prevent everything that is from google-apis as these are probably cached within the browser:
// don’t add css/js hosted by googleapis
if (strpos($file, “googleapis.com”)===true) {
return false;
}Hope this helps!
Forum: Fixing WordPress
In reply to: A secondary menu for specific pages/subpagesExcuse me:
‘$region_id = ($parents) ? $parents[count($parents)-1]: $post->ID;`Dat is erg jammer Joost, Europeanen zoals wij zijn vaak twee- of meertalig. Op http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=1301 staat uitgelegd hoe het moet.
Actually this error “Cannot call method replace of undefined” got introduced with version 5.1.8.3. But when I tried to trace the error, suddenly it started to work. I think a control-F5 (full refresh) would have solved it too.
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] Doesn't work on search results pageYou can easily solve it by installing this plugin http://wordpress.org/extend/plugins/search-permalink/
This will create a permalink for searches, so yoururl/?s=someword will becomeyoururl/search/someword and page 2 yoururl/search/someword/page/2