Project

General

Profile

Actions

Bug #1401

closed

Avoiding really long blog names

Added by Matt Gold over 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority name:
Low
Assignee:
Dominic Giglio
Category name:
BuddyPress (misc)
Target version:
Start date:
2011-12-06
Due date:
% Done:

0%

Estimated time:
5.00 h
Deployment actions:

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.

Actions #1

Updated by Boone Gorges over 12 years ago

  • 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.

Actions #2

Updated by Chris Stein over 12 years ago

Yes, sounds reasonable to me too. Boone, let me know if you want input on wording or anything.

Actions #3

Updated by Michael Smith over 12 years ago

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.

Actions #4

Updated by Matt Gold over 12 years ago

that makes sense to me, Michael -- just leave it as a blank field and have members fill it in.

Actions #5

Updated by Matt Gold over 12 years ago

Just wanted to note that this came up again today, when a new site was registered with the URL http://schoolofpublicaffairshighereducationexecutivecertificateprogramineducationalresearch.commons.gc.cuny.edu/

Actions #6

Updated by Boone Gorges about 12 years ago

  • 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.

Actions #7

Updated by Dominic Giglio about 12 years ago

  • Estimated time set to 5.00 h
Actions #8

Updated by Dominic Giglio almost 12 years ago

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)

Actions #9

Updated by Boone Gorges almost 12 years ago

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?

Actions #10

Updated by Dominic Giglio almost 12 years ago

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.

Actions #11

Updated by Matt Gold almost 12 years ago

Functionality is great, though I, too, like Boone's warning. Nice work.

Actions #12

Updated by Dominic Giglio almost 12 years ago

Can we close this issue out, or are there additional features I need to be working on?

Actions #14

Updated by Matt Gold almost 12 years ago

Nice work, Dom. Thanks.

Actions #15

Updated by Dominic Giglio almost 12 years ago

Boone,

This topic branch is still in the repo, would you like me to remove it?

Actions #16

Updated by Boone Gorges almost 12 years ago

This topic branch is still in the repo, would you like me to remove it?

Yes, that'd be fine. Thanks.

Actions #17

Updated by Dominic Giglio almost 12 years ago

Done

Actions

Also available in: Atom PDF