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

tiny module that puts toolbar buttons on textarea's

Htmlarea was just too much, so we have written a tiny module that puts (B)(I)(link) buttons under every textarea. The code is actually from metafilter.com. hence the name is mefiarea.module. it can be found here.

help need to develop ad authentication

Hi all,

I have cobbled together a function which returns an email address if ldap authentication with our active directory is sucessful.

Connecting Drupal Blog to Existing Blog

First off, I'm a complete newb.

I'd like to add a feature to Drupal's blog module that would allow users with existing blogs to easily connect the two. Consequently, when a user posts in his/her existing blog, the same post shows up in Drupal's blog. First question--does something like this already exist? Wouldn't want to re-invent the wheel...

Presenting "thank you page" for post

I'm working on a custom module for my site. After the user creates a new node using the module and it has been validated & subitted - I want to present a "thank you" page to the user and take other follow-up actions. Which hook would be best to use for this function?

Thanks!

Radi

Menu Separator Available for Menu Module ??

Hi All,

I've searched, but haven't found how/if one can add a separator to a menu. I'd like to break the items in one of my menus by a line ( -------------- ) with no URL. I looked at hacking the menu_overview_tree_rows function, but that seemed a bit daunting. Has anyone else done this? I was thinking of a constant such as '###' in the URL field indicating separator.

Any thoughts??

Thanks,
mark

Please help

I have created a module that will search the signature and email address for a query to return the name and email address of registered users. This way I do not need to list the email addresses. The menu function does not work. The item shows up for the admin but does not populate the menu path fields with the information I have inputed. Here is the code:

/***


<?php

/**
 * Menu callback; presents the emailsearch form and/or emailsearch results.
 */
function emailsearch_view() {
 code here to works just have problem with emailsearch_menu()
 
   

$nam=$_POST['name'];


if($nam=="")
{
$nam="ZZZ";
}
$sql_query = "SELECT * FROM USERS WHERE (signature LIKE '%$nam%')||(mail LIKE '%$nam%') order by 'signature'";
//store the SQL query in the result variable
$result = db_query($sql_query);
 if(db_num_rows($result))
{

while($row = db_fetch_array($result))
{
$output.=("<p>$row[signature] : <a href=mailto:\"$row[mail]\">$row[mail]</a>");


}
}
//print theme('page', $nam);

print theme('page',$output ,t('Email search'));
}
/**
 * Implementation of hook_perm().
 */
function emailsearch_perm() {
  return array('access content');
}

/**
 * Implementation of hook_link().
 */

function emailsearch_link($type) {
  $links = array();

  if ($type == 'page' && user_access('access content')) {
    $links[] = l(t('emailsearch'), 'emailsearch', array('title' => t('Search for email address.')));
  }
if ($type == "system") {
   menu("emailsearch", t("email"), "emailsearch", 0, MENU_SHOW);
   }
  return $links;
}

function emailsearch_menu($may_cache) {
  $items = array();

     $items[] = array('path' => 'emailsearch', 'title' => t('Email Search'),
      'callback' => 'emailsearch_view',
      'access' => user_access('access content'),
      'type' => 22);
	
      

  return $items;
}
?>



**/

Pages

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