Remove Install Moodle web hosting

Remove Install Moodle web hosting

by said aazani -
Number of replies: 5

Hi,

I have this annoying thing next to my login details, it says:

You are logged in as Admin User (Logout) Install Moodle web hosting
I would like to remove/delete this line highlighted in red next to the login info. In which file is this info? I'm on moodle 2.0
Average of ratings: -
In reply to said aazani

Re: Remove Install Moodle web hosting

by Lisa Perez -

Did you get an answer to this question?  I would like to remove it as well.

In reply to Lisa Perez

Re: Remove Install Moodle web hosting

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

Who set up your site? - sounds like they have modified your site theme to include that text/link. If you have access to the wwwroot directory you should check the header file in your theme.

In reply to Dan Marsden

Re: Remove Install Moodle web hosting

by Lisa Perez -

Thank you for your quick response.  I also contacted my web host provider and got this reply which has fixed the problem.

It looks like this is in public_html/moodle/lib/outputrenderers.php file. You will need to replace this...

$loggedinas = '<div class="logininfo">'.$loggedinas.' <a href="http://www.simplescripts.com/script_details/install:Moodle" title="install Moodle">Install Moodle</a> <a href="http://www.hostmonster.com" title="web hosting">web hosting</a></div>';

 

...With this...

$loggedinas = '<div class="logininfo">'.$loggedinas.' </div>';

 

I'm VERY happy with HostMonster as my web hosting company.  The price is extremely reasonable and the customer service is fabulous.  However, I didn't like the "branding" and placement of the advertisement.  Many people who use SimpleScripts to install Moodle 2.0 may run into a similar situation and hopefully this solution will work.

In reply to Lisa Perez

Re: Remove Install Moodle web hosting

by Usman Asar -
Picture of Plugin developers Picture of Testers

Finally the information I had been looking for, many Thanks to Dietmar for bringing me to this page, as I am with hostmonster myself, so needed to get rid of all the information that was coming as extra.

 

Many thanks Lisa for your code, and thanks to Dietmar for his continued support!

 

In reply to Usman Asar

Re: Remove Install Moodle web hosting

by Lisa Perez -

I'm glad I was able to help!

I just received a notification from SimpleScripts that they now have the advertising URLs self install in the footer under the Moodle logo.  This would be a better place to have the branding, however some of you may want to remove it entirely.  Since I've already installed Moodle, I'm not sure where you'll find the advertising code now, but hopefully this will still help.