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

User registration: best way to validate zipcode town pair?

Hello Everyone,

I'm just getting started in Drupal, and have a basic knowledge of php though by no means a professional programmer. What I'm trying to do is the following:

My website is mainly for users in Spain, and I want to add a physical address to the fields the user must supply when registering. (I know how to use the profile module to add the fields.) I have a database of Spanish postal code and town pairings comprised. In Spain, it is possible for more than one town to share the same postal code. What I want is to automatically populate the town field based on the zipcode entered. If the zipcode corresponds to only one town, show that town name. If it corresponds to more than one town, show a drop down with just the related town names.

I imagine the simple way to ensure proper town data would be simply to add a validation that checks the postal code / town pair when the new user hits the save button, and if the check fails return the allowable town names in the error message. The problem with this is that many towns have official names that are long, and many people will enter shortened versions, which will cause the validate to fail, followed by the hastle of having to type the town name EXACTLY as it is shown in the error message.

So what I'd really like is a two-part registration process. Perhaps an initial screen with just the town and country (if the country isn't spain, disable the validation), followed by the main screen where I create either the text field or drop-down for the town name based on the value of the postal code previously entered. Later, when an already registered user wants to edit his address, I could place a button next to the postal code and country which they would have to press to change either of these two fields. The button would bring them back to the country/zipcode page, and upon returning to the main edit form the town field would be updated accordingly.

Notification of reply post

Hi all,

I want to setup a forum that when I post a question and someone replies, I will receive an email that tell me to go to the forum to read the replies. I wonder if it is already a feature of Drupal or is there any extend module for that function?
Thanks in advance for any suggestions.

Regards,

Phil

diffent homepage for different rulls

Who do I set different homepage for different rulls - after the user has loged in he will see a node made for his/her rull
And - my anonimus user is restricted to a very few pages and links. How do I strict the certune pages and how the display only relevant links to them in the top nevigation bar ( a teame pannel)

Thanx

Creating a secondary navigation

I am a beginner. I want to create main navigation and then secondary one. Like this:
Home
About Us
> History
> Future
Contact
Nothing fancy. But how do I do it using Drupal?
I want the secondary links to show only on the pages where appropriate. In the example above History & Future would show only on About Us page.
Thanks

user_profile.tpl.php and buddylist.module display help?

As soon as phptemplate is used for themeing the user profile page all default buddy list info is gone.

Is there a way to list the info again? I tried a number of methods unsuccessfully.

I think i need to invoke this function from line 105:

function buddylist_user($type, &$edit, &$thisuser, $category = NULL) {

...but i can't get it to work right!

Visibility of organic groups - how to create a private section?

I'm wanting to have a very private section of the web site I'm building. That is, my users want this.

I do have node_privacy_by_role installed and can expose them to the role-selecting buttons. But that seems to me to be a non-user-friendly method of controlling access (that is - people are going to forget to select the correct role(s) when posting).

I'm looking at organic groups at the moment. Clearly the organic groups will be very helpful to my users as well.

I created a group ... and the create-group screen shows the node_privacy choices, so I selected only specific roles. HOWEVER, the group is visible to people without those roles, and is visible to logged-out people. *SIGH* I suppose node_privacy_by_role might not apply to groups? I was hoping it would ... and thereby keep everything posted within the group visible only to the group.

What I really want is a way to select for a specific group that stuff posted within that group is only visible to members of that group.

Anyway ... I did read the organic groups handbook page and it seems the way to control group visibility (whether it's listed in the "groups" list) is to make it an invite-only group. BUT ... even with the group being invite-only, content posted within the group is still visible to non-group-members.

What I really want is a way to select for a specific group that stuff posted within that group is only visible to members of that group.

Pages

Subscribe with RSS Subscribe to RSS - Post installation