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

Extra calls to menu items

I have a question about what happens if you invoke more than one menu callback in one page generation. Please follow along with underneath example.

A user browses to example.com/user/register. All bootstrap routines are executed. It is here where user_menu() registers user_page() as the appropriate callback for the "user/register"-path. Through user_page(), we are redirected to user_register(). Then, through _user_forms(), user_register invokes all $module_user functions to complete the user registration form:

// fragment of user_menu()
    $items[] = array('path' => 'user/register', 'title' => t('register'),
      'callback' => 'user_page', 'access' => $user->uid == 0 && variable_get('user_register', 1), 'type' => MENU_LOCAL_TASK);

// fragement of user_register
  $extra = _user_forms($edit, $account, $category, 'register');

Lets now say that I have the Captcha module installed.

how to set form name

like this
<from name="testname" .. >
I use drupal cvs

$from['id']=array(....);

I'm tired of the phpBB wars, here's a solution.

I'm currently writing a new module called forumplus... I'm tired of the phpBB war. It will use nodes solely, instead of comments as replies to the Original Post, and allow for more detailed control of the forums themselves, such as usergroup permissions to allow admin-only or VIP forums within the forum, specific moderators for specific forums, and more on suggestion.

Better integration of modules such as profile, quote, user, upload, privatemsg, shoutbox, blog, path (something other forums don't do) and others is planned for it, as well as, once again, anything suggested.

A basic list of operations for this would be as follows.

Create Container (taxonomy)
->Create Forum within Container (taxonomy/term)
--->Create post within Forum (node/add/forumplus, $forumnew->parent == '-1')
--->Reply to existing post within Forum (node/add/forumplus, $forumnew->parent == $node->nid)
->Display Containers and Forums as a list
->Display posts within Forum
->Display Forums within single Container
->Sort posts by most recent post
->Different display for threads with new posts (bold, different colour; all in the CSS)
->Set moderators for specific forums (admin/forumplus/configure/# where # = the fid)
->Optionally display or hide moderators of forums.
->Display most recent post on hook_overview(), as well as poster and time.
->Threads default to flat-view, maybe at a future point the ability to threaded-view them.

Can not modules after adding "events"

I tried to install the events module. I created the tables in the database and added the events folder in the modules folder. When I navigate to "modules" the page does not open. When I delete the folder it opens again. What am I doing wrong?

acidfree installation.....

hello,

I've just installed the latest release of acidfree + patch for the filemanager.
I put the dir 'acidfree' in the modules 'dir'.
I activated the filemenager module, no problem. I activated the acidfree module, and I have plenty of warnings (=errors ?) :
warning: Invalid argument supplied for foreach() in /var/www/sdb/4/b/poulette1976/drupal.4.6.3/modules/acidfree/acidfree.module on line 113.

When I click on create content, I have the same message.

When I click on 'acidfree media', I have :
warning: Invalid argument supplied for foreach() in /var/www/sdb/4/b/poulette1976/drupal.4.6.3/modules/acidfree/acidfree.module on line 113.
warning: array_keys(): The first argument should be an array in /var/www/sdb/4/b/poulette1976/drupal.4.6.3/modules/acidfree/acidfree.module on line 1440.
warning: in_array(): Wrong datatype for second argument in /var/www/sdb/4/b/poulette1976/drupal.4.6.3/modules/acidfree/acidfree.module on line 1440.

When I try to create an album, I have a white page with the messages :
warning: Invalid argument supplied for foreach() in /var/www/sdb/4/b/poulette1976/drupal.4.6.3/modules/acidfree/acidfree.module on line 113.
user error: Access denied for user 'poulette1976'@'212.27.63.117' to database 'poulette1976'
query: LOCK TABLES sequences WRITE in /var/www/sdb/4/b/poulette1976/drupal.4.6.3/includes/database.mysql.inc on line 66.
warning: Cannot modify header information - headers already sent by (output started at /var/www/sdb/4/b/poulette1976/drupal.4.6.3/includes/common.inc:384) in /var/www/sdb/4/b/poulette1976/drupal.4.6.3/includes/common.inc on line 192.

Help in adding data to forward.module

I installed forward.module for drupal 4.63 and it's working fine, but it would really be great if the email that is sent could include the node/page title and maybe even a teaser/excerpt instead of just the url. I've searched for possible solutions, but can't find any previous discussions on it. I'm guessing that I need to get data based on the $nid and print it, but can't figure out how to do it. Can anyone help? Thanks.

Pages

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