{"id":82561,"date":"2013-12-18T09:31:24","date_gmt":"2013-12-18T17:31:24","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/"},"modified":"2014-03-07T05:45:36","modified_gmt":"2014-03-07T13:45:36","slug":"duplicate-community-events-solved-but-not-wordpress-like-please-check","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/","title":{"rendered":"Duplicate Community Events &#8211; Solved, but not WordPress-like &#8211; Please check"},"content":{"rendered":"<p>Hello,<\/p>\n<p>i have the issue, that i need a copy function for previous Events.<br \/>\nI added this manually, not wordpress-like, cause i am not very familiar with it.<\/p>\n<p>But it was pretty easy:<br \/>\n1. I added a GET-Variable to the &#8220;ADD&#8221;-Link<br \/>\n   http:\/\/localhost\/wp\/veranstaltungen\/community\/add\/?duplicateID=144<br \/>\n2. In &#8220;tribe-community-events.class.php&#8221; at function doEventForm() i added at the beginning:<br \/>\n       if (isset($_GET[&#8220;duplicateID&#8221;]))<br \/>\n           $id = $_GET[&#8220;duplicateID&#8221;];<br \/>\n3. The Edit\/Add-Form will be loaded. With the previous Event<br \/>\n4. The form would be submitted to the URL which has been called. I replaced the URL-Parameters (duplicateID) and added the action Tag to the form.<\/p>\n<p>$form_url = $_SERVER[&#8220;REQUEST_URI&#8221;];<br \/>\nif ($_GET[&#8220;duplicateID&#8221;]){<br \/>\n $form_url = str_replace(&#8216;?duplicateID=&#8217;.$_GET[&#8220;duplicateID&#8221;],&#8221;,$_SERVER[&#8220;REQUEST_URI&#8221;]);<br \/>\n}<\/p>\n<p>I hope, you can integrate it in a propper way into the Plugin.<\/p>\n<p>Best regards<br \/>\nAndreas<\/p>\n","protected":false},"template":"","class_list":["post-82561","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>Duplicate Community Events - Solved, but not Wordpress-like - Please check -<\/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\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Duplicate Community Events - Solved, but not Wordpress-like - Please check -\" \/>\n<meta property=\"og:description\" content=\"Hello, i have the issue, that i need a copy function for previous Events. I added this manually, not wordpress-like, cause i am not very familiar with it. But it was pretty easy: 1. I added a GET-Variable to the &#8220;ADD&#8221;-Link http:\/\/localhost\/wp\/veranstaltungen\/community\/add\/?duplicateID=144 2. In &#8220;tribe-community-events.class.php&#8221; at function doEventForm() i added at the beginning: if (isset($_GET[&#8220;duplicateID&#8221;])) [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-03-07T13:45:36+00:00\" \/>\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\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/\",\"name\":\"Duplicate Community Events - Solved, but not Wordpress-like - Please check -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-12-18T17:31:24+00:00\",\"dateModified\":\"2014-03-07T13:45:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/#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\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Duplicate Community Events &#8211; Solved, but not WordPress-like &#8211; Please check\"}]},{\"@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":"Duplicate Community Events - Solved, but not Wordpress-like - Please check -","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\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/","og_locale":"en_US","og_type":"article","og_title":"Duplicate Community Events - Solved, but not Wordpress-like - Please check -","og_description":"Hello, i have the issue, that i need a copy function for previous Events. I added this manually, not wordpress-like, cause i am not very familiar with it. But it was pretty easy: 1. I added a GET-Variable to the &#8220;ADD&#8221;-Link http:\/\/localhost\/wp\/veranstaltungen\/community\/add\/?duplicateID=144 2. In &#8220;tribe-community-events.class.php&#8221; at function doEventForm() i added at the beginning: if (isset($_GET[&#8220;duplicateID&#8221;])) [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/","article_modified_time":"2014-03-07T13:45:36+00:00","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\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/","name":"Duplicate Community Events - Solved, but not Wordpress-like - Please check -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-12-18T17:31:24+00:00","dateModified":"2014-03-07T13:45:36+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/duplicate-community-events-solved-but-not-wordpress-like-please-check\/#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":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Duplicate Community Events &#8211; Solved, but not WordPress-like &#8211; Please check"}]},{"@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\/82561","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\/82561\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=82561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}