Creating a MCQ interface

Hi All,

I am just starting to wrap my head around drupal so please bear with me, if the question sounds too silly / general.

I need to create a multiple choice question type website where paid members and unpaid members will be allowed to access certain number of questions.

I am stuck with how do I proceed with creating multiple choice question content type display..
I am thinking of creating a content type of QUESTION, which would contain text field(for the question), and 4 text field for options and last field as a reference to correct option.

No more design after re-upload with FTP

Hi everybody,

this week end, my anti-virus went on as I connected to the back office of my web site. I downloaded all my website on my computer, scanned the files, but nothing. Still, I decided to delete all the files on my FTP to upload the scanned files. Big mistake. My website is here, well the content, but the design around has disapeared (http://www.franchise-land.com). Does anyone know how I could get back my design ? Thank you guys !

reureureu

Drupal statistics module - exclude specific pages or refresh

Hello,

On our intranet (Drupal 7.18), I have enabled the statistics module. But because I refresh the homepage every 15 minutes, the statistics mainly mention the homepage. How can I disable the homepage from these stats ?

Thanks a lot,
Koen

Image like article

I need to make main article in my site like image with links. Image look like:Only local images are allowed.

Change vaule of field?

I have a site with 1000+ nodes that all contain a simple day of the week select field where the values are set out like this:
Sunday|Sunday
Monday|Monday
Tuesday|Tuesday
Wednesday|Wednesday
Thursday|Thursday
Friday|Friday
Saturday|Saturday

I would like to set up a view using this field as a sort criteria but clearly it isn't going to work like this and perhaps I should have set it up as something like:
1|Sunday
2|Monday
3|Tuesday
4|Wednesday
5|Thursday
6|Friday
7|Saturday

hook_schema results in errors

Hi,

In my .install file, I've got the following schema:

function tcmb_schema() {
  $schema['tcmb'] = array(
    'description' => 'Tcmb exchange rates',
    'fields' => array(
      'currency' => array(
        'description' => 'Tcmb currency codes',
        'type' => 'varchar',
        'length' => 3,
      ),
      'updated' => array(
        'description' => 'Tcmb exchange rates date',
        'type' => 'date',
      ),
      'buying' => array(
        'description' => 'Tcmb exchange buying rate',
        'type' => 'numeric',
        'precision' => 6,
        'scale' => 4,
      ),
      'selling' => array(
        'description' => 'Tcmb exchange selling rate',
        'type' => 'numeric',
        'precision' => 6,
        'scale' => 4,
      ),
    ),
  );
  return $schema;
}

and in my hook_install implementation, I do

  if (!db_table_exists('tcmb')) {
    drupal_install_schema('tcmb');
  }

However, I am getting the following errors when I enable it:

WD php: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that [error]
corresponds to your MySQL server version for the right syntax to use near 'DEFAULT NULL COMMENT 'Tcmb exchange rates date',
`buying` DECIMAL(6, 4) DEFAULT' at line 3: CREATE TABLE {tcmb} (

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x