Pretty much the same thing as myspace, You join the site the user has the administer(tom) as the default friend, and has the ability to delete the admin as a friend if he/she wants to. Also as the new user joins the site has a welcome message in their inbox.

In hopes that this works out i also have another request to allow more then one user example=administer and additional users. Most sites have 2 the admin and another user aswell.
thank you.

Comments

irakli’s picture

Priority: Normal » Minor

Heh,

I thought "Tom" was a subject of much jokes back on MySpace, too :)

Duly noted, but can't promise that this one will end-up too high on the enhancements queue. However, if somebody wants to write an extension module and needs some support functions from friendlist_api module that we need to add - please let us know.

thx

echoman74’s picture

Lol, i would actually love to have this as an added bonus.It would be an awesome feature.
:)

mariusooms’s picture

A custom rule could take care of this. When people register you should be able to create a relationship with certain users.

We have no inbox at the moment, but the rule could fire an email or you can set an system message to be displayed. Hardly ideal though, we are waiting for privatemsg integration.

Regards,

Marius

irakli’s picture

Marius,

great idea!

Thanks

echoman74’s picture

I like that idea let me know more, also it would be a little bit helpful if it was made an option to the administer. Just a thought. *coughs* trying to convince irakli ,lol. For my usage on this it's for 2 things to add the administer of the site and also for my "help" profile.

echoman74’s picture

Checking back to see if there is anything in the works, if not how would i be able to do something like this? please respond. thank you.

mariusooms’s picture

Title: Feature request= Default user as friend to all users of the site. » Default user as friend to all users of the site.
Status: Active » Fixed

Okay...here's a basic rule that adds a default friend. Customize to your needs. Currently is uses the relation id: 1 which is 'friend' by default. The user that gets added as default friend has the uid: 2. Import this rule and change the rtid and uid to fit your needs. You can adjust the messages too if you want.

Regards,

Marius

array (
  'rules' => 
  array (
    'rules_1' => 
    array (
      '#type' => 'rule',
      '#set' => 'event_user_insert',
      '#label' => 'Add default friend at registration',
      '#active' => 1,
      '#weight' => '0',
      '#status' => 'custom',
      '#conditions' => 
      array (
      ),
      '#actions' => 
      array (
        0 => 
        array (
          '#type' => 'action',
          '#settings' => 
          array (
            'user1_param' => '2',
            'user2_param' => '[account:uid]',
            'rtid_param' => '1',
            'message_param' => 'This initiates the relationship',
            '#eval input' => 
            array (
              'token_rules_input_evaluator' => 
              array (
                'user2_param' => 
                array (
                  0 => 'account',
                ),
              ),
            ),
          ),
          '#name' => 'rules_action_friendlist_add',
          '#info' => 
          array (
            'label' => 'Create a relationship between users',
            'eval input' => 
            array (
              0 => 'user1_param',
              1 => 'user2_param',
              2 => 'rtid_param',
              3 => 'message_param',
            ),
            'help' => 'Create a relationship between users',
            'module' => 'Friendlist Rules',
          ),
          '#weight' => 0,
        ),
        1 => 
        array (
          '#weight' => 1,
          '#info' => 
          array (
            'label' => 'Set the relationship between users',
            'label callback' => false,
            'eval input' => 
            array (
              0 => 'user1_param',
              1 => 'user2_param',
              2 => 'rtid_param',
              3 => 'message_param',
            ),
            'help' => 'Create a relationship between users',
            'module' => 'Friendlist Rules',
          ),
          '#name' => 'rules_action_friendlist_add',
          '#settings' => 
          array (
            'user1_param' => '[account:uid]',
            'user2_param' => '2',
            'rtid_param' => '1',
            'message_param' => 'This finalizes the relationship request',
            '#eval input' => 
            array (
              'token_rules_input_evaluator' => 
              array (
                'user1_param' => 
                array (
                  0 => 'account',
                ),
              ),
            ),
          ),
          '#type' => 'action',
        ),
      ),
    ),
  ),
)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

echoman74’s picture

Please excuse me for not responding. WOW THANKS !! I really thank you allot for this info.
I'll have a look on a test site.

zzemm’s picture

thanks! it works perfect! on Drupal 6.10