Multi User Blog

tdh - March 29, 2008 - 03:28

I have been searching for what I figured would be an easy solution, but I cannot find any information. I would like to have a block with a text box that a site visitor can enter the name of the blog they would like to visit in a multi user blog installation. (blog/username) When they enter the username and click the submit button, "blog/" will be appended to the beginning and the blog/username page will open. Can anyone offer some assistance or point me to a php snippet that I may have missed?

Thanks,

Todd

This has been asked for by

Cayenne - March 29, 2008 - 05:10

This has been asked for by lotsa folks in both the blog and other node areas.
Two possible paths: use an organic group, or aggregate individual blogs' RSS feeds into an aggregator.

Or create a forum that only a limited number of folks can write to

Or create a dummy account that they all have the password of, but that is not as good.

...

tdh - March 29, 2008 - 05:18

Maybe I wasn't clear on what I am looking for. I am just looking for sort of a dynamic link by text box to go to a url of the blog that is entered in the textbox. See this page for an example caringbridge.org/cb/visitAPage.do

I should also mention that

tdh - March 30, 2008 - 21:39

I should also mention that it is the blog module being used that it built into drupal. Any ideas?

Well I finally found a

tdh - March 31, 2008 - 02:44

Well I finally found a solution to the text box turned into url to visit a persons blog page in a multi blog setup. What I did was create a new block and published in full html mode and entered the following:

If you know the username of the blog you wish to visit, enter it here:
<input type="text" id="where">
<input type="button" value="go to blog" onclick="window.location='/blog/' + document.getElementById('where').value">

This gives them a little message on what the box is for. Once they type in the username of the blog they wish to visit and press the 'go to blog' button, '/blog/' will be appended to the front of the username that was entered and the page will show. If they don't enter anything and just press the button, '/blog/' page will open, which is a collective page of all the user blogs. I thought that I would want to validate if the box was blank, but this actually works out better.

The only thing I need now is a way that they can enter the text and press enter, as of now pressing enter does not do anything and they have to click on the button. Any ideas?

 
 

Drupal is a registered trademark of Dries Buytaert.