If you think Drupal sucks...

Using Drupal has left me with hating it. However, that hatred is waining. Buy the book, "Pro Drupal Development". I've only ready a few chapters and I began to realize that my hatred for Drupal only stems from my misunderstanding of it. Although I am still not impressed by the name space Drupal uses (i.e, Taxonomy, nodes, blocks...).

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'];
}

Error in line121 of mysql.inc

I frequently see an error messege in my log as following

line121 in /home/nuangle/public_html/etousu/includes/database.mysql.inc: Duplicate entry 'qTh-9pWSq9h50BPTW5gmzV4ZQT_EL19B' for key 1 query: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES ('qTh-9pWSq9h50BPTW5gmzV4ZQT_EL19BbYjk8dhVJthAibpd18I182W7i1r6nbY2', 0, 0, '222.160.77.60', '', 1179212221) 。

I have no clue. It happened after I upgraded from drupal 4.7.3 to 4.7.6

Looking for developer for business service portal

After developing a proof of concept for a business service/information portal prototype for my employer, http://www.connellspendmanagement.com, I am now looking for a 3rd party Drupal freelance developer, team or group to review and insure the correct configuration model, make necessary modifications to the theme, buildout the design to go-live and finally be available for continuing support, adding enhancements, etc.

Looking for developer, Chicago area preferred

After developing a proof of concept for a business service/information portal prototype for my employer, http://www.connellspendmanagement.com, I am now looking for a 3rd party Drupal freelance developer, team or group to review and insure the correct configuration model, make necessary modifications to the theme, buildout the design to go-live and finally be available for continuing support, adding enhancements, etc.

cannot open it and cannot find it in the search result

I have a very popular post on my site. It has 2000 over comments.

http://www.etousu.com/node/416

But suddenly I cannot open it and cannot find it in the search result using drupal's search function on content. I check the database it's still there.

Does anyone has a clue?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x