Hi guys, in my continued effort of building a bloggers community portal I've come to the folowing probleM:

I'd like to create a dropdown list pointing to every user blog so that if I have 20 users this list will present the names of all bloggers and go to that user blog on select. How can I do this with php? I'm sure this must be something easy but I'm php impaired. All suggestions are welcome.

Cheers

Comments

coreyp_1’s picture

this is a javascript/PHP solution.

An example for the javascript side can be found here: http://www.chipchapin.com/WebTools/JavaScript/exampleB01.html

for the PHP side, just query the database for a list of users, and use that information to build the options for the listbox.

sorry I don't have time to code anything exact, but this should help get you started. PHP isn't hard at all. You can always check out the PHP Snippets pages to get an idea on how to do the queries, etc.

drupalnesia’s picture

Hi, I just release Blogger module. Blogger module used for:
1. Display list of Bloggers. You can limit how many Bloggers displayed.
2. Display number of written blogs or not.
3. A "read more link" to show all Bloggers.

download here: http://drupal.org/project/blogger

vladsavitsky’s picture

Hi, I have published module http://drupal.org/project/bloggers that shows a page with a list of site bloggers