LOOK & LEARN: How to add marketing spots as a front page topic.

Re: It should look like this...

by Mary Evans -
Number of replies: 15
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hello, world!

This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.

Learn more »

Heading

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »


Average of ratings: Useful (10)
In reply to Mary Evans

Re: It should look like this...

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Basically all that is happening here is that we are using some of the predefined BOOTSTRAP 2.3.2 layout elements which Bootstrapbase contains.  So using a theme like Clean or More, which are built into Moodle, will allow you to customise your Moodle site in the way YOU want it to look.

Read more »

Average of ratings: Useful (2)
In reply to Mary Evans

Re: It should look like this...

by Andy Chaplin -

Hi Mary

I'm using 2.9 with the More theme.

I followed your post above and it nearly worked.  I guess I missed something obvious.

I added the html in the content section and the logged in page looked fine - full screen width with a docked block, but when I log out and then reopen the front page (the landing page) I get an empty column on each side where blocks would normally go (although there are no blocks on the landing page)  I flushed the cache and set the front page to show no content other than the summary.

any ideas what I've done wrong?

All the best


Andy


In reply to Andy Chaplin

Re: It should look like this...

by Christine Legemble -

Hi Andy,

I've the same problem.

My front page (without blocks) looked fine with Moodle 2.8 (the page was displayed with a 100% width). But, since I updated my moodle to 2.9, I get two empty columns (on the right and on the left) on my front page when i'm not logged.

However, the display is correct (any columns) when i'm logged.

Did you find a solution ?

Best Regards.

Christine

In reply to Christine Legemble

Re: It should look like this...

by Christine Legemble -
Hi,


After some research , I think I found a solution. 

In this case (where there is no block), it seems that the "content-only" class must be placed in the <body> element, but it isn't done here.

Apparently, this class was added by the file: web/theme/base/layout/frontpage.php. 
But it seems no longer used here.
In place, it seems that the used file is now : web/lib/outputrenderers.php (with the "body_css_classes" function).

So I made the following correction :

   3763         if (count($usedregions) === 0) {
   3764             // Add the content-only class because there is no used region.
   3765             $additionalclasses[] = 'content-only';
   3766         }
   3767         elseif (count($usedregions) === 1) {

And, that works for me.

Best Regards.

Christine

In reply to Andy Chaplin

Re: It should look like this...

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Andy,

Sorry I missed this yesterday...

The quick fix for this is as follows:

.empty-region-side-pre.empty-region-side-post #region-main-box,
.empty-region-side-pre.empty-region-side-post #region-main {
  width: 100%;
}

Which you can add to the CSS section of the Morecandy settings page:
Administration > Site Administration > Appearance > Themes > Morecandy (settings)

Hope this helps?

Mary

.empty-region-side-pre.empty-region-side-post #region-main-box,
.empty-region-side-pre.empty-region-side-post #region-main {
  width: 100%;
}
Average of ratings: Useful (2)
In reply to Mary Evans

Re: It should look like this...

by David Morrow -

Mary - Thank you!

This fixed the problem I had with my slightly customized More theme since 2.9 upgrade ( and a second thanks here for your and Mary's tips). I've tried hitting the "Useful" button multiple times, but only the first one registered.

David

Average of ratings: Useful (1)
In reply to David Morrow

Re: It should look like this...

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Thank you David. So glad you found that code useful.

You will be pleased to learn that the problem that caused the narrow display on the frontpage has now been fixed in Moodle. 

As for the Useful button, you can only hit once per comment, but sometimes I think it's more a problem with the device you use for reading forum posts...a bit hit and miss!

Cheers

Cheers      C

Mary

In reply to Mary Evans

Re: It should look like this...

by David Morrow -

Mary,

I should have included a smiley face - I was just looking for a way to make my feedback something beyond the normal "Useful" rating.

We need a button that says, "Incredibly useful and just what I needed right now!", because that really describes how helpful your information was for me.

Another question - I should remove the added CSS when we do upgrade from 2.9.1 to 2.9.2, right?

Thanks!

David

In reply to David Morrow

Re: It should look like this...

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi David,

There have been other discussions about the 'Useful' rating. The thing is, in this and other forums, that we get rated for the help we give and that rating is important, because it goes towards an award for a new Badge each year. So the rating category is not that important as it is only a counter.

What we could do with are more emoticons, the ones we have are a little jaded.

As for deleting the CSS you added it all depends on what it was you were fixing. If something I told you to do then most probably it is fixed in 2.9.2.

Anyway thanks for the kind words and encouragement. heart

Cheers

Mary

PS: Sorry I forgot what this discussion was about...yes the layout has been fixed in 2.9.1 I update mine every week so I'm not all together sure now which version it is in. However 2.9.2 is definitely working OK.

In reply to Mary Evans

Change banner

by Rosa Muñoz -

Hello Mary, I am trying to delete the header and navigation bar of moodle 2.7 [I am making a version for blind people], you could tell me which files to modify or some idea to do this, thank you very much

In reply to Rosa Muñoz

Re: Change banner

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Rosa,

Are you refering to the Clean theme or a custom theme based on Bootstrapbase? If so can you tell me the name of this theme and also the version it was created as?

Thanks

Mary

In reply to Mary Evans

Re: Change banner

by Rosa Muñoz -

Hi Mary!

I'm working on the Clear theme, and I think I already solved the banner issue. For now, I have a new question.


I'm trying to transform the standard Moodle 2.7 login to something resembling the google login: a first view with a Username form that links to a second view with a Password form. The idea is that the first view passes the Username to the second view, and once the Password is introduced, THEN it validates the login info.

As I told you, I'm working on an accessible version of Moodle 2.7 for blind people, and I'm trying to reduce on-screen elements so screen readers don't take forever to read critical information.

So the question is: how do I pass data from one view to another so the second form gets both the Username and Password on submit?

In reply to Rosa Muñoz

Re: Change banner

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

This is a bit tricky as you will need to make changes to the PHP in order to make it work as you want it to.

Could you let me have a link to the site you are working on...its a bit hard to work blind so to speak!

I'm not familiar with the google login...however Ill talk a peep and see if I can pinch some code for you to work on.

Cheers

Mary

In reply to Mary Evans

Re: Change banner

by Rosa Muñoz -

Hi Mary!

I currently have my changes hosted on GitHub (https://github.com/DanaOHara/Moodle27Teses.git). I can't find a hosting server with access to old PHP versions, so I'll set up a local server at home if needed. Most modifications are on the Login folder, specifically on index.php, and the "password" view I made at index_formsecondpart.html.

The most relevant part of my code should be line151 on index.php, on line 151 I make a redirection, if the password us empty i redirect to the second view  (index_formsecondpart), otherwise I login normally.

 thank U

In reply to Mary Evans

Re: It should look like this...

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Just bumping this to the top of the page...as it is still useful.