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

Best implementation for photographer's website

I'm putting together a photographer's website and I'd like to hear some of your thoughts on the best way to accomplish what I'm trying to do.

Basically, i need to:

- upload images and resize accordingly
- categorize images (galleries)

This can be accomplished with image.module.

Here's the tricky part:
I need to have a client login section, where clients can view private images from their shoot. They must also be able to specify which images they want to keep.

node/add/image variable?

I am a bit of a PHP dabbler/beginner, and I am trying to write a script to watermark uploaded images. The watermark is variable, based on information supplied by the logged-in user.

What I need now should be relatively easy, assuming displayed images (or their paths) are stored in a variable that I can call. Or is there an easier way?

<?php

global $user;
$name = $user->name;
$uid = $user->uid;
$filename = $name;

// first name query and variable
$fquery = "SELECT value FROM profile_values WHERE uid='$user->uid' AND fid='3'";
$result = mysql_query($fquery);

while ($row = mysql_fetch_object($result)) {
$fname = "$row->value";
}

// last name query and variable
$lquery = "SELECT value FROM profile_values WHERE uid='$user->uid' AND fid='4'";
$result = mysql_query($lquery);

while ($row = mysql_fetch_object($result)) {
$lname = "$row->value";
}

// concatenate the full name
$fullname = $fname . " " . $lname;

// create an image with width 'x', height 'y'
$image = imagecreate(200, 20);

// create a background color and then set it to transparent
$background = imagecolorallocate($image, 255, 255, 255);
ImageColorTransparent($image, $background);
ImageInterlace($image, false);

// set black color for the text
$black = imagecolorallocate($image, 0, 0, 0);

// write the variable string to the image
// the top left of the text is at the position (10, 2)

Create a link at the end of a node to send a private message to the owner of the node

Hi there! Hope everyone's doing good today! :-)

I'm trying to figure out how to add a link at the end of a node that lets a person send a private message to the owner of the node.

I'm kinda uncertain as to how to make this happen... but I'll just post my thoughts and (hopefully, any solutions! :-) here)

Basically, this is what I've done so far. I've taken the $output variable and added onto it like this:

redirect user to original destination page after login

Here's what i'd like to do:
When a user requests a page that they can not access , i redirect them to a login page that i have made. This works fine.
However, when they actually do login, they get redirected to their user page, instead of the page they were going to. I'd like the redirection to go to the original page... How would i do this? I tried logintoboggan and customerror, applied patches etc, but neither one did the trick, so i am ready to get my hands dirty, but can anyone advise me on a method?

Configured Exim4 on Debian; PHP's mail() function no longer sends mail

I installed Exim4 on my Debian Sarge server as per these instructions:
http://koivi.com/exim4-config/

Now PHP mail() no longer sends mail. these are the errors in the /var/log/exim4/mainlog file:

Pages

Subscribe with RSS Subscribe to RSS - Post installation