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

Flexinode Installation Help!!!

I'm having difficulty installing Flexinode. I downloaded the most recent version, uploaded in the module directory onto the server and when I got to the site to enable the module, it's not there. Am I missing a step????

Please help!!

CH

$termshow->vid not working correctly.

I have a code like so.

function tutorial_type() {

$output = '';

$select_types = db_query("SELECT vid, name, description FROM {vocabulary} ORDER BY weight DESC");
while ($termshow = db_fetch_object($select_types)) {

$newid = $termshow->vid;

echo $newid;

$output .= 'vid.'">'.$termshow->name.' [0]
'.$termshow->description.'
';

$result = db_query("SELECT tid, name FROM {term_data} WHERE tid=$newid");
while ($term = db_fetch_object($result)) {

Attachment module extensions

Hi all.

I'm working to develop an extension to the attachment module: I have to display some extra information about the uploaded file, namely what type of file it is, with which player or program you can open it, and who uploaded it.

I managed to add these information to the MySQL table (which I called attachment_ext).

The problem is that I cannot retrieve those data: it does not display those information.

Can anybody help me, please? I don't have a clue how to do that.

If it could help, I'll paste here my code for the module (which is basically just an extension of the original attachment module):


<?php
// $Id: attachment.module,v 1.15.2.2 2006/09/28 09:53:13 robertDouglass Exp $

define(ATTACHMENT_EXTENSION_WHITELIST, variable_get('attachment_text_rename_whitelist', 'jpg jpeg gif png tiff txt html doc xls pdf ppt pps odt mp3 ogg wav wmv mpg'));

function attachment_form_alter($form_id, &$form) {
$type = $form['type']['#value'];

switch ($form_id) {
// node edit form
case $type .'_node_form':
if (user_access('add attachments') && (variable_get('attachment_node_'. $type, 0) == 1)) {
$node = $form['#node'];
if (!isset($node->attachments)) {
$ret = attachment_load($node);
$node->attachments = $ret['attachments'];
}

Problem with mysite-5.x-2.0-beta2

Hi,
i've installed the last version of the module mysite; But i have an error in the view page :
warning: Invalid argument supplied for foreach() in ....\drupal5\modules\mysite\plugins\layouts\default.php on line 41.
Please can you help me.
Sorry for my bad english:)
Thank you

Check if an optional module is installed

I'm sure this is probably something really simple that I've overlooked, but I'm developing a module and I want to make some additional options accessible if an optional module is also installed. Is there a way to check if a module is installed?

Thanks,
Steph

view field for download_count module

Hello

I want to add view field to download_count module, so i read views docs and made up some partially working php code but i am in trouble anyway...

maybe someone could expand this to fully working field (counting downloads of all files attached to node, not only first?)

http://drupal.org/node/144119 this is my feature req... any help would be fine...

regards!

Pages

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