paolodit
Forum Replies Created
-
Forum: Plugins
In reply to: wp_generate_password simpler passwords please?I saw this on the web, but when I add it to the theme functions.php it breaks the site:
function wp_generate_password( $length = 8, $special_chars = false ) { /* simpler password generation */ srand((double)microtime()*1000000); $vowels = array("a", "e", "i", "o", "u"); $cons = array("b", "c", "d", "g", "h", "j", "k", "m", "n", "p", "r", "s", "t", "u", "v", "w", "tr", "cr", "br", "fr", "th", "dr", "ch", "ph", "wr", "st", "sp", "sw", "pr", "sl", "cl"); $num_vowels = count($vowels); $num_cons = count($cons); for($i = 0; $i < $length; $i++){ $password .= $cons[rand(0, $num_cons - 1)] . $vowels[rand(0, $num_vowels - 1)]; } $password = substr($password, 0, $length); // random_password filter was previously in random_password function which was deprecated return apply_filters('random_password', $password); }I assume because wordpress uses this function for OTHER things other than password generation?
any insight anyone? Appreciated 🙂 THanks
HI Tom
Okay. Thanks for the heads-up. Its a nice plugin though. So will have a look at beefing up WP security via other means… Any suggestions??
thanks! 🙂
I meant its saying to chmod to 777 the wp-content folder.
Forum: Plugins
In reply to: simple.. give php the category of current post – but it dont work!Much thanks.. that works like a baby.
my email address is at a well known gmail email provider, with paolodit as my name… Let me know your paypal address by email.
thanks!
Forum: Plugins
In reply to: simple.. give php the category of current post – but it dont work!I will paypal you a beer, if you can solve. thanks!
Forum: Plugins
In reply to: simple.. give php the category of current post – but it dont work!Ah no… I spoke to soon!
thanks for trying.. Appreciated
Maybe your solution only works on the category page, not within the single.php theme template?
Forum: Plugins
In reply to: simple.. give php the category of current post – but it dont work!Dude
It IS my lucky day. That is most appreciated. You are a legend.
THANK YOU
Forum: Plugins
In reply to: simple.. give php the category of current post – but it dont work!Fanx for the pointer…. But what’s the workaround?
Should I write my own function, that extracts the title from the open socket within the page, strips out text, and works out where the title is?!
Surely there is an easy peasy way?
thanks again