Boost Union questions

Boost Union questions

by Wiebke Müller -
Number of replies: 112
Picture of Particularly helpful Moodlers Picture of Testers
Dear users of the Boost Union theme,

we kindly invite you to use this thread in case of any questions you might have. We are a team of many (sometimes power) users of Boost Union and will try to answer or collectively according to our measures. If any other users know answers or a quicker, don't hesitate to answer.

Thank you for using Boost Union anyway!

Regards on behalf of the team
Wiebke Müller



Average of ratings: Useful (1)
In reply to Wiebke Müller

Re: Boost Union questions

by Srednja Zdravstvena -

Hello,

I'm sure that there is a documentation writen for this issue but I can't seem to find the right answer.

I have installed the Boost Union theme on my Moodle site, but I can't seem to find the option where the Top Navbar would show current users First and Last name credentials, only the profile picture is visible, but i would like to show users First and Last name with it.

Ive added a picture on what i want it to show, right now it only shows the profile picture

Attachment 280023323-ab04b280-24c2-4c42-8a42-338a66e0fce2.png
In reply to Wiebke Müller

Re: Boost Union questions

by Chris Kenniburg -
Picture of Plugin developers
Is there a doc on creating a grandchild theme? Or even a starter set of files for Boost Union that would allow for a grandchild theme?

In reply to Chris Kenniburg

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hi Chris,

Thanks for reaching out in this forum thread! We hoped that people would find it and write here zwinkernd

As for the child theme support, it is a very good time to ask hence there is currently work in progress here https://github.com/moodle-an-hochschulen/moodle-theme_boost_union_child/. And I just double-checked with the DEV team, it will be worthwile to wait briefly since we expect to get an update and related documentation in roundabout 2 weeks. Meanwhile feel free to also check on these issues here on improving the overall infrastructure of Boost Union child theme development.

Best regards from Hanover in Germany!
Wiebke


Average of ratings: Useful (2)
In reply to Wiebke Müller

Re: Boost Union questions

by Chris Kenniburg -
Picture of Plugin developers
Hello Wiebke,
My main concerns are loading SCSS such as in the get_pre_scss function and being able to add in variables
 $configurable = [
        // Config key => [variableName, ...].
        'brandcolor' => ['primary'],
        'bootstrapcolorsuccess' => ['success'],
        'bootstrapcolorinfo' => ['info'],
        'bootstrapcolorwarning' => ['warning'],
        'bootstrapcolordanger' => ['danger'],
        // Begin DBN Update.
        'navbarbg' => ['navbar-bg'],
        'navbarlink' => ['navbar-link'],
        'navbarlinkhover' => ['navbar-link-hover'],
        'navbarsitetitlecolor' => ['navbarsitetitlecolor'],
        'drawerbg' => ['drawer-bg'],
        'bodybg' => ['body-bg'],
        'bgwhite' => ['bg-white'],
        'bgdark' => ['bg-dark'],
        'courseheaderbg' => ['courseheaderbg'],
        'pagenavbuttonsbg' => ['pagenavbuttonsbg'],
        'courseboxheight' => ['courseboxheight'],
        'courseboxheight' => ['courseboxheight'],
        // End DBN Update.
        'activityiconcoloradministration' => ['activity-icon-administration-bg'],
        'activityiconcolorassessment' => ['activity-icon-assessment-bg'],
        'activityiconcolorcollaboration' => ['activity-icon-collaboration-bg'],
        'activityiconcolorcommunication' => ['activity-icon-communication-bg'],
        'activityiconcolorcontent' => ['activity-icon-content-bg'],
        'activityiconcolorinterface' => ['activity-icon-interface-bg'],
    ];

As well as information on how to add functions to a output>core_renderer.php to add new functionality into template files.
Thank you for responding! 
Chris
In reply to Chris Kenniburg

Re: Boost Union questions

by Alexander Bias -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi Chris,

many thanks for reaching out to us about Boost Union.
I am one of the maintainers as you may know and Wiebke pinged me about your post smile

As Wiebke said, we are currently working on a boilerplate for Boost Union Child Themes which will be published on https://github.com/moodle-an-hochschulen/moodle-theme_boost_union_child and which will be accompanied by some better child theme support in one of the next Boost Union releases as well. This is mainly based on the work by Daniel Poggenpohl who built the earlier boilerplate which you found on https://github.com/danowar2k/moodle-theme_boost_union_child and is based on ongoing child-theme discussions in the german-speaking higher education community as well. Please allow us some more days to finish our first release of the boilerplate and we will then be happy to discuss specific details with you.
There is also a Matrix channel about Boost Union child themes. If you have Matrix and are interested in getting in touch with us there, just send me a PM here on moodle.org with your Matrix name and I will invite you.

PS: I recently became aware that you forked Boost Union and used it as basis for theme_learnr. While we are proud to see that Boost Union serves as your theme's foundation, I am still somehow torn about this move as I would have loved to receive some of your well-thought-out features as pull request for Boost Union instead and to see your other, more specialiced requirements realized in a child theme instead of a fork.
Can I understand your question in a way that you plan to rebuild theme_learnr as a real Boost Union Child theme instead of a fork?

Cheers,
Alex
Average of ratings: Useful (2)
In reply to Alexander Bias

Re: Boost Union questions

by Chris Kenniburg -
Picture of Plugin developers
Hello Alex,
Yes, initially I was just forking the theme for expediency and lack of time. I'd like to keep my work as part of Boost Union and be able to add the couple of extra features and styling as a child theme instead of forking it outright. That is why I am seeking to merge back under a proper child theme for Boost Union after hearing about better support and a template to get started.

You guys have the best theme out there for Moodle and I make it a point to share that as much as possible. If I can continue to do what I need as a proper child-theme then I would gladly jump on board with a LearnR child theme of Boost Union.

My main concern is to be able to use a core_renderer to output code to templates and the ability to add variables as described above to get_pre_scss function.

I guess all of this is to say that I hope to be able to put these features into a child theme and do things properly to help support Boost Union. I am hopeful that if I can package my features into a child theme that I can make one of the next releases of LearnR a proper Child Theme of Boost Union.

I am excited to try and port my stuff into a Boost Union Child theme and I am hopeful someone might help if I run into an issue?

Thanks,
Chris
Average of ratings: Useful (1)
In reply to Chris Kenniburg

Re: Boost Union questions

by Chris Kenniburg -
Picture of Plugin developers
I should point out I am making great progress with the styling and color choosers. I've been able to take your template and figure out some of my questions. Adding the output core_renderer is next. I'll need that to add the features we are accustomed to.
In reply to Chris Kenniburg

Re: Boost Union questions

by Chris Kenniburg -
Picture of Plugin developers
So this evening at home I was able to get enough time to dig into this a bit more and I've gotten the core_renderer working too. I guess I didn't realize I could do a Grand Child theme and I am regretting forking Boost Union. I will wait for more developments on your github for the more polished grandchild theme template but I think I already have a way to port over my enhancements and styling into it.

I plan to halt LearnR and share out this new Boost Union child theme. I am actually pretty excited about this! If it wasn't for your new info graphic promoting grand child themes to Boost Union then I wouldn't have known this was possible. I have always heard there were issues with child of child themes but In a matter of two days I was able to have some big success with your template on github.

This is great and I hope to contribute properly with the Boost Union project moving forward. From what I can tell there is no loss of functionality by moving in this new direction for me.
Average of ratings: Useful (1)
In reply to Chris Kenniburg

Re: Boost Union questions

by Alexander Bias -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi Chris,

it's great news that you were able to rebuild your LearnR theme as a Boost Union child theme! And I am glad that we could leverage this transition by proving the Boost Union Child boilerplate!

I would just like to ask you to have a look at the latest status of the boilerplate as we have just finished our work for the boilerplate today and there have been some changes (especially for inheriting SCSS from Boost Union into Boost Union Child) recently which you might not have adopted yet.

Cheers,
Alex
In reply to Alexander Bias

Re: Boost Union questions

by Chris Kenniburg -
Picture of Plugin developers
Thank you Alex for the advice. I looked it over and I think I was able to grab your boilerplate when it was well enough down the road that the new LearnR child theme gets all the important inheritances from Boost Union.

I sent this in an email to Wiebke, but I'll post it here too:

Boost Union is an awesome theme.  It is so much more than just colors and styles.  It changes the functionality of Moodle to benefit users and adds features and functionality that help aid in the process of delivering content and using Moodle.  I am very happy for the work done to provide a template for creating a child theme.  Boost Union is a true gem in the Moodle community.  


Thank you for the hard work put into Boost Union by all the organizations.  

Average of ratings: Useful (1)
In reply to Wiebke Müller

Re: Boost Union questions

by Séverin TERRIER -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Hi,

Just wanted to write a big thank you for the Boost Union theme, which is very useful for us, allowing simply to make several (functionnal) changes.

Latest update allows us to personnalise our authentication page, without modifying mustache templates, and only with some selection, and little CSS lines and language personnalization, we can have only CAS authentication for most people, and a little link to the manual auth page (for people really needing it).

This answers my needs explained in this other discussion, and now support future updates without needing to re-do changes each time.

We still have lots of options to test, to explore all possibilities...

Thanks a lot smile
In reply to Séverin TERRIER

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Thank you Sévérin and also Chris for your recent posts. That's very nice of you to mention! Actually we are planning to do another MUA talk sharing the recent development of Boost Union (as part of the town hall community meeting Tuesday, 2 April, 10:00 AM CEST » 11:00 AM CEST). So if you're participating in MUA, we'd be more than happy to go into more details on this occasion. We will also share some aspects of our community work all around the maintenance of the theme and last but not least we're still a growing team. Especially on the side of peer reviewing external PRs we're still "hiring" volunteers zwinkerndSo have a great rest of week and we'll stay in touch! Wiebke
Average of ratings: Useful (2)
In reply to Wiebke Müller

Problem with menues

by Amit Bartfeld -
Inside a course when I click on a menu, it shows like this:


I'm not sure if I'm missing something, but I just installed the theme and I did not configure anything. Can someone maybe help me understand how to fix that? As for now when I click the menu items with the little arrows it just does nothing.
I'm new to using this theme and generally kind of new to moodle, although I do have some experience with Moodle. The normal boost theme lucks a lot of basic features and menus I need so I'm trying to use Boost Union but I got this. I hope there's an easy solution for this.

I really appreciate any help you can provide.

In reply to Amit Bartfeld

Re: Problem with menues

by Luiggi Sansonetti -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hi Amit

Have you a single activity course format ?

If yes, I have the same behaviour about it (Questionnaire)
In reply to Luiggi Sansonetti

Re: Problem with menues

by Thorsten Bartel -
Picture of Core developers
Hey Amit and Luiggi,

this seems to be a known issue and as per the comments seems to be planned for integration within the next dev-cycle:
https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/415

If you want to stay informed, feel free to subscribe to the issue on GitHub.
In reply to Thorsten Bartel

Re: Problem with menues

by Alexander Bias -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi all,

I would like to mention quickly that this #415 issue has been fixed this week in the latest Boost Union release.
I am really sorry that it took us so long to fix it finally.

Cheers,
Alex
Average of ratings: Useful (1)
In reply to Wiebke Müller

Re: Boost Union questions

by Andreas Giesen -
Describe the bug
Trying to install v4.1-r18 on Moodle 4.1+ (Build: 20221209) All dependencies should be met, but I cannot install the version for 4.1. The version for Moodle 4.0 works, but has less features.

I tried to trick it by changing the dependencies in the version.php to see what happens, but it does not make a difference.

What could be causing this, if the dependencies actually are met?

By now I have upgraded to the newest Moodle 4.1.8+ today and the dependency-check still fails for v4.1-r18
In reply to Wiebke Müller

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Dear users of the Boost Union theme,

we are happy to announce the following releases:

The Boost Union release v4.3-r6 focuses on important infrastructure changes aiming at improving the technical workflow to create child themes out of Boost Union. Please check the release notes for further information. As already mentioned in the discussion above, the related boilerplate for Boost Union Child Themes is about to be finished as well.

In addition to this a long awaited usability plus has been added to the course index. Users will now recognize at a glance which activity type is linked from the course index. The integration of the monochrome activity icon as a visual anchor fits in seamlessly with the activity title and also respects the visualisation of the activity completion status. The feature can be activated via admin/settings.php?section=theme_boost_union_look#theme_boost_union_look_course. We are happy to hear your feedback on this!

Screenshot of Boost union - course index with acitivity icon

The most recent release v4.3-r7 contains a bugfix that gets rid of the unnecessary second level of navigation items within the single activity format.
https://moodle.org/plugins/theme_boost_union/v4.3-r7/31209

Kind regards on behalf of the Boost Union team!
Wiebke
Average of ratings: Useful (3)
In reply to Wiebke Müller

Re: Boost Union questions

by Chris Kenniburg -
Picture of Plugin developers
I really appreciate your work on the boiler plate child theme for Boost Union. That made it so easy to create enhancements!

I did notice one bug in a child theme it didn't inherit the activity icons in the course index. Specifically the settings to change how the completion is displayed. I tried changing the icon color settings and it had no effect on the child theme.
In reply to Chris Kenniburg

Re: Boost Union questions

by Alexander Bias -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi Chris,

you're welcome smile

Regarding the bug which you mentioned, I would like to tell you that the activity icons which have been added to the course index just recently don't get the activity color. Currently, they are either just monochrome or get the color of the activities's completion status.
So this is not a bug in Boost Union Child, it is intended functionality in Boost Union.

However, showing the activity icon color in the course index as well (instead of the completion status color) might be a useful additional feature for Boost Union. Don't hesitate to report that on https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues.

Cheers,
Alex
Average of ratings: Useful (1)
In reply to Wiebke Müller

Re: Boost Union questions

by Alexander Bias -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Dear Boost Union users,

as already announced by Wiebke some days ago, we have worked on a Boost Union Child boilerplate throughout the last few weeks.
The boilerplate is published on https://github.com/moodle-an-hochschulen/moodle-theme_boost_union_child.

This is just a quick heads-up to tell you that our work has reached a first release status now.
The most important thing is that Boost Union Child should be 100% compatible with Boost Union and should not break any Boost Union features.
On top of this, you should be able to implement your own local features in addition to all Boost Union features.

We have added some documentation and example code to the boilerplate and welcome any improvement proposals and code contributions.

Cheers,
Alex
Average of ratings: Useful (1)
In reply to Wiebke Müller

Re: Boost Union questions

by John Leonard -
Hi,

We are currently looking to switch our organization theme to Boost Union. It is a great theme and the customizability is brilliant and suits our needs. There is one thing I can not figure out though. We are looking to use the course cards within "course/index.php" to display the courses listed in categories. The course cards are used on our dashboard for course overview (fig 1 below), but i can not figure out how to implement it onto the "course/index.php" page (fig 2). Any guidance would be greatly appreciated.


FIg 1: course card on Dashboard.


Fig 2. View of course on "course/view.php"

Thanks

John
Average of ratings: Useful (1)
In reply to John Leonard

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hi John,

thanks for your interest in Boost Union and for your question! This is actually being worked on right now. We were lucky to receive a PR from the community which is currently under review. Please check the links below if you're interested in this! Since we're currently running on our limits with the review team, it might still take some time but we're hoping to see this integrated in one of the next releases.


Regards
Wiebke
Average of ratings: Useful (2)
In reply to Wiebke Müller

Re: Boost Union questions

by John Leonard -
Thanks Wiebke for the reply.

I had a look at those links and applied the changes that are shown in https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/pull/555/files, creating the new files and making the edits to existing files. But i think I'm missing a step somewhere. The options become visible in the settings, but its not pulling the text properly and the course cards are not appearing in /course. I have 2 local versions of Moodle, v4.1 and v4.3 (our live instance is 4.1) and have applied the changes on both to the latest theme release (v4.1-r24 & v4.3-r11), but have the same issue on both moodles. Any ideas?


In reply to John Leonard

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hi John,

I apologize for maybe having misled you in my wording "check the links". This really is still work in progress and we would recommend you use the feature only after it has been integrated in one of the next Boost Union releases. As soon as this task is accomplished we will in any case update the issue and you will notice when you subcribe to the issue https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/558. This is what I meant with check the link.

Regards!
Wiebke


In reply to Wiebke Müller

Re: Boost Union questions

by Ezzeddin Hamed -
Hello,

With the too many settings, this is really a wonderful theme, it has some features that paid themes do not have, but at the same time it could be missing things.

I am trying to use an image on the homepage to fill all the page, either as a background or a content image but to fill the page as a slide or banner; the banner and slider in the content section does not help as they do not fill the whole page. I hope to see this in future versions.

For now, is there a quick fix to use a background image to fill the page?

Thanks,
In reply to Ezzeddin Hamed

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hi Ezzeddin.

Thanks for getting in touch. Please search for the term "General background images" - this will lead you to the upload field for a general background image. Navigationwise you will find it in the section "look" and then "site branding" admin/settings.php?section=theme_boost_union_look#theme_boost_union_look_sitebranding. 

Hope this helps!

Regards
Wiebke


In reply to Wiebke Müller

Re: Boost Union questions

by Ezzeddin Hamed -
Hi Wiebke,

Thanks a lot. This does help, it shows as a full page background, which is good, but I want it like this on the front page only leaving all other pages without an image background and just keep it white.

Is there any CSS code that may help in this?

Thanks a lot,

Ezzeddin
In reply to Ezzeddin Hamed

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hello Ezzeddin,

I'm afraid that at the moment there is no such code snippet at hand in the project team.  However, it might fall off any other day of any other peoples coding trees. If so, please crowd, let us know via this forum thread!

Best
Wiebke
In reply to Wiebke Müller

Re: Boost Union questions

by John Leonard -
Hi Ezzeddin,

This CSS code might work, would need to insert the url and play around with the positioning and other background settings etc, but the id value only apply to site home page.

#page-site-index{
background-image: url('insert url');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
In reply to John Leonard

Re: Boost Union questions

by Ezzeddin Hamed -
Hi John,

Thanks a lot for the suggestion, it did not actually need any changes, just the image URL and it worked fine.

I needed to hide the site title on the front page, so knowing the css page reference made it an easy step.

I used the following which has don the tick.
#page-site-index .main-inner-wrapper{
display: none !important;
}

Thanks a lot,
In reply to Ezzeddin Hamed

Re: Boost Union questions

by John Leonard -
Hi Ezzeddin,

No problem at all. Glad it worked for you smile.

John
In reply to John Leonard

Re: Boost Union questions

by Ezzeddin Hamed -
Hi John,

Thanks again. Another question, is there any idea if I could have more than one background for different languages, for example one background if the user selected Arabic, another background if the user selects English.

Regards,
In reply to Ezzeddin Hamed

Re: Boost Union questions

by John Leonard -
Hi Ezzeddin,

You could try something like this. Styling only applies if its that language.

Arabic:

[lang=ar] #page-site-index{
background-image: url('insert arabic url');
}

English

[lang=en] #page-site-index{
background-image: url('insert english url');
}

with no language defined and it will just use the default values.
 
#page-site-index{
background-image: url('insert default url');
}


Might need a bit of tweaking but hopefully it would work.

John
Average of ratings: Useful (1)
In reply to John Leonard

Re: Boost Union questions

by Ezzeddin Hamed -
John, you are marvelous, thanks a lot.

On the same principle, I worked on the login page to change the logo on that page specifically without changing the main logo image, I used the code:
.login-container .login-logo{
content: url('/pix/-local/login-logo.jpg') !important;
}

Thanks again for you help John,
In reply to John Leonard

Re: Boost Union questions

by Ezzeddin Hamed -
Hi John,

I need to change a couple of things on the enrolment options page at /enrol/index.php, I can do some changes that are in CSS, but I am not able to find the page reference CSS code similar to (#page-site-index).

What would be the reference for this page?
Is there any list that shows references for other pages?

Thanks a lot,
 
UPDATE FOR THIS POST:
I found the code as #page-enrol-index, I have done a couple of things on it, but still there is a wording that says "Enrolment options" which used h2 tag under maincontent, I want to remove this wording on this page, but could not reach the CSS code to do so.
 
Would you help please?
 
Thanks a lot,
In reply to Ezzeddin Hamed

Re: Boost Union questions

by John Leonard -

Hi Ezzeddin,

Glad you found the page reference for enrol/index.php. Regarding the wording "Enrolment options", there doesnt appear to be any class or id assigned to that h2 tag so CSS probably wouldnt work. But you could edit the language pack to change the text. Crude but it might work for you.

Go to Site admin -> General -> Language -> Language customisation. 
Select the language pack you wish to load. (in my case it was English(en))
Select all files (shown in attached image) and search for the text you wish to edit (in this case "Enrolment options").
Enter replacement text and save. You could just put a space in so that the text is removed.

Hope that works for you.

John

Attachment Language pack edit.png
Average of ratings: Useful (1)
In reply to John Leonard

Re: Boost Union questions

by Ezzeddin Hamed -
Hi John,

I already know this, I thought it might affect the text in other pages, so it was better with CSS, I noticed that it is only an h2 tag without any CSS, at the end, I ended changing it in language settings using HTML entity space ( ), it left some blank space, but this is fine.

Thanks a lot,
In reply to John Leonard

Re: Boost Union questions

by Ezzeddin Hamed -
John,
In reference to your post which includes:
[lang=en] #page-site-index{
background-image: url('insert english url');
}
How can I use it like:
[lang=en] #page-course-index{

}
In the course index page at /course/ and /course/index.php?categoryid=12
I found "coursebox" as the class which shows the course details in the category listing of courses.
 
What I want to do is when the user select "English" to show only courses that are forced in "English", therefor I can modify to make it for "Arabic" as well.
 
Is there a way to do this in CSS like the previous CSS code?
 
Thanks a lot,
In reply to Ezzeddin Hamed

Re: Boost Union questions

by John Leonard -

Hi Ezzeddin,

I'm pretty sure it cant be done via CSS (i'm open to correction), but its sounds like it would need a database query to display only courses which have a specific language forced. Like only displaying courses you are enrolled in.

John

In reply to Wiebke Müller

Re: Boost Union questions

by Hans B0s -
Hi,
I'm using Moodle version 4.1 with the Boost Union theme installed.
Correct me if i'm wrong but I think that the Boost Union Theme is highly configurable but ...
I would like to have, for example that the list of courses in a categorie is presented to the user as Tiles. Is this possible with the Boost Union Thema?
To what extend is the theme programmable and are there somewhere examples that explain how to do this?
Thanks,
Hans
In reply to Hans B0s

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hi Hans!

Thank you for your question. The feature you seem to have in mind is currently under construction, please see also the comment here https://moodle.org/mod/forum/discuss.php?d=452129#p1837022.
We hope to be able to finish work on this in a not so far future release wink

Also there is a Boost Union child theme boilerplate which has quite recently been crafted explicitely for the users who wish to make local amendments, see more info on this here:
https://github.com/moodle-an-hochschulen/moodle-theme_boost_union_child

Regards on behalf of the Boost Union team!
Wiebke
Average of ratings: Useful (1)
In reply to Wiebke Müller

Re: Boost Union questions

by Ezzeddin Hamed -
Hello,

I am setting the front page. I have enabled "additional block regions" for the front page. The front page will be empty, there will be only a background, which is already set.

I want only to add one block on the front page that is near the bottom of the page, like a footer or a little above the footer. I tried different regions, none of them showed the block at or near the bottom of the page, what I am thinking is that because the page is empty, the block is not going down; in any case, I want to push this block to the bottom.

How I would achieve this?

On the other hand, even though that it is given the default permissions, it is not showing on the front page for users or visitors. How to fix it? Later, I would not allow anyone to edit or remove, except admins.

Thanks a lot for any help.

Regards,
In reply to Ezzeddin Hamed

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hi Ezzeddin,

great to see your making huge progress in the setup of your site! Just one idea from the top of my head, we just fixed the footer so it can handly paragraph breaks, see also here. Maybe this already helps so you can use the footer for the content you want to place?

https://moodle.org/plugins/theme_boost_union/v4.3-r12/31798
https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/623

Plus: The footer is always visible no matter if you're logged in or not.

Regards on behalf of the Boost Union team!
Wiebke
In reply to Wiebke Müller

Re: Boost Union questions

by Ezzeddin Hamed -
Hi Wiebke,

Thanks for your message. I already have r12.

Unfortunately the footnote was not very useful at this time.
1- In the homepage, it shows on top just below the header, without the white background of the footnote. I am removing everything on the front page and just keeping a background.
2- In the login page, it is fine, it shows well.
3- Inside pages, it is fine, except when a page is shorter than the screen, the footnote jumps to the middle of the page, which is not correct, it should be below all content unless the page is short, it should remain at the bottom.

Anyway to fix this?

On the other hand, it might not be useful to me on the front page only as per my message above, I tried to use blocks because I want the content to be unique for the frontpage only.

I hope to find solutions for both the blocks and the footnote.

Thanks and regards,
In reply to Ezzeddin Hamed

Re: Boost Union questions

by Ezzeddin Hamed -
Hi Wiebke,

Should I report this as an issue?

On the other hand, in the course listing page at /course/, categories are showing and I can click on any category which takes me to the page /course/index.php, both pages are technically the same page.

Both show different layouts, my question, how would I show both as course card view?

If any suggestion to the code or CSS, I am able to manage it.

Thanks,
In reply to Ezzeddin Hamed

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers

Hi Ezzeddin, 

thank you again for the insights! I'll answer in three sections, since there are 3 different things to say.

1. There already is a bug issue regarding the permissions of the block region footer, so please feel free to also add new issue with describing your problem with steps to reproduce so the two issues can be linked and looked at together. We will also try to reproduce this in our testing infrastructure to gain insight in the reason for this.

https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/472

2. Regarding the position of the footer in the case of an empty page, you seem to have spotted a bug that had already been fixed. We will look into this and hope to have it fixed again with the next release!

3. Regarding the layouts of the course listing page at /course/ and /course/index.php?categoryid=... , this is already being worked at at the moment. Please see also the comment here https://moodle.org/mod/forum/discuss.php?d=452129#p1837022. We are currently reviewing the PR that was handed in and hope to be able to finish it in a not so far future. 

Regards
Wiebke

In reply to Ezzeddin Hamed

Re: Boost Union questions

by Sebastian Gremm -

Hi Ezzeddin,

To make the footer region blocks visible to unauthorised users, you need to adjust the permissions. Here’s how:

1. Edit the Guest User Role: Go to Site administration > Users > Permissions > Define roles > Guest > Edit.
2. Search for viewregionfooterleft /-center /-right and set them to “Allow”.

This should make the footer visible to users who are not logged in.

Regards,
Sebastian

In reply to Sebastian Gremm

Re: Boost Union questions

by Ezzeddin Hamed -
Thanks Sebastian for your comment.

They are all set to allow seeing the footer, I believe by default. They did not work at that time, I am not sure if there's an update, but I used another theme as there were other major requirements that enforced this.

For the Boost Union, I really liked it and it is very useful.

Thanks again,
In reply to Wiebke Müller

Re: Boost Union questions

by Steve Hardwick -
Hello
I have updated Moodle to 4.4 and enabled Boost Union, all seems OK except when enabling the "Activity & section navigation elements" the pull down menu to jump to a distinct activity/resource is not displaying all the sections in the dropdown, it only displays the last section and if you click on the section (in my case acknowledgements) it takes you to the course main page.

I do not see any errors in the console.

Your advice would be welcomed.

Warm regards
Steve
In reply to Steve Hardwick

Re: Boost Union questions

by Jacques Monnard -

Hi,

This has been mentioned in the bug tracker, see When viewing a single section, the pull-down menu for sections shows only one section.

Jacques

In reply to Jacques Monnard

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers

Yes, thanks for pointing to that! It is a 4.4 thing and will be worked on.

In reply to Wiebke Müller

Re: Boost Union questions

by Carl Maegerman -
  1. Could it be possible to give a URL in smart menu items of level 1 (main menu) and also the same settings (roles and cohorts) as the menu items of level 2 (submenu)? Now menu items that link to a URL must always be a sub-item.
  2. Could it be possible to export the entire smart menu, so it can be imported in to an other moodle environment with BOOST UNION
In reply to Carl Maegerman

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers

Dear Carl, 

the export is a great idea on how to add more functionality to the smart menu. Since we're always a bit short on dev and integration time, this would need a user story in a github issue (see template feature request) and would then have to be prioritised. 

I didn't quite understand nb. 1 though, if you'd like to link away from a menu item directly from the first level you could just use the standard boost feature:
"Custom menu items" to be found here ...admin/settings.php?section=themesettings.

Regards!
Wiebke

In reply to Wiebke Müller

Re: Boost Union questions

by Carl Maegerman -

Hallo Wiebke,

The use of custom items is how we are trying to fix it now, but it would be fantastic if this were just possible within the smart menu wink

In reply to Carl Maegerman

Re: Boost Union questions

by Yvonne Wolf -
Dear Carl, I'm not sure if I got you right. I understood, that you want a smart menu with just one link to a static URL like in the screenshot . Is that right? That would be possible to build as smart menu (all menu items with arrow are smart menus).
 
If that's not, what you ment, then please provide the expected behaviour of the menu, you would like to have, in detail (where should it be placed, what should it look like and how do you want it to behave)
 
Regards on behalf of the team
Yvonne Wolf
 
Attachment URL-in-smart-menu.png
In reply to Yvonne Wolf

Re: Boost Union questions

by Carl Maegerman -

This is what we want if possible

image.png

image%20%281%29.png

image%20%282%29.png

In reply to Carl Maegerman

Re: Boost Union questions

by Yvonne Wolf -
Dear Carl,
so it is not about linking to an URL or restrictions by role or cohort but about the possibility to set icons for menus that have several items in a submenu? That is not possible in the admin settings, yet. This could be a feature request.
But if a menu has several sub menu items there is no use of setting the URL or the target for the menu, this has always to be a setting for the menu item.

If you want to have a menu item with icon without sub menu (just like "START" in your screenshot) this is possible by creating a menu with one inline menu item. You can also use more than one menu item, if you choose inline they all will be displayed as 1st leves items.

Best Regards
Yvonne
In reply to Wiebke Müller

Re: Boost Union questions

by Tsiko Kwinda -

Hi Wiebke.  Thank you for the great thread and theme, i am still relatively new to boost union.  I am trying to edit the frontpage of my site, i noticed i am able to rename "Available courses" to anything i want from with in the theme But i can't seem to either hide or change the position of the text "Available courses" maybe to a more center position.  Please assist if you can.

Best Regards

Tsiko Kwinda (south africa)

Attachment available courses.JPG
In reply to Tsiko Kwinda

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Dear Tsiko,

have you tried with the dev tools in your browser? I am sure, the positioning can be changed via SCSS and then you'd add that in the Boost Union field..../admin/settings.php?section=theme_boost_union_look#theme_boost_union_look_scss

Best regards from Germany!
Wiebke
In reply to Wiebke Müller

Re: Boost Union questions

by Tsiko Kwinda -

Good day Wiebke

Thank you for your response.  i hope i am not asking for too much, could you please break it down a bit for me or do you or anyone have some SCSS code to do this?  the dev tools part just lost me as well.

Your assistance is highly appreciated.

Regards

Tsiko Kwinda

In reply to Tsiko Kwinda

Re: Boost Union questions

by John Leonard -

Hi Tsiko,

To center the "available course" text, try the following SCSS code:

#frontpage-available-course-list h2 {

 text-align: center;

}

To hide it try

#frontpage-available-course-list h2 {

   display: none;

Average of ratings: Useful (1)
In reply to John Leonard

Re: Boost Union questions

by Tsiko Kwinda -

Good day John

Thank you very much, the code worked.

Regards

Tsiko Kwinda

In reply to Wiebke Müller

Re: Boost Union questions

by Steve Hardwick -

Hello All

When looking in the "Grades" view there is a sticky footer (fixed position) so when using the Messages draw 9right hand draw0 in this view the reply textbox and the send button are hidden by the sticky footer.

I am not sure if that is a Moodle 4.4. thing or Boost Union.

I have attached a screenshot.

Regards
Steve

Attachment Screenshot 2024-05-29 at 9.34.53 AM.png
In reply to Steve Hardwick

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hi Steve, thanks for posting. It would be extremely helpful if you verified this on https://sandbox.moodledemo.net/. If it is not happening there, I am sure it is a 4.4. boost union thing again and an issue with bug template would be highly appreciated so we can fix this! Regards Wiebke
In reply to Wiebke Müller

Re: Boost Union questions

by David Pasadas -
Hey,

I'm trying to change the color of "containers" of the main blocks for all the pages ( dashboard, my courses, homepage ) 
Look at the photo attached. I'm trying to get rid of the white? I drew a blue line in what I'm trying to change to avoid confusions
 
 
The inspector gave me the class "main-inner" but the changes are not being applied. Main inner doesn't seem to encompass the whole "container" but it's the best I found. 
I'm trying to change the background and font color

.main-inner {
background-color: #5FA5FB;
}

Can someone tell me what class I should be changing or do I have to change a multitude of IDs ?



Attachment Capture.PNG
In reply to David Pasadas

Re: Boost Union questions

by Carl Maegerman -

Try this

.card-body {
    background: yellowgreen;
}

In reply to Carl Maegerman

Re: Boost Union questions

by David Pasadas -
didn't work

Your code changes the inner box ( recently acccessed courses ; timeline ) but not the outer box
But thx for your reply
In reply to David Pasadas

Re: Boost Union questions

by Carl Maegerman -

Just search the correct CSS selector with F12 in your browser and then play with the CSS rules

image.png

In reply to Wiebke Müller

Re: Boost Union questions

by Tao Wang -
Just wondering when the 4.4 version will be available. Thanks~
Average of ratings: Useful (1)
In reply to Tao Wang

Re: Boost Union questions

by Chris Kenniburg -
Picture of Plugin developers
Me too. I made the cardinal sin of upgrading without checking for plugin support of the Moodle version.
In reply to Wiebke Müller

Re: Boost Union questions

by David Pasadas -
Adding blocks to my courses pages

Hey

I'm trying to add blocks to the my courses page. But there is no option to do so. I tried "additional blocks regions " with 'coursecategory; incourse category; course layout; incourse layout; mypublic.
Maybe it"s because I'm using moodle 4.4 ?or is it just impossible with boost union ?
In reply to David Pasadas

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hello David, the additional block regions functionality does not apply to the mycourses page layout. However, if you wish to combine other blocks with the course overview block, you may want to edit the dashboard and add the course overview block to the dashboard. Regards, Wiebke
 
grafik.png
In reply to Wiebke Müller

Re: Boost Union questions

by Clara Pouli -

Good morning,
I just installed moodle 4.4 with the boost union theme. I set the Display the category breadcrumbs in the course header to 'YES', it works but I would like the name of the course to also be displayed on this breadcrumb to appear like this category / course name
Is this possible and if so how to do it?
I thank you for any help you can give me.
Sincerely

In reply to Clara Pouli

Tárgy: Re: Boost Union questions

by József Horváth -
I have the same problem. In Moodle 4.4 if I click on section, there is no way to back to the course start page using breadcrumb, only way out to the course category list and enter the course again, because the course name is missing from breadcrumb. In the Boost theme course name is in breadcrumb so I can go back, but in Boost Union instead course name there is always only the course category, no matter how "Display the category breadcrumbs in the course header" is set.
In reply to József Horváth

Re: Tárgy: Re: Boost Union questions

by József Horváth -
Entering the forum or other activities, the breadcrumb shows correctly: category / course name / activity name. I want to see the course name in breadcrumb when I'm entering into the one of the sections, by clicking on section title introduced in Moodle 4.4. When I'm on the main page the course name can stay hidden.
In reply to Clara Pouli

Tárgy: Re: Boost Union questions

by József Horváth -

Hi Clara Pouli. For temporary solution you can try what I did. Edit this file: your_moodle_folder/theme/boost_union/classes/boostnavbar.php

  1. find this line: class boostnavbar extends \theme_boost\boostnavbar {
  2. delete all content from the next line until the end, but leave the last closing curly bracket "}"

I think this way you will get the default breadcrumb behavior, what you get from the default Boost theme (category / course name). Of course you will need to repeat this if you update the theme and this case is not resolved. Probably there's some side effects, but currently my Moodle 4.4 is working fine with this fix. If you use LearnR, child theme of Boost Union, that theme is also fixed this way.

Average of ratings: Useful (1)
In reply to József Horváth

Re: Tárgy: Re: Boost Union questions

by Chris Kenniburg -
Picture of Plugin developers
Thanks! This seemed to do the trick until a proper functioning Moodle 4.4 version is released.
In reply to József Horváth

Re: Tárgy: Re: Boost Union questions

by Chris Kenniburg -
Picture of Plugin developers
I found the missing code from the boostnavbar file that needs to be added to keep the features of Boost Union but add the breadcrumb.
 
/theme/boost_union/classes/boostnavbar.php

Around line 108 find -
// Remove the course breadcrumb node.

Replace the code below that comment line to be -
// Remove the course breadcrumb node.
if (!str_starts_with($this->page->pagetype, 'course-view-section-')) {
$this->remove($this->page->course->id, \breadcrumb_navigation_node::TYPE_COURSE);
}

That fixed the breadcrumb issue for me.
In reply to Clara Pouli

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers

Hi Clara, 

Boost Union is currently under review for 4.4, this will be worked on.

Best regards

Wiebke

In reply to Wiebke Müller

Re: Boost Union questions

by Gregorius Hinkebein -

Hi there,

I'm currently working on integrating your awesome Boost Union theme into my Moodle instance, but struggling with this greeting one sees after logging in. Is there any possiblity to disable this? Many thanks in advance.

Kind regards,

Gregorius

image.png

In reply to Gregorius Hinkebein

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hi Gregorius,

this greeting actually comes out of Boost core, see also https://sandbox.moodledemo.net/. But you can for sure identify the relevant container via F12 web inspection tools and then disable it via SCSS code that you put into this field: admin/settings.php?section=theme_boost_union_look#theme_boost_union_look_scss

grafik.png

I am sure there are also other, more elegant ways, but for now there is no option in Boost Union to configure this. It only shows right after login anyway and then disappears.

Regards!
Wiebke

Average of ratings: Useful (1)
In reply to Wiebke Müller

Re: Boost Union questions

by Gregorius Hinkebein -
Many thanks, that helps me a lot.
May I suggest for this to be editalbe in Boost Union's settings? While this soultion does work, it seems pretty unelegant to me.

Kind regards, Greg
In reply to Gregorius Hinkebein

Re: Boost Union questions

by John Provasnik -
Picture of Particularly helpful Moodlers Picture of Testers
There are 3 language strings that rotate here. You could update the 2 "greeting" language strings to just say Dashboard: 


core 

moodle.php 

core 

welcomeback 

Hi, {$a->firstname}! 👋 

core 

moodle.php 

core 

welcometosite 

Welcome, {$a->firstname}! 👋 

core 

moodle.php 

core 

myhome 

Dashboard 

In reply to Wiebke Müller

Re: Boost Union questions

by Alexander Lebeth -
Dear Boostunionistas,
what's the recommended professional approach to do a custom styling of Boost Union? Professional means, that scss styles aren't painstakingly entered into the UI-editor but rather editing is done directly on a file which can be edited in an external editor via FTP.
Quite a while ago, I misused the preset files default.scss or plain.scss and developed my code there.
Would be interesting if there is a better approach.
In reply to Alexander Lebeth

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers

Hi Alexander, 

although I would think that these are the options that you might already have in mind I'd confirm these two approaches. At least I haven't heard of any other options in use in our Moodle in Higher education institutions bubble aka "Kreisen in denen wir verkehren":

  1. smaller changes via admin/settings.php?section=theme_boost_union_look#theme_boost_union_look_scss
  2. bigger changes via the boost preset files admin/settings.php?section=themesettingboost#theme_boost_general

Regards to HH from H!
Wiebke

In reply to Wiebke Müller

Static pages "whitespace results in additional line breaks "

by Ni Pro -

Hello everyone,
we would also like to say a big thank you for the boost_union theme, which we think is absolutely fantastic.

We are currently revising our Moodle. We now want to integrate the "static pages" function more strongly, e.g. to integrate our imprint.

Unfortunately, the interpretation of our HTML code results in an undesirable behaviour. If "whitespaces" are included in the html code, additional line-breaks <br> seem to be added automatically, resulting in visually empty lines. This can be prevented by writing the HTML code of each paragraph <p> in one line. However, this makes the code VERY confusing. 

Extracted HTML code from browers dev mode shows the additional line breaks
Code and result in browser dev mode. Red marked are the line breaks.

Our code with single line breaks
Code used. As to see with only one <br> per line.

If I insert the code with whitespaces, e.g. in a text field within a course, this problem does not arise.

Can someone explain to me whether this is the desired behaviour?
If so, why? 
And above all, is it possible to use an html with wihtespaces for the static pages without creating additional line breaks? If so, how?

In reply to Ni Pro

Re: Static pages "whitespace results in additional line breaks "

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers

Hi Nils, 

thank you for using Boost Union and sorry for taking so long! We've talked about this today, picked some of the code you provided and tested it on a testing stage (moodle 4.4.2, boost union v4.4-r1) with Atto and TinyMCE. The behaviour you described happens with Atto only, so I suggest, for the (probably not daily) editing of the static pages you use the TinyMCE.

Regards from the DEV team!
Wiebke

In reply to Wiebke Müller

Re: Boost Union questions

by Alexander Bias -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi all,

it's my pleasure to inform you that we have just published a first release of Boost Union for Moodle 4.4.
You will find it on Github and on https://moodle.org/plugins/theme_boost_union/v4.4-r1/32585.

All Boost Union issues which have been reported for Moodle 4.4 should be solved.
If you encounter any other issues, please report them on https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues.

Cheers,
Alex
Average of ratings: Useful (1)
In reply to Wiebke Müller

Re: Boost Union questions

by Damir S. -

Hello Boost union team, 

wonderful options and great work!

I need help with the menus, 

Can the primary nav menu be shown as mobile / sandwich icon on all of the screens just beside or on the left of the logo and can the secondary nav menu be placed on the left hand side above the course menu.

This is exactly the function that worked in Moodle 3.2* with some of the custom menu plugins.

Thank you kindly for your help ! Dankeschon !

Attachment Screenshot 2024-07-16 095914.png
In reply to Wiebke Müller

Re: Boost Union questions, fontawesome icons not shown

by Christiana Nolte -

Dear all, 

after Upgrading moodle 3.11 to moodle 4.3, the theme_boost_union was additionally installed. In Boost Theme all fa-icons are displayed well. If I change the theme to Boost_union, only one fontawesome icon is displayed well: fa-question. All other fa-icons using Boost Union are replaced by the same playholder icon, see Screenshot. After changing to theme_boost back, in Boost the fa-icons are displayed well again.

Is there any idea how get all fa-icons displayed in the Boost Union theme?

I appreciate all advices. 

All the best, 
Christiana 

Moodle is run on a testserver:
Moodle 4.3.5
boost_union v4.3-r15 (boost_union v4.3-r14 same problem)

Firewall allows the server to access to github and moodle.org.

Fonts in the moodle lib:
…/moodle/lib/fonts# ls -l
total 960
-rw-r--r-- 1 root root 187208 Jun 19 10:48 fa-brands-400.ttf
-rw-r--r-- 1 root root 108028 Jun 19 10:48 fa-brands-400.woff2
-rw-r--r-- 1 root root  63952 Jun 19 10:48 fa-regular-400.ttf
-rw-r--r-- 1 root root  24948 Jun 19 10:48 fa-regular-400.woff2
-rw-r--r-- 1 root root 394628 Jun 19 10:48 fa-solid-900.ttf
-rw-r--r-- 1 root root 150124 Jun 19 10:48 fa-solid-900.woff2
-rw-r--r-- 1 root root  10172 Jun 19 10:48 fa-v4compatibility.ttf
-rw-r--r-- 1 root root   4568 Jun 19 10:48 fa-v4compatibility.woff2

Attachment Boost_Union.png
In reply to Christiana Nolte

Re: Boost Union questions, fontawesome icons not shown

by Christiana Nolte -
I did the upgrade again, now from moodle 3.11.16 to moodle 4.02.8. In this setting everything works well and all Icons are shown in the Boost Union theme. I really like the Boost Union theme.
I still have no idea by which reason the problem that I reported was caused. - But a can go on now (-:
In reply to Christiana Nolte

Re: Boost Union questions, fontawesome icons not shown

by Dietmar Grasböck -

Hi Christiana, 

I'm not entirely sure, but I seem to remember that we had similar problems with FontAwesome icons when we updated from 3.9 to 4.3.

The problems were gone when we completely uninstalled the Boost-Navigation Fumbling plugin (obsolete in 4.3 anyway). (https://moodle.org/plugins/local_boostnavigation)

regards,
Dietmar

In reply to Wiebke Müller

Re: Boost Union questions

by Damir Serbanovic -
Is it possible to have Fisrst and last name just beside profile logo on top right hand side where user menu is?
if it is how? Thank you!
profile boost union
In reply to Damir Serbanovic

Re: Boost Union questions

by Wiebke Müller -
Picture of Particularly helpful Moodlers Picture of Testers
Hi Damian,
there is a setting to show it in the user menu.
 
"With this setting, you can show the logged-in user's full name at the top of the user menu. This can be especially helpful for exam situations where teachers have to confirm that the user is logged in with his own account, but it might also be helpful for the user himself. In contrast to the Classic theme which shows the user's full name in the navbar near the avatar, this approach here does not claim any additional rare space in the navbar."
 
Regards
Wiebke
grafik.png
In reply to Wiebke Müller

Re: Boost Union questions

by Damir Serbanovic -
that is what I initially thought, I set it to yes saved, cleared all cache but it wont show,
any ideas why?
 
user menu
In reply to Damir Serbanovic

Re: Boost Union questions

by Yvonne Wolf -
Hi Damir,

if you set "show full name in the user menu" to yes it should look like this:



If it does not, could you please tell us, which moodle and boost union version you are using?

Kind regards from the boost union team
Yvonne

In reply to Yvonne Wolf

Re: Boost Union questions

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers
I think the question from Damir is that he wants the full name in the menu bar, where the text 'AU' is visible on your screenshot.
Average of ratings: Useful (2)
In reply to Damir Serbanovic

Re: Boost Union questions

by Dietmar Grasböck -

Hi Damir,

we have moved the username to the header with a (really dirty!) CSS hack. I placed the name of the login info, which is actually in the footer, at the top right. 

Username in Header

>> However, it would be better to integrate the name directly into the theme (moustache files). Has anyone already done this? 

regards,
Dietmar

Average of ratings: Useful (1)
In reply to Dietmar Grasböck

Re: Boost Union questions

by Damir Serbanovic -
This is more than awesome my dear Dietmar
this is amazing :D
// care to share the CSS maybe for me to test it?

Do you also know the module or function to get rid of the welcoming note
"Hi student! {waving hand emoji}"
is this CSS enough

.w-100 {
display: none;
}
Average of ratings: Useful (1)
In reply to Damir Serbanovic

Re: Boost Union questions

by Bob Gilmore -
Picture of Particularly helpful Moodlers

For adding the user name, I haven't tried this on Boost Union, but it works on Boost.

Site Admin > Appearance > Additional HTML > Within Head:

<script>
/* This code copies the user name from the footers login info into the nav bar */
window.addEventListener('DOMContentLoaded', () => {
   const name_container = document.createElement('p');
   name_container.id = 'nav-namecontainer';
   name_container.innerText = document.querySelector('#page-footer .logininfo a').innerText;
   document.querySelector('#usernavigation').insertBefore( name_container, document.querySelector('#usernavigation .usermenu-container') );
});
</script>

Then add the following to the themes custom CSS:

/* CSS for additional HTML to add user name to nav bar */
#nav-namecontainer {
   margin: auto;
   @media ( width <960px ) { display: none; }
}

As noted before, this is a lot of real estate on the nav bar to use up. The CSS rule disables the name display when the browser viewport width is below 960px.

Average of ratings: Useful (2)
In reply to Bob Gilmore

Re: Boost Union questions

by Dietmar Grasböck -
Hi Bob,

Your code with JS is really smart and puts the name with its own class in the right place in the header.

Many thanks!
Didi
In reply to Bob Gilmore

Re: Boost Union questions

by Damir Serbanovic -

Thank you Bob, thank you Didi

I can confirm that on Boost union it looks exactly like it should.

Average of ratings: Useful (1)
In reply to Damir Serbanovic

Re: Boost Union questions

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello,

To avoid confusion with multiple threads of elements within the same post and given its size, I have agreed with Wiebke that this post be locked and a new one created, please see https://moodle.org/mod/forum/discuss.php?d=461642.  This post will remain so that you can reference it in the future.

Kind regards,

Gareth

Moderator