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

phpBB3 submit_post alongside hook_insert/hook_submit

Hi

I am trying to use phpBB3 and Drupal 5.0 together. So, what I want to achieve is for my node module I want to have a phpBB3 forum topic inserted at the same time as when a node is created using my module

I have tried to implement this code within hook_insert in my module BUT I get this error message: Fatal error: Call to a member function sql_query() on a non-object in D:\localhost\phpBB3\includes\cache.php on line 50

define('IN_PHPBB', true);
$phpbb_root_path = 'file:///D:/localhost/phpBB3/';
$phpEx = 'php';

include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_privmsgs.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
include_once($phpbb_root_path . 'includes/message_parser.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);

// PHPBB

// note that multibyte support is enabled here
$my_subject = $node->title;
$my_text = $node->body;

// variables to hold the parameters for submit_post
$poll = $uid = $bitfield = $options = '';

$data = array(
'forum_id' => 2,
'icon_id' => 0,

'enable_bbcode' => true,
'enable_smilies' => true,
'enable_urls' => true,
'enable_sig' => true,

'message' => $my_text,
'message_md5' => md5($my_text),

'bbcode_bitfield' => $bitfield,

form lay-out problem

I noticed that all the elements created in a form are put under each other. How can I put for example checkboxes next to each other ?

And is there is possibility to put een button next to a textfield (meant to put in a date) that opens a calendar panal from witch you can select the date ?

greetz Mat

Educational modules in Drupal

How do I get educational modules for drupal-5 and drupal-6.
Please help any body.
greg

Lates News Module needed

I want a module which displays content from a particular categories where i will create the latest news contents.
Please help if such module available for download!

dropdown menu

hi

anyone tell the module for dropdown menu. other then nice_menu module.

also

how i show the menu at the top or leftside at the same time.

Javasctipt Error: Tagname is null or not an Object in DHTML_MENU

Hello,

Javascript Error: Tag name is not null or not an object.

Pre Clauses:

Install Dhtml menu and than enable it from blocks,.

Error Get:

Error getting on click of final child not,

Thax

Pages

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