RA_NPL
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Search for exact multi-part stringsThanks a lot for your updated snippet. I included it in my functions.php, uploaded it via ftp and tried to rebuilt the search index in my wp backend. However this did not work. The rebuilt process got stuck no matter what I tried (cache purged, page refresh). I think the index was not or not fully built, because when I performed searches afterwards, I got critical errors. That is why I removed the snippet from my functions.php for now until we figured out the issue.
Below please find the complete code of my functions.php with your snippet included. I am not a developer but does it matter if there is a closing
;
in the last row of your snippet or not? I am asking because the other entries contain such a closing.<?php add_filter( 'xmlrpc_enabled', '__return_false' ); function raplutte_enq_stuff() { wp_deregister_script('dorayaki-custom'); wp_enqueue_style('fontawesome', get_stylesheet_directory_uri() . '/fonts/font-awesome.min.css'); wp_dequeue_style('dorayaki-fonts'); wp_enqueue_script('scripts', get_stylesheet_directory_uri() . '/js/scripts.js', ['jquery'], false, true); } add_action('wp_enqueue_scripts', 'raplutte_enq_stuff', 20, 1); // We also want to move around and remove default stuff. add_action('wp_enqueue_scripts', function() { wp_deregister_style('wp-block-library'); }, 200, 1); add_filter('jetpack_implode_frontend_css', 'return__true'); // Here we filter the style tags. add_filter('style_loader_tag', function($html, $handle, $href, $media) { $styles_to_modify = ['rpt', 'wordfenceAJAXcss', 'widgets-on-pages', 'fontawesome', 'borlabs-cookie', 'jetpack-top-posts-widget']; if(!in_array($handle, $styles_to_modify)) { return $html; } // Now we build our own link text. $html = "<link rel='stylesheet' id='" . $handle . "-css' href='" . $href . "' type='text/css' media='none' onload='this.media=\"" . $media . "\"' />\n"; return $html; }, 10, 4); // Here we filter the script tags. add_filter('script_loader_tag', function($tag, $handle, $src) { $scripts_to_modify = ['fitvids']; if(!in_array($handle, $scripts_to_modify)) { return $tag; } // Now we build our own link text. $tag = '<script type="text/javascript" href="' . $src . '" id="' . $handle . '-js" defer></script>' . "\n"; return $tag; }, 10, 4); // We also want to preload fonts. add_action('wp_head', function() { echo '<link rel="preload" href="' . get_stylesheet_directory_uri() . '/fonts/open-sans-v15-latin-ext_latin-regular.woff2' . '" as="font" crossorigin="anonymous" />'; echo '<link rel="preload" href="' . get_stylesheet_directory_uri() . '/fonts/open-sans-v15-latin-ext_latin-600.woff2' . '" as="font" crossorigin="anonymous" />'; echo '<link rel="preload" href="' . get_template_directory_uri() . '/font/genericons-regular-webfont.woff' . '" as="font" crossorigin="anonymous" />'; }); function quickcheck() { ob_start(); ?> <script> function seller_add() { var newExclude = jQuery('<div><input type="text" name="exclude_seller_id[]" /><a href="javascript:void(0);">entfernen</a></div>'); jQuery('a', newExclude).click(function() { newExclude.remove(); return false; }); jQuery("#exclude_sellers").append(newExclude); return false; } </script> <div class="gform_wrapper"> <form action="https://www.anticopy.de/bilderklau-finder/" method="get" class="ebay-check gform_body" target="anticopy.de"> <input type="hidden" name="submit" value="Absenden"> <div class="ebay-name"> <p>Geben Sie hier Ihren eBay-Namen (Account) ein. Das Tool ermittelt sofort, wer für welche Auktionen Ihr Bildmaterial nutzt:</p> <p> <input name="ebay_name" id="ebay_name" type="text" value=""> </p> <p> <input type="submit" value="Absenden" class="button"> </p> </div> <div class="ebay-exclude" id="exclude_sellers"> <p>Sofern Sie mehrere ebay-Accounts haben oder aus anderen Gründen bestimmte ebay-Accounts vom Suchlauf ausschlie?en wollen, geben Sie hier die entsprechenden ebay-Namen ein:</p> <p> <input type="text" id="exclude_seller_id1" name="exclude_seller_id[]" value=""> </p> <p> <input type="submit" value="Absenden" class="button"> </p> </div> <p> <a id="#add_exclude_seller_id" href="javascript:void(0);" onclick="seller_add();">Weiteren eBay-Namen ausschliessen</a> </p> </form> </div> <?php $out = ob_get_clean(); return $out; } add_shortcode('quickcheck', 'quickcheck'); // function change_to_http($content) { // $content = str_replace('data-url="https', 'data-url="http', $content); // return $content; // } // add_filter('the_content', 'change_to_http'); add_filter('amp_post_template_file', 'xyz_amp_set_custom_template', 10, 3); function xyz_amp_set_custom_template($file, $type, $post) { if ('footer' === $type) { $file = dirname(__FILE__) . '/templates/footer.php'; } return $file; } add_filter('gform_confirmation_anchor', create_function('', 'return false;')); add_image_size('tablet_size', 768, 0, false); add_image_size('mobile_size', 400, 0, false); add_image_size('content-wide', 1180, 0, false); add_image_size('content-mobile', 315, 0, false); add_image_size('single-post', 800, 0, false); add_filter('image_size_names_choose', function($sizes) { return array_merge($sizes, [ 'content-wide' => __('Content Wide (1180px)'), ]); }); function wpb_remove_commentsip($comment_author_ip) { return ''; } add_filter('pre_comment_user_ip', 'wpb_remove_commentsip'); // Change thumbsize of top posts from jetpack. add_filter('jetpack_top_posts_widget_image_options', function($array) { $array['avatar_size'] = false; $array['width'] = 60; $array['height'] = 31; return $array; }); // Custom Fix for Relevanssi plugin to detect court rulings in searches add_filter( 'relevanssi_remove_punctuation', 'rlv_convert_filenumbers' ); add_filter( 'relevanssi_post_content', 'rlv_convert_filenumbers' ); function rlv_convert_filenumbers( $a ) { $a = preg_replace_all( '#(\d+)\s(\w)\s(\d+)/(\d\d)#', '\1\2\3\4', $a ); return $a; } // Add our "top-themen" menu. register_nav_menu('top-bar', 'Hei?e Themen'); if (! function_exists('dorayaki_comment')) : /*-----------------------------------------------------------------------------------*/ /* Comments template dorayaki_comment /*-----------------------------------------------------------------------------------*/ function dorayaki_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; switch ($comment->comment_type) : case 'comment': ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> <article id="comment-<?php comment_ID(); ?>" class="comment"> <div class="comment-avatar"> <?php echo get_avatar($comment, 45); ?> </div> <div class="comment-content"> <ul class="comment-meta"> <li class="comment-author"><?php printf(__(' %s ', 'dorayaki'), sprintf(' %s ', get_comment_author_link())); ?></li> <li class="comment-time"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"> <?php /* translators: 1: date */ printf( __('%1$s', 'dorayaki'), get_comment_date('d.m.y') ); ?></a></li> <li class="comment-edit"><?php edit_comment_link(__('Edit', 'dorayaki')); ?></li> </ul> <div class="comment-text"> <?php comment_text(); ?> <?php if ($comment->comment_approved == '0') : ?> <p class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.', 'dorayaki'); ?></p> <?php endif; ?> <p class="comment-reply"><?php comment_reply_link(array_merge($args, array( 'reply_text' => __('Reply', 'dorayaki'), 'depth' => $depth, 'max_depth' => $args['max_depth'] ))); ?></p> </div><!-- end .comment-text --> </div><!-- end .comment-content --> </article><!-- end .comment --> <?php break; case 'pingback': case 'trackback': ?> <li class="pingback"> <p><?php _e('<span>Pingback:</span>', 'dorayaki'); ?> <?php comment_author_link(); ?></p> <p class="pingback-edit"><?php edit_comment_link(__('Edit →', 'dorayaki'), ' '); ?></p> <?php break; endswitch; } endif;
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Search for exact multi-part stringsHi Mikko,
thank you for your quick reply and the snippet. I understand that the plugin does not cover such odd search queries by default. However the reference number pattern is a little more complex. Here are the possible variations:
1. The typical way of displaying a court ruling is something like
LG K?ln, Beschluss vom 11.10.2021, 28 O 350/21)
orLG K?ln, Beschluss vom 11.10.2021, Az. 28 O 350/21)
. These patterns contain three elements separated by,
.2. The first element is an abbreviation of the court type, specifically
AG
,LG
,OLG
,BGH
,EuGH
orBVerfG
. There are more court types. However these are not relevant in our field. This abbreviation is followed by a city name starting with a capital letter and then random chars including the german mutated vowels?
,?
andü
. Usually it is one word likeK?ln
orBerlin
but it could be two words in some cases, i.e.Bad Homburg
.3. The second element is the type of ruling with its date. The two options are
Beschluss
orUrteil
followed by the wordvom
and closing with the date of the ruling.4. Eventually, the ruling closes with
Az.
(often left away by lawyers when searching) and the actual reference number. These reference numbers have different variations.a. Let’s look at my example
28 O 350/21
. The first number (28
) can have one or two digits always followed – to my knowledge – by a space and then a single capital letter again followed by a space.b. The last part of the number (in my example
350/21
) can have one, two, three or four digits before the/
and always two digits behind (as it represents the year of the ruling).I know this is a lot to ask, but could you update your snippet according to these requirements? This would be of great help, so people can finally find court rulings with ease on my website.
Also, where would I have to paste the snippet? In my functions.php file or somewhere else?
Best, Nick
Forum: Plugins
In reply to: [Shariff Wrapper] Facebook Shares not counted in some postsHi Jan-Peter,
thanks for your extensive reply and the efforts you put into the plugin. I tested calling the Facebook Graph as well for different posts and got the same results like you described above.
It looks like no new likes/shares are considered by Facebook anymore for my site, not only for new posts but also for old posts, where the counting strangely stopped. If you should have any more ideas what I can do to restore the old working model, hints are very welcome.
Best, Nick
Hi Mikko,
unfortunately the problem is getting worse. After updating the robots.txt as explained above I got a notification from Google Search Console that spam searches where indexed for my domain https://www.ra-plutte.de even though they were blocked via robots.txt.
To my understanding, this indexing should never have happened. Instead, from my understanding the issue should have only been visible “internally” in my Google search console, which is already not nice.
Please also notice that the rankings and monthly visitors of my domain significantly decreased within the last three months (up to 30% less compared to the former numbers). This began right when these spam search issues started, which is why I am concerned that something way more problematic is taking place. You can see it on the screenshots I provided.
I would like to keep my GSC and Google index clean like both were roughly three months prior to today and make 100% sure that my site is not somehow flagged spammy by Google due to the aforementioned issues.
I would appreciate if you took a deeper look into my case, when you find time. If you need details, please send me a mail.
Best, Nick
Forum: Plugins
In reply to: [Shariff Wrapper] Facebook Shares not counted in some postsHi Jan-Peter,
many thanks for your reply and in general for the efforts you put into the plugin.
I followed your recommendations on my website ra-plutte.de and waited about 2 weeks.
a. Now facebook shares are shown (again) for older posts like https://www.ra-plutte.de/rechtstipps-zu-twitter-instagram-marketing/.
b. However for new posts, no facebook shares are displayed even though they were shared on Facebook (example: https://www.ra-plutte.de/traditions-und-alterswerbung-grosse-rechtsuebersicht-zum-uwg/).
Kindly please let me know your recommendation on how to proceed. Thank you.
Best, Nick
Forum: Plugins
In reply to: [Shariff Wrapper] Facebook Shares not counted in some postsSame here. While on https://www.ra-plutte.de/, the facebook share count is shown, it is not shown anymore for loads (maybe all) blog posts, i.e. https://www.ra-plutte.de/olg-muenchen-google-ads-brandbidding-mit-alternative/
Forum: Plugins
In reply to: [WP Last Modified Info] Manual changes of last updated do not workUpdate: Apparently you have to select at least +1 minute in the date/time field compared to the initial release date/time, then it works. If you select the exact same date/time, it does not work.
Forum: Plugins
In reply to: [Statify] Ist erkennbar, ob Statify auf der Webseite aktiv l?uft?Vielen Dank für die schnelle Antwort. Interessant, dass es technisch zumindest m?glich w?re. Mal sehen, ob wir mit vertretbarem Aufbau die o.g. URL anpingen k?nnen.
Forum: Plugins
In reply to: [Shariff Wrapper] Different size (layout) on post and excerpt?Same here. We would like to use the large buttons for desktop mode and the small button version for mobile use.
Klasse, vielen Dank für die schnelle Korrekur. Jetzt klappt es wieder.
Viele Grü?e
NickNachtrag: Der Entwickler hat noch einmal best?tigt, dass es am Dejure Plugin liegt. Er schlug vor, statt der Bildunterschrift darunter einen normalen Paragraph einzufügen. Ich prüfe das mal, es w?re aber in jedem Fall nur eine Zwischenl?sung.
Forum: Plugins
In reply to: [dejure.org Vernetzungsfunktion] Vernetzungsfunktion geht nicht mehrVielen Dank, jetzt funktioniert wieder alles.
Forum: Plugins
In reply to: [dejure.org Vernetzungsfunktion] Vernetzungsfunktion geht nicht mehrKlasse, ganz herzlichen Dank.
I updated to version 1.1.0 and got the following error afterwards although i purged the cache:
Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/…./ra-plutte.de/wp-includes/general-template.php:2267) in /www/htdocs/…./ra-plutte.de/wp-config.php on line 110
Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/…./ra-plutte.de/wp-includes/general-template.php:2267) in /www/htdocs/…./ra-plutte.de/wp-includes/pluggable.php on line 1195
Edit: Apparently the error message displays only in case i am logged in. If you open any url on https://www.ra-plutte.de as a regular user it just shows the current date in the top left of the screen.
Edit 2: The error message “Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/…./ra-plutte.de/wp-includes/general-template.php:2267) in /www/htdocs/…./ra-plutte.de/wp-includes/pluggable.php on line 1195” has disappeared after purging the cache again. The message regarding wp-config.php on line 110 and the date display in my frontend remains.
Can you please have a quick look at this?
I had the exact problem like @upeuker, also with the dorayaki theme from the developer “Elmastudio”.