mathijsvdbeek
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] wp list pagesThanks. I am using both. They work with each other. I will ask the developers.
Forum: Plugins
In reply to: [Comment Approved] child theme comments.phpIk heb vandaag nog even verder aanpassingen gedaan, maar het lijkt daar toch niet helemaal in te zitten. Ook zonder de childtheme aanpassingen en snippet krijg ik geen checkbox en geen e-mail.
Ik werk met wordpress 5.01
Groet,
Mathijs
Forum: Plugins
In reply to: [Random Content] update plugin?? Awesome ??
Forum: Plugins
In reply to: [Limit Max IPs Per User] log IPV6It works on my new server ??
Forum: Plugins
In reply to: [Limit Max IPs Per User] log IPV6Oke. Thanks ?? When I change hosting in januari I will ask to set it up right ??
Forum: Plugins
In reply to: [Limit Max IPs Per User] log IPV6Awesome ??
Forum: Plugins
In reply to: [Simple Ajax Chat – Add a Fast, Secure Chat Box] Spanish translationThe translation files works fine ?? Just put the po and mo file in the wp-content/languages/plugins folder and name them simple-ajax-chat-(language) in my case simple-ajax-chat-nl_NL.mo and po for the other file. This works super!
Works perfectly ?? Thanks a lot!
Thanks. Put it in a custom plugin.
?? It does work on the name display. But in the chat the name stays full after posting a message.Oke… not an expert on this area… how does this work?
Super! Thanks
Already found it. Changed it in the php files chat en form
changed the after the last arrow to user_firstname
$logged_username = $current_user->user_firstname;Forum: Plugins
In reply to: [Download Monitor] Change download nameThank you for you’re reaction. Seems the problem is solved somehow…:)
It works perfectly now!Forum: Plugins
In reply to: [User Specific Content] show user specific posts to currenlty logged in userTip for people who don’t want the comments to be visible.
I use the plugin for member area and uses posts.
I created 2 different single.php files and linked them to categories
– 1 for personal files. In this file I added the code above but redirect to home if user are not allow to go there. You can also change this to redirect history (back)
– 1 for overal.In the first one comments are not visible because if you don’t have acces you will be redirected before the content appears
In the second one everybody who is logged in have acces to the page.
You can even create a third one if you like for non logged in users.
In stead of OK en NOK i used:
$savedusers = get_post_meta($post->ID, ‘U_S_C_users’,true); // users checked in the metabox
$currentuser = get_current_user_id(); // user logged-in
if (in_array($currentuser,$savedusers)) {}
else {echo $htmlHeader;
while($stuff){
echo $stuff;
}
echo “<script>window.location = ‘your-link'</script>”;
exit;
}and for logged in user:
if ( !is_user_logged_in() ) {
auth_redirect(“your-link”);
}In my blog overview page i used the following code. Don’t forget to make a custom css .zichtbaar {css what you like here;}
<?php
$savedusers = get_post_meta($post->ID, ‘U_S_C_users’,true); // users checked in the metabox
$currentuser = get_current_user_id(); // user logged-in
if (in_array($currentuser,$savedusers)){
$aantalposts=1;
?>
<div class=”zichtbaar”>
<?php
}
else {
return;
exit;
}
?>Good luck… if you have a little bit of skills i think it is awesome ??
Forum: Plugins
In reply to: [User Specific Content] show user specific posts to currenlty logged in userWorks perfectly. Thanks a lot.