LWS Affiliation

Description

This plugin, created by LWS, lets you add banners and widgets, such as a domain name availability search or a table of our hosting offers, to your website, and earn commissions with the LWS affiliate program.

Key Features

  • Gutenberg blocks: “LWS banner”, “LWS domain name search” and “LWS hosting offers”, usable in posts, pages, widget areas and block theme templates.
  • Classic editor: the “LWS Affiliation” button inserts a [lws_affiliation] shortcode, also usable with page builders.
  • Automatic placements: display a banner in your posts (before, after or after a given paragraph), in a sticky bar at the bottom of the page or on the sides of wide screens.
  • Customizable domain name search: extension, button color and text, language.
  • Statistics: follow your clicks, sales and commissions from your WordPress dashboard.
  • Lightweight: nothing is loaded on pages without a banner, banners are lazy-loaded and affiliate links are marked as sponsored.

You will need a LWS affiliate account to use it.

External services

This plugin connects to the LWS affiliate platform (affiliation.lws-hosting.com), operated by LWS, to provide its features.

  • Login: when you connect your account from the plugin settings, your affiliate ID and password are sent to the platform, which returns an API key. The password is not stored on your site.
  • Banners, statistics and sales: the API key is sent to the platform to get the list of your banners and widgets (when you connect your account, once a day afterwards, and when you refresh the list) and your statistics and last sales (when you open the corresponding tabs of the settings page, at most every 15 minutes).
  • Display on your site: the banner images and the widgets (iframes) are loaded by your visitors’ browsers from affiliation.lws-hosting.com. The platform then receives their IP address and browser information, and records the clicks on the banners to attribute the orders to your affiliate account.

LWS terms and conditions: https://www.lws.fr/cgv-lws.php
LWS legal notice and personal data (contact: rgpd@lws.fr): https://www.lws.fr/a_propos_infos.php

Screenshots

Blocks

This plugin provides 1 block.

  • LWS Affiliation Banner or widget from the LWS affiliate program.

Installation

Follow the instructions on the configuration page to learn how to add your first banner or widget.

There are 3 different ways to install LWS Affiliation (as with any other wordpress.org plugin).

Using the WordPress dashboard

  1. In WordPress, in the Extensions menu, click on “Add”
  2. Search for the ‘LWS Affiliation’ plugin
  3. Click ‘Install Now’
  4. Activate the plugin
  5. Log in to your LWS Affiliate account to use it

Uploading in WordPress Dashboard

  1. Download the latest version of this plugin
  2. In WordPress, in the Extensions menu, click on “Add”
  3. Click on the top button “Upload an extension”
  4. Select the zip file from your computer (zip file from step 1.)
  5. Click ‘Install Now’
  6. Activate the plugin
  7. Log in to your LWS Affiliate account to use it

Using FTP

  1. Download the latest version of this plugin
  2. Unzip the zip file. This extracts the files from the compressed folder on your computer
  3. Upload the LWS affiliation folder to the /wp-content/plugins/ directory in your web space
  4. Activate the plugin in WordPress
  5. Log in to your LWS Affiliate account to use it

FAQ

How to configure the plugin?

In your WordPress administration, click on “LWS Affiliation” in the side menu, then enter your affiliate ID and your affiliate password. Create your affiliate account if you do not have one yet.

How to add a banner or a widget with Gutenberg?

Add one of the “LWS banner”, “LWS domain name search” or “LWS hosting offers” blocks, then choose the banner or the widget in the list. The options of the widgets (extension, button, language…) are in the block settings sidebar.

And with the classic editor?

Click on the “LWS Affiliation” button of the editor toolbar and choose your banner or widget: a [lws_affiliation] shortcode is inserted. In the block editor, this shortcode can be converted into a block.

How to display banners automatically?

Open the “Placements” tab of the plugin settings. You can display a banner or a widget in the content of your posts, a sticky banner at the bottom of the page, and banners on the sides of wide screens. All placements are disabled by default.

Can I insert several widgets on the same page?

Yes. Since version 3.0, several widgets, even of the same type, can be displayed on the same page.

What happens to the banners inserted with previous versions?

They keep working: nothing changes for the content you already published.

Can I self-affiliate?

No. Your customers will benefit from your personalized promo code and you will earn a commission on the sales generated on LWS.fr. As a user of our WordPress plugins, you can use the coupon code WPEXT15 at checkout to get an additional 15% discount.

How does affiliation work?

  • Publish a LWS banner or widget on your site.
  • Each visitor clicking on your banner and then ordering a web hosting package or another LWS service is counted.
  • Each validated order gives you a commission (provided that the customer does not request a refund), that you can follow from your affiliate account.

Where can I get help?

See our online help. A free support is also available 7 days a week when you have ordered a service from LWS.

Reviews

July 6, 2023
<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">LWS Affiliation est un bon plugin qui marche très bien avec Wordpress. Je l'ai déjà utilisé et j'en profite pour obtenir des remises sur mes achats sur LWS.</font></font>
Read all 2 reviews

Contributors & Developers

“LWS Affiliation” is open source software. The following people have contributed to this plugin.

Contributors

Translate “LWS Affiliation” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

3.0.0

  • New: Gutenberg blocks “LWS banner”, “LWS domain name search” and “LWS hosting offers”, also usable in widget areas and block theme templates
  • New: [lws_affiliation] shortcode; the classic editor button now inserts this shortcode
  • New: automatic placements (in the content, sticky bar at the bottom of the page, side banners on wide screens)
  • New: several widgets, even of the same type, can be displayed on the same page
  • New: affiliate links are marked as sponsored (rel=”sponsored”)
  • New: when an ad blocker hides a banner, its promo code caption (and the sticky bar) is hidden too, also for banners inserted with previous versions
  • Fixed: banners inserted with previous versions are now centered above their promo code caption
  • Security: banners and widgets are rendered by the plugin from validated identifiers; no script or HTML from the content is executed any more, and the affiliate ID always comes from the connected account
  • Security: widgets are displayed in an iframe served by LWS; the plugin no longer loads an old version of jQuery on your site
  • Performance: the list of banners is refreshed once a day in the background, no network request when opening the editor
  • Performance: the plugin assets are only loaded on pages displaying a banner or a widget
  • Changed: the Poppins font of the settings page is now included in the plugin (no more request to Google Fonts)
  • Changed: requires WordPress 6.6 and PHP 7.4

2.4.0

  • Security: the affiliate ID and password are now sent in the body of a POST request, never in the URL
  • Security: the API key is sent in a request header, never in the URL
  • Security: the login and logout forms are now protected against cross-site request forgery (CSRF)
  • Security: the review notice and its actions are restricted to administrators
  • Security: the server path is no longer exposed to the editor scripts
  • Performance: the plugin stylesheet is no longer loaded on every page of the site, only where a legacy banner caption is displayed
  • Performance: no network request when opening the editor; statistics and last sales are cached for 15 minutes
  • Changed: the old front-end stylesheet contained generic rules (body, table, select…) that could alter your theme; they have been removed
  • Fixed: login errors were not displayed
  • Fixed: passwords containing spaces or special characters could be altered before being sent
  • Fixed: the banner window stayed empty when a persistent object cache (Redis, Memcached) was active
  • Fixed: PHP warnings on the statistics and last sales tabs when the affiliate platform could not be reached
  • Fixed: the “configure your account” notice pointed to a wrong URL and was shown to every user on every admin page
  • Fixed: the review reminder never expired
  • Fixed: a network error while logging in could cause a fatal error
  • Removed: obsolete allow_url_fopen and iThemes Security checks

2.3.6

  • Updated translations and the “Our plugins” tab

2.3.5

  • Added capability checks on AJAX actions

2.3.4

  • Use the WordPress HTTP API instead of file_get_contents
  • Improved input sanitization and output escaping

2.3.3

  • Hide other admin notices on the plugin settings page

2.3.2

  • Fixed issue with CSS which could cause it to apply to unrelated elements

2.3

  • Changed how data are loaded (now with AJAX)
  • Fixed security issue
  • Changed translations

2.2.6

  • Minor CSS update

2.2.5

  • Bug corrected for “Stats” page where data would not load properly
  • Can be asked for reviews

2.2

  • Preventive security fix
  • New plugin added to “Our plugins”

2.1

  • Complete rework
  • New design
  • New “Our plugins” page

2.0.1

Relase Date – 16 Sept, 2022
* Minor bug fixes
* Now with a banner on the installation page

2.0

Release Date – 23 August, 2022
* Updated design of the widget
* Updated design of the pages
* Now display coupons on the banners and widgets
* New tabs in the configuration page to follow the stats and performances of your banners and widgets
* Minors changes
* Bugs fixes

1.1

Release Date – 20 April, 2022

  • Corrected the translation
  • Corrected some sentences
  • Updated function calls to a more recent version
  • Added more instructions tu use our plugin

1.0

Release Date – 2nd October, 2015

  • Add all banners.
  • Add table widget.
  • Update frame to select affiliate element to insert on the content

0.1

Release Date – 23th July, 2015

  • Add domain name search Widget.