Blocks

Tools Blocks

Address Field
Type: html
Categories: Form Tools
Plugins related: wpcf7
Requires license*

"Address Field" inserts an autocomplete address field integrated to Google Places.

Address Field
Field type Required field
Name
Id attribute
Class attribute
Google api key
If you have no an api key, visit the Google Console, and generate one to your website's domain.
Restrict the address to the countries
It is possible select a maximum of 5 countries.
* The "Requires license" blocks are accessible, only if the plugin has been registered and the license is valid.
Autorefresh page
Type: js
Categories: Text Tools
Plugins related: Generic
Free*

This will insert a block to autorefresh the page every a specified number of seconds. This is useful for page publishing content to cover real time events and in some cases to increase the view of ads into a page.

Reload every the following number of seconds:

* The "Free" blocks are accessible from the plugin, even if it has not been registered, or the license has expired.
Disable Right-click on the Page
Type: js
Categories: Text Tools
Plugins related: Generic
Free*

This will insert a script block on the page to disable the mouse right-click menu. This helps to partially prevent users copying content from the page. Note however that doing this isn't user friendly.
* The "Free" blocks are accessible from the plugin, even if it has not been registered, or the license has expired.
Disable Text Selection Hightlighting
Type: js
Categories: Text Tools
Plugins related: Generic
Free*

This will insert a style block on the page to disable the text selection hightlighting. This way helps to prevent the users copying text/content from the page. Note however that doing this isn't user friendly.
* The "Free" blocks are accessible from the plugin, even if it has not been registered, or the license has expired.
Display current date
Type: js
Categories: Text Tools
Plugins related: Generic
Free*

This will insert a script to display the current date on the page.
* The "Free" blocks are accessible from the plugin, even if it has not been registered, or the license has expired.
Javascript Unserializer for serialized PHP Objects
Type: js
Categories: Tools
Plugins related: Generic
Requires license*

The "Javascript Unserializer" inserts a javascript block with the unserialize routine:

unserialize(phptext);

  • phptext: Serialized PHP Object.

Examples:

unserialize('O:8:"stdClass":2:{s:5:"attr1";s:15:"First Attribute";s:5:"attr2";s:16:"Second Attribute";}');

Output would be a javascript object with the structure:

{attr1:"First Attribute", attr2:"Second Attribute"}

* The "Requires license" blocks are accessible, only if the plugin has been registered and the license is valid.
Lorem Ipsum Generator
Type: html
Categories: Text Tools
Plugins related: Generic
Free*

"Lorem Ipsum Generator" inserts a DIV tag with a random text. The text length is defined through the "Enter the number of words" field, 24 words by default.

Enter the number of words:

Insert as many "Lorem ipsum" blocks of texts as you want.

Example:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam ullamcorper sem purus, a convallis elit placerat a. Mauris maximus tristique sapien at pulvinar. In eu arcu ac tortor vehicula malesuada. Proin non pharetra libero. Sed vitae nisl volutpat, imperdiet augue vitae, elementum dolor.

* The "Free" blocks are accessible from the plugin, even if it has not been registered, or the license has expired.
Print Form
Type: js
Categories: Form Tools
Plugins related: Generic
Free*

"Print Form" inserts a javascript block with the printForm routine for printing the form only without other page's area:

printForm(selector);

  • selector: Accepts any valid jQuery selector. You should as specific as possible defining the form's selector

Example:

printForm("#cp_calculatedfieldsf_pform_1");

* The "Free" blocks are accessible from the plugin, even if it has not been registered, or the license has expired.
Read CSV File
Type: js
Categories: Form Tools
Plugins related: Generic
Requires license*

"Read CSV File" inserts a javascript block with the readcsv routine for reading an online CSV file and generate a javascript array to be used in the form:

readcsv(args);

  • args:

    javascript object with the following properties:

    • url: url to the online CSV file.
    • headline: boolean (true or false), indicates if the first row in the CSV file is a headline row or not (false by default)
    • delimiter: symbol to delimit the row's columns (the comma symbol "," by default)
    • quotation: symbol for closing the textual columns (the double-quote symbol (") by default)
    • filter: plain object for filtering the CSV rows. For example, assuming that the file includes the columns names: column_a, column_b, and column_c, and you want get the rows whose column_a has the value 3, and column_b the value "qwerty", the filter object would be: {'column_a':3,'column_b':'qwerty'}
    • callback: javascript function that would be called after read the CSV file. The callback receives as parameter an javascrip array with the CSV rows.

      Every row would be a columns array, or an object (if the headline property was passed as true).

      Callbacks distributed with the block:

      populate_dropdown(selector, args): Populates a dropdown field with the CSV data. First parameter (selector), a valid jQuery selector to identify the dropdown field. Second parameter (args), plain object with two properties, "value": the column's name to use as values of the field's options, "text": the column's name to use for the texts of the field's options.

      Example:

      readcsv({'url':'http://www.websitedomain.com/file.csv', 'callback':populate_dropdown('[name="field_name"]', {'value':'column_a', 'text':'column_b'})});

      populate_input(selector, args): Populates an input (or textarea) field with the CSV data. First parameter (selector), a valid jQuery selector to identify the dropdown field. Second parameter (args), is a plain object with the property, "value": the column's name for the field's value.

      Example:

      readcsv({'url':'http://www.websitedomain.com/file.csv', 'callback':populate_input('[name="field_name"]', {'value':'column_a'})});

      Implementing your own callbacks:

      readcsv({'url':'http://www.websitedomain.com/file.csv', 'filter':{'column_a':3,'column_b':'qwerty'}, 'callback':function(csv_data){/* Your code Here*/}});

* The "Requires license" blocks are accessible, only if the plugin has been registered and the license is valid.
Text Length
Type: js
Categories: Text Tools
Plugins related: Generic
Free*

"Text Length" inserts a javascript block with the textLength routine:

textLength(text,boolean);

  • text: The text to determine its length.
  • boolean: true or false (1 or 0) for considering the blank characters \s, \t, \r, \n as part of the text or not. 0 by default.

Examples:

textLength("Lorem ipsum");

Output: 10

textLength("Lorem ipsum",1);

Output: 11

* The "Free" blocks are accessible from the plugin, even if it has not been registered, or the license has expired.
Tooltips
Type: html
Categories: Form Tools
Plugins related: wpcf7
Free*

"Tooltips" allows associate a tooltip to the form's elements.

Tooltip

Message to display:

* The "Free" blocks are accessible from the plugin, even if it has not been registered, or the license has expired.
Words Counter
Type: js
Categories: Text Tools
Plugins related: Generic
Requires license*

"Words Counter" inserts a javascript block with the wordsCounter routine:

wordsCounter(text);

  • text: Text to check.

Example:

wordsCounter("Lorem ipsum");

Output: 2

* The "Requires license" blocks are accessible, only if the plugin has been registered and the license is valid.
View All