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

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?

Views - warning mysql with "my most recent post" on profile

Hellow all,

I started serious in Drupal two weeks ago and I have since installed a few modules. Among them are: OG_Groups, OG_Forums, OG_subgroups, Taxonomy_Access and Views.

With using Views I created a block with "my most recent story" for the profile. I wanted to have a teaser there and it worked yesterday.

Today I see warnings. They look serious. And since I'm not very good at unraveling the phpcode that it gives ... I would really want your help.

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC LIMIT 0, 1' at line 1 query: SELECT DISTINCT(node.nid), node.created AS node_created_created, value FROM node node INNER JOIN node_access na ON na.nid = node.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 0 AND na.realm = 'og_public') OR (na.gid = 9 AND na.realm = 'og_subscriber') OR (na.gid = 8 AND na.realm = 'og_subscriber') OR (na.gid = 2 AND na.realm = 'term_access') OR (na.gid = 4 AND na.realm = 'term_access'))) AND ( (node.type IN ('story')) AND (node.created <= 1180568537 + 0) AND (node.uid = 2) ) ORDER BY node_created_created DESC, DESC LIMIT 0, 1 in C:\mydomain\wwwroot\dev\includes\database.mysql.inc on line 172.

CCK/Views: How to find nodereferences point to current node

Hello,

I am a Drupal newbie with a simple problem (I hope).

I have two content types: Party and Article. Article has CCK field nodereference that points to related Party.

At the party detail (?q=party/xyz), I need to find all Articles that are related to this Party (has nodereference == current party). How can I do that?

Can you help me with this please?

unique link - cck

Hi guys,

i tryd a long time now to find some, but no result...

i added a link field to my content type.

now i want, that an url only can add unique like on digg...

how i can do this?

if someone add google.com or www.google.com, user have to get a "url already exist error"

any sql snipped available?

Pages

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