Module Path

Anonymous (not verified) - February 11, 2005 - 10:26
Project:LDAP Address Book
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Omar
Status:active
Description

Hello,

I tested this module, but in the begining I was not able to get the module running. The block appeared but a search resulted in error 405. So I had a look at the source.

In function ldap_addressbook_block_content() I changed the line

$output  = form($form1, 'post', '/' . $ldap_server['path']);

to
$output  = form($form1, 'post', 'index.php?q=ldap_addressbook');

and now the search is running.
:-)

I think this has to be changed on more code blocks.

According to your hint

"[...]/**
* Implementation of hook_menu
*
* This is PURE mageic to me.
* I have read the documentation again and again and again, and still
* dont really understand what is going on here.[...]"

I had a look at the forum and found a post suggesting to remove the lines
'type' => MENU_CALLBACK,
'type' => MENU_NORMAL_ITEM,

and so on.
-> Now the menu shows up :-)

Best regards and thank you for the nice modul
Marcus

#1

ShavenYak - November 9, 2005 - 16:12

I've got a similar issue with this module. I'm using clean urls, so my fix is a bit different than above... basically I'm just taking out all the leading '/' characters before any links the module generates so they don't try to go to the webserver root (drupal is in a subdirectory on my site).

I'm not experienced enough with drupal to know the 'correct' way to fix this where it will work in all cases... but there must be a way, because other modules do it.

#2

Omar - October 25, 2006 - 21:03
Assigned to:Anonymous» Omar
 
 

Drupal is a registered trademark of Dries Buytaert.