Advertisement
chrishajer

GDSR Form (post 78118)

Sep 30th, 2012
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.24 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <forms version="1.7.dev1">
  3.     <form labelPlacement="top_label" useCurrentUserAsAuthor="1" postAuthor="1" postCategory="1" postFormat="0" postStatus="publish">
  4.         <title><![CDATA[Add a review]]></title>
  5.         <description><![CDATA[Please use the form below to add a review to ClikaClinic.com]]></description>
  6.         <confirmation type="message">
  7.             <message><![CDATA[Thanks for submitting your review!
  8.  
  9. You can view your review, including your rating, <a href="http://gravity.chrishajer.com/?p={post_id}" title="view your review online">here</a>.]]></message>
  10.         </confirmation>
  11.         <button type="image">
  12.             <text><![CDATA[Submit for moderation]]></text>
  13.         </button>
  14.         <fields>
  15.             <field adminOnly="1" id="5" isRequired="1" size="large" type="email">
  16.                 <defaultValue><![CDATA[{user:user_email}]]></defaultValue>
  17.                 <label><![CDATA[User Email]]></label>
  18.             </field>
  19.             <field id="4" isRequired="1" size="medium" type="select">
  20.                 <label><![CDATA[Review type]]></label>
  21.                 <choices>
  22.                     <choice>
  23.                         <text><![CDATA[-- select a Review Category --]]></text>
  24.                     </choice>
  25.                     <choice>
  26.                         <text><![CDATA[Clinics]]></text>
  27.                     </choice>
  28.                     <choice>
  29.                         <text><![CDATA[Hospitals]]></text>
  30.                     </choice>
  31.                     <choice>
  32.                         <text><![CDATA[Practitioners]]></text>
  33.                     </choice>
  34.                     <choice>
  35.                         <text><![CDATA[Surgeons]]></text>
  36.                     </choice>
  37.                 </choices>
  38.                 <populateTaxonomy><![CDATA[review_categories]]></populateTaxonomy>
  39.             </field>
  40.             <field id="7" isRequired="1" size="medium" type="radio">
  41.                 <label><![CDATA[Review Image]]></label>
  42.                 <choices>
  43.                     <choice isSelected="1">
  44.                         <text><![CDATA[Use default]]></text>
  45.                     </choice>
  46.                     <choice>
  47.                         <text><![CDATA[Use image from my computer]]></text>
  48.                     </choice>
  49.                 </choices>
  50.             </field>
  51.             <field id="6" size="medium" type="post_image">
  52.                 <description><![CDATA[Not required for Surgeons or Practitioners.]]></description>
  53.                 <label><![CDATA[Clinic/ Hospital Image]]></label>
  54.                 <allowedExtensions><![CDATA[jpg, jpeg, png, gif]]></allowedExtensions>
  55.                 <postFeaturedImage><![CDATA[1]]></postFeaturedImage>
  56.                 <conditionalLogic actionType="show" logicType="all">
  57.                     <rules>
  58.                         <rule fieldId="7" operator="is">
  59.                             <value><![CDATA[Use image from my computer]]></value>
  60.                         </rule>
  61.                     </rules>
  62.                 </conditionalLogic>
  63.             </field>
  64.             <field id="1" isRequired="1" size="large" type="post_title">
  65.                 <description><![CDATA[Name of Clinic/ Hospital/ Surgeon/ Practitioner]]></description>
  66.                 <errorMessage><![CDATA[Please enter the name of the Clinic/ Hospital/ Surgeon/ Practitioner.]]></errorMessage>
  67.                 <label><![CDATA[Name]]></label>
  68.                 <saveAsCPT><![CDATA[review]]></saveAsCPT>
  69.             </field>
  70.             <field id="3" isRequired="1" size="small" type="post_custom_field" postCustomFieldName="ghostpool_user_voting" inputType="select">
  71.                 <label><![CDATA[Rating]]></label>
  72.                 <choices>
  73.                     <choice>
  74.                         <text><![CDATA[1]]></text>
  75.                     </choice>
  76.                     <choice>
  77.                         <text><![CDATA[2]]></text>
  78.                     </choice>
  79.                     <choice>
  80.                         <text><![CDATA[3]]></text>
  81.                     </choice>
  82.                     <choice>
  83.                         <text><![CDATA[4]]></text>
  84.                     </choice>
  85.                     <choice>
  86.                         <text><![CDATA[5]]></text>
  87.                     </choice>
  88.                 </choices>
  89.             </field>
  90.             <field id="2" isRequired="1" size="medium" type="post_content">
  91.                 <label><![CDATA[Review]]></label>
  92.                 <maxLength><![CDATA[200]]></maxLength>
  93.             </field>
  94.         </fields>
  95.         <descriptionPlacement><![CDATA[below]]></descriptionPlacement>
  96.         <requireLogin><![CDATA[1]]></requireLogin>
  97.         <requireLoginMessage><![CDATA[In order to submit a review you must first register as a Clik-a-Clinic user. <a href="http://www.clikaclinic.com/register">Click Here</a> to register now.]]></requireLoginMessage>
  98.         <notification>
  99.             <to><![CDATA[{admin_email}]]></to>
  100.             <subject><![CDATA[New Review In: {Review type:4}]]></subject>
  101.             <message><![CDATA[<p>Hi Clik a Clinic administrator,</p>
  102. <p>A new review was submitted for moderation on: {date_dmy}</p>
  103. <p><strong>To moderate this review,</strong> <a href="http://www.clikaclinic.com/wp-admin/edit.php?post_type=review">Click here.</a></p>
  104. <p> </p>
  105. <p>Reviewer: {user:display_name} <{User Email:5}></p>
  106. <p>Status: <strong>PENDING</strong></p>
  107. <p>______________________</p>
  108. <p><strong>Review name:</strong> {Name:1}</p>
  109. <p><strong>Review type:</strong> {Review type:4}</p>
  110. <p><strong>User Rating:</strong> {Rating:3}</p>
  111. <p> </p>
  112. <p><strong>Review:</strong></p>
  113. <p>{Review:2}</p>
  114. <p>______________________</p>
  115. <p>Email sent from: http://www.clikaclinic.com</p>]]></message>
  116.             <from><![CDATA[{admin_email}]]></from>
  117.             <fromName><![CDATA[ClikaClinic.com]]></fromName>
  118.             <disableAutoformat><![CDATA[1]]></disableAutoformat>
  119.         </notification>
  120.         <autoResponder>
  121.             <toField><![CDATA[5]]></toField>
  122.             <fromName><![CDATA[ClikaClinic.com]]></fromName>
  123.             <from><![CDATA[{admin_email}]]></from>
  124.             <subject><![CDATA[About your review]]></subject>
  125.             <message><![CDATA[Hi {user:display_name},
  126.  
  127. <strong>Thanks for submitting a review to ClikaClinic.com!</strong>
  128.  
  129. We are currently moderating your review and it will appear on the website soon...
  130.  
  131. Many thanks,
  132.  
  133. <strong>The Clik a Clinic Admin Team</strong>]]></message>
  134.         </autoResponder>
  135.     </form>
  136. </forms>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement