Commit 3051c8b6 authored by Dave Lane's avatar Dave Lane
Browse files

tweaked wording of help documentation above main BFF form

parent 98391cae
......@@ -220,9 +220,9 @@ class BFFForm extends BFFCourse {
$post['post_title'] = 'Blog Feed Finder';
$post['post_content'] = "<p>The Blog Feed Finder helps you work out the exact web address (URL) for your blog's feed.</p>"
."<p>Start by going to your blog - use another browser tab or window. "
."Copy the web address - the text in your browser's 'address bar' which starts with '<strong>http://</strong>' or '<strong>https://</strong>' - "
."Copy the blog's web address - the text in your browser's 'address bar' which starts with '<strong>http://</strong>' or '<strong>https://</strong>' - "
."and paste it into the text box below.</p>"
."<p>If you have questions, please post in the <a href=".BFF_SUPPORT_FORUM.">blog feed finder topic</a> in our support forum!</p>"
."<p>Need help? Consult the OERu <a href=".BFF_SUPPORT_BLOG.">support site</a>, or have all look at our <a href=".BFF_SUPPORT_FORUM.">support forum</a>.</p>"
."[".BFF_SHORTCODE."]"
."<div class='credits'>"
."<p class='credit'>Credits: Emoji icons from the <a href='https://commons.wikimedia.org/wiki/Category:Noto_Color_Emoji_Oreo'>Noto Color Emoji Oreo</a> set (under Apache 2.0 license).</p>"
......
......@@ -50,7 +50,7 @@ define('BFF_ID', 'blog-feed-finder');
define('BFF_CLASS', 'bff-form');
// support link for users of this plugin...
define('BFF_SUPPORT_FORUM', 'https://forums.oeru.org/t/blog-feed-finder');
define('BFF_BLOG_SUPPORT', 'https://course.oeru.org/support/studying-courses/course-blog/');
define('BFF_SUPPORT_BLOG', 'https://course.oeru.org/support/studying-courses/course-blog/');
// admin details
define('BFF_ADMIN_SLUG', 'BFF_settings');
define('BFF_ADMIN_TITLE', 'Blog Feed Finder Settings');
......
......@@ -286,9 +286,8 @@ abstract class BFFFinder extends BFFFeed {
if (!isset($parts['host'])) {
$this->log('no host specified... bailing');
$this->set_response(false, $url);
$this->add_message('Unfortunately, that isn\'t a valid web address. Please try again.',
'"'.$url.'" isn\'t a valid web address - it requires at least a "top level domain", i.e. a ".", followed by a few letters, for example ".com". Best thing to do is to go to you blog and copy-and-paste the web address from your browser\'s address bar. Not sure what we mean by "blog"? Check out our OERU <a href="'
.BFF_BLOG_SUPPORT.'">Learner Support Site</a>.', 'problem');
$this->add_message('Unfortunately, that isn\'t a valid web address. Please try again. Not sure what we mean by "blog"? Check out our OERU <a href="'.BFF_SUPPORT_BLOG.'">Learner Support Site</a>.',
'"'.$url.'" isn\'t a valid web address - it requires at least a "top level domain", i.e. a ".", followed by a few letters, for example ".com". Best thing to do is to go to you blog and copy-and-paste the web address from your browser\'s address bar.', 'problem');
return false;
}
} else {
......@@ -398,7 +397,7 @@ abstract class BFFFinder extends BFFFeed {
if (in_array($parts['host'], $this->bad_hosts)) {
$this->log('-----------------url '.$url.' has a bad host: '.$parts['host']);
$this->response['valid_feed'] = false;
$this->add_message('Oops, this isn\'t a valid blog, but it\'s one people commonly enter by accident - to learn more, see our support site\'s "<a href="'.BFF_BLOG_SUPPORT.'">blog</a>" section...', '', 'problem');
$this->add_message('Oops, this isn\'t a valid blog, but it\'s one people commonly enter by accident - to learn more, see our support site\'s "<a href="'.BFF_SUPPORT_BLOG.'">blog</a>" section...', '', 'problem');
return false;
}
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment