i'm not sure exactly where should this fit...

currently, u've got blocks which display the same info for ALL users. however, if you have blog users, they'd want their own individual blogroll (ie. list of blogs they regularly visit / link to).

i can only think of creating a block for each user and allowing them to edit the block to show the blog links for themselves. but that is ineffective and too time-consuming.

so is there any better way to allow each individual blog user to create their own blogroll (assuming that its best done using blocks)?

Comments

drumm’s picture

This is how to do it if you make a new module:

Put the blog roll editor (simple to do just a textarea, but you could tray and be fancy and make an expanding table of textfields or something) in the user profile. Look at how profile.module does things to ge a feel for how to code that.

If you want to restrict that you can check and see if someone has posted to their blog with something like:

global $user;
if (db_num_rows(db_query("SELECT FROM {node} WHERE uid = '%d' AND type = 'blog'", $user->uid)) > 0) {
  // user has blogged
}

Finally you implement a block hook in your module to create a blogroll block from the stuff you added to $user.

byronwee’s picture

hi drumm,

thanks for the tips. tried what you suggested. was quite difficult (i'm not good at programming, especially not efficient at php coding)... had to hack bits of different modules here n there. also had some 'logic' issues/problems.

having blogrolls/links unique to each user meant having to
1. get arguments off the url / query string
2. displaying blogrolls/links for that user instead of yours on those urls when you are logged in

and yeah, i based most of the hack/module on the profile module.

again, THANKS for your tips/suggestions!

patman’s picture

I second this one...would make blogging w/ Drupal more like what folks are used to from blogspot/MT/etc.

killes@www.drop.org’s picture

A way to implement this has been shown. Apparently not that desirable for core, maybe make a contrib module. Postponing.

lilou’s picture

Status: Postponed » Closed (works as designed)