CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • configuring author's name on a drupal multi-user blog using civi profile?
Pages: [1]

Author Topic: configuring author's name on a drupal multi-user blog using civi profile?  (Read 1081 times)

lgfish

  • Guest
configuring author's name on a drupal multi-user blog using civi profile?
June 06, 2008, 02:25:54 pm
Hello,

I'm pretty new to drupal, and trying to sort out what might be the best way to go in the following situation:

I'm helping out with a non-profit's website.  They're running civi 1.9 and drupal 5.2, and I recently enabled multi-user blog functionality so that some of their members can blog on the site. Now, I'm trying to figure out how to get their bloggers' entries to show up with their real first name as the byline (eg for site user John Doe it would be "John's blog" or "John" rather than cute-memorable-username-John -set-up-when-he-first-joined-the-site 's blog).

At first I thought this might be just a drupal thing, but..  since their real first and last names were added to civi when they created a username for the site, and since I see that the drupal profile module is not enabled, I'm guessing that I need to figure out how to pass their first names from civi to the node-blog.tpl.php file, somehow? 

I'm not too sure where to start.  Is this going to be so complicated that it would be better to give them the option to create a special blogger name for themselves (we could tell them to use their first name), or to configure this part for each of them manually?  I found this - "Blog Author Image, Name, and Signature (one php snippet to brand all blogs)" ( http://drupal.org/node/213855 ) in the php snippets section of the drupal handbook, I suppose that or something like it could work if pulling names from civi profile info is too complex. 

any insight/direction *much* appreciated! 

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: configuring author's name on a drupal multi-user blog using civi profile?
June 06, 2008, 03:20:38 pm
This PHP snippet might get you started:
http://wiki.civicrm.org/confluence/display/CRMDOC/Using+CiviCRM+APIs+-+Code+Snippets#UsingCiviCRMAPIs-CodeSnippets-Retrieveinfoforacontactwithagivenemailaddressusingcivicrmcontactsearch
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • configuring author's name on a drupal multi-user blog using civi profile?

This forum was archived on 2017-11-26.