Category Archives: CalendarScripts

List Quizzes in WatuPRO

The shortcode watuprolist lets you output a dynamic list of quizzes in a given category or all categories. Here’s how to use it to show the quizzes in one category:

[watuprolist cat_id=X]

Replace X with the actual quiz category ID. For example [watuprolist cat_id=3].

To show the quizzes from all categories use the shortcode this way: [watuprolist cat_id=”ALL”]

Ordering the quizzes

You can order the quizzes by title or by date of creation (latest on top or first on top). To do this add the attribute “orderby” to the shortcode.

Example: [watuprolist cat_id=”ALL” orderby=”latest”] or [watuprolist cat_id=5 orderby=”title”] or [watuprolist cat_id=1 orderby=”created”]

Note that all these shortcodes will display only the published tests. A quiz which is not published inside a post or page, or is deactivated will not be shown.

Design the list

By default the shortcode returns a simple list with <p> tags for each quiz. You can however pass your own HTML design enclosed by the shortcode using some variables:

  • {{{quiz-name}}} for the quiz name.
  • {{{quiz-url}}} for the quiz URL so you can link to it (this will return just the URL and NOT a clickable link. So use “<a href” tag.
  • {{{quiz-description}}} for the quiz description (if any)
  • {{{quiz-thumbnail}}} for the quiz thumbnail if any. It will generate an “<img src” tag with class “watupro-quiz-thumbnail” in case there is an image. In case there is no image it will return nothing. Note that the image size will not be specified in the img tag. You can use the CSS class if you wish to fix the image size.
  • {{{quiz-thumbnail-url}}} will return the URL of the quiz thumbnail. This variable could be useful in case you want to use your own “<img src” tag with some extra attributes. Use it only if all your quizzes have thumbnails – otherwise you’ll get some broken images displayed.
  • {{{quiz-category}}} for the quiz category – useful if you list tests from all categories.

Here is an example how to use the shortcode with your own design. Since this example uses WatuPRO’s built-in flex class it will nicely align the quizzes into responsive floating rectangles:

<div class="watupro-flex">
[watuprolist cat_id="ALL"]
<div class="watupro-quiz-item">
<h3>{{{quiz-name}}}</h3>
<a href="{{{quiz-url}}}"><img src="{{{quiz-thumbnail-url}}}" /></a>
<div class="description">
<p>{{{quiz-description}}}</p>
<p><a href="{{{quiz-url}}}">Take quiz</a></p>
</div>
</div>
[/watuprolist]
</div>

Here’s how this looks for example on our demo site:

Open Quiz

Personality Quiz

New Open Quiz

Flashcards Quiz

Likert Survey

Of course you may use your own completely different design with CSS classes from your site theme.

Arigato PRO 3.1

Version 3.1 of the premium drip-marketing and autoresponder plugin Arigato PRO is now ready. Here’s the change log:

  • Added option to copy subscribers from one list to another. The copied subscribers will have the same signup date as in the old list.
  • The web based cron-job option will now rely on WP Cron like other plugins. This will ensure more reliable email sending to users who can’t run real cron jobs and better control.
  • Added WooCommerce integration. If WooCommerce is installed you can enable the integration from Arigato Pro Settings page. Then you’ll be able to assign products to mailing lists so when a product is purchased the customer is automatically subscribed to the mailing list. More information at https://blog.calendarscripts.info/woocommerce-integration-in-arigato-pro-3-0-1/
  • Added unsubscribe action to the WooCommerce integration. This allows you to remove users from prospect lists after they purchase target product(s).
  • A new feature allows you send the “0 days” emails at least X minutes after registration in case you want them to be sent on the same day but not immediately.
  • Added optional reply-to field for individual newsletter and autoresponder email messages. When the field is used you can set a different reply-to address for these emails.
  • Added Caldera Forms integration. If you have Caldera forms installed you will see “Integrate in Caldera form” link in your Mailing lists page, under Subscribe form column.
  • When user is automatically subscribed WP user you’ll see a hyperlinked username under the “Source” column. The link goes to edit user profile in admin.
  • Proper script src tag added to the HTML form code for subscribe forms when using reCaptcha version 2.
  • Added shortcode attribute form_name which allows you to track from which form exactly your users subscribe. For Gozaimasu visual designer users this form name will be generated and stored automatically.
  • Added hash parameter to user ID when “prepend user ID” option is used to prevent users from viewing other user’s data.
  • Reworked the HTML code for using outside of the WP site or in various pop-up services that overwrite our CSS.
  • Added optional description to newsletters for management purposes.
  • Added optional description to autoresponder email messages for management purposes.
  • Converted the character set of newsletter and emails tables to allow saving UTF-8 characters like WP Emojis.
  • You can now create optional poll on the unsubscribe page to understand the reason why users unsubscribe.
  • [Intelligence module]Fixed issue with duplicate unsubscribe link when email templates contained {{unsubscribe-url}}
  • [Gozaimasu module] You can now run A/B tests on multiple form designs. Learn more at https://blog.calendarscripts.info/running-a-b-tests-in-arigato-gozaimasu/
  • [Gozaimasu module] A new form style added: sticky bar, top or bottom. More improvements and types coming soon.
  • [Gozaimasu module] Keep the sticky bar closed for the current session if the user closes it or subscribes.
  • [Gozaimasu module] A new form style added: slide-in (left or right).
  • [Gozaimasu module] Responsive pop-ups can now be marked as exit-intent pop-ups and apear only when the visitor moves the mouse out of the window.
  • [Intelligence module] Added “prepend user ID” option to trackable links.
  • Fixed issues with serialization of custom fields.
  • Fixed bug: when auto-subscribing user from WP registration the list captcha requirements should be ignored.
  • Fixed bug with Contact Form 7 integration.

WatuPRO Bridge to BuddyPress

This free bridge connects WatuPRO to BuddyPress. It currently allows you to make members automatically join or leave groups when they complete WatuPRO tests and/or restrict access to tests based on BuddyPress groups membership.

Download version 0.4.5 (8 KB)

Once you install and activate the plugin you will see link “Bridge to BuddyPress” in your WatuPRO menu in the dashboard.

The following page will let you add or edit existing rules:

And on Edit Quiz -> User and Email Related Settings tab, if you enable “Require user login”, you will also see an option to limit quiz access based on BuddyPress group membeship:

(The option will appear only if you have some BP groups created)

Certain BP group members can access paid tests for free

This options available from version 0.4.5 and requires WatuPRO 6.2.7.5 or newer version with the Intelligence module installed. When you create a paid test you will be able to define that members of selected BuddyPress groups can access it for free: