Project

General

Profile

Actions

Feature #12065

closed

Tinyletter in sidebar widget

Added by Colin McDonald over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
-
Category name:
WordPress Plugins
Target version:
Start date:
2019-11-13
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

As a final step in the newsletter plugin transition covered more in #11878 and #11647, I'm working with the CPCP (https://cpcp.commons.gc.cuny.edu/) to put a signup box in the sidebar of their homepage linked to their new Tinyletter account. The code provided by Tinyletter is below. When I try to add it as a Custom HTML widget in Wordpress, I'm told that the <form> and <input> tags aren't allowed. Perhaps we can do a workaround or simple custom widget on this? I believe there's already some code out there from others, like here: https://github.com/frebro/wp-tinyletter-widget

&lt;form style="border:1px solid #ccc;padding:3px;text-align:center;" action="https://tinyletter.com/cpcp" method="post" target="popupwindow" onsubmit="window.open('https://tinyletter.com/cpcp', 'popupwindow', 'scrollbars=yes,width=800,height=600');return true"&gt;&lt;p&gt;&lt;label for="tlemail"&gt;Enter your email address&lt;/label&gt;&lt;/p&gt;&lt;p&gt;&lt;input type="text" style="width:140px" name="email" id="tlemail" /&gt;&lt;/p&gt;&lt;input type="hidden" value="1" name="embed"/&gt;&lt;input type="submit" value="Subscribe" /&gt;&lt;p&gt;&lt;a href="https://tinyletter.com" target="_blank"&gt;powered by TinyLetter&lt;/a&gt;&lt;/p&gt;&lt;/form&gt;
Actions #1

Updated by Boone Gorges over 4 years ago

  • Category name set to WordPress Plugins
  • Status changed from New to Testing Required
  • Target version set to 1.16

The plugin you linked looks good to me, Colin. I've added it as part of the 1.16 release in https://github.com/cuny-academic-commons/cac/commit/a2c2e47aa0531a819ebd4986ebd715b25680402d and pulled to cdev. Could you give it a test on a cdev site, to ensure it works the way you'd expect?

Actions #2

Updated by Colin McDonald over 4 years ago

Hi Boone, sorry about my delay on this. I tested on the dev site and all seems right - I was able to activate the plugin, add the signup form to a test site sidebar, and then subscribe via that sidebar widget in Tinyletter. I think we're good to proceed, and when it's released I'll close things up with the CPCP and their site sidebar. Thanks!

Actions #3

Updated by Boone Gorges over 4 years ago

  • Status changed from Testing Required to Resolved
Actions

Also available in: Atom PDF