Jump to content

Hari KT

Members
  • Posts

    126
  • Joined

  • Last visited

Everything posted by Hari KT

  1. How to effectively work with multiple files in Vim? http://t.co/gVLEJ1iViK Read on this is awesome :-) .

  2. RT @leanpub: .@followchrisp Typed PHP https://t.co/YY02oOtsc4 is the featured book on Leanpub! https://t.co/7B8N80eFd1

  3. RT @JeremyKendall: Whoah! Looks what happening in September! http://t.co/aWaiM2iHv6 #phpc #php #security

  4. Wondering how @SonySIX can manage to show https://t.co/LZThxWGexz and https://t.co/Qj39zZtvRD same time. Or @google showing the wrong result

  5. Hey @tarang9211 , I did looked into the files you have provided. You can see already some well written help over https://processwire.com/talk/topic/126-anybody-did-user-registrationlogin/ . I assume you are looking for a ajax based user registration. So what you need to do is create a template register.php and do the post validation and return back the response. Depending on response send the user to next page. In the register.php template you can validate and create a user via the api something like $data = array( 'username' => 'someone', 'password' => 'password', 'email' => 'someone@something.com', 'fullname' => 'Some One', ); $successflag = true; $sql_check = wire('users')->find("email={$data['email']}"); $messages = array(); if (count($sql_check)) { // user already exists $messages[] = array( 'Email already exists', ); $successflag = false; } $sql_check = wire('users')->find("name={$data['username']}"); if (count($sql_check)) { // user already exists $messages[] = array( 'Username already exists', ); $successflag = false; } if ($successflag) { $newuser = new User(); $newuser->name = $data['username']; $newuser->pass = $data['password']; $newuser->email = $data['email']; $newuser->fullname = $data['fullname']; $newuser->roles->add($roles->get("guest")); $newuser->roles->add($roles->get("member")); $newuser->save(); } Hope that helps you a bit to start. Thanks
  6. Tried installing #nikki https://t.co/URiMpvc9Ps by @_odino_ . Currently it is waiting installing the npm dependencies :( .

  7. RT @Edmondfernandes: Found in Bangalore, no number plate and MP fund for Public used for VIPs ? seriously ? http://t.co/PeUyO6TZht

  8. Oh python website got a new redesign. Good to see https://t.co/D9kD1uyK8Y .

  9. Security Check For Symfony Component-Based Projects http://t.co/V5zOeqS6HC via @cordoval

  10. Awesome, and thanks for sharing.
  11. Finished hearing http://t.co/WiSvGs4DVm , thank you @pmjones for mentioning me. @thatpodcast checkout this in adr http://t.co/gwPBogZXbM

  12. RT @lukestokes: OH: Being in business is really just being a money launderer for the government.

  13. RT @cordoval: From Symfony to Gush: The Game Changer Tool for All Git Communities http://t.co/9sJEfwazTO via @cordoval

  14. RT @zendcon: Down to the final hours of talk submissions. http://t.co/K82KiiGBk9 #cfp

  15. Submitted 2 talks and 1 tutorial for @zendcon .

  16. RT @jakeasmith: When reporting a bug to an engineer, never ever ever say “it’s broken”. Instead, say “when I did X, I expected Y, but got Z…

  17. RT @_odino_: Certificationy, train for the #symfony2 certifications from your console http://t.co/DxRRvwUW3i #php #training

  18. RT @nithinbekal: Had a fantastic time at today's @keralarb meetup. You know the meetup is a success when people hang out and talk for 2 hou…

  19. RT @keralarb: python flavored #KRUG meetup happening this week http://t.co/hsVyOIFvnm #ruby #python @KeralaJS

  20. RT @nomadphp: Come hear @caseysoftware present "12 Reasons Your API Sucks" this month at #nomadphp http://t.co/ptakRphbE5

  21. RT @matthiasnoback: .@manuellemos being slowed down by tests is caused by lack of experience or by code that's difficult to test @cordoval

  22. http://t.co/Nfz4KIUe2A @amazonIN showing COD, and on checkout not allowed :( .

  23. Request for Feedback on Auth component http://t.co/NVQ8OY1Gkv

×
×
  • Create New...