default userpic

Building a Community Site

Vote 0 Votes

I’m planning to build a blog site for a large programming community. I think that MT Pro with the community add-ons will do what I want, but I’d appreciate it if you could look over the brief list of requirements below and let me know if I’m going to run into problems.

Things I need:

  • A blog per member - automatically created when people sign up, but it would be nice if the site admins could approve new membership requests.

  • A front page which consists of the latest posts from all of the blogs.

It would also be nice if we could bar users from adding Javascript in entries as the site is going to live on a subdomain of a well-known existing domain, and the owners of that domain are wary of JS being used for XSS attacks against their domain.

If anyone has any war stories to share about building a site like that, then I’d love to hear them.

Thanks,

Dave…

Reported on Movable Type 4.2

8 Replies

| Add a Reply
  • Automatic Blog Provisioning for New Users.

    The front page needs nothing more than an mt:Entries tag with multi-blog attributes.

    • Correct me if I am wrong, but wouldn't it also be a good idea to model the new user for these blogs as a user without administrative control over their blog, so that they cannot modify the templates that way?

    • Su, thanks for the suggestions.

      The multi-blog attributes look really useful. I'll take a closer look at those.

      I've trying to use the automatic blog provisioning, but it doesn't seem to work. I've set up the configuration options as described in the documentation that you link to, but no blogs get created when a new user is set up.

      Is there something missing from that documentation?

      • Actually, I just ran across this bug in the tracker, in which provisioning is broken in 4.23 when the user registers from the front end. Sounds like it's probably what you're seeing, though you haven't mentioned exactly what version you're currently on. Might be worth a look. Seems it's been fixed for the next Motion beta, by the way.

  • It would also be nice if we could bar users from adding Javascript in entries as the site is going to live on a subdomain of a well-known existing domain, and the owners of that domain are wary of JS being used for XSS attacks against their domain.

    The MT::App::CMS package has a callback called CMSPreSave.entry that should be useful for you. If you add a callback method to it, you can get access to the MT::Entry object that represents a new, incoming blog post and strip it of any <script> tags.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012