If you have downloaded the SpeakOut! plugin from the site I think you were talking about in your previous post you have a seriously out of date version of SpeakOut! that I will not support.
You should only install plugins from the WordPress repository via the dashboard to ensure what you install has no malware included.
- This reply was modified 4 years, 4 months ago by 123host.
I downloaded it from WordPress.org was version 1.15, updated just now to 1.16 . I’ve created 3 test petitions, none display the ‘windowshade’. https://www.eagles.org/test-petition/
OK, sorry for the misunderstanding there.
You have made a bunch of modifications to the plugin including displaying the petition message (instead of it being hidden).
I don’t understand where you would expect to see the window shade. It appears when the icon to display the hidden petition message is clicked. See https://speakout.123host.net.au/speakout-demo/ and click the “read or edit petition” link at the top of the petition.
Great project, happy to help in any way I can.
I have deleted both the plugin and associated database tables — re-installed and it now works. Sorry for the bother. Perhaps a warning about WP Petitions (as it is a speakout.zip file they download) on your site might help others. I need to make the optional field a textarea instead of a text field — any recommendations?
Thanks for the update. What I could see was that it wasn’t loading the default style sheet, that seems to be the cause of the issue. Glad it is sorted.
Unfortunately people who go to that site likely won’t visit my site or the wordpress plugin repository and won’t see any warnings :o( I have tried to have the site taken down for misrepresenting my work, godaddy doesn’t even respond, sigh.
What sort of data are you collecting in the optional field? How much? I will have a go and see how it works if I explain how you can change the field type.
The disadvantage for you is that any plugin updates that include changes to that script will over-write your custom changes. I am interested in whether or not it works though.
It’s weird, I can’t tell if it’s a phishing site (collecting emails) or they actually tried to develop it and gave up. I have their files, including the Readme text which lists different updates than yours. There is a line in that text file: “Visit the [SpeakOut! Email Petitions website](http://wppetitions.com/) to learn more.” that looks a lot like misrepresentation to me 😉 I reported it as a phishing site to Google and Godaddy just for fun.
I still want to have the field for Comments, but the textfield isn’t usable for any good size comment—which I am expecting. Users can’t see their full comment and get frustrated. Not a problem updating the code, I can document and do the manual change each update. Thanks.
OK, it works quite easily actually.
You will need to edit the file
wp-content/plugins/speakout/includes/emailpetition.php– before you do, make a copy of it as a backup…just in case.
You need to do the following at lines 108, 137 and 198.
Where the code says
<input name="dk-speakout-custom-field" id="dk-speakout-custom-field-' . $petition->id . '" maxlength="400" type="text" placeholder="' . stripslashes( esc_html( $petition->custom_field_label ) ) . '" />
Replace the entire line with
<textarea name="dk-speakout-custom-field" id="dk-speakout-custom-field-' . $petition->id . '" maxlength="400" placeholder="' . stripslashes( esc_html( $petition->custom_field_label ) ) . '" /></textarea>
Alternatively, replace the first word
inputwith the word
</textarea>at the end of the line. Same thing, just a different way to do it.
If you need people to enter more text, you might want to also remove
- The topic ‘Read or Edit the petition not displaying’ is closed to new replies.