Nice, I like it. Would you be able to add these features in a future version?

  • Show the user picture (avatar) if there is one in the block
  • Make the "Blog Description" textarea a real form so users can insert HTML, use input filters, etc.

Thanks for the module! I like it a lot.

Comments

rkn-dupe’s picture

You can already do both of those things - ok it doesnt put ur avatar in auto, but u can do it by hand...

Christefano-oldaccount’s picture

That's good to hear! Unfortunately, it doesn't work for me. I tried Blog Info with two different themes (one xTemplate and one phpTemplate) and each time the HTML was printed as text.

I'm using the CVS version (dated 2006-21-9) with Drupal 4.7.3.

lennart’s picture

I am also getting the HTML printed as text

mfer’s picture

Right now the text is designed to be displayed as text. Good feature thought.

For speed and simpleness I designed it to just do text rather than using the filters system or just allowing html. If there are a number of people interested I can change this. Please let me know what you think. I take it the 3 of you want the html.

- Matt

Christefano-oldaccount’s picture

I take it the 3 of you want the html.

Sure do!

I really like how bloginfo lets users administer their own blog, but I just wish it would grab the users' pictures (if there is one). HTML capability would be really nice, too.

lennart’s picture

ditto here...

Christefano-oldaccount’s picture

Anyone else interested in this feature? I am :)

wuf31’s picture

This would be a nice addition for drupal blog functionality.. Please do add this :)

marcoBauli’s picture

+1 for users picture! ...HTML could turn out to be messy and intimidate non-HTML people maybe....just a thought..

mfer’s picture

I think both are good ideas and if done properly would work out well for people. But, this is not something I need at the moment and have quite a few other things going on leaving me without the time to write this. Someone want to submit a patch?

eliotc’s picture

If you use TinyMCE, you can add formatting and images easily (no coding for the user).

Just take out the check_plain on lines 57 and 58, so it looks like:

$block['subject'] = $bloginfo->title;
$block['content'] = $bloginfo->description;
mfer’s picture

@eliotc - I would not recommend your suggestion in #11. This doesn't have user input text being filtered before displaying. This would leave the install vulnerable to XSS attacks. Maybe work check_markup in there in place of check_plain with a selection box for the filter.

fluxrider’s picture

Just on this , I think it would be excellent if this block 'saw' input filters . I only allow the use of BBCode , so I'm wondering where to start looking in order to invoke the BBCode module so my users can use bbcode to fashion their title and description. I have it on my todo list to start looking into this ( while learning how things work ) but if there are any tips to where to start looking , would be good.
Thanks

oh yeh. I've also posted an issue with the block appearing at the bottom. Not very 'blooger' like .
Cheers

mfer’s picture

This is on my list of things to do but not immediately. I have to learn how to make the filters work here first.

Jboo’s picture

This is just what i'm looking for. I'd love to be able to allow users to add html into the description. If I was any good at coding I'd give this a go but unfortunately i'm not :-(. If anyone gets any further with this that would be great.

abqaria’s picture

hope anyone can solve using tinymice in this with input filters

mfer’s picture

Right now this module filters out the html code. It would need to use input filters to support bold, italics, and other stuff in TinyMCE. At the moment I don't have time to do the coding to make this happen. If someone wants to submit a patch I'll put it in place. Any takers?

Anonymous’s picture

+1 for owner's picture support ;)

Anonymous’s picture

Category: feature » support

Actually, is there any possibility to easily modify the core to display the avatar with the description ?

mfer’s picture

Category: support » feature

This is a feature request since it requires modifying the module to add something that isn't there.

jarea’s picture

+1 for support of input filters. Would really improve the functionality.

jarea’s picture

For those who might be able to do something about it, it looks like check_markup() is the function that deals with the input formats.

jarea’s picture

My apologies to christefano because this is a really inelegant hack, but I don't know much of anything about programming modules and this hack allows me to use his Blog Information module to inject the contents of a blogger's NodeProfile CCK node into the Blog Information block. I did the following things:

First I activated the NodeProfile and associated modules including NodeFamily. This allows me to create a CCK content type, limit it to one node per user and display (but not edit) its contents in the default User Account page.

I created a NodeProfile CCK node called blog_information that has all of the information fields about the blog that I want to track. In my case they were Blog Name, Blogger's Name, About This Blogger, About This Blog and Website URL. Of course these are all standard CCK fields, so they can be configured to anything that you want.

I hacked the bloginfo module to basically hijack the contents of the bloginfo block that is displayed along with the blog.

In the function bloginfo_block, I made the following changes:

				//Mod by JAR - took out next two $block[ ] statements
				/*  Deactivate these statements
				$block['subject'] = check_plain($bloginfo->title);
				$block['content'] = check_plain($bloginfo->description);
				*/
				// End of Mod by JAR
				// Mod by JAR - adding in custom blog info elements
				 $nlimit = 10; 
 				$result1 = pager_query(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog_information' AND n.status = 1 AND n.uid = $authorid ORDER BY n.created ASC"), variable_get('default_nodes_main', $nlimit)); 
 				while ($node = db_fetch_object($result1)) {$block['content'] .= node_view(node_load(array('nid' => $node->nid)), 1);}; 
				// End of Mod by JAR

Basically what this does is that it nulls out the bloginfo title and replaces the $block['content'] with whatever is in the blogger's blog_information CCK node.

I also wanted to turn off the BlogInfo fields inside of the User's Account Settings page so I commented out everything inside of the outside braces { } of bloginfo_form_bloginfo.

Finally, I went to the block configuration page for bloginfo (Blog Information) and put in the Title field to turn off its display.

One downside is that the blogger will have to use a special path to edit the contents of their blog_information CCK node. Set up a menu item for nodefamily/blog_information and that will take them to their Blog Information data.

I can't attest to anything relating to the quality or security of what I have done, but it does work nicely for me.

Good luck.

mfer’s picture

Status: Active » Needs review

there is now a beta version of the 2.x line of bloginfo with filters and you can override the theming with phptemplate_bloginfo_block to add user pictures and things like that. You can see the beta release at http://drupal.org/node/133005. Please, let me know if there are any issues.

mfer’s picture

Status: Needs review » Fixed

Filters are added into the drupal-5 2.x line of this module.

As for user pictures you can now theme the content section via the phptemplate_bloginfo_block function in your template.php file. This will work for other customizations.

marcoBauli’s picture

hi,
just wandering if this will ever be ported to 4.7

thx

mfer’s picture

If you want the feature back ported please open up a feature request for that. I may be able to get to that in the next month or so.

Or, you could upgrade to 5 :-D

Oh, and if anyone wants to craft a patch that does this I wouldn't mind.

marcoBauli’s picture

Title: Feature request (support for user pictures and HTML input) » Backport to 4.7: support for user pictures and HTML input
Version: 7.x-1.x-dev » 4.7.x-1.0
Status: Fixed » Active

hum, shall we turn this into the feature itself? if this is not ideal please just restore this post and i'll open a wrong one ;)

marcoBauli’s picture

hum, shall we turn this into the feature itself? if this is not ideal please just restore this post and i'll open a new one ;)

mfer’s picture

Title: Backport to 4.7: support for user pictures and HTML input » Feature request (support for user pictures and HTML input)
Version: 4.7.x-1.0 » 7.x-1.x-dev
Status: Active » Fixed

This should be it's own task

killes@www.drop.org’s picture

Status: Fixed » Closed (fixed)