db_fetch_object in D7

Hello,

like i said in my other Topic, i convert my module from D6 to D7.

in D6 i had such a thing:

    $res = db_query('select * from {sf_transfer} where transfer_id=%d',$transferid);
    if($transfer = db_fetch_object($res)){

    }else{
       doelse();
    }

Now in D7 it would look like that:

db_last_insert_id in D7?

Hello,

i convert my module into Drupal 7, to test it in the alpha-2-version and i wonder if db_last_insert_id() still works, because at http://drupal.org/node/224333#dbtng there ist this part:

How can I manage different type of users in D7?

Hi there,

I'm trying to start a D7 site with the following features:

  1. Allow 2 different types of registered users:
    • Individual: it will have fields like "First name", "Last name", etc.
    • Company: it will have fields like "Name", "logo", "address", etc.
  2. Registered users can only be "Indivudual" or "Company" and it would be preferably to chose this "role" during registration.
  3. Different type of users will have different rights and will only be able to see their profile while editing their account.

Drupal 7 theming

Installed Drupal 7 today.

The default garland theme works fine until it is copied to /sites/all/themes/garland2 and the .info file changed accordingly. Then all hell breaks loose once the new theme is set to default.

Why won't Drupal display html tables correctly???

I am attempting to insert html tables into my drupal sites but the tables will not display properly. I am having the same issue regardless of the theme I am using. For example, I am attempting to place a test html signup form in the right hand column of my drupal site. The table is 160px wide and the block layout is 178px wide. The table width is not the problem yet it doesn't display properly.

You can see the html table here:
http://www.pokerlearningclub.com/images/optin1/index.html

Drupal 7 rdfa and html5

Drupal 7 will be able to output rdfa by changing the page.tpl.php to include the XHTML+RDFa 1.0 doctype

Just wondering if the rdfa output is going to be hardcoded into Drupal or if you can override it or turn it off.
If you want to build html 5 sites with Drupal you cant use rdfa because its not part of the html5 spec

Why html 5

You can use html 5 now to build sites with the html 5 shiv to make them work in Internet Explorer, with a bit of css as well

It is possible to use the video tag with an automatic flash fallback with jquery and the swfobject that works in IE
You cant really use the video tag in strict xhtml as it isnt valid, although it does work

html 5 with the video tag makes it easy to build video sites for both the desktop and mobile platforms using only 1 h264 iPhone video. No ogg video needed, force Firefox to use Flash flashback instead.

Question is will Drupal 7 by default output rdfa or any other code that would prevent you from building a valid html 5 site

Heres how to make a valid html 5 page if anyone is interested

The trick is the first metatag
Also html5 shiv for IE and IE stylesheet
iPhone stylesheet and viewport settings






html 5

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x