How can one display local time and date to my drupal website visitors depending upon their geographic location? - date

I need to display the FIFA world Cup 2010 schedule on my Drupal website. But what I want is that each visitor should be able to see the time for the upcoming matching as per his/her own geographic location . How can this be done ?Any suggestions would be welcomed. Thanks for reading this through.

You need to be able to sniff the user's location. The most common way of doing that is by using an IP-to-location service or library. There are freely available IP-to-location libraries which provide country-level resolution, or you can pay to get data that is accurate down to city level.
There is a contrib module which allows you to incorporate the MaxMind GeoIP more easily. http://drupal.org/project/geoip

I think what you need is a tool like GeoIP, i don't know Drupal so this is just a hint... just a thought!

You can put a time zone spinner with the World Cup schedule on your website, and let your users convert the match times to their local time if they select their local time zone from the spinner.

What about JS getTime()? Wouldn't that work in browser and pull from the user's settings on locale?

Related

I want to make an auto upgradable calendar like the Facebook calendar to add to my Google calendar

My goal is simple: I want to make a calendar that takes information from my account with my local library (book name and due date) and add it to my Google calendar but I want it so that whenever my account is updated (I borrow a new book) the information is also updated on the calendar. The only thing is that I have zero clue where to begin, and what languages to use, and what to do exactly. If anyone can lay out the steps for me with some detail I will be really grateful. Also, I'm not sure whether this qualifies as a programming question since I'm asking what to do rather than how to do it, so treat it as is appropriate.
I would suggest you to accomplish your task using means Google already provides instead of writing a local script which would probably require more of maintaining and synchronization among devices.
The one possible approach would be to synchronize your local folder with Google drive and write a google script which would update your calendar based on Google Drive changes.
The example of the script which tracks modification dates of files in one's drive is here: https://ctrlq.org/code/19921-monitor-drive-files-google-script

magento custom order form

Thank you in advance for reading this. Here is the situation. I have been working on a online guitar shop using Magento CE 1.7 for several months. I greatly underestimated the cost of the site and I know that is my fault not the client who by the way is a great guy. There where many issues that took a lot of time including having to move it from a testing server to the real domain, many logo tweaks etc. I am almost done with it and really need to “stop the bleeding” so to speak however there is one feature that he really wants that I am at my whits end with.
Its a custom order form for guitar pickups. He had one on his old site that was don’t in ASP and besides not knowing ASP we are now on a Unix server.
His requirements are “the ability for someone to choose a category (ie: 7-string, Strat Replacement, Tele Replacement, etc) , and then have it be able to only show options that are applicable to what that selection. I want customers to be able to see descriptions of each pickup somewhere on this page. I also want people to be able to see what the covers/colors look like when they choose that.”
I was able to use the way back machine to at least show you guys what he wants, here is the link http://web-beta.archive.org/web/20120127233223/http://www.axepalace.com/pickup_order.asp
Here is my attempt to create it with a product with lots of options. http://axepalace.com/pickups/bare-knuckle/bkp-order-form/bare-knuckle-pickup-order-form.html
So could anyone please give me some feedback / suggestions. My sanity would really appreciate it!

How to read bank account information within an iPhone App?

I'm writing an iPhone App these days, that would need to know the current amount of money available on a bank account, the user has to enter his/her details of course. I've read about HBCI (just need to cover german banks by now), but I can't find something pointing me in the right direction (as I don't know what to search for, I'm not surprised..)
As I said, I just need to cover german banks right now, and I just want the current amount of money. How would I do that? Is there something like openHBCI, that is still maintained and available for iOS? Any hint in the right direction will be much appreciated!
Thanks!
That is a really heavy task .. you also need a database of the german banks with the access points and the hbci versions they accept.
a start point would probably be: http://openhbci.sourceforge.net/, or the successor of the library: http://www.aquamaniac.de/sites/aqbanking/index.php (german).
since it's c++ it should also work on the iphone/ipad

DNN CMS training

Whats the best way to start to train an end user in a CMS like DOTNETNUKE?
The end user will want to add edit and delete there own content. They will need to install modules and understand how everything works?
Should i create a manual? is there a way to plan some training?
any ideas?
edit: the end users are VERY I.T illiterate, they struggled to even understand the rich text editor. I need to train them on how to use the form and list module and the HTML module for editting content. They want a document of some sort, this is really old school.
PD24, for what most customers do it usually only takes 5-10 minutes of training. I usually create a couple Jing Videos which is a free screen and audio recording tool. I go through and do voice over as I create a page, edit text, add photos, add modules and record it. Then I send them the links they can reference if they ever need a reminder.
Works great! (boooo to manuals, no one reads those and they take a lot of time to make!)
& DNNcreative is probably too detailed for your client, that's a good resource for DNN implementers.
We have a variety of videos in the video library on DotNetNuke.com you could point users to those for specific topics.
We (DotNetNuke Corp) also provide custom training solutions, we could develop a custom training program for your client that fits the scope of your project and delivery requirements. If you want more info feel free to email me at training#dnncorp.com.
Have a look into www.dnncreative.com, they have some awesome tutorials for developers and users.

Less is more - auto ZIP code?

You have an international website with a form where people fill in their address.
Wouldn't it be great if people need to fill out one field less? Example:
100 visitors use the form each day
They spend 5 seconds on the ZIP code field
So 5 * 100 * 365 = 182500 seconds or 50 hours a year. And that's just for one form on one website. Multiply that by all websites that ask such information and you can see the time we can save by redesigning this.
You can get someone's ZIP code via geolocation + geocoding. But since a person's current position can easily differ from the city a person lives in, this isn't really usable.
A solution would be to get the ZIP code based on a geolocated (but changeable) country, input city and input street.
The API we could use: http://code.google.com/intl/nl/apis/maps/documentation/geocoding/ or http://developer.yahoo.com/geo/placefinder/.
Now the real question is, which problems would arise (internationalization, localization, accuracy, etc.)?
No-one else has answered this, so I'll have a go.
No, it wouldn't be great if the website filled in the zip code field based on other information. It might work for some people. It would certainly fail for enough people that you'd have to offer a zip code field as an override. Now you have a site with a higher complexity and development cost than one with a conventional zip code field, because you have to test both the automatic zip code guesser and the conventional field.
You'll have a usability hit which comes from people being confused by the two alternatives and not knowing which to choose.
You'll pay an opportunity cost, by spending design and development resources on the zip code guesser, instead of on some other feature which yields a larger usability benefit.
Here are some problems I foresee arising:
Inaccuracy: whatever mechanism you use collects correct hints (IP address location, street address and city) but generates the wrong zip code, due to errors
Remote use: Users entering a different address than their current location, e.g. using a computer at a hotel in a different country to fill out a form related to their home address, so location of IP address of computer is different from location of address in form
Localisation failure: whatever mechanism you use doesn't work with the hints of the user's address, e.g. different address conventions in a foreign country
Provider business terms: you want to use a geocoding service like Google's or Yahoo's APIs, but the license agreement for that service isn't compatible with the business model of your site. For example, they want you to pay if you are geocoding for commercial purposes, or for a site behind a firewall, or more than a certain number of transactions a day
Change in provider situation: you use an external geocoding service, and it goes out of business
etc.
Before taking on a feature like this, I'd take two steps:
User research. Can you identify users for whom the time taken to enter a zip code is a pain point? What about the one of the top three pain points? I'll bet this issue isn't even on your users radar.
Test on existing data. For whatever method you are thinking about using to guess zip code, try it on existing customer data, and see if you can accurately reproduce the zip code the customer entered. This will give you an idea of your error rate. Can you live with this error rate?
If your real question is, could someone please validate my feeling that this is a charming feature, then I probably haven't given you the answer you seek. But you asked, "what problems would arise?"