-
Notifications
You must be signed in to change notification settings - Fork 44
If you want to use only the course or the publication system of the plugin, so write the following in the wp-config.php file of your WordPress installation:
// For deactivating the course system:
define ('TEACHPRESS_COURSE_MODULE',false);
// For deactivating the publication system:
define ('TEACHPRESS_PUBLICATION_MODULE',false);If you want to change the directory of teachPress templates, so write the following at the beginning of the "constants" part in the wp-content/plugins/teachpress/teachpress.php file:
// For changing the teachPress template directory (moving it to wp-content/uploads/)
$tp_upload_dir = wp_upload_dir();
define ('TEACHPRESS_TEMPLATE_PATH', $tp_upload_dir['basedir'] . '/teachpress/templates/');
define ('TEACHPRESS_TEMPLATE_URL', $tp_upload_dir['baseurl'] . '/teachpress/templates/');Don't forget to copy all files from the default directory to the new one!
Please note: Changes in the teachPress.php file doesn't survive a plugin update, which is the bad thing on the WordPress update system. So you have to change this after every update or you define the constants in the wp-config.php. But, there is also a problem: wp_upload_dir() can't be used in the wp-config.php file. So, you have to write the basic directory path manually, which looks like in this example:
// For changing the teachPress template directory (moving it to wp-content/uploads/)
// Paths needs to be configured manually
define ('TEACHPRESS_TEMPLATE_PATH', 'D:\wamp64\www\wordpress/wp-content/uploads/teachpress/templates/');
define ('TEACHPRESS_TEMPLATE_URL', 'http://mydomain.com/wordpress/wp-content/uploads/teachpress/templates/');The Altmetric support needs external sources from third party servers. I don't want that teachPress loads this by default. You can activate the altmetric support if you write the following in the wp-config.php file of your WordPress installation:
// For activate loading of external sources for Altmetric support:
define ('TEACHPRESS_ALTMETRIC_SUPPORT',true);After that, you can use the shortcode parameters to activate the altmetric support:
[tpcloud show_altmetric_entry="1" show_altmetric_donut="1" ]
[tplist show_altmetric_entry="1" show_altmetric_donut="1" ]
If a publication has a DOI number, then the "Altmetric" tab should now be visible.