PDOException in custom content type

I'm trying to build a content type with a module. At this moment, I've created the Schema and Form implementations:

Schema:


<?php
/**
 * Implements hook_schema().
 * @file Creates database tables for mymodule.
 */
function mymodule_schema() {
  $schema['mymodule'] = array(
    'description' => 'Stores which node is a {mymodule}.',
    'fields' => array(
    
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => "The {node}.nid.",
      ),
      'desc' => array(
        'type' => 'varchar',
        'not null' => FALSE,
        'default' => '',
        'length'  =>  300,
        'description' => "Content's description.",
      ),
      'active' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'Boolean indicating whether or not the content is open.',
      ),
    ),
    'primary key' => array('nid'),
    'foreign keys' => array(
          'node' => array(
            'table' => 'node',
            'columns' => array('nid' => 'nid'),
          ),
        ),
  );
//There are more table columns, but I need theese now to try...

return $schema;
}


mymodule Form:

<?php
<?php

Views - JavaScript error

This one is killing me as I do not recall any change I made to my setup that may have caused this error to pop up:

When I edit a view (add a field, modify a menu entry, etc), I get hit with a white screen with a very long string that starts with:
[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"seven","theme_token":...

If I turn on the JavaScript console in my Chrome, I see:
views-admin.js:148 Uncaught TypeError: Object [object Object] has no method 'once'

.htaccess ruins the installation - totally messed up options have to be cleaned up.

hello dear folks,

wanted to discuss a strange error with you - a very very a strange error. I have installed joomla in a subfolder.
Imagine - i had installed it first to this folder /home/vhost/WWW/schulcenter.org/drupal

what i got as a result was serious errors all the way...

Then i thought of some misconfiguration on my server - and i tried another folder.

/home/vhost/WWW/schulcenter.org/tmpo/

i first put into this folder a php_info.php-file - and it was visible... AFTER the installation (that is the upload) of the drupal-files - it (the php_info.php-file) was not visible at all.

well - believe it or not - the error is a drupal error. duhhh ;-(

<?php
[Sat Nov 26 21:49:42 2011] [alert] [client 92.74.24.72] /home/vhost/WWW/schulcenter.org/drupal/.htaccess: Options not allowed here
[Sat Nov 26 21:51:15 2011] [alert] [client 92.74.24.72] /home/vhost/WWW/schulcenter.org/drupal/.htaccess: Options not allowed here
[Sat Nov 26 21:51:15 2011] [alert] [client 92.74.24.72] /home/vhost/WWW/schulcenter.org/drupal/.htaccess: Options not allowed here
[Sat Nov 26 21:51:22 2011] [alert] [client 92.74.24.72] /home/vhost/WWW/schulcenter.org/drupal/.htaccess: Options not allowed here
[Sat Nov 26 21:51:22 2011] [alert] [client 92.74.24.72] /home/vhost/WWW/schulcenter.org/drupal/.htaccess: Options not allowed here

Display users post on his profile

Hello, i need to show users post on their profiles from only one content type.

Is there any options to do this?

Also i would like if there are possibilities to style it, show fields from post..

Please help me!

Thank you very much!

Change profile / profile2 information without log on to website

I use for some site the module simplenews ( newsletters ).
Now i need to add on the newsletter a link where you can edit you profile / profile2 settings without logging in to the website.

What should be the best way to do that?
Generate some hashcode? And made a custom page where you can change is with that hashcode?

What am I in for?

Good morning everyone & nice to meet you.

I am new here to Drupal & the forums, so I was not sure if this was the best place for this post.

I have not authored, admin'd, or designed a website since around 2004, at which point I was using Dreamweaver MX to handle content creation designed around static pages. I have recently put together a small web server (Ubuntu Server 10.10) running a LAMP stack with Drupal installed as my CMS. My goal was to design my site, then when I could afford to do so, migrate to a professional host.
I have everything up and running fine, but there are a few points I'd like some clarification on;

I have installed several modules, and a few themes to extend Drupal's capabilities - but what I found myself asking is what will happen after I build my site with this custom setup and I need to migrate? Will I have to find a host that will allow me to install all the same modules, tweaks & customizations just to display/serve my site is I designed it? Or once the functionality is built into my site, are the said design modules no longer required to accurately serve up my pages?

As I stated, I am new again to web design, especially to dynamic content, and I just wonder if I am designing myself into a corner by customizing & extending Drupal past its basic install.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x