Subscription to newsletters is an essential functionality of an website. The functionality of newsletter greatly helps to stay in touch with interested visitors to the website over time.
When subscribing to a website we as visitors would expect things to be quick and simple. Ajax greatly helps keeping things simple by completing the functionality quickly without page re-load.
One of the popular Ajax Mail Subscription TYPO3 Extension was ods_ajaxmailsubscription. But unfortunately it is not maintained any longer. This brought up the opportunity to to give back some thing to the community.
A new Ajax based Mail Subscription TYPO3 Extension was developed and released to the TER. I am thankful to the sponsor of the extension for selecting us as the developer of this extension.
The extension re-used many part and functionality of the ods_ajaxmailsubscription extension and added improvements to it.
Some improvements were feature like use of proven cryptographically secure pseudo random number generator:
/** * Generate a random string, using a cryptographically secure * pseudorandom number generator * * @param int $length How many characters do we want? * @param string $keyspace A string of all possible characters * to select from * @return string */ function random_str($length, $keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') { $pieces = []; $max = mb_strlen($keyspace, '8bit') - 1; for ($i = 0; $iOther features were:
- Auto show of popup based on Bootstrap
- Disable popup based on user interest
- configurable popup disable time
- Email validations
- Action Url expiry time settings
- Multi lingual