Affilizz

Beschreibung

Affilizz is an official plugin for the affilizz.com affiliation platform that enables its users to connect to the API and insert seamlessly affiliate links, price tables and calls to action both on the classic and Gutenberg editors.

The plugin was released outside of the plugin directory at its launch and was added to the directory at the 1.13.0 version.

Features

  • Affiliate link configuration pop-in
  • Step-by-step configuration wizard
  • Configuration pane and debug information page
  • Inline rendering of an affiliate link or price table in the classic editor
  • Gutenberg editor block to insert affiliate links and price tables

In addition, the plugin aims to allow users to customize the way they interact with the platform and insert links in the table.

It adds a database table holding the rendered versions of the embeds, to bypass connectivity issues.

How to contribute

As of now, this plugin is not open to external pull requests. To allow users to better understand how our code is built and proposed here, the plugin’s „assets“ folders contains a „src“ folder containing unobfuscated, readable JS and SCSS code. Our team uses Mix to compile JavaScript files and uses these external libraries / modules :

If you want to apply changes to the current codebase, please configure your preprocessor or bundler to compile :

  • assets/src/scss/admin.scss to assets/dist/css/admin.css
  • assets/src/scss/public.scss to assets/dist/css/public.css
  • assets/src/js/admin.js to assets/dist/js/admin.js
  • assets/src/js/wizard.js to assets/dist/js/wizard.js
  • assets/src/js/editor.js to assets/dist/js/editor.js

Screenshots

  • Configure your affiliation content when adding it to your posts.
  • Setup your connection to Affilizz with our easy step-by-step wizard.
  • Configure options to tailor your experience to your needs.
  • Affiliation content can be added as a dynamic block to the classic editor to see results live.
  • Completely integrated for Classic or Block (Gutenberg) editor1. Insert affiliate content popin in the classic- and Gutenberg editors.

Blöcke

Dieses Plugin unterstützt 1 Block.

  • Publication

Rezensionen

17. Juli 2024
L’extension Wordpress ajoute le script indispensable au bon rendu des tableaux, des boutons, des carrousels… avec des prix dynamiques. En lien avec le compte Affilizz, elle permet d’exploiter immédiatement plus de 1000 programmes d’affiliation ouverts, avec des widgets aux prix mis à jour automatiquement.Le SEO des widgets est bien taillé. Les noms de produits sont en H3 dans les widgets. Tous les éléments : badge, description, points forts et faibles… sont indexés. Les widgets sont sans CLS. Ils se chargent en lazy loading et en moins de 30 ms.
Lies alle 1 Rezension

Mitwirkende & Entwickler

„Affilizz“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„Affilizz“ wurde in 1 Sprache übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.

Übersetze „Affilizz“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

1.15.3

  • Hotfixes a logic issue affecting the sequence of functions hooked to the „init“ method.

1.15.2

  • Hotfixes an issue with get_current_screen on specific installations causing the 1.15.1 update to crash.

1.15.1

  • Fixes :
    • Solves an issue when uninstalling / deleting the plugin from the plugins page in the back-office.
    • PHP notations for the array callbacks in hooks are now aligned with WordPress standards.
    • Hides a warning while loading admin.css and inline administration styles for Gutenberg (moved to enqueue_block_assets).
    • Changes some translation source strings.
    • Changes how the CSS is loaded.

1.15.0

  • Major release overhauling the embedding process.
  • Adds support for WordPress 6.7.2.

  • Features :

    • Added : Offer creation form directly from the WordPress administration area.
    • Added : An opening screen to choose between two modes to add affiliate content :
    • Direct creation of affiliate content embeds using a textual search or a merchant URL.
    • Allows for creation of magic links, multi- and mono-merchant buttons, price tables, card badges, (AI) deals, carousels.
    • Browsing of publications previously created in Affilizz to embed affiliate content.
    • Added : Administration options to share technical details to improve customer support.
    • For developers : Technical output in the browser console.
    • For users : Actionable in the administration pages in the back-office.
    • Added : Support for carousels / deals both in insertion and creation.
    • Added : Creation of groups of content (TinyMCE version only)
    • Added : Support for new code hooks to customize your Affilizz integration.
    • Added : Full support for (filtrable) translations.
    • Added : Qualification of found offers (new, refurbished, marketplace, used).
    • Updated : Administration pages now display more user-friendly wording, for easier interaction with the Affilizz team.
    • Improved : Administration options to fine-tune the load of the Affilizz script.
    • Improved : Support for widget widths configured in the Affilizz back-office.
    • Improved : Support for recent publications.
  • Fixes :

    • Minor bug fixes improving on the 1.14.7 version.
    • This version revamps the entire offer embedding system and will most likely tend to introduce fixes requests more than it fixes previous issues.
  • Technical :

    • Added : Developer information / feedback in the browser console for essential actions.
    • Added : New developer hooks (Reminder : These concern values that can be set before the plugin is loaded through the use of constants definition, or after the plugin is loaded by hooking to filters / actions) :
    • affilizz_cdn_rendering_style_location : Allows to embed a custom CSS (will later be used to include default, between-versions style updates from Affilizz but can be overriden).
    • affilizz_cdn_cache_time : Filters the caching time for local JS (and CSS) files, defaults to a day.
    • affilizz_api_http_timeout : Filters the timeout for external API calls (applied in the wp_remote_{get, post} calls), defaults to 5 seconds.
    • affilizz_api_url_pattern : Filters the URL identification in the creation process, to allow for additional URL patterns for specific users.
    • Added : All translations are now dealt with in a single file, PHP-side (i18n.php) to facilitate custom translations.
    • The affilizz_publications_javascript_l10n filters allows to alter these imported translations.
    • Improved : Pre-rendering of Affilizz blocks shortcodes allow for a 90% load time improvement on the edit pages (the more complex the greater the time gain).
    • Improved : Cache management for SSR / webcomponents situations.
    • Improved : Allowed tags and attributes for the KSES filtering of the administration pages and scripts renders.
    • Updated : Help URL default value.

1.14.7

  • Minor bug fixes and improvements.
  • Changes the way the JavaScript cached file is loaded to ensure shorter refreshes.
  • Adds support for WordPress 6.7.1.
  • Moves the translation logic to the „init“ hook (to align with WP 6.7 recommendations)

1.14.6

  • Minor bug fixes and improvements.
  • Adds support for the „affilizz-deal-component“ tag (for AI deals).
  • Adds a new type in the component insertion block (deal).

1.14.5

  • Minor bug fixes and improvements.
  • Fixes :
    • Corrects a CSS rule that broke Gutenberg content editor.

1.14.4

  • Features :

    • Adds textual information to the publications and publication contents retrieval endpoints.
    • Adds support for the „carousel“ publication content type.
    • Adds Affilizz „Magic Match“ webcomponent support.
    • Adds the floating button in the classic editor.
    • Changes the looks and features of the settings pages to simplify UX.
  • Fixes :

    • Fixes a performance issue.
    • Fixes a loading issue on the file assets/css/admin.css (which did not exist).
    • Fixes array format in the publications retrieval endpoints.
    • Partially fixes code to WordPress alignment standards.
    • Minor updates to analytics::all preparing for future updates.
    • Adds a verification for the existence of the cache directory.
    • Creates the cache folder while registering assets.
    • Checks and creates cache folder when updating the cache UUID.
  • Technical :

    • Bumps the supported version of WordPress to 6.6.2.
    • Bumps the required version of PHP to 8.1.
    • Updates the AFFILIZZ_EDIT_PUBLICATION_URL constant’s placeholders.
    • Adds class attributes to allowed tags and attributes in the plugin.
    • Adds translations for the button opening process.
    • Limits searches in the publications table to local- and Affilizz- ids columns.
    • Prepares the works to move to the react-based version of the plugin.

1.14.3

  • Fixes an issue when changing rendering mode.
  • Loads the modal on new posts instead of only published / saved posts.
  • Updates the regular expression used to detect Affilizz publications (now supports both SSR and webcomponent renders).
  • Fixes an issue of the custom proxy UUID disappearing.
  • Changes local caching logic to only store in database cached versions of SSR renders (not webcomponents).
  • Fixes various issues with the diverted asset file path (local cached version of the Affilizz assets).
  • Rewrites the selective assets loading logic.
  • Adds filters for multiple plugin variables :
    • affilizz_publication_transient_key
  • Adds a „live search“ feature to find publications and publication contents in larger collections.
  • Bumps Tom Select and added the dropdown_select plugin.
  • Adds a custom header to asynchronous requests to Affilizz to send the current WordPress version.

1.14.2

  • Hotfixes a side-effect from the publication of the new version provoking an error upon uninstallation.

1.14.1

  • Hotfixes SVN malfunction / misuse.

1.14.0

  • Adds a CRON check to verify the existence of a media / channel on Affilizz.
  • Updated for WordPress 6.4(.1) :
    • The label options are no longer autoloaded.
    • The front-end script is deferred on all installations.
  • Adds a better management of the cache for publications, reducing overall loading times.
  • Adds a transient to publications, reducing overall loading times while allowing for „hard-„refresh in the back-office.

1.13.1

  • Fixes the format in readme.txt.
  • Adds screenshots and assets to the plugin page.
  • Fixes an overlooked content verification in the „the_content“ hook that generated a warning on 404 pages.
  • Improves code documentation for the „wrap_affilizz_webcomponents“ function.
  • Fixes issues related to the launch on WordPress plugins :
    • Additional table being created.
    • Errors in saving large data in the database.
    • Errors in nonces while saving settings pages.
    • Errors in nonces in the installation wizard.
    • Errors in update queries due to double escaping of data.
  • Fixes bugs reported by early adopters :
    • Escaping of the publication contents options.
    • Recent publications where no longer displayed at the top of the list.
    • Allow strong and small tags in the WordPress kses allowed tags.
    • Fixes loading of the scripts on the front-end.

1.13.0

  • Adds filters for multiple plugin variables :
    • affilizz_ssr_endpoint_root_url
    • affilizz_rendering_mode
    • affilizz_publication_default_width
    • affilizz_cdn_rendering_script_location
    • affilizz_cdn_cache_time
    • affilizz_cdn_cache_root_path
    • affilizz_cdn_cache_root_url
    • affilizz_publications_database_table
    • affilizz_selective_enqueuing_regex
    • affilizz_publication_content_render
    • affilizz_has_affilizz_content
  • Solves an issue with the publication content search.
  • Re-adds support for PHP7.3.
  • Adds drag and drop features for publication contents.
  • Switches to SEMVER for plugin versioning.
  • Escaping of echoed value and sanitization of stored values has been rethought.
  • The plugin now contains source files to allow for review and extension / fork by users.
  • Asset files have been moved to a „dist“ subfolder.
  • Removes obsolete Composer dependencies in the plugin.
  • Removes PHPCS annotations.
  • Fixes some PHP comments, for developers.
  • Adds a hook to „wp_head“ to process the „affilizz-media“ meta tag.
  • Adds nonces to the wizard and settings pages.
  • Explicitely lists the allowed tags in the wp_kses calls.

1.12.0

  • Moves from the Guzzle client to the native WordPress HTTP API.
  • Resolves a visual issue in the administration pages.
  • Fixes a wrong version definition in init.php.
  • Resolves a z-index problem when two blocks are consecutive (notified by a user).
  • Updates translation files.
  • Updates the local caching mechanism to use real files and avoid rewriting after report of bugs from a user.
  • Adds option to delete the Affilizz table.
  • Moves the creation of the table to the insertion of blocks, thus being less invasive for testers.
  • Allows to load the rendering script conditionally .
  • Allows to not load the rendering script at all.
  • Allows to paste „affilizz-rendering“ tags in the classic TinyMCE editor.

1.11.0

  • Corrects situations made buggy with the WordPress-standardization of the code.
  • Adds a local caching mechanism for webcomponent scripts.
  • Adds support for card format (from Affilizz).
  • Updates translation files.
  • Adds a verification of the need to regenerate TinyMCE previews of the Affilizz blocks.

1.10.0

  • Aligns the plugin with the WordPress standards.

1.9.0

  • Fixes an error when inserting publications without publication contents.

1.8.0

  • Fixes an error when using ampersands in the publication name / publication content name.
  • Changes the location of the front-end rendering scripts.

1.7.0

  • Fixes an issue when inserting multiple consecutive blocks (beta).

1.6.0

  • Allows to include multiple consecutive blocks in both editors.
  • Introduces the error, warning, info and success messages in the native popin.
  • Adds the „no caret defined“ error in the classic editor.
  • Resolves the wizard display when the plugin has already been configured.

1.5.0

  • Adds an error summary template file and loading of the matching template when errors pop.
  • Adds the webcomponent or server-side rendering switch option.

1.4.0

  • Correction of a JSON encoding error.
  • Adds the help URL and call in the wizard.

1.3.0

  • Translations corrections and updates.
  • The pop-in is now agnostic to the editor type and triggered through a standalone script instead of the React popin component.
  • Updates on the database schema and JSON escaping method to insert in the database.
  • Removal of the default width in the server-side-rendered block calls.

1.2.0

  • Fixes the application icon and an error in the escaping of the rendered data in the database.

1.1.0

  • Hotfixes a database table creation issue.

1.0.0

  • Initial release.