Jan B-Punkt
Forum Replies Created
-
Forum: Plugins
In reply to: [Two-Factor] Website can not use U2F API after February 2022The 2factor plug-in still needs the new webauthentication api that Google Chrome and Microsoft Edge requires.
I second this.
Forum: Plugins
In reply to: [Two-Factor] Logging in with NitroKey not workingSeems as looking at the console (and wondering why nothing appears there) again was a good point.
Turns out, one of the other plugins surpressed all js-code on the login page.After deactivation of said plugin, everything works as before.
Shame on me and thank you so much!
- This reply was modified 4 years, 6 months ago by Jan B-Punkt.
Forum: Plugins
In reply to: [Two-Factor] Logging in with NitroKey not workingHey Kaspars,
maybe there’s some misunderstanding.
It all affects the same user (my profile).So in short
- User A (me, admin) was able to use old NitroKey
- Suddenly that key was not recognized anymore
- Removed old key
- Bought new key and was able to register it for User A (me, admin)
- Not able to authenticate with new key
- Removing new key and adding it back works fine, but does not solve problem
Cheers
Jan- This reply was modified 4 years, 6 months ago by Jan B-Punkt.
Thank you for your feedback.
I’m not sure, if I understood you right.
Please explain, what you’re trying to do.Forum: Reviews
In reply to: [WPUBG] nice pluginHey theslam,
thanks for your precious feedback.
Have you already searched https://developer.pubg.com/featured_apps
Maybe they have the right app for your needs listed over there.Cheers,
janbpunkt- This reply was modified 5 years, 8 months ago by Jan B-Punkt.
Forum: Developing with WordPress
In reply to: cURL vs wp_remote_XSolved.
Guess, I build the headers-array in a wrong way. The following code is working.
Thanks ??$params = array( 'sslverify' => false, 'headers' => array( 'Authorization' => $apikey, 'Accept' => 'application/json' ) ); $response = wp_remote_get($url, $params); $result = wp_remote_retrieve_body($response); return $result;
- This reply was modified 6 years, 1 month ago by Jan B-Punkt.
Forum: Developing with WordPress
In reply to: cURL vs wp_remote_XHey sjaure,
thanks for your reply.
Maybe you are passing some extra parameters to the request payload? That could make the request to force a different content-type header.
Well, I have no idea where this could be happening :-/
I’m only using the code which is shown above.
Anyway, I think I’ll get figured that out sooner or later.
Thanks again ??
I’ll leave this open. Maybe someone else might have an idea.
Forum: Plugins
In reply to: [Embed videos and respect privacy] Klappt nicht :-(Same here.
Forum: Hacks
In reply to: Filter to manipulate the_title AND the_content at the same timeOkay, I used the 2 filter/hook solution.
Not the best way, but it works ??Thank you so much!
//when should the warning show up? $FSKstart = 6; $FSKend = 22; //define message for hidden posts $FSKwarning = "<strong>Diese Beitrag ist aus Gründen des Jugendschutzes nur zwischen 22:00Uhr und 06:00Uhr vollständig zu sehen. <br>Komm bitte später wieder.</strong>"; //function to remove the [FSK] Tag from title function hidefsk16_title ($title) { $fsk = substr($title,0,5); if ($fsk == "[FSK]") { $title = substr($title,6); return $title; } return $title; } //function to replace article with warning message function hidefsk16_content ($content) { global $post, $FSKstart, $FSKend, $FSKwarning;; $timestamp = time(); $hour = date("H",$timestamp); $title = $post->post_title; $fsk = substr($title,0,5); if ($fsk == "[FSK]" && ($hour >=$FSKstart && $hour<=($FSKend-1) )) { //$post->post_title = substr($title,7); return $FSKwarning; } return $content; } //register the filter hooks add_filter('the_title','hidefsk16_title'); add_filter('the_content','hidefsk16_content');
Forum: Hacks
In reply to: Filter to manipulate the_title AND the_content at the same timeWill try that later.
Thanks a lot!Forum: Hacks
In reply to: Filter to manipulate the_title AND the_content at the same timeThanks again, bcworkz!
When I use the following code, the title of the post stays, but the text of the post becomes: “Not visible between 6am and 10pm”
May you have a closer look at it please ??
What I want to do is to alter the title to something like “Youth protection” and the text of the post to something like “The original post is not visible between…. “.Thank you!
function hidefsk16 ($content) { global $post; $title = $post->post_title; $fsk = substr($title,0,7); if ($fsk == "[FSK16]") { $title = "Not visible between 6am and 10pm"; return $title; } return $content; } add_filter('the_content','hidefsk16');
Forum: Hacks
In reply to: Filter to manipulate the_title AND the_content at the same timeThank you, bcworkz!
Unfortunately I’m very new to coding with php and wordpress and I have no idea how I can manipulate the title and post and return it to the_content.
Can you/someone else give me a little hint?
Thanks!
Here’s some pseudo code.
function hidefsk16 ($content) { global $post $title = $post->title; $fsk = substr($title,0,7); if ($fsk == "[FSK16]") { $title = "Not visible between 6am and 10pm"; return $title; } return $content; } add_filter('the_content','hidefsk16');
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Publicize IssueDone.
Thanks!Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Publicize IssueHey Jeremy,
it’s me again.
I just released my first blog post after reconnecting the Jetpack.
That was 15 Minutes ago, but there’s still no post on FB, G+ or twitter ??May you have a look again?
Thanks!
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Publicize IssueThanks for your fast reply!
I wonder why I could get statistics of my site if the Jetpack wasn’t connected properly.
Anyway, I reconnected (stats were resettet) and I’ll check if publicize will work for the next article I’ll write.
Thanks!