Bitcoin Forum

Economy => Services => Topic started by: cosmicboy on September 24, 2013, 04:51:51 AM



Title: Two Small PHP fixes - Will Pay .5btc
Post by: cosmicboy on September 24, 2013, 04:51:51 AM
I recently installled the wordpress plugin wp2pgpmail.com   http://wp2pgpmail.com/
It is a pretty simple plugin and mostly consists of one php file: http://pastebin.com/01sLdyxJ

I need two small modifications:

1) The email "from" field arrives as "encrypted data". The email field itself decrypts within the message body but the "from" field of the email is encrypted so I can't just hit reply. I have to copy and paste the email from the message body. I would like the "from" field of the email to not be encrypted

2) I would like to strip out all of the form field names from emails so just the data comes in.

Will pay .25 bitcoin for each task. Do one or both of them. If you need the other files let me know but theres not much...just some javascript that does the encryption. This file does all the emailing work.


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: ghedipunk on September 24, 2013, 02:41:02 PM
Both parts require access to the JS file, since the PHP never sees the unencrypted values.

Also, the "free" version on the wp2pgpmail site is not the same version that was posted to Pastebin.  Your version is 2.4.1, and the free version is 1.4.  (This probably doesn't matter, but it does server as a nice FYI, no?)


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: DoRob on September 24, 2013, 09:52:14 PM
I can do this. Please send me a PM ;)


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: ghedipunk on September 25, 2013, 12:30:30 AM
The best thing for cosmicboy to do in this case is to post the JS file publicly, rather than to PM people.

That way, the person who fixes it first gets the bounty, and cosmicboy doesn't have to wait around for a slow developer who he put his (misguided) faith in.


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: Sothh on September 25, 2013, 03:26:29 PM
I can fix this, no problem.  I am well versed in PHP and Javascript.


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: cosmicboy on September 30, 2013, 04:16:13 PM
I'm going to take ghedipunk's advice and just post everything up needed to do the job.

Here is a link to the whole plugin I need modified: http://www.filedropper.com/2012-06-25wp2pgpmail-pro
This will install in any wordpress.

I need you to:

1) Remove all form names in the output email. Right now I get:

name: Joe Smith
address: 18 Nickel Lane
City-state-zip: Nowhere, NJ, 37362

I would like:
Joe Smith
18 Nickel Lane
Nowhere, NJ 37362

2) I would like the "from" field in the email to not be encrypted, but to show their email address

 I will pay .5btc for doing this (or .25btc if you can only do one). You can PM me here. Show me a working version on your site and I will pay you and you can send me the files after. I will post up here when the task has been completed. If you are actively working on it with an ETA let me know and I can post that here as well.


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: ndsdb on September 30, 2013, 04:29:16 PM
Hi,

I have just started.


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: BitVegas on September 30, 2013, 05:35:14 PM
This should solve issue #2:
http://pastebin.com/hzYkVqwE

replace wp2pgpmail-validate.js with that code.

Changes (Incase you want to know):

Line 32:
Code:
message += label + " : " + champ.value + "\r\n";
To:
message += champ.value + "\r\n";

Line 40:
Code:
message += "\r\n[IP : " + form._ip.value + "]\r\n";
To:
message += "\r\n[" + form._ip.value + "]\r\n";

Payment to: 1Pqd5pR2V53y59hhYyoRkusQrzC1W31V5g

Upon payment I can look into the other issue :)


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: cosmicboy on September 30, 2013, 05:53:47 PM
Hey bitvegas. Fix did not work for me. Did you test it?  Email is still encrypted and it had the negative effect of sending some of the other form fields as "encrypted data"

cb


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: cosmicboy on September 30, 2013, 10:18:52 PM
Still looking for fixes....

cb


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: ghedipunk on September 30, 2013, 11:09:39 PM
http://pastebin.com/v602h3Ha

wp2pgmail-validate.js

Lines 35 and 36 need to be edited by you, depending on how your form is set up.

These are from the "name" properties of the input tags.  An easy way to find this is, using Chrome, right click the text field, then select "Inspect element".  This will bring up a parsed source code view, and will highlight the line with the input tag.  Look for name="wp2pgpmail-asdf-1234".

The order does not matter, and if there are any other fields that need to be kept from becoming part of the encrypted message, add the names there as well.

Also, I'm not sure if you've done this already, but to have the "reply-to" in the email be set correctly so that you can just hit your Reply button, edit your form, then under Form Settings, and under Email, set the "User's Name" field to the name field in your form, and the "User's Email" field as well.  Make sure that both fields are set to "required" and that the email field has validation set to "Email".

I believe that this covers everything.  If not, please feel free to pester me again.

166XA8Kq3Dv4DVS6vnvzRotpmJovycWd7w


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: cosmicboy on October 01, 2013, 03:45:33 AM
both problems have been solved. ghedipunk, bitcoin sent. ndsdb send your wallet address.

thanks!


Title: Re: Two Small PHP fixes - Will Pay .5btc
Post by: ghedipunk on October 01, 2013, 04:07:34 AM
Payment confirmed.  It was a pleasure!