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

block only on profile

Ok, so I'm developing a block that only shows when viewing a user's profile.

If it's the users' own profile, it says "You have...." and runs a query based upon that user's users.uid field

If someone is viewing another user's profile, it will say " has..." and run a query based upon the viewed profile's users.uid field.

I can load a logged in user's users.uid field, but how do I get the field of the user who's profile is being viewed?

thanks!

Dynamic Page creation

How to create Dynamic pages. Now i can able to create static pages iwth Drupal initial features, pls i want according to my combination inputes , how can i cahnge display of contents each time.
I want dynamic page creation method used by Drupal tool

upload.module help

Hi,
I am attempting to make it so that my users can upload an unlimited number of files when they purchase a product from the website. Any ideas? I am thinking I can just copy and paste the correct lines from the upload.module to the store.module.

Thank you in advance for any help!
Cyrus

need help with forms

How do I make a custom free tagging form in drupal 4.7.0? I really need to change the 'maxlength' parameter for a taxonomy field and populate it with the list of taxonomies.

Please help! (><)

Tow forms: one default, one in block

I have two forms on the page. When I submit one, e.g. not entering body, it highlights body textarea, but the second highlights body textarea too.
How do I beat this? Possible?

hook_menu and more than two levels of tabs

if you go to http://drupal.org/user/ and click on the 'edit' tab, you'll see "sub tabs".

i'm writing a module that will provide similar navigation, however, i want more than two levels of tabs.

two levels is no problem and there are plenty of examples to work from.

but i've seen no examples of 3 or more levels of tabs, and my efforts to create them have all failed.

it seems to me that it might not be possible as it seems a menu item cannot be a parent tab and a child tab at the same time.

Pages

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