Author

Topic: Two Small PHP fixes - Will Pay .5btc (Read 1310 times)

newbie
Activity: 21
Merit: 0
September 30, 2013, 11:07:34 PM
#13
Payment confirmed.  It was a pleasure!
member
Activity: 94
Merit: 10
September 30, 2013, 10:45:33 PM
#12
both problems have been solved. ghedipunk, bitcoin sent. ndsdb send your wallet address.

thanks!
newbie
Activity: 21
Merit: 0
September 30, 2013, 06:09:39 PM
#11
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
member
Activity: 94
Merit: 10
September 30, 2013, 05:18:52 PM
#10
Still looking for fixes....

cb
member
Activity: 94
Merit: 10
September 30, 2013, 12:53:47 PM
#9
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
sr. member
Activity: 252
Merit: 250
September 30, 2013, 12:35:14 PM
#8
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 Smiley
newbie
Activity: 49
Merit: 0
September 30, 2013, 11:29:16 AM
#7
Hi,

I have just started.
member
Activity: 94
Merit: 10
September 30, 2013, 11:16:13 AM
#6
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.
full member
Activity: 238
Merit: 100
September 25, 2013, 10:26:29 AM
#5
I can fix this, no problem.  I am well versed in PHP and Javascript.
newbie
Activity: 21
Merit: 0
September 24, 2013, 07:30:30 PM
#4
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.
member
Activity: 70
Merit: 10
September 24, 2013, 04:52:14 PM
#3
I can do this. Please send me a PM Wink
newbie
Activity: 21
Merit: 0
September 24, 2013, 09:41:02 AM
#2
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?)
member
Activity: 94
Merit: 10
September 23, 2013, 11:51:51 PM
#1
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.
Jump to: