{"id":20087,"date":"2012-10-17T18:43:00","date_gmt":"2012-10-17T18:43:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/thrivehive\/"},"modified":"2018-12-14T17:32:59","modified_gmt":"2018-12-14T17:32:59","slug":"thrivehive","status":"closed","type":"plugin","link":"https:\/\/ory.wordpress.org\/plugins\/thrivehive\/","author":9260945,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.602","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"ThriveHive","header_author":"ThriveHive","header_description":"","assets_banners_color":"","last_updated":"2018-12-14 17:32:59","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/thrivehive.com","header_author_uri":"http:\/\/thrivehive.com","rating":0,"author_block_rating":0,"active_installs":30,"downloads":12751,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1995022","resolution":"1","location":"plugin"}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[],"plugin_category":[36],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-20087","plugin","type-plugin","status-closed","hentry","plugin_category-analytics","plugin_committers-thrivehive"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/thrivehive.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/thrivehive\/trunk\/screenshot-1.png?rev=1995022","caption":""}],"raw_content":"<!--section=description-->\n<p>This plugin will automatically instrument a site with ThriveHive's tracking code, insert a tracked phone number, and insert a tracked form.<\/p>\n\n<h3>QA Prior to Deployment<\/h3>\n\n<p>Make sure that your code was updated in the skeleton directory of QA(<code>alice.metallicocean.com<\/code>) and site spinup was tested prior to releasing to production. To do this...<\/p>\n\n<ol>\n<li>Download <code>whm.pem<\/code> from Google Drive Dev and place it in <code>~\/Thrivehive\/keys\/<\/code><\/li>\n<li>Run <code>sh scripts\/update_skeleton_directory.sh<\/code><\/li>\n<\/ol>\n\n<h3>--- IMPORTANT ---<\/h3>\n\n<p>The version number of the plugin MUST COMPLY with the following format:<\/p>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>vX.X(XX)\n    `<\/p>\n\n<p>For example:<\/p>\n\n<pre><code>v1.1 (Regular release)\n<\/code><\/pre>\n\n<p>or<\/p>\n\n<pre><code>v1.101 (Bugfix)\n<\/code><\/pre>\n\n<p>The version needs to be updated in thrivehive.php and the change needs to be added to the changelog here along with the version number.<\/p>\n\n<h3>Deployment<\/h3>\n\n<ol>\n<li>Download <code>whm.pem<\/code> from Google Drive Dev and place it in <code>~\/Thrivehive\/keys\/<\/code><\/li>\n<li>Run <code>sh scripts\/production_deployment.sh<\/code><\/li>\n<\/ol>\n\n<p>-or-<\/p>\n\n<ol>\n<li>Zip the contents of the repo into a zip named <code>thrivehive.zip<\/code>. If you are inside the warp-prism folder you can select everything inside and put that into a zip.<\/li>\n<li><p>Now you need to initiate an SFTP connection to all of the wordpress servers:<\/p>\n\n<ul>\n<li>customers.thrivehivesite.com<\/li>\n<li>customers2.thrivehivesite.com<\/li>\n<li>customers3.thrivehivesite.com<\/li>\n<li>customers4.thrivehivesite.com<\/li>\n<\/ul>\n\n<p>Creds for these can be accessed from AWS EC2.<\/p>\n\n<p>NOTE: EC2 says to use the \"WHM KeyPair.pem\" file - use the \"WHM.pem\" file on dropbox instead.<\/p><\/li>\n<li><p>Copy the thrivehive.zip file into <code>\/root\/plugins<\/code> folder on each of the servers.<\/p><\/li>\n<li>Also on each of the servers copy the contents of the repo (sans <code>thrivehive.zip<\/code>) into <code>\/root\/cpanel3-skel\/public_html\/wp-content\/plugins\/thrivehive<\/code><\/li>\n<li>Now that we have all the files on the servers, on each server we can run the script <code>\/scripts\/update_thrivehive_addins.py --plugin<\/code><\/li>\n<li>These scripts may run for a while, but once they are done, all plugins should be up to date!<\/li>\n<\/ol>\n\n<p>Here's a simple script to replicate this process:<\/p>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>cd ~\/thrivehive\/repos\/warp-prism\ngit pull\ncp -r ~\/thrivehive\/repos\/warp-prism \/tmp\/\ncd \/tmp\/warp-prism\nrm -rf .git*\nrm -rf .circleci\nzip -r \/tmp\/thrivehive.zip .\nfor c in customers customers2 customers3 customers4; do\n  server=\"${c}.thrivehivesite.com\"\n  scp \/tmp\/thrivehive.zip $server:\/tmp\/\n  ssh $server \"cp \/tmp\/thrivehive.zip \/root\/plugins\/\"\n  ssh $server \"unzip -o \/tmp\/thrivehive.zip -d \/root\/cpanel3-skel\/public_html\/wp-content\/plugins\/thrivehive\/\"\n  ssh $server screen -d -m \"\/scripts\/update_thrivehive_plugin.py\"\ndone\n    <code>&lt;h3&gt;Update the Subversion Repo - ask somebody for the login creds&lt;\/h3&gt;```\nsvn co https:\/\/plugins.svn.wordpress.org\/thrivehive\ncp -a ~\/thrivehive\/repos\/warp-prism\/. thrivehive\/trunk\/\nrm -rf thrivehive\/trunk\/.circleci\nrm -rf thrivehive\/trunk\/.git\nrm -rf thrivehive\/trunk\/.gitignore\ncd thrivehive\nsvn add --force * --auto-props --parents --depth infinity -q\nsvn commit -m \"mygitbranch\"<\/code><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>plugin-name.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Get your account's tracking assets and paste them in the appropriate field in the plugin settings.<\/li>\n<li>The tracking code will automatically be added to your site. To insert a phone number, add this PHP to your template in the desired location on your page. get_option ('th_phone_number'). To insert a form, use get_option('th_form_html').<\/li>\n<\/ol>\n\n<!--section=faq-->\n<ol>\n<li>How do I get the assets to start using this plugin?\nAnswer: To get started with ThriveHive, you'll need to create an account with ThriveHive at http:\/\/thrivehive.com\/free-trial\/signup. Once you have an account, go to the account page to get your tracking code (which contains your account ID). ThriveHive will help you get your form HTML and tracked phone lines as well.<\/li>\n<li>How do I insert the phone number and form into my pages, posts, and templates?\nAnswer: There are two ways to insert the forms and phone numbers. The first uses \"shortcodes\" which you can use in your pages and posts. Just type [th_form] or [th_phone] in a post or a page and it will pull in the appropriate asset (assuming you have set one up in the ThriveHive plugin settings page. To insert your phone number and form into your php template files, you will need to include  or &lt;?php th_display_form(); &gt;? in your template.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<ul>\n<li>V 2.602 Fixed preview changes link for existing pages<\/li>\n<li>V 2.601 Added wysiwyg support for remove logo<\/li>\n<li>V 2.6 Added endpoint to duplicate pages<\/li>\n<li>V 2.512 Fixed issue with changing button id in header<\/li>\n<li>V 2.511 Fixed redirect when logging in using params<\/li>\n<li>V 2.51 Added Thrivehive Wysiwyg Button widget<\/li>\n<li>V 2.5 Added Wysiwyg button functionality<\/li>\n<li>V 2.301 Remove slashes and ensure correct character encoding for saved CSS<\/li>\n<li>V 2.3 Added ability to login using params<\/li>\n<li>V 2.201 Bugfix for newly spun up Changeling sites data not loading<\/li>\n<li>V 2.2 Added endpoint to expose the website vertical\/template<\/li>\n<li>V 2.1 Added endpoint to search for Global Styling categories and values<\/li>\n<li>V 2.0 Enable support for new ThriveHive website editor<\/li>\n<li>V 1.138 Return th_editor on get_posts<\/li>\n<li>V 1.137 Fixing bug where data was being returned when no additional images were necessary<\/li>\n<li>V 1.136 Fixing bug where drafts that are scheduled are published right away<\/li>\n<li>V 1.135 Hotfix for 1.134 added logic for $currentPostStatus<\/li>\n<li>V 1.134 Fixing bug with published post urls changing when updated<\/li>\n<li>V 1.133 Returning date for blog posts in get_posts endpoint<\/li>\n<li>V 1.132 Added paging support for gallery images<\/li>\n<li>V 1.131 Adding support for scheduling blog posts<\/li>\n<li>V 1.130 Fixing an issue preventing meta values from being set on post update<\/li>\n<li>V 1.129 Modifying Youtube shortcode to selectively load scripts depending on website editor version<\/li>\n<li>V 1.128 Extracting shortcode rendering logic and adding an endpoint to utilize it<\/li>\n<li>V 1.127 Adding set meta value capability for posts<\/li>\n<li>V 1.126 Adding in do_shortcode to snippet rendering and fixing parallax css<\/li>\n<li>V 1.125 Fixing a bug with clearing css cache, and logo min height css<\/li>\n<li>V 1.124 Adding setting of website phone number via the API<\/li>\n<li>V 1.123 Adding support for non-hardcoded forms where applicable<\/li>\n<li>V 1.122 Fixing issues with static maps API<\/li>\n<li>V 1.121 Forcing a reauth when viewing draft posts if not logged in.<\/li>\n<li>V 1.120 Fixing bug with header style options and json deserialization<\/li>\n<li>V 1.119 Adding support for user-tokens in snippets<\/li>\n<li>V 1.118 Adding support for clearing WPFC Cache<\/li>\n<li>V 1.117 Fixing bug with fontawesome yelp icon<\/li>\n<li>V 1.116 Fixing bug with fontawesome twitter link<\/li>\n<li>V 1.115 Use 'target' parameter when creating a menu item with an internal link<\/li>\n<li>V 1.114 Fixing some potential errors that we might see on non managed sites.<\/li>\n<li>V 1.113 Fixing single quote bug with button text<\/li>\n<li>V 1.112 Adding in fontawesome social media icons<\/li>\n<li>V 1.111 Fixing a potential bug with a blank PDF shortcode<\/li>\n<li>V 1.110 CSS fixes: limit prior quattro bugfix to quattro, fix bugs in quattro and lifestyle pro themes<\/li>\n<li>V 1.109 Adding endpoint for getting blog post permalinks<\/li>\n<li>V 1.108 Fixing potential bug with empty galleries<\/li>\n<li>V 1.107 Updating AIOSEOP options when featured image is set.<\/li>\n<li>V 1.106 Sugar slider styling: support full-width and hiding prev\/next buttons<\/li>\n<li>V 1.105 Fixing a bug with the google maps rendering<\/li>\n<li>V 1.104 Adding a feature to hide\/show title on posts\/pages<\/li>\n<li>V 1.103 Include featured image data in response to set_featured_image<\/li>\n<li>V 1.102 Fix usage of $wpdb-&gt;prepare()<\/li>\n<li>V 1.101 Add support for reusable snippets and posts' featured images<\/li>\n<li>V 1.100 Support custom title when adding a post's menu item<\/li>\n<li>V 1.99 Minified CSS<\/li>\n<li>V 1.98 Added changes that didn't make it in previous commit<\/li>\n<li>V 1.97 Bug fix for CSS selector for floating last-child in columns<\/li>\n<li>V 1.96 Bug fix for inconsistent default layout display<\/li>\n<li>V 1.95 Use 5px margin on all sides of images<\/li>\n<li>V 1.94 Fixing a bug with pdf uploads<\/li>\n<li>V 1.93 Blocking comments marked as spam from syndicating<\/li>\n<li>V 1.92 Syndicating blog comments<\/li>\n<li>V 1.91 Fixing a bug with the update call when we upgrade tables<\/li>\n<li>V 1.90 Allowing forms to be rendered with what they represent in thrivehive and storing them locally<\/li>\n<li>V 1.84 Temporarily removing auto slug generation when titles change<\/li>\n<li>V 1.83\n\n<ul>\n<li>Fixed a bug with updating blog post categories<\/li>\n<li>Fixed a bug with relative urls for social media links (patch for frontend bug)<\/li>\n<\/ul><\/li>\n<li>V 1.82 Allowing users to set category names to whatever they want<\/li>\n<li>V 1.81 Minor bug fix with displaying PDF links only<\/li>\n<li>V 1.8 Minor Release Featuring:\n\n<ul>\n<li>Added target setting to buttons<\/li>\n<li>Added target setting to nav items<\/li>\n<li>Added links only for PDFs<\/li>\n<\/ul><\/li>\n<li>V 1.74 Fixing a bug with pinterest pinning and images that are too small<\/li>\n<li>V 1.73 Fixed small bug with margin on gallery slider images<\/li>\n<li>V 1.72 Fixing a small bug with social widget settings on the sidebar<\/li>\n<li>V 1.71 Fixing minor bug in new pdf properties<\/li>\n<li>V 1.7 Adding mappings so that we can move to our new PDF embedder plugin<\/li>\n<li>V 1.69 Fix for slugs switching back and forth on post update<\/li>\n<li>V 1.68 Temporary fix for plugin version check<\/li>\n<li>V 1.67\n\n<ul>\n<li>Added default margin to images in .content<\/li>\n<li>Added float right to <\/li><li> elements in #menu-main<\/li>\n<li>Adding in endpoints for getting and setting genesis layout for pages.<\/li>\n<li>Adding in sharing for pinterest and linked in on blog pages and phone widget header editing<\/li>\n<li>Adding in plugin versioning checks to detect version issues in TH<\/li>\n<\/ul><\/li>\n<li>V 1.65 Fix for issues with PDF uploads and poor thumbnails for them<\/li>\n<li>V 1.64 Fix for older PHP version<\/li>\n<li>V 1.63 Adding dynamic logo tweaks<\/li>\n<li>V 1.62 Fixing but with landing page template showing nav menu<\/li>\n<li>V 1.61 Fixing a bug with displaying landing pages in TH<\/li>\n<li>V 1.60 Fixing a bug introduced with pdf uploads in 1.59<\/li>\n<li>V 1.59 Fixing a bug with older versions of PHP and accessing the post controller<\/li>\n<li>V 1.58 Fixing bug with non canonical category slugs and saving posts<\/li>\n<li>V 1.57 Adding PDF management<\/li>\n<li>V 1.56 Fixing an issue with landing page template and newer versions of genesis<\/li>\n<li>V 1.55 Fixing bug with the map shortcode and <br \/> tags<\/li>\n<li>V 1.54 Auto-approving comments our authors make in reply to other comments<\/li>\n<li>V 1.53 Updating comment management to give the gmt date<\/li>\n<li>V 1.52 Updating get_all_users to return email addresses<\/li>\n<li>V 1.51 Updating user creation to include email address and adding method to update it<\/li>\n<li>V 1.5 Minor release changing functionalities for filtering pages by types and comment management<\/li>\n<li>V 1.40 Fix for excessive slashes in seo homepage<\/li>\n<li>V 1.39 Fix for RSS XML Feed<\/li>\n<li>V 1.38 Adding footer changes to include address<\/li>\n<li>V 1.35 Major release to fuix issues with Metro Pro theme<\/li>\n<li>V 1.28 Major release to support custom header style options<\/li>\n<li>V 1.27 Fix for YouTube video tracking<\/li>\n<li>V 1.26 Fix for overlapping forms on landing pages<\/li>\n<li>V 1.25 increasing version number to allow  update on some sites<\/li>\n<li>V 1.24 Major release supporting forms, custom css\/js, lightbox, categories, authors, background * image<\/li>\n<li>V 1.23 Added comments field to default contact us form<\/li>\n<li>V 1.22 Fix for YouTube embed showing up at top of page\/post<\/li>\n<li>V 1.21 Fix for Youtube tracking environment url<\/li>\n<li>V 1.20 Major release supporting new shortcodes for youtube and image gallery, LinkedIn and Yelp * widget buttons,<\/li>\n<li>V 1.10 Fixed a bug for opening blog posts in thrivehive<\/li>\n<li>V 1.09 Styling fix on contact us form generator<\/li>\n<li>V 1.08  Function naming conflict issue with a specific theme<\/li>\n<li>V 1.07 Fix to make sure menu item shows up, and shows up last<\/li>\n<li>V 1.06  Bug fix for theme page templates not showing up<\/li>\n<li>V 1.05  Bug fix for PHP Version &lt;5.4<\/li>\n<li>V 1.04  Updating social buttons to be optional<\/li>\n<li>V 1.03  changed social buttons to be echo'd to the page rather than written directly<\/li>\n<li>V 1.02    Adding validation for current PHP version<\/li>\n<li>V 1.00  MAJOR Release integrating with the new Thrivehive wordpress interface<\/li>\n<li>V 0.59: Fixing but with getting blog post content<\/li>\n<li>V 0.58: Changing the method for getting public previews<\/li>\n<li>V 0.54: Added rewrite flushing on activation<\/li>\n<li>V 0.51: Bug fix for creating blog posts with no title having all content wiped out<\/li>\n<li>V 0.5:  Major update adding integration with ThriveHive to create and view blog posts as well as various usability enhancements<\/li>\n<\/ul>","raw_excerpt":"Contributors: thrivehive\nDonate link:\nTags: web analytics, tracking, thrivehive thrive hive\nRequires at least: 3\nTested up to: 4.1\nStable tag: .","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/20087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=20087"}],"author":[{"embeddable":true,"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thrivehive"}],"wp:attachment":[{"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=20087"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=20087"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=20087"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=20087"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=20087"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ory.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=20087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}