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

migrating from phpnuke (advice needed)

My main site is a phpnuke gallery combo. It was the only thing to do at the time, but I must confess, I haven't been keeping up to date with the security thingies, and it got hacked recently.

I've always wanted to move it to Drupal, so I must also confess, I wasn't too sad.

I have an idea of just deleting everything except the gallery install. The only things I want to import are the user database and ... Well, that's it, really. And of course, I will need to switch Gallery 1 to Gallery 2, but I think I can do that.

Image Shadows

I was looking at DeviantArt the other day, and I noticed that every image had a really cool shadow behind it. I opened up the link to the background image (http://sh.deviantart.com/shadow/alpha-000000/5.1-0.6/180/150/logo.png), and I noticed a really cool script that they had on their site and thought I would try to do something like that myself. Notice if you change the two numbers before logo.png, it will automatically change the size of the logo.

I tried to use GD for a while, but I'm only on PHP 4, so I don't have any way to blur an image without a complicated script. I finally went to imagemagick, and here's what I came up with:

header("Content-type: image/png");

$pad = 15;
$img_x = $_GET['x'] ? $_GET['x'] + 12 : 200;
$img_y = $_GET['y'] ? $_GET['y'] + 12 : 200;
$size = $img_x.'x'.$img_y;
$rect = ($pad/2).','.($pad/2).' '.($img_x - $pad/2).','.($img_y - $pad/2);

passthru('convert gray: -fill "#bbb" -size '.$size.' xc:white -draw "rectangle '.$rect.'" -gaussian 0x1.4 png:-');

But it seems to be really slow, which I think is because of the gaussian blur. It would be good if I could cache the image, but I don't want to fill up my web space with images (less than 3kb a piece though).

I was planning on trying to submit the idea back to the image module, but storing the images really isn't feasible, and it needs to be fast before it can be used.

Drupal links don't work

I'm trying to migrate a Solaris Drupal to a Linux server, I've imported the database to the Linux server, copied the docroot over and edited the settings.php file. Everything looks good when i goto the main URL but when I try to login and click on 'Login' I get:

Not Found - The requested URL /drupal/user/login was not found on this server.

Apache error-log shows:

[Tue May 09 12:49:03 2006] [error] [client x.x.x.x] File does not exist: /var/www/html/drupal/user, referer: http://x.x.x.x/drupal/

No links or anything seem to be working, all report 'Not Found'.

Caching working a little too well (random image script isn't random)

Alrighty. We got drupal running a few weeks ago and it's running great. I decided to turn on caching and be nice to my host. My problem is that we have a random image php script sitting inside our phptemplate. This works really well when caching is turned off, but now the cache is stuck with a single image and won't rotate the image like it's supposed to.

Is there anyway to get drupal to "ignore" certain bits of code in the cache. The main audience of our site is anonymous users, the only users are staff who need to access and change content.

Getting data from cck field with query

Hi,

I'm new to both drupal and PHP, so this is probably a simple problem, but I just can't find anything in the documentation that helps me here (I tried drupaldocs too).

I'm trying to make a block that pulls out two fields from a cck content-type (the title and a custom field 'field_link') then writes them to the page (specifically into the javascript of a ticker I have been given).

So far I have:

Contributed content(weblinks) under "My Account"?

4.6

I've got users that have submitted quite a few weblinks under different categories and instead of having them search the site for them I would like it so they pulled up when they clicked on "My Account".

Is this possible?

Thanks in advance.

Jeff

Pages

Subscribe with RSS Subscribe to RSS - Post installation