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

can I pull a Views header from another node's content?

I'm just getting started with the Views module.

What I want to make is a page that gives an overview of my organization's current projects.
I've created a simple Page view that shows some header text to introduce the page, and a list of nodes matching a certain property, showing the title of the nodes and some teaser content -- this is exactly what I want :)

Settings.php and moving from one subdomain to another

Hi there,

I've currently got drupal installed in a subdomain, like so:

dev.mydomain.com

We have a live site running already on www.mydomain.com. When I am done setting up drupal, I'd like to just copy all the files over to the main domain (www) and we'll be live with the new site.

Date Profile Field Always the Same

Using Drupal 5.1, I have set up a profile field for the date the person joined the group (not the web site, so I can't use "created"). I then have a page to pull those users by a specific role. This works fine (thanks, Sam308), except that the date they joined is coming out all the same.


Here's a screen shot. The date is on the right side.


Here's the code:



<?php
$rid = 5;

$header = array(
/* array('data' => t('Username')), */
array('data' => t('Photo')),
array('data' => t('Name')),
array('data' => t('Current Pos')),
array('data' => t('CV')),
array('data' => t('Member since'))
);

$sql = "SELECT u.uid, u.name FROM {users} u INNER JOIN {users_roles} ur ON u.uid=ur.uid WHERE ur.rid = $rid";
$sql .= tablesort_sql($header);
$result = pager_query($sql, 50);

while ($account = db_fetch_object($result)) {
$account = user_load(array('uid' => $account->uid));
if($account->picture){$account->picture = '<img src="/'.$account->picture.'" height="100" width="100" border="0" alt="'.$account->name.'">';}
else{$account->picture = '<img src="/files/pictures/KB/bodYou.gif" height="100" width="100" border="0" alt="no picture found">';}

$rows[] = array(/* $account->name, */
$account->picture,

log out after closing explorer and firefox

How do i let the users log out automatic after x minutes of inactive , and after closing the web browsers.

How do I hide a block on unpublished page?

Is there a way to hide blocks on unpublished pages?

Capcha error: all anonymous users get an error for just viewing pages

Hi,

My website uses Captcha without TextImage. Every annoymous users get an error saying, "The answer you entered to the math problem is incorrect." when they access to a node. Viewing the front page is O.K.
I turned on "Comment Form" and "Sitewide Contact Form" in /admin/settings/captha .

When I log in, I don't see any error. I'm using the latest official release "4.7.x-1.2" for Drupal 4.7.

The website in question is http://samuraicoder.net

Pages

Subscribe with RSS Subscribe to RSS - Post installation