All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: After renaming WP tables (different prefix), IP addresses not showing as admin  (Read 299 times)

0 Members and 1 Guest are viewing this topic.

Offline hightechdad

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.8.x
  • Theme Name: Modded WP Remix theme
I recently renamed my WP database table prefixes (for better security) and since doing that, have not been able to see the IP addresses of my online users. Here is what I have done to troubleshoot:

- completely uninstalled the plug/wp db tables
- did a clean install
- did the tweaks to the wp-useronline.php page as suggested in various threads on the forum

I do not, by the way, have a table called "wp_user_level" in my DB. I would create it but don't know what the fields are (without stepping through the code which I might do).

My admin use is showing as a level 10 in the "usermeta" table.

Any thoughts?

Thanks,
-HTD

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
What tweaks did you make?

This?
Find:
Code: [Select]
$user_level = intval($current_user->wp_user_level);Replace:
Code: [Select]
$user_level = intval($current_user->lr_user_level);
You can create a row in wp_usermeta table using phpmyadmin.

umeta_id = LEAVE_IT_BLANK
user_id = 1
meta_key = lr_user_level
meta_value = 10

Where lr is your table name.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline hightechdad

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.8.x
  • Theme Name: Modded WP Remix theme
Ah! That was it. I didn't realize that in the code you needed to change the "wp_user_level" to the new prefix "XXXwp_user_level". I didn't have to change my DB, just made the code change to include the prefix as you outlined.

Thx!
-HTD