how to change the bottom link of free moodle theme

how to change the bottom link of free moodle theme

by kingda wang -
Number of replies: 8
now i want to change the bottom link of free moodle theme and web hosting,i know how to hide it  but i don't know how to change it,can anybody help me ?
Average of ratings: -
In reply to kingda wang

Re: how to change the bottom link of free moodle theme

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Which free moodle theme/webhosting link is it?
In reply to Mary Cooch

回應: Re: how to change the bottom link of free moodle theme

by kingda wang -

hi! Mary

i'am sorry that I didn't express clearly(i am a chinese senior high school student), i mean that i want to modify the  weblink at the bottom of the home page such as  free moodle theme ,I have to find a great deal of information,But did not find concrete solutions.Please help me.

happy new year!

In reply to kingda wang

Re: 回應: Re: how to change the bottom link of free moodle theme

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Hi again and happy new year to you! Can you take a photo of the home page so I see what you want to alter?
In reply to Mary Cooch

回應: Re: 回應: Re: how to change the bottom link of free moodle theme

by kingda wang -

hi! Mary

i have take some photoes in the attachment,please give me some opinions.

In reply to kingda wang

Re: 回應: Re: 回應: Re: how to change the bottom link of free moodle theme

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Hello Kingda. Can you get to all your Moodle files on the server?Is your theme one of these? http://www.themza.com/moodle/
In reply to Mary Cooch

回應: Re: 回應: Re: 回應: Re: how to change the bottom link of free moodle theme

by kingda wang -

yes,

i have to replace a theme,and i find it no longer exits.but i need a weblink in the bottom .and it can link to a web site that i like.so,Whether it is possible to solve this problem.

Thank you for your reply in a timely manner
In reply to Mary Cooch

回應: Re: 回應: Re: 回應: Re: how to change the bottom link of free moodle theme

by kingda wang -
Thank you, Mary
I think I have solved the problem. enter moodle\lib and find the file weblib.php. open  weblib.php and  find $homelink. and wen can Imitate it and make a weblink, for example:   $qqlink  = '<div class="sitelink">'.
               '<a title="QQ腾讯" href="http://www.qq.com/"  >'.
               '腾讯网</a></div>';
save it.
open the
Theme package that you used,   open footer.html and add  echo $qqlink;
ok!
thank you again! 
In reply to kingda wang

Re: 回應: Re: 回應: Re: 回應: Re: how to change the bottom link of free moodle theme

by Billy Evans -

Dear Kingda,

Hello,

I'm a new user to moodle and i'm having the same problem. I followed your directions and found the weblib.php and then i found the home link. But after that i'm affraid i got lost.

Here is the code on the weblib page:

 } else if ($course === 'none') {          // Don't print any links etc
            $homelink = '';
            $loggedinas = '';
            $home  = false;

        } else if ($course === 'home') {   // special case for site home page - please do not remove
            $course = get_site();
            $homelink  = '<div class="sitelink">'.
               '<a title="Moodle '. $CFG->release .'" href="'">http://moodle.org/">'.
               '<img style="width:100px;height:30px" src="pix/moodlelogo.gif" alt="moodlelogo" /></a></div>';
            $home  = true;

        } else {
            $homelink = '<div class="homelink"><a '.$CFG->frametarget.' href="'.$CFG->wwwroot.
                        '/course/view.php?id='.$course->id.'">'.format_string($course->shortname).'</a></div>';
            $home  = false;
        }

    } else {
        $course = get_site();  // Set course as site course by default
        $homelink = '<div class="homelink"><a '.$CFG->frametarget.' href="'.$CFG->wwwroot.'/">'.get_string('home').'</a></div>';
        $home  = false;

But i'm not sure what you mean when you say;

and we can Imitate it and make a weblink, for example:   $qqlink  = '<div class="sitelink">'.
               '<a title="QQ腾讯" href="http://www.qq.com/"  >'.
               '腾讯网</a></div>';

save it.
 Can you show me the code you used. Maybe it will make more sense to me if i can see what you mean.
Thank You in advance.
Billy E.