The GDPR right to be forgotten - applies from May 25th 2018
Using Jamroom
Gary's got a thread with some info and ideas here:
https://www.jamroom.net/the-jamroom-network/forum/new_posts/58361/user-privacy-controls-more-important-now-than-ever
Changelog for Post to Twitter module
Version 1.0.0
- Initial Release
<?php
/**
* @copyright ..........................
* @author ........ .......... <someone [at] somewhere [dot] com>
*/
// make sure we are not being called directly
defined('APP_DIR') or exit();
/**
* meta
*/
function xxPost_meta(){
$_tmp = array(
'name' => 'Post to Twitter',
'url' => 'post',
'version' => '1.0.0',
'developer' => 'Sombody Somwhere, ©' . strftime('%Y'),
'description' => 'Somthing about your module here',
'category' => 'custom'
);
return $_tmp;
}
/**
* init
*/
function xxPost_init(){
return true;
}
<?php
/**
* @copyright ..........................
* @author ........ .......... <someone [at] somewhere [dot] com>
*/
// make sure we are not being called directly
defined('APP_DIR') or exit();
//------------------------------
// create
//------------------------------
function view_xxPost_message($_post, $_user, $_conf)
{
// the $_post array contains anything coming in on the URL and the _message part of this function is the url.
// this function will fire when you visit example.com/post/message
// So you can either have the url example.com/post/message/message=hello
// then $_post['message'] will equal "hello" or you can skip the name and just use the url example.com/post/message/hello
// and "hello" can be found on either $_post['_1'] or $_post['_2'] need to check.
// put the contents of your PHP file in this function and return whatever you want echoed to the screen
return 'all the processing has completed';
or to return to a different location:
jrCore_location("{$_conf['jrCore_base_url']}/somewhere/you/want/to/redirect/to");
}