{"id":28217,"date":"2012-11-17T19:49:38","date_gmt":"2012-11-18T03:49:38","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/"},"modified":"2012-11-17T19:49:38","modified_gmt":"2012-11-18T03:49:38","slug":"re-link-back-to-the-original-facebook-event","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/","title":{"rendered":"Re: Link back to the original Facebook event"},"content":{"rendered":"<p>I thought I would share this as a quick fix for the question asked on<br \/>\n<a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-back-to-the-original-facebook-event\">Link back to the original Facebook event<\/a> forum post.<\/p>\n<p>I am sure the gurus at tribe will come up with a better, built in, solution in an update but this seems to be working for me. It creates a nice themed button to the original Facebook event at the bottom of the right meta column in the single event view page (under the event address) .<\/p>\n<p><i>Edit: looks like the forum is mistaking some code in a function as HTML so here is a link to the below steps: <a href=\"http:\/\/pastebin.com\/yVAL8Mwp\">http:\/\/pastebin.com\/yVAL8Mwp<\/a><br \/>\nStep 1: Paste this into your theme&#8217;s functions.php file:<br \/>\n============================<br \/>\n<code><br \/>\n\/**<br \/>\n*Plugin: Tribe Facebook Events Importer<br \/>\n*Checks if the event came from facebook<br \/>\n*\/<br \/>\nfunction is_fb_event(){<br \/>\n$fbMeta=tribe_get_event_meta();<br \/>\n$verifyString=\"facebook-importer\";<br \/>\n$result=true;<br \/>\n\tif ($fbMeta['_EventOrigin']['0']==$verifyString){<br \/>\n\t\t$result=true;<br \/>\n\t\treturn $result;<br \/>\n\t}<br \/>\n\tif ($fbMeta['_EventOrigin']['0']!=$verifyString){<br \/>\n\t\t$result=false;<br \/>\n\t\treturn NULL;<br \/>\n\t}<br \/>\n}<\/p>\n<p>\/**<br \/>\n*Plugin: Tribe Facebook Events Importer<br \/>\n*Builds a button to the original facebook event page in the event's info page<br \/>\n*\/<br \/>\nfunction build_fb_link(){<br \/>\n$fbMeta=tribe_get_event_meta();<br \/>\n$eventID=$fbMeta['_FacebookID']['0'];<br \/>\necho \"<a href='http:\/\/facebook.com\/\".$eventID.\"'>Join event on <b>Facebook<\/b><\/a>\";<br \/>\n}<br \/>\n<\/code><\/p>\n<p>Step 2: Paste this into your theme&#8217;s CSS file (or &#8220;events.css&#8221;)<br \/>\n=============================<br \/>\n<code><br \/>\n#tribe-events-event-meta .fb {<\/p>\n<p>background: url(http:\/\/www.mricons.com\/store\/png\/111375_28291_32_facebook_logo_icon.png) #3B5998 10px 5px no-repeat;<br \/>\nbackground-size:22px 22px!important;<br \/>\nfloat:left;<br \/>\nclear:left;<br \/>\nfont-weight:bold;<br \/>\nwidth:145px;<br \/>\nheight:23px;<br \/>\npadding: 7px 0px 0px 38px;<br \/>\nmargin: 0 0 20px 30px;<br \/>\n-webkit-border-radius: 4px;<br \/>\n-moz-border-radius: 4px;<br \/>\nborder-radius: 4px;<br \/>\n}<\/p>\n<p>#tribe-events-event-meta .fb a{<br \/>\ncolor: #ffffff!important;<br \/>\n}<\/p>\n<p>#tribe-events-event-meta .fb a:hover{<br \/>\ntext-decoration:underline;<br \/>\n}<\/p>\n<p><\/code><br \/>\nStep 3: Paste this into your &#8220;single.php&#8221; file in your &#8220;plugins\/the-events-calendar\/views\/&#8221; folder between line 84 and 85<br \/>\n==============================<br \/>\n<code><br \/>\nif (is_fb_event()==true){build_fb_link();}<br \/>\n<\/code><\/p>\n","protected":false},"template":"","class_list":["post-28217","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Re: Link back to the original Facebook event -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Re: Link back to the original Facebook event -\" \/>\n<meta property=\"og:description\" content=\"I thought I would share this as a quick fix for the question asked on Link back to the original Facebook event forum post. I am sure the gurus at tribe will come up with a better, built in, solution in an update but this seems to be working for me. It creates a nice [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/\",\"name\":\"Re: Link back to the original Facebook event -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2012-11-18T03:49:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Aggregator\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/event-aggregator\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Re: Link back to the original Facebook event\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Re: Link back to the original Facebook event -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/","og_locale":"en_US","og_type":"article","og_title":"Re: Link back to the original Facebook event -","og_description":"I thought I would share this as a quick fix for the question asked on Link back to the original Facebook event forum post. I am sure the gurus at tribe will come up with a better, built in, solution in an update but this seems to be working for me. It creates a nice [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/","name":"Re: Link back to the original Facebook event -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2012-11-18T03:49:38+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/re-link-back-to-the-original-facebook-event\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Event Aggregator","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/event-aggregator\/"},{"@type":"ListItem","position":5,"name":"Re: Link back to the original Facebook event"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/28217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/28217\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=28217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}