Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I rewrote blog.module to become a container, something like book outlines. In these files, there no longer is a blog type node.
With a checkbox (see screenshot) users with the correct permissions can add any node to their blog.
Feel free to try, also feel free to improve these files, just mail me if you commit changes.
Please see my sandbox for a complete module and its files: http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/ber/blog/
Comment | File | Size | Author |
---|---|---|---|
#9 | composistion_screenshot.png | 33.88 KB | Bèr Kessels |
#8 | blog_as_container.module | 17.53 KB | Bèr Kessels |
blog_7.patch | 14.15 KB | Bèr Kessels | |
Comments
Comment #1
Junyor CreditAttribution: Junyor commentedIs there a upgrade path for users currently using blog.module?
Comment #2
Bèr Kessels CreditAttribution: Bèr Kessels commentedyes, look at the url pointing to my sandbox. ;)
Comment #3
Junyor CreditAttribution: Junyor commentedCool, I'll try to check it out this weekend.
Comment #4
Bèr Kessels CreditAttribution: Bèr Kessels commentedsevere update again, not yet committed.
I need your opinion on this. PLease read on and comment.
What I did now is make this a true "blog anything" system. Whyle the previous (above attached) patch changes the system drastically, it still only allows you to add items to your blog where you are the author!
What I did now, is change the behaviour, so that you can blog anything you can see. If you read something, and its not yet in your blog, you can hit a "blog this" link, et voila, its in your blog.
However, this might sound cool, but it comes dangerously close to a bookmark system. So i would like to know if this change is feaible according to you. If so, I will submit the changes, if not, I will keep them private.
Comment #5
Junyor CreditAttribution: Junyor commentedGenerally speaking, I like it. It was easy and fairly intuitive to add an image node to my blog.
Comments:
1) In the update script, isn't the UPDATE query backwards, i.e. shouldn't all blog nodes be turning into story nodes and not the other way around?
2) Should you be able to put a node in two (or more) blogs? Right now, if a user has a node in his/her blog and another user goes into admin > content, the "Add to blog" check box is already checked. I'd like to have the ability for two users to put the same node in their blog if users will be able to put nodes they didn't author into their blog. Admittedly, that may cause more trouble than it's worth.
Comment #6
(not verified) CreditAttribution: commentedyour #2 is covered in my latest comment. #1 is indeed a bug. I will solve that asap.
Comment #7
Junyor CreditAttribution: Junyor commentedWell, I guess it's a +1 from me on the functionality.
However, if that functionality doesn't go in, the current "Blog this" UI needs to be changed, as it's a bit confusing. You shouldn't see the check box if you didn't author the node.
Comment #8
Bèr Kessels CreditAttribution: Bèr Kessels commentedThis is a new patch, with some updates and brought back in sync with HEAD
Comment #9
Bèr Kessels CreditAttribution: Bèr Kessels commentedAnd here is "how it all looks"
Comment #10
Junyor CreditAttribution: Junyor commentedWe're going to get into interesting grammatical situations with the byline. Maybe just do something like this: "appears in the follow users' blogs: User A, User B, and another user." What is the "other user" for, BTW?
Comment #11
Bèr Kessels CreditAttribution: Bèr Kessels commented"ther users" are there when a lot of users have it in their blogs. MAybe, in some future, that would be a link to a list of users that have that node marked as "in their blog".
Please give grammatical (and localisable!!) suggestions for the following three situations:
* only one user has it marked as "in his blog"
* two to X (hardcoded as four ATM) have it marked as "in their blog"
* four or more users have it have it marked as "in their blog"
Ber
Comment #12
Bèr Kessels CreditAttribution: Bèr Kessels commented"ther users" are there when a lot of users have it in their blogs. MAybe, in some future, that would be a link to a list of users that have that node marked as "in their blog".
Please give grammatical (and localisable!!) suggestions for the following three situations:
* only one user has it marked as "in his blog"
* two to X (hardcoded as four ATM) have it marked as "in their blog"
* four or more users have it have it marked as "in their blog"
Ber
Comment #13
Junyor CreditAttribution: Junyor commentedI haven't done any localization work, so I can't provide any help there. For English, the following should work:
> * only one user has it marked as "in his blog"
"Blog: User A"
or
"Appears in the following user's blog: User A"
> * two to X (hardcoded as four ATM) have it marked as "in their blog"
"Blogs: User A and User B"
"Blogs: User A, User B, and User C"
or
"Appears in the following users' blogs: User A and User B"
"Appears in the following users' blogs: User A, User B, and User C"
> * four or more users have it have it marked as "in their blog"
I'm not really sure about this one. Should blogs have weights? Then, the lightest could be at the beginning of a list that trails off to ellipses. We could potentially used a collapsed element, as well.
Comment #14
Bèr Kessels CreditAttribution: Bèr Kessels commentedthe last, -lots of users- is a bit of a prombem. ATM it is not at all weighted, but I have plans for sorting it by user actvity, meaning last active user floats to the top.
Note that in normal sitaions this lots-of-users will rearely occur, for only users who can edit a node can set it as "in their blog". Normally spoken, one can only edit his/her own nodes.
Comment #15
Bèr Kessels CreditAttribution: Bèr Kessels commentedthe last, -lots of users- is a bit of a prombem. ATM it is not at all weighted, but I have plans for sorting it by user actvity, meaning last active user floats to the top.
Note that in normal situions this lots-of-users will rearely occur, for only users who can edit a node can set it as "in their blog". Normally spoken, one can only edit his/her own nodes.
Comment #16
ricabrantes CreditAttribution: ricabrantes commentedbump
Comment #17
ricabrantes CreditAttribution: ricabrantes commentedComment #18
sunWild-guessing the version this was coded against.