This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

problem mit views arguments

hi guys

i want to create a views/box where i will see "other content" by owner of the node i actually view!

i added "UID is Author" Argument and the code:


global $user;
$user = $node->uid;
$args[] = $user;
return $args;

i need the uid of the node i actually view, but global $user = $node->uid seems not working?

what should i do?

greets

Lausch

Whenever I view my profile page, I get this error code

I log in my site, click "my account" link, then see this error:

"warning: Invalid argument supplied for foreach() in /home/mukeedco/public_html/modules/user/user.module on line 1507."

The weird thing is, if I log in as admin instead of regular user, I don't see that error on "my account" link

How do I fix that?

Thanx

onmouseover image popup

Can someone tell me how to achieve this?

www.speeleiland.nl
(hover over a textlink at http://www.speeleiland.nl )

Is there a module for it already, or how to make one?

panels 2 i need some help

I am trying to layout my front page so i downloaded Panels 2 but I can seem figure out how to work can some one please help me out. I would like to do a layout some what like this http://www.xsisterhoodx.com/

Different content on "add new node" and "edit new node"

I'm developing a new picture module in Drupal and I've got a little problem.

Each time I add or modify a node of my new module the function hook_form() is called. So both pages are powered by the same source code in hook_form(). But I want to display slightly different content on both pages, depending on if you are on "add node" or "edit node". Isn't there some kind of variable that tells me what page the user is looking at?

Thanks a lot in advance!

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions