Description for OG registration form

Created on 13 November 2009, over 15 years ago
Updated 27 October 2024, 6 months ago

Hello,

At the moment, when a new user is asked if she wants to join a group in her registration form, she can only see the group name, which is usually not descriptive enough.

A single line of code can add a description for such group, around line 1875:

      while ($group = db_fetch_object($result)) {
        $options[$group->nid] = '<span class="og-registration-'.$group->nid.'">'. t('Join %name.', array('%name' => $group->title)). "</span>\n";
        if ($group->selective) {
          $options[$group->nid] .= ' '. t('(approval needed)');
        }
        // Description for OGs:
        $options[$group->nid] .= ' '. '<div class="description">'.t($group->og_description).'</div>';
      }

I attach an image showing the results. :-)

Regards,
Sergio

Feature request
Status

Closed: outdated

Version

2.0

Component

og.module

Created by

🇪🇸Spain seortiz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    This version of Drupal is not supported anymore. If this is still an issue in the 8.x-1.x branch, please open a new up-to-date ticket. Closing.

Production build 0.71.5 2024