The MU forums have moved to WordPress.org

Change base path for user blogs (non-VHOSTS) (10 posts)

  1. MrWiblog
    Member
    Posted 16 years ago #

    Hi,

    For a site I'm working on using WPMU I have a need to put user blogs at a different location than the default. I'm not using subdomains, so by default user blogs would go at domain.com/userblog. I want them to go at domain.com/members/userblog.

    I've accomplished this by hacking a few files in the MU code, including putting the option to change the "members" bit above in wp-admin/wpmu-options.php. However hacks are bad, so I was wondering if there was a plugin that would do this. Or even if this modification would be considered as a feature to be added to the main core code.

    thanks

    Chris

  2. MrWiblog
    Member
    Posted 16 years ago #

    I'll think I'll give this a little *bump*.

    Chris

  3. rharrison
    Member
    Posted 16 years ago #

    I'm looking for a way to do this as well.

  4. MrWiblog
    Member
    Posted 16 years ago #

    Hi rharrison. In the end I hacked the core code and .htaccess file to do this, which isn't ideal but it works. It means updates are a pain of course. Let me know if you want details of what I did, I kept notes of every file and line I changed.

    I wanted to get this change into the main repository so others could use this feature but despite a couple of emails to the moderators of the MU project I've not had any reply. It's a shame that the team behind such a great system as MU are so unresponsive.

    Donncha and others, can we have a response about this issue from you guys please?

  5. andrea_r
    Moderator
    Posted 16 years ago #

    Did you try submitting it to trac? that's the proper procedure. (Doesn't guarentee they'll roll it in, but it's more likely to get noticed.)

  6. MrWiblog
    Member
    Posted 16 years ago #

    Thanks for getting back to me andrea_r, I think I was too polite and asked for permission to send it in. I'll see what the procedure is (this is my first foray into open source stuff) and give it a go. Thanks.

  7. andrea_r
    Moderator
    Posted 16 years ago #

    I would also make some sort of options page for it, so site admins can easily choose between the default and your version.

    http://trac.mu.wordpress.org is where you need to go. login with the same info as here. Go to tickets and open up a new one and attach your files with the extension .diff.

  8. rharrison
    Member
    Posted 16 years ago #

    MrWiblog, I would like to know more about what you did. If you post the details in trac as andrea_r suggested I can pick them up from there. I'll also be happy to comment on the issue with my support for your patches. We're going to subscribe to the Automatic Support Network and it will much easier to ask for this feature (read more likely to get support for it) if I can point to "The excelent work done by MrWiblog who's patches are attached to trac number 5555..." ;-)

    Never be afraid to open a trac issue if you have patches you feel should be part of the base product. The worst that can happen is that they just close the trac.

  9. MrWiblog
    Member
    Posted 16 years ago #

    Thanks very much andrea_r and rharrison, I'll do what you suggest. I actually added the option into the Site Admin > Options page as it's just one text field. I think a separate page would be overkill, to be honest.

    On a slightly related note I'm very interested in the new Wordpress MU social networking project currently being developed by Andy Peatling from his BuddyPress project. I think this change would be an excellent addition to that.

  10. MrWiblog
    Member
    Posted 16 years ago #

    I'm afraid I've not had chance to package this up nicely and submit it to trac, but I have zipped the files I've changed and put them here: http://www.stillbreathing.co.uk/projects/wpmu/wpmu_userpath.zip

    The only thing to note (which is the main reason why I want to tweak it a bit before submitting) is that the .htaccess file has to be changed. That is far from ideal, but I haven't had the time to work out a better way yet.

    Let me know if this is useful for you.

About this Topic

  • Started 16 years ago by MrWiblog
  • Latest reply from MrWiblog