Hello for everyone .
I want to ask some questions :
How to align the title of a block to the right ?
How to change the names of the links or subjects in the block .
How to align these links to the right .
Happy to join you .
Thanks to all for your kind attention to this problem.. Well... I found time to try again.. here is what I did 1. Step 1... <?PHP //$Id: block_course_list.php,v 1.29.2.1 2006/10/21 16:30:23 moodler Exp $ include_once($CFG->dirroot . '/course/lib.php'); class block_course_list extends block_list { function init() { //$this->title = get_string('courses'); $this->title = get_string('Profiles'); $this->version = 2004111600; } function has_config() { return true; } _________________________________ Step 2. In the /lang/en_utf8/moodle.php area //$string['course'] = 'Course'; $string['course'] = 'Profiles'; Results in nothing changing with the title / label.. has no effect.. So I changed //$string['course'] = 'Course'; $string['course'] = 'Profiles'; in the block_course_list.php area... No effect.. I am not sure what I am not doing right ..but tis is not working Thank You for helping.. Any other suggestions??? for changing the block label "courses to "profiles"? see at http://www.lifeandstory.com/moodle/ --------------------------------------------------------
try changing the version from $this->version = 2004111600; to $this->version = 2007032300; and hit the admin page
Step 1 is not needed if you want to change the word 'Courses' to 'Profiles' everywhere it is used in Moodle. You can change the function back to...
class block_course_list extends block_list {
function init() {
$this->title = get_string('courses');
$this->version = 2004111600;
}
Notice that it says get_string('courses') not get_string('course'). That means in Step 2 you need to change string['courses'] not string['course']. In lang/en_utf8/moodle.php set
string['courses'] = 'Profiles'
and it should work.
If you want to only change the block, not other instances where the word 'Courses' might be used, then keep your changes in Step 1 and add the line
string['Profiles'] = 'Profiles'
to lang/en_utf8/moodle.php.
Also there is a language file for the Course List block in /lang/en_utf8/block_course_list.php. This file has a $string['blockname'] that is equal to 'Course List'. I'm not sure where (if?) that string is used, but you could try changing it as well.
Hope this helps.
Nathanael