dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on December 10, 2016, 03:54:55 AM

Title: Paid mod to force entry of the email address at registration twice.
Post by: Chip on December 10, 2016, 03:54:55 AM
candidate. price was $US 3.50 and may well be purchased if another member gets their email address wrong.

quite a few registrations never get processed due to a bad email address, as supplied in error by the registering new member.

mentioned by: http://www.simplemachines.org/community/index.php?topic=550281

download from: http://www.smfsimple.com/index.php/topic,4479

how to buy credits: http://www.smfsimple.com/index.php?action=buycredits


Title: Re: Paid mod to force entry of the email address at registration twice.
Post by: Esoteric Anhydride on December 13, 2016, 05:59:33 AM
And this is in PHP?

You have a test box, right?

Most of the code should already be there, and you know programming basics, right?

Seems like a great opportunity to maybe learn a lil PHP; very much like C but WAY WAY easier. No pointers for one, much friendlier variables.

I'm WAYWAY far from any sort of coding guru, and in the middle of multiple projects atm; but you could post it up and maybe someone would be willing to take a look at it?

Then agan, I guess 3.50 isnt much..
Title: Re: Paid mod to force entry of the email address at registration twice.
Post by: Chip on December 13, 2016, 01:18:55 PM
Yeah, I have all that and have written small php programs and made minor changes.

I just haven't been in the right mood to take it on but that may change ... plus $3.50 isn't a lot.

Thanks for the support - i have spent some time as an analyst/programmer but OO code is new to me.

Let me ponder this and I'll look at the code - i have some basic debugging tools.

Once I isolate the code in play at the time, I will attach it to this thread.
Title: Re: Paid mod to force entry of the email address at registration twice.
Post by: Esoteric Anhydride on December 15, 2016, 07:53:30 AM
Can you read or write any c/cpp?

It is a tough call, a year ago I'd have taken it on just for the boredom, these days there's no shortage of shit to deal with -- good shot tho, this is all good.. I feel stronger now than I have in 10 years.. :) And ya, $3.50usd is less than a pack of smokes, shit gas is less than $2.50gallon where I'm at..
Title: Re: Paid mod to force entry of the email address at registration twice.
Post by: dizzle on December 15, 2016, 11:19:52 PM
And this is in PHP?

You have a test box, right?

Most of the code should already be there, and you know programming basics, right?

Seems like a great opportunity to maybe learn a lil PHP; very much like C but WAY WAY easier. No pointers for one, much friendlier variables


My thoughts too.

To me it's not about the $3.50, at about figuring it out. My guess is that it's quite easy? The variables should already be named and a few elif (or maybe even one?) statements should fix it. I'd guess something like

if emailvar1=emailvar2, submit application, else reload page and add javapopup error box?

The java code for the error box should be incredibly simple and likely already there in a different part of the site, just rerock the code for the New personal message box that pops up when you receive a message.
Title: Re: Paid mod to force entry of the email address at registration twice.
Post by: Esoteric Anhydride on December 26, 2016, 10:57:03 AM
in just pseudo code
$madd.cnt = 1
while ($madd.cnt < 2)
   get_email_address($cnt)
$cnt++

//here you breakout cos get_email_address runs twice before its = 2, simple

? maybe post the code chipper if you haven't bought it yet
Title: Re: Paid mod to force entry of the email address at registration twice.
Post by: Chip on December 26, 2016, 02:11:22 PM
What I did instead is force another registration question to answer with a yes if they have double checked their email address.

I'm not feeling the best lately so I can't be bothered with code changes at the moment.
SimplePortal 2.3.6 © 2008-2014, SimplePortal