This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

drupal surpress php error messages ?

I'm not sure about this but every time I have a syntax error in my module, I just got a blank page. for example, having code such this:-

$lists = array('name' => 'kkkk', 'address' = 'jb');

in my module code would result in blank page. To confirm this, I put this code in seperate php file, I would got an error:-

Parse error: parse error, unexpected '=', expecting ')' in /home/kamal/public_html/drupal/clinic/test.php on line 3

and yes, php.ini settings is set to E_ALL, display_errors = On.

create mail server module

is there any module to make a mail server?

How to allow PHP script access to Drupal objects/functions

Note: This was originally posted in the Post-Installation forum ( http://drupal.org/node/70991 ), but received no response, and I felt it may be more suited to this forum.

I am quite new to Drupal, in fact CMS's in general. I am quite familiar with PHP development, including with application frameworks (currently using CakePHP).

I have a PHP script in a plugin for FCKEditor, and I want to display a list of Drupal nodes. My questions is:

How can I get this PHP script (which is called independantly by FCKEditor) access to the global Drupal functions (ie all the functions listed in the Drupal API)? I have require'd the "bootstrap.inc" file (which seems to be the launch point), after setting the appropriate include_path, but I am getting a number of other filesystem problems, as the script running is actually at "drupal-4.6.8\modules\fckeditor\lib\editor\dialog". Errors are things like this (database.inc lines 113 onwards)

$handler = "includes/database.$db_type.inc";

if (is_file($handler)) {
    include_once($handler);
}
else {
    die('Unsupported database type: ' . $db_type);
}

Of course, running in this fckeditor\lib\editor\dialog folder means relative file paths like this do not exist, no matter what the include_path is set to. The die command prints "Unsupported database type: mysql" , and drupal-4.6.8\includes\database.mysql.inc does exist.

Using Views Module with Content Construction Kit (CCK) Module

Hi,

Am trying to use these two modules together, however when I create a view which displays teasers (which works fine for say page modules), I run into the problem that for my custom content type, it displays all the fields (eg: body, and other fields).

Any ideas?

Events Page - Last Updated

I'd like to show the date when an event was last updated.

I've got 1 page that includes 3 different content blocks, each containing its own category. The content blocks are all events. Each time an event is updated or added, I'd like to display the last update date on the bottom of the page.

Based on previous posts, I'm starting with this, but I'm fairly new to PHP and Drupal and need a little help.

ecommerce: how do I make a store is it just /products)? Secondly, can I let users make separate stores?

I've installed the current version of ecommerce on 4.7.2.

1) I don't see anywhere to create a store. I can only create products. If I go to goodstorm.com/store, I see their store. On my site it's at /product.

Is this the way it's supposed to work?

2) Can I allow ten users to each make a store, so that there are 10 stores?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions