Forum Replies Created
-
Author
-
January 26, 2016 at 22:06 in reply to: Tip of the day. How to avoid multiple logins at a time #100655
vinz98
ParticipantI am sorry somewhere the copy [aste went wrong. admin cab you please put this right for me?
/*
Plugin name: Single user login
Plugin URI:
Description:
Author: Ben May
Author URI:
Version: 0.1
*/if( !class_exists( ‘WPSingleUserLoggin’ ) )
{
class WPSingleUserLoggin
{
private $session_id;function __construct()
{
if ( ! session_id() )
session_start();$this->session_id = session_id();
add_action( ‘init’, array( $this, ‘init’ ) );
add_action( ‘wp_login’, array( $this, ‘wp_login’ ), 10, 2 );
}function init()
{
if( ! is_user_logged_in() )
return;$stored_sess_id = get_user_meta( get_current_user_id(), ‘_wp_single_user_hash’, true );
if( $stored_sess_id != $this->session_id )
{
wp_logout();
wp_redirect( wp_login_url() );
exit;
}
}
function wp_login( $user_login, $user )
{
update_user_meta( $user->ID, ‘_wp_single_user_hash’, $this->session_id );
return;
}
}
new WPSingleUserLoggin();
}vinz98
ParticipantIt takes too long for your help, I put back the backup.
I close the call as resolved.vinz98
ParticipantI entered it but I see no change. I use a child theme.
I use https so I entered this:
function hook_fa_sweet_sq7() {
$output = “<link rel=’stylesheet’ id=’font-awesome-css’ href=’https://swingrs.nl/wp-content/themes/sweetdate/assets/styles/font-awesome.min.css’ type=’text/css’ media=’all’ />”;
echo $output;
}
add_action(‘wp_head’, ‘hook_fa_sweet_sq7’);(I also have the problem that the counters at the frontpage do not count man/women anymore since I changed the fields to soft-swap/full-swap that was another topic.)
vinz98
ParticipantHello Radu
After the newest update the icons are there in search button and so on but the only place where it is not anymore is login and register at the top.
Where have the icons gone?
vinz98
ParticipantHi I already have the locoplugin. The text is not showing when I search for it. Also dutch is 100% translated so there cannot be an empty space. so I believe the lines must be missing in the native language?
When you add lines in an update and do not update the po files the lines wil not translate.
Maybe a bug?vinz98
ParticipantYou have an error in the username. Do not put your api code after it.
username is aka4realz
and the api field is the long line of characters.
You must wait for a day before your server will pick up the update in the cron job. So do not expect that it works after 1 minute.vinz98
ParticipantHello
Two months have passed by but no update. I heard a security bug is in the 4.x revslider?
vinz98
ParticipantThanks for your apologies. It was brave to do that public.
I had contact before with Radu. That worked really well. Response was quick and he told me brief what he had altered and where. So in future I understand the ways things work.
vinz98
ParticipantI have restored the site from backup. I will admin my site myself from now on. You probably can guess why…
vinz98
ParticipantFatal error: Call to undefined function kleo_memberships() in /home/xxxxxx/public_html/wp-content/themes/sweetdate/framework/theme_options.php on line 1157
I am sorry but there is an error now.
vinz98
ParticipantLaura, it was too simple. Just go to pmp->advanced and edit the file like in the screenshot.
vinz98
ParticipantHi Laura. I found something too. Don’t know if it is the right thing I did but after examining the code It pointed to pmpro_levels. And in pmpro settings you can assign a page to that. See prt scr.
vinz98
ParticipantHi Laura, good job!
Can you please tell me (for future) where the location of the altered link is?
Greets
Vincentvinz98
Participantuser: Laura
Pass: KfFMJuQuXQv!mIHaT^SPl4foftp
Usernaam: swingrsn
Wachtwoord: r6Dccp966ICan you please also look why at the frontpage the full swappers and softswappers online is not counting? I just renamed men and women but now it does not count anymore 🙁
thank you in advance
September 24, 2015 at 20:07 in reply to: Tip of the day. Ideal payment gateway within paid memberships pro #79385vinz98
Participantvinz98
ParticipantHello Radu.
Thank you for the diagnosis. Can I host this font myself because now my SSl/https certificate can not function anymore because I am loading from the http portion of seventh now. I Just copy it and adjust the header.php?
vinz98
ParticipantMaybe This will be of help.
http://docs.woothemes.com/document/storefront-woocommerce-customiser/
-
AuthorPosts