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

Patience Required

Howdy Drupalites!

There should be a disclaimer on the "how to create a simple module tutorial" stating that patience and lots of coffee are required. (feel free to replace coffee with beer)

Okie dokie, i would consider myself to be an above average PHP developer and have been doing this stuff for near on 5 years. However i have not read the entire Drupal manual from top to bottom, and do not wish to. So it is at this point i have to admit i'm stumped. I cannot for the life of me get the module i have created (based on the tutorials) to work. The concept is simple. A portfolio node type that has a teaser, client quote, a couple of URLs and a screenshot of the clients site (possibly with some form of resizing tool).

The reason for doing this is as proof of concept for using Drupal for future sites and if i can "master the module" the world is my playground.

The module is detected and works but when i goto "create content" and create a "portfolio" however around this time it doesnt draw the form or even drop into that modules function (portfolio_form) as you will see i've tried my best to get this working.

Here is the module code ... and thanks for your comments in advance ;)

Jon...


<?php
// $Id: portfolio.module,v 0.1 2007/01/15 11:15:28 the_exa_boy Exp $

/**
* Implementation of hook_help().
*/
function portfolio_help($section) {
switch ($section) {
case 'admin/help#portfolio':
$output = '

'. t('The portfolio module is used to create a content post type called portfolio. This will be used to archive the work done by the studio. ') .'

5.x node documentation?

I'm relatively new at Drupal programming and would like to create some new nodes and corresponding modules for it, but after 5 solid days of searching the forums and such I am marginally further along.

The API section has no reference to 5.x currently.

The upgrade information would only apply if you are currently familiar with the 4.7 way of doing things, which I am not. The upgrade information for changes from 4.7 to 5.x is helpful, but doesn't do much for those not already intimately familiar with the workings of 4.7.

The module example documentation is helpful, but does not mention how to create new node types in 5.x correctly.

The 5.x node documentation I have found ultimately ends up in tutorials that are written for 4.7.

I would like to skip over development for 4.7 all together if possible, but at this time it's proving difficult.

I have a relatively complex task and the best logical way I can see to accomplish this task to define a few new related node types in a heirarchy, and inside those node types include existing node types as containers for the content. I can utilize OG for my user divisions, image and filestore for my file needs.

I am at the point of bastardizing the code to get the job done, taking away the real work from Drupal but that kinda defeats the purpose of writing a single location (module) that contains my intended functionality.

Image Module: strange alignment

Hello!

I am having problems with the image module:

  • 1. in the image gallery view the thumbnails line-up in a strange manner, the first two rows are fine and suddenly I get 2 lined-up to the right and on the next line two are on the left... most bizarre...

    2. the image gallery displays the title of each image but the font is so huge it takes up loads of room: can anyone tell me where I can change that particular font setting?

  • FUDforum shared sign-in with forum as 'slave' of Drupal user DB?

    Hi there,

    I played with the existing fudforum module and looked over the code. It's set up to treat the forum user DB as the "master" DB.

    I'd like to integrate FUDforums as part of a larger site where Drupal is the front end for shared sign-in, just as has been implemented with Gallery2 and MediaWiki.

    It seems that this should be fairly straightforward, combining a module_user hook and calls to code in FUDforum's scripts/fudapi.php and scripts/forum_login.php

    Session Handler - How Can My Ported Application not conflict with Drupal?

    I am porting an application to Drupal. This ported application uses $_SESSION extensively.

    I read the book page on Session Handler Issues, but it doesn't tell me what to do if I want to let both Drupal and my ported application use $_SESSION without conflict. Is that possible?

    Rewriting my application to not use the $_SESSION variable would be a massive headache.

    I don't want to drop Drupal's use of SESSION because I don't want to mess up my compatability with it (and other non-core modules).

    Anyone tested Acidfree on drupal 5?

    If yes, what is your feedback, is it usable?

    Is it stable enough at the moment?
    Anyone knows when there will be a stable acidfree 5 branch?

    Thanks!

    Pages

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