\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{tanay} \pdfinfo{ /Title (wisp-membership-plugin.pdf) /Creator (Cheatography) /Author (tanay) /Subject (WisP - Membership Plugin Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{7303A3} \definecolor{LightBackground}{HTML}{F6EFF9} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{WisP - Membership Plugin Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{tanay} via \textcolor{DarkBackground}{\uline{cheatography.com/20584/cs/3319/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}tanay \\ \uline{cheatography.com/tanay} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 14th February, 2015.\\ Updated 13th May, 2016.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Step 1. Wordpress Installation}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{1. Log into your Infusionsoft app, and create a Custom Field (Text) called WisP \newline % Row Count 2 (+ 2) 2. Download the plugin. \newline % Row Count 3 (+ 1) 3. Install the plugin, navigate to WisP on your WordPress left hand sidebar. \newline % Row Count 5 (+ 2) 4. Plugin your details: Email, License Key, Infusionsoft App, and API key. \newline % Row Count 7 (+ 2) 5. From the custom field dropdown box, select "WisP" as your custom field.% Row Count 9 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Keep default settings, and save your HTTP POST Key handy for the next step.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Step 2. Infusionsoft Campaign}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{1. Log into your IS app. \newline % Row Count 1 (+ 1) 2. Create a Tag "Grant access to Website". \newline % Row Count 2 (+ 1) 3. Head to Campaign Builder. \newline % Row Count 3 (+ 1) 4. Create New Campaign. \newline % Row Count 4 (+ 1) 5. Drag in a Goal "Applies a Tag". Keep the trigger as the new Tag you created. \newline % Row Count 6 (+ 2) 6. Drag in a new Sequence and link it to the first goal. \newline % Row Count 8 (+ 2) 7. In the sequence, drag in an HTTP POST. \newline % Row Count 9 (+ 1) 8. Configure the HTTP POST as in this \{\{link="http://www.informationstreet.com/wp-content/uploads/2014/08/Screenshot-2014-11-18-13.52.30.png"\}\}image\{\{/link\}\} \newline % Row Count 13 (+ 4) 9. All fields are CASE SENSITIVE, create them as is!! This is the most likely place for all errors. \newline % Row Count 15 (+ 2) 10. Create another sequence and configure your welcome email to your users. Make sure you include the following fields in the email - \newline % Row Count 18 (+ 3) Username: \textasciitilde{}Contact.Email\textasciitilde{} \newline % Row Count 19 (+ 1) Password: \textasciitilde{}Contact.\_WisP\textasciitilde{} \newline % Row Count 20 (+ 1) Here's an image for \{\{link="http://www.informationstreet.com/wp-content/uploads/2014/08/Screenshot-2014-11-18-14.07.13.png"\}\}reference\{\{/link\}\} \newline % Row Count 23 (+ 3) 11. Here's what your Campaign should look like \{\{link="http://www.informationstreet.com/wp-content/uploads/2014/08/Screenshot-2014-11-18-14.01.29.png"\}\} now.\{\{/link\}\} \newline % Row Count 27 (+ 4) 12. Head in, mark all items Ready, and Publish. All those should become Dark Green. \newline % Row Count 29 (+ 2) 13. You're done with Infusionsoft setup!% Row Count 30 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Just so that it becomes easier to copy paste, here are all the HTTP POST parameters - please watch your case! \newline ContactId \newline accesskey \newline Email \newline ResetPassword \newline PassLength} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Step 3. Setup an access locked page}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{1. Log into your Infusionsoft account. \newline % Row Count 1 (+ 1) 2. Create your membership tags (for this example, let's call them Silver and Gold) \newline % Row Count 3 (+ 2) 3. Note down the Tag IDs. For now, let's assume they're \newline % Row Count 5 (+ 2) Silver = 101 \newline % Row Count 6 (+ 1) Gold = 102 \newline % Row Count 7 (+ 1) 4. Create a new Page.% Row Count 8 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Step 4. Configuring Access}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{On this new page, copy paste the following code:}}% Row Count 2 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Code}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{[}WisP level="not\_logged\_in"{]} Hello there. This content is exclusively for our customers. \newline % Row Count 2 (+ 2) To continue, please login using the form below. \newline % Row Count 3 (+ 1) {[}loginform{]} \newline % Row Count 4 (+ 1) {[}/WisP{]} \newline % Row Count 5 (+ 1) {[}WisP level="logged\_in"{]} \newline % Row Count 6 (+ 1) Hi {[}WisP contactfield="FirstName"{]}! \newline % Row Count 7 (+ 1) Thanks for logging in. \newline % Row Count 8 (+ 1) {[}/WisP{]} \newline % Row Count 9 (+ 1) {[}WisP tag="101"{]} \newline % Row Count 10 (+ 1) You've purchased the Silver level membership. This text is visible to all Silver Tag users. \newline % Row Count 12 (+ 2) {[}/WisP{]} \newline % Row Count 13 (+ 1) {[}WisP tag="102"{]} \newline % Row Count 14 (+ 1) You've purchased the Gold level membership. This text is visible to all Gold Tag users. \newline % Row Count 16 (+ 2) {[}/WisP{]}% Row Count 17 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Commonly Used Shortcodes}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{[}WisP level="logged\_in"{]} Text visible to logged in members {[}/WisP{]}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{[}WisP level="not\_logged\_in"{]} Text visible to not logged in members {[}/WisP{]}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{[}loginform{]} \textless{}- Generates a WisP Login Form} \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{[}WisP tag="123"{]} Only IS users with Tag ID 123 will be able to see this text. {[}/WisP{]}} \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{[}WisP notag="123"{]} IS Users without Tag 123 will see this. {[}/WisP{]}} \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{[}WisP logouttext="Log Out" redirect="http://disney.com"{]} \textless{}- Logs the user out and sends them to specified URL.} \tn % Row Count 12 (+ 3) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{[}WisP posttype="postid" postvalue="123"{]} \textless{}- Embeds PostID 123 inside this page.} \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{[}WisP GoalAction="CALL-NAME" ButtonText="Start Goal"{]} \textless{}- For the logged in contact, will kickstart the Infusionsoft Campaign called "CALL-NAME"} \tn % Row Count 17 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Multi Tags}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{A Test Case On Multi Tags \newline % Row Count 1 (+ 1) Suppose our Infusionsoft application has 4 tags, A, B, X, Y \newline % Row Count 3 (+ 2) And there are 2 users, User1, User2. \newline % Row Count 4 (+ 1) User1 : Tags A, B \newline % Row Count 5 (+ 1) User2: Tags X, Y \newline % Row Count 6 (+ 1) {[}WisP multi\_tag="A,B" multi\_notag="X,Y"{]} User 1 will be able to see this {[}/WisP{]} \newline % Row Count 8 (+ 2) {[}WisP multi\_tag="X, Y" multi\_notag="A, B"{]} User 2 will be able to see this {[}/WisP{]} \newline % Row Count 10 (+ 2) {[}WisP multi\_tag="A" multi\_notag="X,Y"{]} User 1 will be able to see this {[}/WisP{]} \newline % Row Count 12 (+ 2) {[}WisP multi\_tag="X" multi\_notag="A,B"{]} User 2 will be able to see this {[}/WisP{]} \newline % Row Count 14 (+ 2) {[}WisP multi\_tag="A,B,X,Y"{]} None of them can see this {[}/WisP{]} \newline % Row Count 16 (+ 2) {[}WisP multi\_notag="A,B,X,Y"{]} None of them can see this {[}/WisP{]}% Row Count 18 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Multi OR Tags}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{A Test Case On Multi OR Tags \newline % Row Count 1 (+ 1) Suppose our Infusionsoft application has 4 tags, A, B, X, Y \newline % Row Count 3 (+ 2) And there are 2 users, User1, User2. \newline % Row Count 4 (+ 1) User1 : Tag A \newline % Row Count 5 (+ 1) User2: Tag B \newline % Row Count 6 (+ 1) {[}WisP multi\_or\_tag="A,B"{]} Both users see this text{[}/WisP{]} \newline % Row Count 8 (+ 2) {[}WisP multi\_or\_tag="A,X"{]} User 1 will be able to see this {[}/WisP{]} \newline % Row Count 10 (+ 2) {[}WisP multi\_or\_tag="B,Y" {]} User 2 will be able to see this {[}/WisP{]} \newline % Row Count 12 (+ 2) {[}WisP multi\_or\_tag="X,Y"{]} None of them can see this {[}/WisP{]}% Row Count 14 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}