Drupal is up and running but how do I ...?

Why doesn't this SQL statement work?

$result = db_query("SELECT u.uid, u.access FROM {users} u INNER JOIN {profile_values} v ON u.uid = v.uid WHERE v.fid = 47");

while ($row = db_fetch_object($results)) { 
  print_r($row);
}

The SQL statement works fine when I query the database directly such as:

SELECT u.uid, u.access
FROM `users` u
INNER JOIN `profile_values` v ON u.uid = v.uid
WHERE v.fid =47
LIMIT 0 , 30

in PHPMyAdmin. But when I use the above code, I'm not getting any data outputed throw the print_r($row).

?

isues with acidfree

I've got some isues with acidfree which I need to solve... (been bussy with a comunity site where 1000+ users can upload their photo's, video's and sound... )

maybe there are a few here who have the same isues and can help a bit ? :-)

my current isues are with acidfree "Per user albums" enabled
version: acidfree.module,v 1.62.2.53 2006/09/08
version: filemanager.module,v 1.18 2006/09/14
drupal 4.7.3

How I disable avatars in all page except forum

How I disable avatars in all page except forum ?
I want to view avatars only in forum post

CiviCRM breaks cron.php when installed to a different DB

On our site, we have Drupal installed to one database, and CiviCRM installed to another.

Drupal's cron.php appears not to like this.

Type: cron
Date: Wednesday, 20 September, 2006 - 8:30pm
User: Anonymous
Location: /cron.php
Message: Last cron run did not complete.
Severity: warning
Hostname: 72.36.128.236

The PHP error log has three entries per cron run, which seem to show that it's trying to write to three tables (watchdog, role, sessions) in the CiviCRM database (thudcrm) that only exist in the Drupal database (thudsite).

My guess then is that cron.php is making assumptions about the currently active database.

Is this correct, and if so, is there a fix?

Error messages are:

[20-Sep-2006 14:43:08] PHP Fatal error: Table 'thudcrm.watchdog' doesn't exist
query: INSERT INTO watchdog (uid, type, message, severity, link, location, hostname, timestamp) VALUES (6, 'php', 'Table 'thudcrm.role' doesn't exist\nquery: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid INNER JOIN users_roles ur ON ur.rid = r.rid WHERE ur.uid = 6 in /var/www/html/civicspace-dark/includes/database.mysql.inc on line 66.', 2, '', '/cron.php', '90.192.153.37', 1158781388) in /var/www/html/civicspace-dark/includes/database.mysql.inc on line 66

[20-Sep-2006 14:43:08] PHP Fatal error: Table 'thudcrm.sessions' doesn't exist

After registering is it possible to send them to a welcome page?

IF a user creates a new account, is it possible to send them to like a "getting started page" ??

is there a way to draw content from another node?

I am thinking of using mainly the book module for my site structure (because it is robust, the structure is clear, and the breadcrumbs and navigation display nicely).

However, obviously, I cannot include dynamic content or "fancy" content (like webforms).

I found a first trick to get dynamic content in a book by using the "insert view" module. I can then have a page book that lists all sorts of content, with filters, etc...
To use this module I just add this syntax in the page book content:
[view:[name_of_view]]

Pages

Subscribe with RSS Subscribe to RSS - Post installation