Hello, I'm looking for a GOOD programmer who can help me fix an issue that I have in a MyBB plugin that I installed. I think that was work fine in the beginning , but after I installed some others plugins, I found some issues... maybe is an conflict, I don't know... This project is very small, and I need a programmer to fix this issue in 1 day (real time), not more... The plugin that I'm having problems with, is a Facebook Connect, where my forum visitors can register in the board using their facebook account. The plugin grabs some member info like username, profile photo, email and birthday. The issue: The plugin works fine with some members, but with others (the most), is not grabbing some info, like birthday and email: http://i.imgur.com/EFE6w.png And when not grab members birthday and email, I got this error in their member profile page: http://i.imgur.com/ar58d.png And I need to run this SQL query to fix the error: UPDATE `mybb_users` SET `birthday` = '' WHERE `birthday` LIKE '--%'; PHP: When you fix the issue, you must tell me exactly what you did, in case the author upgrade the plugin and I need to fix again. If you need more info, please PM me. Thank you!
I can start working on this right now. The issue with mktime (from the screenshot) is that it expects a number from 1 to 12 as a fourth parameter (month) and it gets a month name. I can fix that in 10 mins with access to your site
go into phpmyadmin select your database and then click sql and paste that query there. Assuming its correct it should work fine. At a glance that problem occurs if folks don't fill out their birthday. Nigel
He uses a facebook connect plugin that fills in the birthday. Something happens, the plugin doesn't save the bday right and that error appears. That query fixes the db, but he needs to fix the plugin.
It's because you pass in month as a string, not a number. And anyawy best option would be to use $date = time("what ever format you want it in", strtotime($fbdate)); //bare in mind that I don't rmemeber facebook's birth date return format.. PHP:
That's what I said "The issue with mktime (from the screenshot) is that it expects a number from 1 to 12 as a fourth parameter (month) and it gets a month name." Facebook should return something like dd/mm/yyyy
Thank you for your replies In fact, birthday issue is not the most important, but yes email issue. What you said about the date makes sense, but why works with some users and others not? Today I made a test... created an test account and registered in my forum. Same issues happened, missing email and birthday. Deleted the test user from my board and registered again... and this time, everything seems fine! This is very weird...
This could be because some users choose not to share their birth year and so on, would really need to add some debugging code to test it out properly. Maybe theres an issue elsewhere thats causing the data processing to fail thus not filling all the info? Drop me a PM if you can't work it out yourself.
@Divvy, I can help you out if Scoding didn't solve it already, just send me a pm with ur skype id or some contact data.