codebanter
Forum Replies Created
-
Forum: Plugins
In reply to: remove_role not workingSolved this problem later on that same day, so decided to come back in here and post what I found out.
I’ll keep this brief since I have a page on my site that explains everything in greater detail. I’ll link to the page at the end of this post.
Basically, inside the remove_user method contained in the WP_User class, there is an error. The code is checking for the existence of the specified role using
empty($this->roles[$role])
The problem is that $this->roles returns an index array with the roles as values. The code above would require a multidimensional array with the role names as the keys, not the values.
To solve this, I created a plugin which is just a custom class that extends the WP_User Class and overrides the remove_role method. My new method does an in_array check for the existence of the role. All of the existing WP_User functionality remains intact, therefore you can use this new class in it’s place.
You can see the rest of the details and download the plugin here at my site .
Craig
Forum: Plugins
In reply to: remove_role not workingHas anyone else had this problem?
Forum: Plugins
In reply to: Problems with pluginIf installing that one plugin was the only change you made before the page went white, then deleting it should have corrected the problem. I’ve done this before to solve a similar problem.
Sorry I can’t be more help.
Forum: Plugins
In reply to: Problems with pluginIf you install a plugin that screws everything up and won’t let you load admin, simply login to your ftp server and delete the plugin. Your site will load as it did before you installed the problematic plugin and you will again be able to access your admin.
Forum: Fixing WordPress
In reply to: how to insert opt in box in sidebarCodebanter.com has a plugin that helps you to add a Get Response or Aweber Optin box to your sidebar easily.
https://www.codebanter.com/projects/Forum: Fixing WordPress
In reply to: Find the html sourceCodebanter.com has a plugin that helps you to add a Get Response or Aweber Optin box to your sidebar easily.
Forum: Fixing WordPress
In reply to: Join Email List Form in Sidebar?Codebanter.com has a plugin that helps you to add a Get Response or Aweber Optin box to your sidebar easily.
https://www.codebanter.com/projects/Forum: Fixing WordPress
In reply to: How to add a Aweber Subscription FormCodebanter.com has a plugin that helps you to add a Get Response or Aweber Optin box to your sidebar easily.
Forum: Fixing WordPress
In reply to: Advanced: Aweber & WP IntegrationCodebanter.com has a plugin that helps you to add a Get Response or Aweber Optin box to your sidebar easily.
Forum: Fixing WordPress
In reply to: Adding an Optin Box to my sidebarCodebanter.com has a plugin that helps you to add a Get Response or Aweber Optin box to your sidebar easily.