BusProject / SalsaPress

SalsaPress connects WordPress to Salsa. Developed by the Bus Federation and Bus Project.
http://wordpress.org/extend/plugins/salsa-press/
8 stars 2 forks source link

submission problems #52

Open canajien opened 8 years ago

canajien commented 8 years ago

Hello, we are currently using your plugin on our soon to be launched new website and we are experiencing a problem

we need to record the source of a user submission due to spam laws and while we can get the form to include the page it is on as the source our problem is when the new subscriber already exists and over writes the information with the most recent, we need to make sure it keeps the original information when a user resubscribes

any ideas on how we can get salsa to keep the original source and to only fill in when the person is new?

thanks

mojowen commented 8 years ago

Hmm this is tricky - Salsa doesn't (I don't think) allow you to append new data onto a field like that. Or if they do, SalsaPress certainly isn't taking advantage of it.

What you need is some sort of version history for a Salsa supporter - it may be worth asking support whether they've got a feature like this.

You may also want to ask them about adding tags - I'm remembering there may be a way to add tags through a form to keep track of sources. In which case you could add tags to your form and then modify those tag fields with Javascript before they're submitted.

Tags are only appended - never removed - so you wouldn't be overwriting data.

canajien commented 8 years ago

Thanks for the quick reply! I will ask salsa about this to see what they can do.

canajien commented 8 years ago

we have contacted salsa, and they have helped us sort out writing to a tag instead, unfortunately it still over writes the source details even though we have told the plug in forms not to submit anything, salsa still manage to put the page the form was on in the source details, I have opened another ticket with them but was wondering if you have any ideas?

thanks in advance for anything you can offer

mojowen commented 8 years ago

This might be my fault:

$form_return .= '<input type="hidden" value="'.( strpos($_SERVER['SERVER_PROTOCOL'],'HTTP') === false ? 'https://' : 'http://' ).$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] .'" name="Source_Details" >';

I am sending the Source_Details value, no matter what. If you want to edit your SalsaPress plugin and delete or comment out this line - that'll remove it

canajien commented 8 years ago

sorry for the delay... thanks for getting back to us on this, it has been fixed and is working now, we only have one item left to solve, marking state or province in our case as being mandatory, it know that first name, last name, email, postal code should be there, but it is missing the province even though it is mandatory on our general sign up page hosted on salsa

any ideas?