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

access module without login!

Hi,

I have created a new module, that takes the URL(user/newsite) to show its contents. When the user goes on this URL a form is displayed to be submitted.

I am using this code.........

form display problem

Plz help me experts below is my code i am making use of form for textfield and submit button in test_qform form but in the o/p i am getting nothing.i am getting array printed on page insted of textfield and submit button

<?php
// $Id: downloadmgr.module,v 1.7.4.4 2007/02/26 00:41:12 codepoet Exp $

/**
* Implementation of hook_help().
*
*/

function downloadmgr_help($section) {
switch ($section) {
case 'node/add#downloadmgr':
// This description shows up when users click "create content."
return t('Module for downloading jB5, our truly mobile browser.');
case 'admin/downloadmgr':
return t('Download Manager for jB5');
}
}

/**
* Implementation of hook_node_info().
*
*/
function downloadmgr_node_info() {
return array('downloadmgr' => array(
'name' => t('downloadmgr'),
'module' => 'downloadmgr',
'description' => 'Download Manager for jB5'));
}

/**
* Implementation of hook_access().
*
*/
function downloadmgr_access($op, $node) {
if ($op == 'create') {
return user_access('manage downloads');
}
}

/**
* Implementation of hook_perm().
*
*/
function downloadmgr_perm() {
return array('manage downloads');
}

/**
* Implementation of hook_menu().
*
*/

function test_add() {
// initial form...
global $user;

drupal_set_title(t("Download mobile browser/ Nokia browser/ Windows mobile browser"));

problem with form

Plz help me experts below is my code i am making use of form for textfield and submit button in test_qform form but in the o/p i am getting nothing.i am getting array printed on page insted of textfield and submit button

<?php
// $Id: downloadmgr.module,v 1.7.4.4 2007/02/26 00:41:12 codepoet Exp $

/**
* Implementation of hook_help().
*
*/

function downloadmgr_help($section) {
switch ($section) {
case 'node/add#downloadmgr':
// This description shows up when users click "create content."
return t('Module for downloading jB5, our truly mobile browser.');
case 'admin/downloadmgr':
return t('Download Manager for jB5');
}
}

/**
* Implementation of hook_node_info().
*
*/
function downloadmgr_node_info() {
return array('downloadmgr' => array(
'name' => t('downloadmgr'),
'module' => 'downloadmgr',
'description' => 'Download Manager for jB5'));
}

/**
* Implementation of hook_access().
*
*/
function downloadmgr_access($op, $node) {
if ($op == 'create') {
return user_access('manage downloads');
}
}

/**
* Implementation of hook_perm().
*
*/
function downloadmgr_perm() {
return array('manage downloads');
}

/**
* Implementation of hook_menu().
*
*/

function test_add() {
// initial form...
global $user;

How to print error messages to the admin

I'm working on a module which validates data on enabling from an XML file. What is the proper way to send error messages to the admin screen?

Integrating my module with Organic Groups

I've got a module ("Slates") that's a custom node type, and I'd like to have it so that a group administrator in Organic Groups can create multiple "slate" nodes for a given group, in the same way that I can create "group posts". What I'm not quite getting is how to manage this. Can anyone provide some insight into this? I can get the "create a slate" link to appear in the group menu, and when it goes to create a node, I get a querystring that looks suspiciously like the group post querystring, but I'm not sure how to take it from there.

Any help would be most appreciated.

Invisible Users - Chatroom Module

Users of my site are telling me that certain users are coming into my chatroom as "invisible". We can't see them or see what they're typing....vice versa. How can I fix this problem?? Please help.

Thanks.
CH

Pages

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