Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Not a bug
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: Accessibility, Blog, Usability
-
Labels:None
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE
Description
enable autocomplete tags (interests) when editing new blog post (user's profile blog)
(functionality was copied from "edit tag page" )
two files are involved in the patch: blog/edit.php and blog/edit_form.php
see comments for actual patches
open blog/edit.php
just after the line that has "require_login($courseid);" add:
just after the line that has "$blogeditform->display();" add:
open blog/edit_form.php
remark (or remove) the following lines:
$mform->addElement('textarea', 'ptags', get_string('ptags', 'tag'), array('cols'=>'40', 'rows'=>'5')); $mform->setType('ptagsadd', PARAM_NOTAGS);and add the following lines of code instead:
open blog/edit.php
just after the line that has "require_login($courseid);" add:
open blog/edit_form.php
remark (or remove) the following lines:
$mform->addElement('textarea', 'ptags', get_string('ptags', 'tag'), array('cols'=>'40', 'rows'=>'5')); $mform->setType('ptagsadd', PARAM_NOTAGS);