Wonky Submit & Print-O-Matic Button

This is a Dr. Frankenstein experiment with Contact Form 7’s Submit button and the Print-O-Matic Print button. In theory, when submitting this form, the form should also also force-launch the print dialogue. Years of working in UI tells us NOT do this, but hey, people still have music playing on page load, so what do we know.

[[contact-form-7 id="1018" title="SubPrint"/]]

To cross-breed the Submit button with the print-o-matic print trigger, use the roll-your-own method as follows:

  1. create a cf7 submit/print button by assigning it a unique ID (in this case subprint) and a class of printomatic.
    [submit id:subprint class:printomatic]

  2. manually insert a hidden input that has the ID of “target-” and a value of the target you wish to print.
    <input type="hidden" id="target-subprint" value=".wpcf7-form" />

  3. be sure the ‘Shortcode Loads Scripts’ checkbox is NOT checked in the plugins options page.

Update: This is no longer supported in the current version of print-o-matic. Here is how to implement this solution with print-pro-matic.

Collapse-O-Matic Force Collapse Test

Wild Billd
Gun Slinger
James Butler Hickok (May 27, 1837 – August 2, 1876), better known as “Wild Bill” Hickok, was a folk character of the American Old West. Although some of his exploits as reported at the time were fictionalized, his skills as a gunfighter and gambler, along with his reputation as a lawman, provided the basis for his enduring fame. Born and raised on a farm in rural Illinois, Hickok went west at age 18 as a fugitive from justice, first working as a stagecoach driver, then as a lawman in the frontier territories of Kansas and Nebraska. He fought (and spied) for the Union Army during the American Civil War, and gained publicity after the war as a scout, marksman, actor, and professional gambler. Hickok was involved in several notable shootouts. He was shot from behind and killed while playing poker in a saloon in Deadwood, Dakota Territory (now South Dakota) by an unsuccessful gambler. The card hand he held at the time of his death has come to be known today as poker’s “Dead Man’s Hand”.
wild bill
ames Butler Hickok (May 27, 1837 – August 2, 1876), better known as “Wild Bill” Hickok, was a folk character of the American Old West. Although some of his exploits as reported at the time were fictionalized, his skills as a gunfighter and gambler, along with his reputation as a lawman, provided the basis for his enduring fame. Born and raised on a farm in rural Illinois, Hickok went west at age 18 as a fugitive from justice, first working as a stagecoach driver, then as a lawman in the frontier territories of Kansas and Nebraska. He fought (and spied) for the Union Army during the American Civil War, and gained publicity after the war as a scout, marksman, actor, and professional gambler. Hickok was involved in several notable shootouts. He was shot from behind and killed while playing poker in a saloon in Deadwood, Dakota Territory (now South Dakota) by an unsuccessful gambler. The card hand he held at the time of his death has come to be known today as poker’s “Dead Man’s Hand”.

expand all

Collapse-Pro-Matic Global Cookies

As of Collapse-Pro-Matic version 1.0.4 there is a new Global Cookie setting based on this thread by Grant Pax.

Setup

  1. Provide a unique name under Dashboard > Settings > Collapse-Pro-Matic > Global Cookie Name. For this example we will use monkeybucket
  2. provide ONE collapse element that will be used to set the global cookie value. This master trigger element must have the following attributes:
    • cookiename="your_global_cookie_name"
    • trigclass="setall"

    Example:
    [expand title="Expand All" swaptitle="Collapse All" cookiename="monkeybucket" trigclass="setall"/]

Demo

Expand All
expand 1
this is the first expand item
expand 2
this is the second expand item
expand 3
this is the third expand item
expand 4
this is the forth expand item

Hover-O-Matic 0.4 Test

Roll-Your-Own Method:

Trigger

1. has class: collapseomatic
2. has an id, example: ape

Target

1. has class: collapseomatic_content
2. has id in the format target-trigger_id, example: target-ape

Internal Close Triger

1. has class: colomat-internalclose
2. has id in the format bot-trigger_id, example: bot-ape

Live Demo

ape mule

this is some lovely hidden ape content
internal close
this is some lovely hidden mule content. And here is a link to close the content.