Send email with new users details to an arbitrary mail address

Use this rule if you want to send a mail to a arbitrary email address when a new user has registered on your site:

Snippet to pull an events feed from myspace.com into a Drupal page (using file_get_contents)

Introduction

The following snippet pulls a myspace event feed into a Drupal page.

Requires your PHP Input Filter to be available and the PHP function file_get_contents. You can check to see if your host allows the use of file_get_contents by using a standard phpinfo file.

Instructions

  1. Create a normal Drupal page by going to CREATE CONTENT -> PAGE
  2. Pasted the entire snippet below into the body area
  3. Edit the myspace link variable at the top of the snippet to match the link your myspace.com events page
  4. Expand the INPUT FILTER option and select PHP Input
  5. Click on SUBMIT
  6. Style output to suit


<?php

/**
* The following displays pulls a myspace events page into a Drupal site
*
* Edit the $myspace_link variable to match the events listing you want to use.
*
*/

$myspace_link = 'http://collect.myspace.com/index.cfm?fuseaction=bandprofile.listAllShows&friendid=34877822&n=Cashier+No.9';

// is file_get_contents installed?
if (!function_exists('file_get_contents')){

Facebook Profile Importing

Fbconnect_profile has been removed by the maintainer. See: http://drupal.org/node/487936

If you enable the bundled Fbconnect Profile module you will be able to import a users profile information in to your Drupal site when they register.

The Facebook profile data is updated every time the user re-authenticates with your Site. if they do not return after 24 hours the imported data is deleted. This is in line with the Facebook terms of service.

Configuration Options

When a new user signs up to your Drupal site via the FBConnect button they can agree to have a message posted on their Facebook profile wall letting their friends know they have joined your Drupal site.

The FBConnect module is pre-configured with a template message.

You may define what message is displayed on a new users Facebook wall by changing the 'Registration feed bundle ID' number.

Installation

Requirements

PHP 5.2 or higher versions.
Drupal 6.x.

Facebook Installation

You will need a Facebook API key pair to link your Drupal site to Facebook (FB).

NOTE: If you do not already have a Facebook account, you will first need to create one.

Each website you wish to provide FBConnect for needs its own corresponding FB application setting up.

Visit http://www.facebook.com/developers/

Select 'Set up New Application' button from the top right.

The first step is to assign a meaningful name to your new FB application and agree to the terms of service.

If the name is accepted you will then move on to the 'Basic' settings for your application.

The 'Basic' form will provide you with a unique Application ID, and an API key plus Secret key. The keys look something like '4828b5c45b0bac64b5378b0500b3ab7e'

Complete the rest of the 'Basic' form - adding a description and logo image as required. These will be shown to the user when they click the FBConnect button on your Drupal site.

Click on the "Authentication" tab down the left of the form and set the following values:

Post-Authorise Callback URL: Paste in the following URL http://example.com/sites/all/modules/fbconnect/xd_receiver.html then replace example.com with the address for your Drupal site.

FBConnect

The FBConnect module provides a new way for users to register and log in to your Drupal site.

- Facebook and Drupal accounts synchronization: After logging through Facebook Connect, users can create a local Drupal account,

- Public profile information import: Users can choose which part(s) of their Facebook public information they want to import and synchronize with their Drupal local account, following Facebook Connect API Terms of use,

- Visibility: Users can see which of their Facebook friends already have an account on the Drupal website (provided that these users have checked the "Let my Facebook friends see me on !sitename" box on their profile page),

- Story feed: Users can publish a message on their Facebook story feed announcing that they have created an account on the website (future versions could make this message customizable),

- Friends invite form: At the end of the registration process, users can invite their Facebook friends to create an account on the Drupal website. This step will be skipped if the user has unchecked the "Let my Facebook friends see me on !sitename" box. The page will remain accessible through a link in the Fbconnect Friends List block.

Pages

Subscribe with RSS Subscribe to RSS - Site administrators