Posts made by Patrick Malley

Moodle in English -> General developer forum -> PHP Logic

by Patrick Malley -
I'm trying to use file_exists to have Moodle check for a logo file in the theme folder. Unfortunately, it's not working. Here's what I have $filename= "$CFG->themewww/accentuate/images/logo.jpg"; if (file_exists($filename)) { I'm guessing that the problem is in the way I'm passing the $filename variable through file_exists. Any help is appreciated.
Average of ratings: -
I apologize for my delay in responding. I took a bit of a break for the holiday.

Here are my first impressions:

1.) The navigation bar that is collapsable to the left side of the screen is not going to work out for themes that add some sort of left and right margin to provide depth to the page. For example, collapsing the navigation bar using anomaly is awkward and confusing.

2.) The Standard theme config.php links to http://phpdocs.moodle.org/HEAD/moodlecore/theme_config.html for options related to customization. This page will not load.

3.) The documentation at http://docs.moodle.org/en/Developement:How_Moodle_outputs_HTML (also linked from Standard theme config.php) appears to be outdated.

4.) In the new settings block, when I click on the Site Administration link, I think that I'm expanding the menu, but I'm taken to Site Administration > Notifications (moodle/admin/). This link should not actually take me anywhere. The correct behavior would be similar to that of the "My profile settings" option that is also in this menu.

I'm going to play a little bit before I write any more. My first task will be to start working on altering the new Standard theme just to get a sense for what I'm doing. If there is anything specific you'd like me to do, please let me know.