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

print_r formatting

When it comes to debugging:

print_r($node)

in my node.tpl.php is great!

However, for nested arrays, i wish it would print each array variable out on a separte line rather then just stringing them all together.

Is there any way to do this? Possibly another function or some code i should be wrapping around this?

thanks in advance

TinyMCE and <style> tag without TinyMCE

First things first.

Do you see a reason why I wouldn't see a new contrib module newly copied in the module folder?

I just dropped v2.1 of TinyMCE in there, don't see it. I dropped it in the sites/all folder, don't see it.

Did it the other day and it worked fine. All I can see as a difference, is that now I've redone the whole theme.

Also, can we make use of the

tag or tag in a full html nod post? It seems I tried, and it didn't work so well. Thanks Charles

how to write value from personal profile field - SELECT box

Hi!

How can I find value from personal profile field - select box?
I have profile filed - select box - sex with options man and woman.

It's name is profile_pohlavie

I want to write in a block for current user his details, but
check_plain($user->profile_pohlavie) or $user->profile_pohlavie does not return any value.

So, how can i find value from select box? it is some array or something?
Thanks

Igor

I need the "one time" login URL to work permanently. How to make this happen?

I have two user scenarios where I need to generate login URLs that allow select users to login to their account, bypassing the user/login screens.

Where would I look for how the current first time user login hash gets created? How would you suggest this be altered to allow a user to click on a url (or bookmark in their browser) and get logged in automatically?

Note: I don't want this to work for all my users, only a couple "special" cases.

Get taxonomy access from taxonomy_access

I am using taxonomy_access to restrict access to certain nodes depending on their access. However I am attempting to retrofit a PHP application into Drupal and I am hoping to find a way to be able to pull access levels through taxonomy_access.

For example I want to add a taxonomy vocab for something like, "Edit calendar items."

I would like to get the current user ID logged in, check if they are given access to properly edit caledar items and then give them access or deny them.

Pros & Cons of "Public" and "Private" File Download Methods

A major decision I'm facing is whether to use Drupal's "public" or "private" file download method. Does anyone have some insights into the pros and cons of each?

In my fairly common use case, most of my generic files (such as images or user-submitted files) could be public, but there are a few files I'd like to keep private (such as proprietary PDF documents or electronic products).

Here are the pros and cons of "private" file access as I see it:

PRO:

1. Easy to control files automatically

CONS:

Pages

Subscribe with RSS Subscribe to RSS - Post installation