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

What tables and fields do I need to populate for importing custom data as a node?

I'm creating a module that imports external documents into Drupal as a node, does anyone know which table(s) I need to write the data to to properly store my documents? Or can you point me to a page on Drupal's site that might detail this process?

news category

Hello all,

Till now I was making projects in Joomla, but now I'm trying to pass to develop projects in Drupal.

And I'm interested if there is such a way to display news categories. Is there something already done or that need to be programmed, or maybe there is such a menu.

thanks for helping !

regards, Hum

Creating form using drupal_render in .inc files!

Hi Guys,

I am using drupal 5.1 acidfree module. I have different albunms that has images and movies. I am giving options to user to select the images from the albums and submit them for printing service. I have also created a link in every album which shows the selected images in a form layout of the current user that he had selected for printing service.

I have created this form in image module successfuly in image_gallery.module file, now this same functionality i want to use in acidfree module, but this time this code is there in class_album.inc file of the acidfree module. This form is being developed but not in the same fashion like in a row every record.
This is the code.

calling this in somewhere in other function like
*****************************

return drupal_get_form('acidfree_album_print_service', $form);

******************************
<?php
function acidfree_album_print_service()
{
global $user;
$type = new stdClass();
$type->message = t('There is no image');
$form = array();
$print_res = db_query("SELECT * FROM {print_service} where uid='$user->uid'");
$total_print_num = db_num_rows($print_res);
if($total_print_num>0)
{
while ($node = db_fetch_object($print_res))
{
$node = node_load($node->nid);
$confirm_nid = db_query("SELECT nid FROM {node} where nid='$node->nid'");

Need help customising Whos online module

Hi all,
I have a big problem (i think for you it´s small one ;-) ).

I want to have a "Who´s online block" i know there are alot of snippets and modules out there but I´m looking for a special function. I´m using Drupal 5.1

I try to get it look this way :
(10 last logged in users/or online users)

Username (coloured pink if profile_gender = female and light blue if profile_gender = male)
I would also like to have a small icon in front of the username

if profile_gender = male show website.com/drupal/files/male.jpg 25x25px
if profile_gender = female show website.com/drupal/files/female.jpg 25x25px

I´m very sorry but I have two other stupid questions (but I don´t get it on my own):

How can i print this 10 users into 2 columns (5on the right and 5 on the left) ?
And how can I have a border around this whole thing...

I´m very sorry but I don´t get it to work since days/weeks and now I have to annoy you with this newbie questions.

What I got until now is this:

<?php
$number = db_result(db_query('SELECT COUNT(uid) AS number FROM {users} WHERE status=1'));

if (user_access('access content')) {
// Count users with activity in the past defined period.
$time_period = variable_get('user_block_seconds_online', 900);

// Perform database queries to gather online user lists.

Calender "Highlight" at Main Page

I will have a calender with Text-Infos every day. A short version of these Text Infos should display on my Main Page at the right side. How is this possible? Which Module do I need? Thx for your help.

Turning Web Ap into Drupal Module, Partially?

A friend and I are developing a web application in php/mysql/xhtml/css. The ap currently has 13 tables with at least 3 more in planning. It is a fairly specialized application which is not likely to gain a whole lot of interest from other developers.

I know that Drupal can run php inside any node and I've run mini aps on Drupal sites that were not Drupal modules.

My question is this: Is it possible for our ap to take advantage of Drupal registration/log-in and maybe roles/profiles without going to the trouble of turning the entire application into a Drupal module?

Pages

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