Title: petertb's Replies | WordPress.org

---

# petertb

  [  ](https://wordpress.org/support/users/petertb/)

 *   [Profile](https://wordpress.org/support/users/petertb/)
 *   [Topics Started](https://wordpress.org/support/users/petertb/topics/)
 *   [Replies Created](https://wordpress.org/support/users/petertb/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/petertb/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/petertb/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/petertb/engagements/)
 *   [Favorites](https://wordpress.org/support/users/petertb/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Is Profiler compatible with Register Plus](https://wordpress.org/support/topic/is-profiler-compatible-with-register-plus/)
 *  [petertb](https://wordpress.org/support/users/petertb/)
 * (@petertb)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/is-profiler-compatible-with-register-plus/#post-832342)
 * Perhaps 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.” Peter
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Problems with DRegister](https://wordpress.org/support/topic/problems-with-dregister/)
 *  [petertb](https://wordpress.org/support/users/petertb/)
 * (@petertb)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/problems-with-dregister/#post-968208)
 * I’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 64
 * Is 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

Viewing 2 replies - 1 through 2 (of 2 total)