Drupal is up and running but how do I ...?

File Permissions and New Modules

Hi,

I'm posting this in Post installation because I didn't get a reply from the installation issues forum.

I've got two issues.

1. Core drupal 4.7.current.tar.gz works great, but *every* extra module added has failed. I have all of the core files owned by a user useraccount and group useraccount. file permissions are 644 and they all work great. I cannot do the same when I add modules. If I make them owned by the apache group, they at least appear as a module, but I can't configure them or see them in the admin menu.

debugging function

Fairly new to Drupal - i.e. I know just enough to be dangerous...

I have a versatile PHP debugging function that I have been using and developing for years on more traditional PHP based sites. I can think of several ways to incorporate this into my Drupal based site, but I'd like some guidance as to which might be best:

Jabber on Drupal 5.x, anyone ?

Hi,

I know the module isn't supposed to be ready, but I wanted to try on my 5rc1 install. So I downloaded the HEAD version of jabber, installed it, created a jabber.info file (it was missing), added the class.jabber.php file along it, enabled it, and installed ejabberd and jwchat. Now it seems it's running (I have a new "jabber ID" field in the user page), but there's no settings page to specify the jabber server, ID aren't registerd with ejabberd, and I often have this error:

warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'jabber_login' was given in /home/parateam/public_html/includes/form.inc on line 217.

So:
- is there a mean to automatically register users with ejabberd ?
- is there a mean to autologin them in jwchat ?
- will drupal usernames (which can contain spaces, etc.) be valid in jabber ? or:
- will usernames be transformed like pathauto does ("Xavier Bestel" => "xavier-bestel") ? or :
- do I have to warn users not to use spaces, etc. in their usernames ?

I have very little sparetime, I know nothing about Drupal nor Jabber, but I did a bit of PHP in the past and I'd like to test new code if it exists.

Thanks,
Xav

check my code please...

With regards to this post, http://drupal.org/node/103637 , I wish to be able to limit page/story nodes to one for each user. I used the page node here. After fiddling with the bio.module...I took a stab at it and changed the following in the node.module drupal 5.0-rc1, starting line 2929:

if ($op == 'create') {
    return user_access('create '. $type .' content');
  }

to this

$bid = page_for_user();
if ($op == 'create') {
   if (user_access('create '. $type .' content') && !page_for_user($user->uid)) {
      return TRUE;
    }
  }
  
  if ($_GET['q'] == 'node/add'. $type_url_str && $bid && !user_access('create')){
    drupal_goto('node/'.$bid.'/edit');
  }


function page_for_user($uid = NULL){
  if (is_null($uid)){
    global $user;
    $uid = $user->uid;
  }
  return db_result(db_query('SELECT nid FROM {node} WHERE uid = %d AND type = "page"', $uid));
}

It works perfectly, except the menu item 'page' disappears when a page node is created by each user and reappears when one has yet to be created by each user. I'd prefer it to be visible always, as in the bio.module. How can I do this? Of course, please comment on the code as I'm not up to snuf in php. Is there a better way to accomplish this? I tried to be as less invasive to the node module as possible while still getting what I want. All suggestions appreciated.

Module localizer problems

Hi

Drupal 4.7.4 is running well on my server. After installing and enabling the module "localizer" I get error messages like:

Not getting email from contact member

I'm not getting my emails from contact member. I'm getting the "send me a copy", but not the contact email.

-Doug

Pages

Subscribe with RSS Subscribe to RSS - Post installation