Evan Mullins
Forum Replies Created
-
Forum: Hacks
In reply to: Removing a parent page slug from permalinkLooking for something similar and there seems to be nothing out there.
I did find a plugin http://wordpress.org/extend/plugins/custom-permalinks/
but with it you must manually edit each page. There should really be an option for removing each level of parent from the permalink structure.Meaning that text widgets are stored in the database as a serialized data. Serialized data needs to know how many characters are in the text (or any data), so if you replace a string with a different length string the length of the value in the serilaized data changes and unless you update the length value as well the serialized data becomes corrupt. It’d sure be nice if the plugin supported this, but it’d get pretty complex to read and write serialized data, but I’d hope a workaround would be to have a setting to omit text widgets from the replace Frank?
Moral of the story, don’t use this to replace text in your text widgets because it will break them.
Frank refers to the “All – only search!” field to test your search first and see if the search is found in your text widget(s). Once you see if it is, then I’d recommend updating the text widgets manually first and then continue with the search and replace.
Forum: Plugins
In reply to: [Search & Replace] [Plugin: Search and Replace] Misses code in text widgets??Meaning that text widgets are stored in the database as a serialized data. Serialized data needs to know how many characters are in the text (or any data), so if you replace a string with a different length string the length of the value in the serilaized data changes and unless you update the length value as well the serialized data becomes corrupt. It’d sure be nice if the plugin supported this, but it’d get pretty complex to read and write serialized data, but I’d hope a workaround would be to have a setting to omit text widgets from the replace Frank?
Moral of the story, don’t use this to replace text in your text widgets because it will break them.
Frank refers to the “All – only search!” field to test your search first and see if the search is found in your text widget(s). Once you see if it is, then I’d recommend updating the text widgets manually first and then continue with the search and replace.
Forum: Fixing WordPress
In reply to: Menu has stopped working & updating@esmi – These two issues seem very much related.
I’ve also seen this on a site after updating core to 3.4, and I still haven’t gotten to the bottom of it.
@tent9181 – are you getting any error messages? What do you mean when you say you “can’t” add new tabs, you mean a new menu? Is the option missing or broken, is there an error or a silent fail?
Latest update 1.0.2 includes this, Thanks!
Forum: Fixing WordPress
In reply to: edit_user_profile hook on "Add User" screenI’m looking for this exact thing. I’ve successfully added fields to the user via the edit_user_profile and show_user_profile hooks.
How can you also add fields to the Add User screen without editing core? It’d be nice if there was a hook for that, no? http://core.trac.wordpress.org/browser/branches/3.3/wp-admin/user-new.php
resolved
Great to hear! Thanks for the update.
Now I’m eagerly awaiting the next update!
Forum: Plugins
In reply to: [CC User Data] [Plugin: CC User Data] No data from database!can you please elaborate? works for every site I’ve installed on. What version of WP and plugin are you using?
Forum: Hacks
In reply to: make extra columns in user.php sortableLooks like we need to use the ‘pre_user_query’ action. Any ideas on how? http://core.trac.wordpress.org/ticket/17573
Forum: Hacks
In reply to: make extra columns in user.php sortableI’m having the same issues. I’m trying to sort a custom field for users. Adding a column for ‘company’ works great:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
and entering the code to sort the column appears to load, but then the sorting is not according to the correct column, it sorts it just the same as if I were sorting by username.
[Code moderated]
I guess as stated above the user page does not call the register function and therefore the filter is not called either? Is this just because it hasn’t been set up to work on the users page or is it by design?
Thanks for this code! It is in fact adding the upload field to my page (I’m using bbPress and trying to add local avatars support for the users). The form in the backend loads the form automatically, but the front-end form (which I’d like the users to use) does not show the avatar upload by default. Adding this code to my theme/bbpress/form-user-edit.php file displays the upload field, but it doesn’t upload/save the image when the form is submitted.
@eBarSolutions-
Hey, can you provide the code again? Looks like the friendly moderator killed it.
Here is my fix – a quick fix that I’m not guessing fixes this issue for everyone, but it works for me now.
Add a check after it gets the first substring of everything in the url after the last ‘/’. I noticed in all of my urls which were of images (on googleuserproxy.com from the google+ API) had a ‘%2F’ just before the actual file name. So I wanted to check for that string in the url and only get what came after it. Insert after line 302:
if(strrpos($filename, '%2F')){ $filename = substr($imageUrl, (strrpos($imageUrl, '%2F'))+3); }Is there a better way to do this? And if not want to roll this into the next release so it doesn’t break me?
Forum: Plugins
In reply to: [Query Posts] Post Categories don't workFigured it out. You have to use the category id number, the title or slug don’t work.