Ubertcart

I am new to drupal and I am looking to develop a shopping cart for my soccer program. Does anyone know when ubercart will be out for Drupal 7???

Are there any other alternatives???

db_select in query

Hello,
I'm just new to drupal 7, so I'm not sure if what I'm trying to do is right

I'm trying to pass delimited string in condition but I'm getting back this message

DOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 2: SELECT c.* FROM {city} c WHERE (id IN ()) ; Array ( )

here is my code

Drupal 7: Override form using PHPTemplate

I was wondering what would be the best way to override the way a form looks in Drupal 7 using PHPTemplate. I have some difficulties displaying all the information on my page.

I have a page with a form and some miscellaneous information.

I have tried:

foo.module

    function foo_add_form($form, &$form_state, $foo) {
      
      ...
      
      $form['#theme'] = 'foo_add';
      
      return $form;
    }

    function foo_theme($existing, $type, $theme, $path) {
      return array(
        'foo_add' => array(
          'template' => 'foo-add',
          'render element' => 'form',
        ),
      );
    }
    

foo-add.tpl.php

    <?php
        // First form
        print drupal_render_children($form);
    ?>
    <!-- Miscellaneous information -->
    <div id="links">
      	<ul>...</ul>
       	<form action="#" method="post" id="second-form">
       		<fieldset id="i-want">
       		 ...
    	        </fieldset>
                ...
                </form>
    </div>
    

At the moment the form and miscellaneous information are being displayed. However, the 2nd form (id="second-form") is being removed somehow. I can see it in the source, but when I inspect the element with chrome/firefox, I can no longer see the form element. I can see the div, ul and fieldset tags though.

What translation system uses Drupal 7?

Hello,
I would like to know what translation system uses Drupal 7
Is Gettext?
If yes I would like to know how you manage to translate a module etc..
Do you use software or Poedit you translate by hand?
Thank you

Fast Gallery Usage

I am relatively new to Drupal and have spent the last couple of days looking for suitable galleries to use for a site which is image rich. I typically will have around 60 photos per gallery. Other than colorbox, the only usable gallery that I have found is Gallery Fomatter - which produces a decent an attractive gallery with thumbnails below and the main picture above. Used with colorbox (which needed some extra installations!) you can click on the main pic and see the colorbox view of this (also in a gallery format).

How to overwrite user_account_form_validate() in another module?

I'm using an encryption module to encrypt the email addresses in the user table. But after the emails are encrypted, the user_account_form_validate() function fails to detect whether an email is already taken or registered while registering a new user or editing the email of an existing user. I want to write a hook function or overwrite user_account_form_validate() to do the checking. So which hook function can I use or how to overwrite user_account_form_validate()?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x