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

Modules up for adoption

Sometime in the next month or 2, I'm going to be pulled into a non-Drupal project for a few months. As I won't have much time to spend on the modules that I've created thus far, I'm placing them up for adoption. Anyone interested in taking over the maintenance of any of these please let me know. I don't want to see them rot on the vine and would rather somebody potentially take them in a different direction then have them sit unused and neglected.

attached_node
Status: Working
Needs: Future maintenance and occasional bug fixes (currently a few to look at)

editasnew
Status: Working
Needs: Future maintenance and occasional bug fixes

relativity
Status: Functional but not quite 100%. Will be soon, though.
Needs: TLC, proper documentation/help, rethink the UI a bit (simplify it)

moblog
Status: Functional but not very robust. Relies on mime_registry. Neglected for quite a while now.
Needs: Current and future maintenance. Needs to be made stable enough to be part of a public project. This is not a simple project, so buyer beware.

mime_registry

Authentication module development - HELP!

Hello,

I'm trying and failing to create a very simple authentication module. Can anyone tell me why this isn't working? This is just a test setup to see if the hooks are working. The module is called "portal."

Thank you!

function portal_auth($username, $password, $server) {
	return false;
}

function portal_info($field = 0) {
	$info['name'] = 'portal';
	$info['protocol'] = 'XML-RPC';
	
	if ($field)
		return $info[$field];
	else
		return $info;
} 

Help Needed

Hi,
We are trying to develop a website( role based-content management system).
The requirements are as follows:

There will be a menu option ("Application Form")on the frontpage.
When the end-user clicks on Application Form menu,it should display a form with following text fields.
- Name of Applicant
- Department
- Address
- Email Address
-Submit button

when the user clicks on Submit button,the form should be forwarded to user with the login-ID "CLERK".
Now,the CLERK needs to approve the form submitted by END-USER ,after getting approval from CLERK,the form should be forwarded to SITE-ENGINEER.When the SITE-ENGINEER approves it,it should be forwarded to ENGINEER.

FYI,CLERK,SITE-ENGINEER and ENGINEER are the authorized users who will log-in using there IDs and will act as a authorised person to approve the request.

In short the flow should be like this............
Step I:End user will fill-up the Application Form and submit the form.
Step II:When CLERK will login,the submited application form will wait for approval from CLERK.
Step III:When SITE-ENGINEER will login,the clerk approved application form will wait for approval from SITE-ENGINEER.
Step IV:When ENGINEER will login,the site-engineer approved application form will wait for approval from ENGINEER.

I mean,there will be four users,ENDUSER,CLERK,,SITE-ENGINEER, and ENGINEER and ENDUSER doesn't require any login.The Application Form option will be available on the front-page.Any one can access and use the application form to submit his/her application but it is the resposiblity of CLERK,SITE-ENGINEER and ENGINEER to process that form and put proper comments on the request either on APPROVAL or REJECTIOn of application.

Form validation not working

Hi all!

adminblock.module

This module enables admins to display a block with the comments approval queue and the node moderation queue. Each item will have a edit and delete link.

I made it for my own site and thought maybe someone else also could make use of it.


/**
 * @file
 * adminblock.module 4.5.0v2, Fredrik Jonsson, 2005-02-17
 * Enables admins to display a block with the comments approval queue and
 * the node moderation queue.
 *
 * The block will only show for users with "administer nodes" privilages.
 *
 * If there are no comments to approve and no nodes to moderate 
 * the block will not show.
 */

/**
 * Implementation of hook_help().
 */
function adminblock_help($section = "admin/help#adminblock") {
  switch ($section) {
    case 'admin/modules#description':
      $output = t("Block that display the comments approval queue and the node moderation queue.");
      break;
  }
  return $output;
}

/**
 * Implementation of hook_block().
 *
 * Generates a block with the comments approval queue and
 * the node moderation queue.
 * $nlimit sets the number of comments and nodes to display
 */

function adminblock_block($op = 'list', $delta = 0) {
  if ($op == 'list') {
    $blocks[0]['info'] = t('Admin block');
    return $blocks;
  }
  else if (user_access('administer nodes')) {
    $nlimit = 10;

    $result = db_query_range('SELECT c.timestamp, c.subject, c.cid 
      FROM {comments} c 
      WHERE c.status = 1
      ORDER BY c.timestamp DESC ', 0, $nlimit);
    $items = array();
    while ($comment = db_fetch_object($result)) {
      $items[] = $comment->subject .' - '. format_date($comment->timestamp, 'medium'). ' ['. l(t('edit'),'admin/comment/edit/'. $comment->cid) .']|['.l(t('delete'),'admin/comment/delete/'. $comment->cid) .']';
    }

    $result2 = db_query_range('SELECT n.nid, n.title, n.changed, u.name, u.uid 
      FROM {node} n 
      INNER JOIN {users} u ON n.uid = u.uid 
      WHERE n.status = 0 AND n.moderate = 1 
      ORDER BY n.changed DESC', 0, $nlimit);
    $items2 = array();
    while ($node = db_fetch_object($result2)) {
      $items2[] = $node->title .' - '. format_date($node->changed, 'medium'). ' ['. l(t('edit'),'node/'. $node->nid .'/edit') .']|['.l(t('delete'),'admin/node/delete/'. $node->nid) .']';
    }

    $block['subject'] = t('Admin block');
    if ($items) {
      $block['content'] = theme('item_list', $items, t('Comments queue'));
      $block['content'] .= '<div class="more-link">'. l(t('more'), 'admin/comment/list/approval', array ('title' => t('Administer the approval queue'))). '</div>';
    }
    if ($items2) {
      $block['content'] .= theme('item_list', $items2, t('Content queue'));
      $block['content'] .= '<div class="more-link">'. l(t('more'), 'admin/node', array ('title' => t('Administer content'))). '</div>';
    }
    return $block;
  }
}

Latest headlines block

Hi,
how i can display 5 latest headlines in the block from one taxonomy category?

Pages

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