destination directory for galerie module not properly configured.

Hello,

I'm experiencing a problem with the galerie module http://drupal.org/project/galerie when uploading a picture. Interestingly enough, the file lands in the tmp-directory successfully which has the same permissions as the galerie-8 directory, therefore I don't know what else might be wrong. It seems like it can't move it from tmp-directory to the galerie-8 directory for some reason.

Can not print main menu

Hi All,
I am trying to create a very basic & simple theme for drupal 7. I am able to print node id , title, content etc. But somehow the main menu doesn't show up. Here's the code I am trying in my page.tpl.php

Am I doing something wrong?

Regards

Userpoints Level Code

Hi, first of all I need to say that I am a complete moron at this. My php and Drupal coding "skills" are minimum at best, I try to get through by looking at examples of code and tweaking it to serve my need - which obviously means that it isn't going to work in most cases.

I've, however, tried to make a simple module based on Userpoints. It essentially converts the current user points of a user into a specific level. Fairly straightforward, I thought - but I end up with errors.

Here is the (ugly) code:

<?php

function havoclevel_level_storage($level = NULL, $uid = NULL) {
  db_merge('havoclevel_level_storage')
    ->key(array('uid' => $uid, 'level' => $level))
    ->execute();
}

function havoclevel_level_up($transaction) {
        $xp = userpoints_get_current_points($uid, 'all');
        if ($xp >= 0 && $xp <= 49) { havoclevel_level_storage($level = 1, $transaction->uid)
        elseif ($xp >= 50 && $xp <= 149) { havoclevel_level_storage($level = 2, $transaction->uid) }
        elseif ($xp >= 150 && $xp <= 299) { havoclevel_level_storage($level = 3, $transaction->uid) }
        }
}

havoclevel is the name of the module. This specific code gives me a "Parse error: syntax error, unexpected T_ELSE" error. I am fairly confident that the issue is not that, but rather that $xp is not properly defined - but I have no idea why not.

Adding description text to the Contact Form!

Hello mates,

i was wondering if there is anyway to add a description text on top of the contact form page without making a page--contact.tpl.php?

Cause i need to add text to the contact form, Registration form, Password reset form, etc.

I hope i made the point clear!

Thanks in advance :)

Can't access my clients site with Drupal inteface

I created my clients site www.gavbarbey.com and all was running okay, I was learning my way around.

But I decided I didn't want the login to be present on his page.

Dumb idea I know, as I can no longer log in to develop his site further.

How do I bring the login back? And why would Drupal allow me to de-activate the login in the first place?

Getting data from a MSSQL db to Drupal mysql db

Hai everyone,

I have a .NET based erp package (not web based but form based) with MSSQL. Now i need to provide a web solutions to customers. I need to get some data from MSSQL db in to drupal website. Also I want to place some purchase orders from this Drupal site .

Is it possible ? very hard or not ? what are the steps needed to achieve this ? Please guide me in this.

Thanks in advance

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x