Seems very common things to do for any social Networking sites but why they r so hard to do in drupal?

Events happening in the community are now at Drupal community events on www.drupal.org.
foodbo's picture

Seems very common things (functions) to do for any social Networking sites but why they r so hard to do in drupal?

  1. I am trying to list all the countries from a drop down list, then list all the cities in another drop down list that based on the selected country.

after searching and asking on drupal forum, it seems the "hierarchical select" module will do the good job for that but it is only in dev stage and it won't work well with content profile module (which i am using atm) also it only works with "content taxonomy" for drupal 5 at this moment.

http://drupal.org/node/546938

  1. User search function (search by age)

I am wondering, how do you store the age in database? as the age will change every year?? I have tried the "computed field" module to compute the date of birth to age, but that shouldn't store in a db so that can't be searched???

http://drupal.org/node/548934

so are there any other easier ways to do?? any suggestion would be appropriated

Comments

another basic thing...

foodbo's picture

mmmmm..... no comment, everyone??

also i am trying to set the max / min chars for user name, is there another better way to do then hacking the core / using the access rules??

http://drupal.org/node/186812

http://drupal.org/node/175308

many thanks.

To search by age you can

detectedstealth's picture

To search by age you can simplely create a date field and in your theme use some PHP code to calculate the persons age. And if you want to search by age just convert the age to a date range and search for that date range.

To make something work with your country options you will have to probably make some custom module using Ajax and SQL. (Customizing the hierarchical module for your needs might be the easiest.

For setting max / min chars for the user name, you do that in your theme. All of the things you said you want to do just take a little bit of coding.

None of these things are hard to do, you just need to jump into the code and make a little customizations (NOT TO THE CORE). Drupal for the most part just gives you a starting point so you don't have to start from scratch. It kind of sounds like you might not be strong with PHP/Ajax/coding in general? (I could be wrong) If that is the case you might want to start searching how to program these types of things with PHP, before you can figure-out how they will work with drupal. OR hire someone to get this working for you if it is time sensitive.

Regards,
Detectedstealth
- http://www.wcfree.com

thx detectedstealth

foodbo's picture

I am kind of new to the web programming, mostly just dealing with java and .net for standalone applications. so I am trying to do as less code as possible for now and see how far i can get to finish a website.

I am using over 30 contributed modules now, and most of them update / have a new release quite often from every few weeks to months. So for the "user search" by age, i am using the view's exposed filter, should I just modify the view or write some code that work with the view??, so that would be easier to work with their new release later on?? I haven't looked into the code yet, but seems to me it will take a while (quite a while for me) to understand their code and code something to work with them??

I have found a easier way to min / max the chars for user names by using access rules but just find it odd to do it that way (guess it is not their intentional way), thought drupal can deal with the basic thing better, a bit like iPhone without a basic copy&paste function for 2 years...

also i thought that type of things should have many ppl on here, done that before and have a proper solution.

anyway, the project is more for leisure so wont' consider paying for anyone yet.

thx for your input.

Social Networking Sites

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: