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

count attachment downloads

I am currently developing a community portal with Drupal 4.6.2 and was wondering if there was a way to count how many downloads happen with each attachment. I see that there is counting going on for all node types, but I cant seem to a way for attachments. Any help would be appreciated ;-)

Blank Page shows instead of content

Hey...

I'm hoping that someone else has gotten this problem in the past. Whenever i enter all my php and javascript code into my page to display the only thing that shows up on the page for that call back is open/closing html and body tags.

If anyone has been able to get this to happen b4 pllleeeaassseeee hheeeellllllppppp!

As a side note, i'm working with sajax code which might be part of the problem but I really don't know...
~!btopro

Problem installing multiple modules

I am trying to install a few modules and i am having a problem. I installed and enabled the following modules with no problems at all, buddylist, flexinode, event, FOAF, privatemsg, RSVP, survey and feedback. However now i cannot install anymore modules. I have tried the following modules front_page, poormanscron and tinymce and i get the same result with each one. Once i put the .module file in the modules directory, when i goto the modules page in the administrator section the page finishes loading and stays white. Nothing is loaded at all on the screen.

$_POST empty in menu callback function

Hi,

I'm developing a NoChex payment processing module for the ecommerce package and I've hit a brick wall. I'm using a menu callback to register a function which takes in POSTed data and processes it, but whatever I do the function only sees an empty $_POST array (which is fairly useless!).

I've tried using global $_POST; but nothing seems to work.

Any ideas?

Flexinode view permission per flexinode type

I wanted to make some flexinodes not viewable to certain user groups, but did not want to use an additional module like node access. Therefore, i modified flexinode.module, and added in the perm function:

$perms[] = 'view '. $ctype->name .' content';

Then I added in the access function:

 if ($op == 'view') {
  	return user_access('view '. flexinode_node_name($node) .' content');
  } 

Then finally changed the menu hook user access calls like so:

 $items[] = array('path' => 'flexinode/list', 'title' => t('list view'),
      'callback' => 'flexinode_page_list', 'access' => user_access('view '. $ctype->name .' content'),
      'type' => MENU_CALLBACK);
    $items[] = array('path' => 'flexinode/table', 'title' => t('tabular view'),
      'callback' => 'flexinode_page_table', 'access' => user_access('view '. $ctype->name .' content'),
      'type' => MENU_CALLBACK);
    $items[] = array('path' => 'flexinode/search', 'title' => t('search'),
      'callback' => 'flexinode_page_search_form', 'access' => user_access('view '. $ctype->name .' content'),
      'type' => MENU_CALLBACK);
    $items[] = array('path' => 'flexinode/feed', 'title' => t('rss feed'),
      'callback' => 'flexinode_feed', 'access' => user_access('view '. $ctype->name .' content'),
      'type' => MENU_CALLBACK); 

where instead of user_access('access content')... it invokes the view permission.

gallery module for drupal

Hi,
I don't know if you all have the same Problems...
but my problem is:
after installing drupal - works fine
and installing gallery2 - works fine
i installed the gallery2 module

when i activate the module there is no error... but nothing is shown (navigation block is active - thats not the point)

Pages

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