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

Code snippet to display most recent image in a category

Sorry if this is redundant, but I spent quite a while looking for a solution.

I'm using the the image module and would like to be able to display the most recent full size image from a gallery category.

I'm working on a site that will feature different profiled artists and it'd be nice to be able to just create a new image, assign it a category, and have the image appear as a header on each page. The image could just link to the image_node where there would be further information added to the desciption field.

Is ?PHPSESSID Still a Problem in 4.6.3? Patches, suexec, .htaccess oh my!

I know vets are tired of the "how do I get rid of ?PHPSESSID in my URLs" discussion, but I have to bring this up again. I've searched and reviewed a number of threads on this. It looks like you could either modify your .htaccess file, or depending on the requirements of your host, edit your php.ini file.

Then it appears that there was a change in how this data was viewed, that it is a potential security risk and therefore should never appear for anyone in any drupal URL, ever.

PHP snippet show only published

This php snippet displays the unpublished nodes as-well, how do I make it so that it only shows the published nodes?

Is this what I have to add? If yes, where exactly?

Taxonomy Advice

I've got my first drupal project which has the potential to make use of taxonomy to help ease the burden. I'm not quite sure what the best way to implement it is, however. This is a volunteer project for a non profit animal shelter, so any advice will be for a good cause :)

Here's what I'm doing... The shelter's primary web purpose is to list animals available for adoption. It should be easy for people to browse animals, perhaps by certain criteria. There are a whole lot of vocabularies I can use here:

- Animal Type (Dog, Cat, Bird, who knows what else)
- Breed (probably with the backported freetagging module?)
- Age (Juvenile, Adult, Senior)
- Gender (Male, Female)
- Color (Brown, Black, etc)
- Weight Range (0-20lbs, 20-40 lbs, etc)

Some ideas I have:

1) use flexinode, one node type for each animal, different vocabularies applied to each node type

This is one option, let's me easily browse each animal type (/flexinode/list/#). But I don't think this will let me easily narrow down browsing. For example, say I want to browse male dogs that are under 50 lbs. This also would be a bit harder to maintain as there would be a bunch of similar but slightly different node types.

2) use flexinode, one generic animal node type

This will let me use taxonomy to browse the major characteristics. But I'm not sure flexinode will work because it means a lot of duplicates. For example, to easily browse, they'd have to tag the animal with a weight range, age range, etc and then also have to enter in the exact weight and age.

How do I turn this into PHP so that the "%useremail" string becomes the user's email

How do I turn a bunch of HTML email form post type stuff into PHP so that the "%useremail" string becomes the user's email?

I have a form for entering some information to send to some companies email addresses, but I can't figure out how to get it to insert the user's username or email with the %strings.

The html is at: "> this link
Yours,
Simon

Associate user profile with node

Can I associate my admin profile with a default page after login ? For instance I would see the graphical control panel and set this node as my default page. Impossible or too simple ?
Thanks

Pages

Subscribe with RSS Subscribe to RSS - Post installation