petertb
Forum Replies Created
-
Forum: Plugins
In reply to: Is Profiler compatible with Register PlusPerhaps easier instructions:
In profile.php find line 76 which says:
//let's see if this works any better than strictly using $vars['wp_capabilities']add after line 77 which says:
$vars['wp_capabilities'] = get_usermeta($id, 'wp_capabilities');
your variables like so:$vars['your_gender'] = get_usermeta($id, 'your_gender'); $vars['your_age'] = get_usermeta($id, 'your_age');(These variable come from the wp_usermeta table)
Now go to around line 460 which says:
$output .= "$display_name";After that you can add your stuff like so:
if($vars['your_gender'] != '') $output .= "<p>Gender: " . $vars['your_gender'] . "</p>"; if($vars['your_age'] != '') $output .= "<p>Age: " . $vars['your_age'] . "</p>";I added it after the bit:
$output .= "Website: <a href=" . $user_url . " rel=\"nofollow\">$user_url</a>";I hope that this might be a bit easier to follow.
That’s my 2 cents worth anyway and it works like a charm using data from “Register Plus.”
PeterForum: Plugins
In reply to: Problems with DRegisterI’ve installed and activated this plugin and when trying to access the options page get the following error:
Fatal error: Call to undefined function: scandir() in /home/me/www.mysite.com/docs/wp-content/plugins/dregister/dregister.php on line 64Is this plugin for php 5 only? Is there a work around for php 4?
Is it possible, if needed, to implement this workaround I found:
$dir = “/tmp”;
$dh = opendir($dir);
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
}Thanks for any help,
Peter