Can anyone help with a step by step for a Drupal7 multisite

As Steve Carell says " Explain it to me like I'm a 5 year old"

I have a working instance of Drupal 7 but cannot figure out how to set up a multisite. Does anyone have a very simple "step by step" for a multisite setup? Also, some of these are sites in progress (dev sites?) with no domain. What do I need to know about domain mapping to make this work? If there is no domain name, can't I simply use the directory path? Thanks in advance.

Greg

Impossible to pull ['node']->type from a node_insert?

I am a very new to this, but have my head wrapped around how most of it works, so it is all about building it up.

I am using the Achievements module and currently creating some custom achievements for it. I really want it to pull the node type to give out a specific achievement based on a specific type.

This is my code:

Can I access custom fields in my blog entry from the database?

Hi,
I am adding some custom fields in my blog and even though i am not really concerned whether they are query-able now, i would like to know if I can access thses fields later via simple queries?

Thanks in Advance

Notice: Trying to get property of non-object in hook_node_access()

Hello,

I am currently trying to get a hook_node_access() function to work and I keep getting a recurring Notice.

Notice message:

Notice: Trying to get property of non-object in job_post_node_access()

The function code:

function job_post_node_access($op, $node, $account){

    $is_author = $account->uid == $node->uid;
    
    switch($op){
        case 'create':
            //Allow if user's role has 'create job' permission.
            if(user_access('create job post', $account)){
                return NODE_ACCESS_ALLOW;
            }
        case 'update':
            //Allow if user's role has 'edit own job' permission and user is
            //the auther; or if the user's role has 'edit any job' permission.
            if(user_access('edit own job post', $account) && $is_author || user_access('edit any job post', $account)){
                return NODE_ACCESS_ALLOW;
            }
        case 'delete':
            //Allow if user's role has 'delete own job' permission and user is
            //the auther; or if the user's role has 'delete any job' permission.
            if(user_access('delete own job post', $account) && $is_author || user_access('delete any job post', $account)){
                return NODE_ACCESS_ALLOW;
            }
    }
}

The line that is said to be the problem is shown here:

hook_language_switch_links_alter never called : WHY ?

Hello !

I've written a module named "gf_newsletter", this module provide some pages (so, it don't use nodes) which have several URL (one URL per language). Theses URL are defined using hook_menu().

I would like to be able to alter links in the "language switcher" block provided by the locale module, but it seems that this hook is never called.

Here's the code I tried in the module :

working w/views: please help me troubleshoot?

i have started watching the "lynda" videos about drupal, and i have learned how to use views. well, almost learned. i have come along way and now understand what they are and how they work, however i am still having a problem.



the project: creating a grid viewed image gallery for a site,
the issue: images are being counted/displayed twice on the Gallery, as well empty tables are being displayed,

the method: used Views to create a View which pulls information from a Gallery Content,

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x