Richard van Denderen
Forum Replies Created
-
I got more or less the same thing, only i use ThreeWP Activity Monitor for logging. I got probably a few thousand although my logs are limited to contain 1000 entries max. Lucky thing I don’t have an admin user.
It seems not to work 100%,
My settings are:Lockout 5 allowed retries
20 minutes lockout
4 lockouts increase lockout time to 24 hours
12 hours until retries are resetBut 1 and the same ip adress achieved to made 999 tries, according to the ‘ThreeWP Activity Monitor’ plugin. Probably it was more but logs are limited for 1000 entries.
Nice adition would be that there are at least 30 seconds between an single entry
Forum: Plugins
In reply to: [ThreeWP Activity Monitor] Tracking when logged in users visit the site?I used a piece of code to generate a .csv file for every user and that contains the url, date/timestamp and the name.
I included the following code(file) in the header of the site with
if ( is_user_logged_in() ) { //do include code }made a folder called ‘logs’ in the root of the site and protected that.
<?php global $current_user; get_currentuserinfo(); $firstname = $current_user->user_firstname; $lastname = $current_user->user_lastname; $useremail = $current_user->user_email; $id = $current_user->ID; $permalink = $_SERVER['REQUEST_URI']; $date = date('Y-m-d H:i:s'); function getDomainFromEmail($email) { // Get the data after the @ sign $domain = substr(strrchr($email, "@"), 1); return $domain; } // Example $domain = getDomainFromEmail($useremail); $data = "" . $id . ";" . $firstname . " " . $lastname . ";" . $permalink . ";" . $date . "\n"; $file_name = "logs/".$firstname."-".$lastname."-".$id."-@".$domain.".csv"; $max_lines = 250; #maximum number of lines you want the file to have $new_line = $data; #content of the new line to add to the file $file_lines = file($file_name); #read the file's lines into an array #remove elements (lines) from the end of the #array until there's one less than $max_lines while(count($file_lines) >= $max_lines) { #remove the last line from the array array_pop($file_lines); } #add the new line to the front of the array array_unshift($file_lines, $new_line); #write the lines to the file $fp = fopen($file_name, 'w'); #'w' to overwrite the file fwrite($fp, implode('', $file_lines)); fclose($fp); ?>It isn’t the most efficient way and I dont know how the web server is going to act when u have a lot of logged in users at the same time, but it works for me
Forum: Plugins
In reply to: [ThreeWP Activity Monitor] Tracking when logged in users visit the site?+1, I have almost the same question, for an online workshop I want to know what pages are viewed by specific users.
Forum: Plugins
In reply to: Adding workable div in "Create a post" page.I got almost the same question, I want to ad an extra panel on the “new post page”.
Forum: Plugins
In reply to: profile-pic does not work correctly in 2.8.2this plugin works perfectly for my
i just passed this code in to my author.php theme file<?php author_image_tag($curauth->ID); ?>and then it shows your uploaded avatar on that place.
I didn’t used the other functions yet but so far I’m happy with this plugin.
Forum: Plugins
In reply to: [Plugin: Google News Sitemap Generator] Category keywordsa <news:title> would be nice to.
Can’t wait till the new release
Forum: Plugins
In reply to: Lightbox 2 not working quite well on 2.7 RC1?I fixed this problem for my gallery short code don’t know where the rel=’lightbox’ code is showing up in my output code but it works for the images in the gallery.
In the file wp-includes/post-template.php
is a line of code (line 789 in my file)
return apply_filters( 'wp_get_attachment_link', "<a href='$url' title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon );and i pasted the rel code there like this:
return apply_filters( 'wp_get_attachment_link', "<a href='$url' rel='lightbox[gallery]' title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon );
and it works for meForum: Fixing WordPress
In reply to: Possible to require full name when registering?I’m reading there that it doesn’t work with 2.7
Forum: Fixing WordPress
In reply to: Possible to require full name when registering?that’s exactly where I’m looking for at the moment is there already a salvation for this problem? cause it’s the first result in google:P