301

Product support

Get help in the plugin support forum.

Categories

Adds an ad unit AdSense on page

Plugin work in 2 modes:

Features:

  • Includes AdSense
  • Auto loads AdSense JS-files
  • Pre settings for AdSense
  • Mode for run in developer demo mode

Live demo

Greetings to all PHP developers!

My absolute Free Windows PHP-server (GO language) for PHP-developers on OctoberCMS (Caddy server + PHP7 in FastCGI mode + OctoberCMS & Sqlite for storage this CMS + free admins components).

Very easy to configure and allows you to deploy your development environment in literally 1 minute. SQLite allows for small projects to transfer the source code to the production server without unnecessary gestures.

Assembly can also be used in production. Includes components:

  • My server (base on Caddy server sources)
  • PHP 7.1.1
  • 2 utilities from the winginx project (hostseditor.exe and php-config.exe)
  • HeidiSQL for MySQL, PostgreSQL, Miqrosoft SQL Server administration
  • SQLite Administrator
  • WinSCP for remote SSH
  • Sendmail dummy for debugging the sending of emails

In the plans:

  • Embedding the Mysql engine directly into the code (without installing the latter);
  • Adding additional administration tools
  • Full automatization: auto backup, auto deploy on work server, git, and more more (depending on the interest of users)

Download archive: https://caddywps.linkonoid.com/download or https://sourceforge.net/projects/caddywps

At the code are no viruses and bookmarks !!!

Installation - not required: extract archive and just run caddywps.exe!!! To go to the OctoberCMS Admin Panel select the top item of the program menu from the tray (admin/admin) or new installation.

!!!In some cases (if not), use the hostseditor.exe utility (also launched from the tray menu) to register localhost (127.0.0.1) in the hosts file. Successful work!

Demo work in 2 modes: standart component and shortcode (uses ShortcodesEngine)

Beginning of work

1. First create general default settings. Default variables:

  • Display Type - Assets type (either "banner" or "fixed")
  • Direction - Assets direction (either "left", "right", "top", "bottom")
  • AdSense Client-ID - AdSense client
  • AdSense Slot-ID - AdSense slot
  • On sandbox mode - Enables a demo mode for local purpose
  • AdSense API JavaScript - AdSense script url (https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js)

2. Work use Component "Adsense" ("SCPADSENSE" plugin, "SCP" signify "ShortCodesPlugin").

Component settings variables:

  • Display Type - Assets type (either "banner" or "fixed"), if not set is taken from default plugin settings
  • Direction - Assets direction (either "left", "right", "top", "bottom"), if not set is taken from default plugin settings
  • AdSense Client-ID - AdSense client-id, if not set is taken from default plugin settings
  • AdSense Slot-ID - AdSense slot-id, if not set is taken from default plugin settings
  • On sandbox mode - Enables a demo mode for local purpose
  • Class - specifed class for this AdSense blok adding to class="adsbygoogle ..YOUR CLASS..")

3. Work use shortcode (works only with ShortcodesEngine plugin present):

[adsense type="" direction="" client="" slot="" class=""][/adsense]

  • type - either "banner" or "fixed", if not set is taken from default plugin settings
  • direction - either "left", "right", "top", "bottom", if not set is taken from default plugin settings
  • client - AdSense client-id, if not set is taken from default plugin settings
  • slot - AdSense slot-id, if not set is taken from default plugin settings
  • class - specifed class for this AdSense blok adding to class="adsbygoogle ..YOUR CLASS..")

Use Twig for this shortcode:

{% set twig_adsense = '[adsense type="" direction="" client="" slot="" class=""][/adsense]' %} {{ twig_adsense|shortcodes }}

1.0.1

- Initialize plugin

Dec 18, 2018