Bug #1401
closed
Avoiding really long blog names
Added by Matt Gold almost 13 years ago.
Updated over 12 years ago.
Category name:
BuddyPress (misc)
Description
When people set up groups and then check "yes, I want a blog," I think that the system automatically places their group name in the subdomain of the URL. Even though users have a chance to alter that name, users who aren't particularly tech-savvy may end up with blog names like this: http://centerforteachingandlearningatqueenscollegestreamingvideo.commons.gc.cuny.edu/ . I think that we should try to help users avoid this, if possible, especially because, as I remember from a previous issue, there can be difficulties in getting the group-blog connection to work if a blog is associated with a group at group creation and later disassociated with it.
So, here's one fix I'm thinking of: what if there was a "are you sure?" + some kind of warning confirmation box that popped up when a blog's URL contained over 15 characters? Would that help solve the problem? I'm fairly sure that the owners of the above URL are going to want something different sooner rather than later.
On the other hand, maybe it's not worth wasting resources on this. Certainly, users can fix the issue for themselves if they so choose. But I bring it up because I've seen it happen a few times.
- Status changed from New to Assigned
- Priority name changed from Normal to Low
This is a reasonable request. I'll just write some javascript that shows a note after they've exceeded 15 characters.
Yes, sounds reasonable to me too. Boone, let me know if you want input on wording or anything.
Would it make sense to discontinue the automatically placing of a group name in the URL? Would uses be too confused about creating their own URL? I'm also thinking about this in the context of cuny.is which will give users the option of creating a short URL, which could default from the same user created name.
that makes sense to me, Michael -- just leave it as a blank field and have members fill it in.
- Assignee changed from Boone Gorges to Dominic Giglio
Dom, can I ask you to take a look at this? The plugin in question is wp-content/plugins/bp-groupblog. I'm a maintainer for that plugin, so if you need to make modifications to the plugin itself (such as a missing filter or hook), let me know. It would be nice to do this as much as possible as a local mod of our own (or /wp-content/themes/bp-nelo/functions.php or /wp-content/plugins/bp-custom.php).
Since we're not actually going to prevent people from long blog names - just suggest that they don't do it - you don't really need to do any server-side processing. This could all be done with javascript, at the theme level. However, you could consider doing some AJAX processing to do all levels of blogname screening at the same time. (See http://commons.gc.cuny.edu/register, and enter a non-CUNY email address - when you tab away, a bunch of verification happens. Could do something similar: check length, whether it's already taken, whether it's long enough, whatever checks BP/WP does natively.)
Anyway, I'll leave it to your judgment.
- Estimated time set to 5.00 h
Boone,
I've pushed up a little javascript in a new branch that addresses this issue:
https://github.com/castiron/cac/commit/34297d2905055dad795a567f7c58d8024b976e0f
Have a look and let me know what you think. I haven't added any ajax verification, I figured since it's been 7 months since this issue was opened and 4 months since it was assigned to me I'd check back with you first and see if it's even a feature you'd still like me to work on.
If you'd like a little ajax verification added in just let me know. I'm looking into #1249 right now.
(I realize I forgot to list the issue number in the commit. I need to get back into that habit, I haven't needed to while working in featured-content)
This looks good, Dom. I don't think we need any AJAX processing at the moment.
I would like to suggest a little more helpful wording. Maybe something like:
"This blog name is over 15 characters. For a URL that is more memorable and easier to type, consider something a bit shorter."
I've put the change into the master branch. Matt, can you check it out when you get a chance?
I like your warning much better. I've updated it in the long-blog-names branch and pushed it up.
As soon as this issue is closed I will remove this topic branch from the repo.
Functionality is great, though I, too, like Boone's warning. Nice work.
Can we close this issue out, or are there additional features I need to be working on?
- Status changed from Assigned to Resolved
Boone,
This topic branch is still in the repo, would you like me to remove it?
This topic branch is still in the repo, would you like me to remove it?
Yes, that'd be fine. Thanks.
Also available in: Atom
PDF