Getting the Rocket ready for Launch!

Getting the Rocket ready for Launch!

by Julian Ridden -
Number of replies: 152

Morning all,

Today is a bit of a teaser Im afraid. But more is coming soon.

I am placing the finishing touches to my latest theme called Rocket. Like Mary I am really tryng to push some of the boundaries of what we can do with Moodle 2 themes. But this does take a fair amount of time.

Attached is a screenshot of the new theme and you can see it in action at http://ilearn.asam.mq.edu.au.

While the design is original, It is heavily based codewise on the fantastic work done on the Aardark theme by Mary and Shaun. I hope they dont mind my use of GPL as an excuse to use fair chunks of their code in this theme.

Whats cool about the theme do you ask?

  • New custom block locations to provide more design opportunites
  • dynamic course listings in the dropdown menu
  • theme colors and many other options adjustable through simple theme settinngs
  • designed to look "non Moodle-y"
Would love feedback. Hope to have the Rocket on the launchpad in the next few weeks as I tie up the loose edges.
Julian (Moodleman) Ridden
Attachment rocket_theme.jpg
Average of ratings: Useful (1)
In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Brett Drinkwater -

Julian,

What can I say! Simply beautiful work my friend.

The most impressive "non-moodle-y" theme I have ever laid my eyes upon.  You continue live on the cutting edge of theme development and provide so much inspiration to the rest of us.  I realise that without the poineering efforts of Mary and Shaun with the Aardvark theme, the birth of Rocket would not have be possible, so thanks guys. We are forever in your debt.

The release of this theme will be preceeded by eager anticipation....like a child waiting for Santa claus....I just cant wait!! wink

Cheers
Brett 

In reply to Brett Drinkwater

Re: Getting the Rocket ready for Launch!

by llywelyn morgan -

Hi All

No idea why I can't find it (and I'm stupid for not being able to) but how do I add a label to the home page (zone 9)?

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

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

Oh...love to see this working...can I have access?

Pretty please smile

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Brian Griffin -

Hi Julian,

this is a fantastic theme! One question: how do I enable custom menu and how do I provide items for it? Thank you for your help!

In reply to Brian Griffin

Re: Getting the Rocket ready for Launch!

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

Hi,

If you look at the header to this forum you will see I have added links to tutorials such as the custommenu.

Cheers

Mary

In reply to Brian Griffin

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Nothing to enable. It is there by default. Although you wont see it as an Admin.

Log in as a student or demo user who is enrolled in some courses and you will see the menu in action.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Julian,

 

This is an awesome theme, I have enjoyed working with it.  I have noticed a couple of things.

1. In the theme settings, the logo section designates a default logo size of 272x72.  Using this as my guide I placed a logo in and noticed that it sits now at the top of the screen, see the screen shot below.  The CSS for #logo is set to 140px x 250px with the background alignment set to "top".  As a result the logo is chopped by 32 px and appears at the top of the screen.  I edited my logo to fit to 250px and set the alignment to bottom and it looks better.  The way it is setup right now it assumes a logo of 140px tall, is there a way to dynamically detect the height of the logo or put a setting in to define logo alignment?

 

 

 

 

 

2.  I have tried placing a global search block in the area that you have designated for search and that area appears blank. Here is a screenshot with editing on:

And without editing on:

 

Any thoughts on what would cause this or if I have missed something obvious?  Thanks in advance for your help.

Scott

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Have you turned global search on in your admin settings? It needs to be enabled as well as the block for this to work.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Scott Karren -

It always seems to be the simple things that get me.  That worked, thank you.

I noticed another odd occurance in this theme.  When I am in a course, hovering over the logowrap area, I am given a hand icon that if clicked takes me to http://ilearn.asam.mq.edu.au/  Which is the example site that you offered in the first post.  Doing a little digging, I found a reference to this site in general.php located in the layout dir.

Thank you again for your wonderful theme.

Scott

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

That my dear sir is a stupid bug that I will fix ASAP. Hopefully have updated this weekend for you.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Miriam Laidlaw -
Picture of Plugin developers

Global Search is a deleted item from 2.2 onwards. It is still there in sites that have been upgraded from earlier versions of Moodle 2, but if someone does a clean install of 2.2 Global Search isn't there.

http://tracker.moodle.org/browse/MDL-29923

So how does that affect how this theme works? Is that now wasted space?

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Julian,

I downloaded the version of Rocket available in the plugins database.  When I tried to install it I got this message "Plugin "theme_rocket" (2011011800) could not be installed. It requires a newer version of Moodle (currently you are using 2011070103, you need 2011081700)."

Is Rocket not compatible with the 2.1.X versions of Moodle?

Almost forgot, I am using 2.1.3 build 20111128.

Scott Karren

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

by Rob Johnson -

Hi Scott,

I had the same issue.  If you edit the version.php file, you can replace the required version with yours.  It will install after that.

Rob

In reply to Rob Johnson

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Rob

Thanks for that, I did figure that out afterward.  I was having a brain cramp at the time.  

Julian, can we submit tracker issues for things that we find with this?  FYI, I really like this theme and will be working on customizing it for our company, it will fit nicely with our existing look and feel.

Scott Karren

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Sorry..took a while for this to get approved and then of course I forgot to come back and post a link. Download link is now available in the M&P database here - http://moodle.org/plugins/view.php?plugin=theme_rocket

Or you can grab it directly from my Git repo here - https://github.com/moodleman/moodle-theme_rocket

Please add bugs to the tracker or post them in this thread. Ill action them as soon as I can. Minimum reuirement for this theme is Moodle 2.1. If your on 2.0 you will need to upgrade to use this theme.

Regards

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by James Cracknell -

Hi Julian - it's brilliant & students love it - however they said it would be lovely to have the user picture on every page as in Aardvark...they love that drop down menu/header in Aardvark too.

In reply to James Cracknell

Re: Getting the Rocket ready for Launch!

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

Hi James,

Can you test to see if the site performance/validators work in your version of Moodle?  I could not quite get that to work properly. Cheers

To set these options go to Development > Debugging > and click on performans and validators....then SAVE

Cheers

Mary

In reply to James Cracknell

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Easy done James.

Yo will notice a white space on the top left of the theme under the grey box. Just add your "logged in users" block to that location and change the block settings to have it show on every page. Now their image and a link to their profile willshow from that location.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Chris Newton -

Hello Julian,

I am very impressed by your new theme, and would love to propose it to my company for our next moodle theme upgrade. However there is one problem, the main picture on the frontpage takes up considerable screen realestate. How would I go about changing it an imbedded flash content, or a scrolling css picture similiar to the one on this site (http://www.bionicturtle.com/) ?

Additionally, how could I decrease the thickness of the custom menu above the picture?

Any help with the above would be greatly appreciated smile

Chris

In reply to Chris Newton

Re: Getting the Rocket ready for Launch!

by Bruce DeWitt -

Hello Chris,

Did Julian or anyone else respond to this request? I would like to embed flash content into the banner page as well. Any way to shrink the size a bit too?

Cheers,

Bruce

In reply to Bruce DeWitt

Απάντηση: Re: Getting the Rocket ready for Launch!

by maria kasapidi -

Hi!

I don t know if you had any answer, but today i finally manage to put a flash on my rocket. You can see it at http://www.schoolessons.gr/school-corner/ 

Nothing special as i am just a teacher... i just noticed that banner accepts gif. So i said why not an animated gif?

In reply to maria kasapidi

Re: Απάντηση: Re: Getting the Rocket ready for Launch!

by bachtiar kurniawan -

that's great modification. may I get your theme that you have in this modification. I'm developing a lesson for elementary school with e-learning. thx

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

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

Hi Julian,

I noticed that the profileblock is in this theme, however I have not yet discovered where it is...in fact it looks like it's not used at all, so why is it there?  I noticed too that there is a get_string pointing to the 'ilearn' theme sad but sisnce Profileblock is not used then no worries! smile

I'm finding bugs in this theme which are annoying me! LOL

Mary

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Julian

I am trying to get the custom menu to work on my test site.  Based on your earlier comments this menu is built dynamically from the courses that you are enrolled in.  I have tried this with a couple of test users I have and have not been able to get this to work. All I get is a blank bar.  Am I missing something?

Scott Karren

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

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

Yes...you are missing the main bit about the menu. You need to add at least ONE item before it will show up. You do this by going to Theme settings and follow the instructions for setting up the Custom Menu. You will find a link in this forum header to the tutorial about the custom menu!

Hope this helps?

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Mary

Thank You, I don't remember seeing that piece of info anywhere.  I will let you know the results.

Scott Karren

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

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

Hi,

The problem is that there is no real direction about a lot of little things like this in Moodle Themes. The fact is It is the Theme Designer's responsibility to provide a Moodle HELP page related to every theme they create, then all the info is on the page for all to see.

I only discovered that the Login in Afterburner wont show up unless a menu has been added, so the idea of having a login in the menu is not really useful unless you activate the menu! Same goes for the My Courses link! smile

Cheers

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Mary,

I have the Custom Menu working, but I am still not seeing enrolled courses for my test users. I have them enrolled in several, is there a system setting that I am missing to show "My Courses"?

Scott Karren

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

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

Hi,

I don't recall doing anything different, although I did have debugging on and that triggered the ERROR about the function in the code used to create the My Units menu item, as I have this working in another theme I built some months ago.  You could try turning debugging ON in Site Administration > Development and see if you get any errors?

You should actually see "My Units" which, depending on how may links in your menu, should be on the righthand side of the menu bar.

I must admit I am finding a number of major issues with this theme.

For instance, I added Main Menu block to the large grey area left of the big banner in the header to see how it would look. I then decided I did not like it so I turned editing on and deleted it. This rendered my Frontpage useless...all the blocks vanished including the main content area! I'm not quite sure how I am going to get back into the theme. Fortunately I have Theme settings 'Allow heme change by URL' enabled, so by adding ?theme=standard  in the addressbar just after my moodle site url like so...

localhost/moodle/?theme=standard  I can switch to standard or some other theme so I can get back into the site. I have deleted the search and toplink block from config.php until I can re-configure them to work differently

More problems:

Global Search - reported by Miriam Laidlaw who found that Global Search was depreciated in Moodle 2.2.

Cheers

Mary

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

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

Hi Scott,

You could try Purge all caches in Site Administration > Development that might do the trick!

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Mary

Thanks for your help.  I turned on debugging and am not getting any errors. I also tried purging all the caches with no effect.

If I am looking at the code in the renderers.php within the rocket theme folder.  If I am understanding it correctly if you are logged it creates a list of courses that you are enrolled in by looking at the page navigation block.  If no one is logged in it shows a link to All Courses.  I could be wrong, PHP is not one of my strengths.

At this time I am getting neither of those things, but I do have the menu items I added through the course settings.

Scott Karren

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

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

Hi,

YOU need to be ENROLLED in a course or a number of courses for this to work.

Are you enrolled on any of the course? If not well create a new student account and and then create a new course and when asked ENROL that student onto the course. Next login with the student ID /Password and the menu should be visible.

If you have already done this then there is something wrong.  In the mean time I'll compare the code I use in one of my themes with the code in this theme, and let you know the outcome.

Cheers

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Mary

Yes, I understand that.  I have a test student account that I am using.  As that user I have enrolled in several courses but the menu does not appear.  If I log out, according to the code, an "All Courses" menu item should be there, it is not.

Thank you very much for looking at this, it is appreciated.

Scott Karren

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Hi Scott,

Sadly I cannot replicate your issue on any of the 6 sites I currently have this theme installed on.

Please double check your user is "enroled" ion a course. While this theme does contain some bugs, the issue of the My courses is one I can definitly say is working on sites other than yours.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

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

Julian,

Please checkout the download in the New Plugins Database as theme/rocket/config.php is displaying...

// $THEME->rendererfactory = 'theme_overridden_renderer_factory';

Which has been commented out!

Thanks

Mary

In reply to Mary Evans

My Courses Dropdown menu does not work

by Steven Silvern -

I changed the subject here because "Getting Rocket ready for Launch!" didn't seem descriptive of the issue.

I'm experiencing the same issue that Scott described last year (Feb. 17, 2012).  I have three test courses, and I am enrolled in each of the three (I put all of them in the same category).  I have logged into the site (can't enter without logging in). When I hover my mouse over the My Courses menu on the home page the menu turns gray but does not drop down (I also get a very annoying tool tip that says "my courses"). When I click on the My Courses link (in the dropdown menu it takes me to the correct courses page, and the dropdown menu works perfectly.  It's just a page late.

I've tried in Firefox, Chrome and Safari with the same results.

The courses show up in the Navigation block under My Courses.

I've searched for a fix for this to no avail.

I'm using Moodle 2.4.3 and the Rocket version is 2012122100 (this is the unpacked zip file that you sent to me, Mary, last week when I was having trouble with installing).

Thanks, in advance for any insight you might have.

In reply to Steven Silvern

Re: My Courses Dropdown menu does not work

by Barbara Lawrence -

Hi Steven

We have the same problem (on Moodle 2.4.4) using the same version of the Rocket theme. Did you manage to fix it?

Barbara

In reply to Barbara Lawrence

Re: My Courses Dropdown menu does not work

by Barbara Lawrence -

Apparently the my courses dropdown is broken in Moodle 2.4:

I found this post:

https://moodle.org/mod/forum/discuss.php?d=219352

After implementing the suggested changes it now shows on every page, but only as a course list, no category tree.

There is more info here: http://docs.moodle.org/dev/Themes_2.0_adding_courses_and_categories_to_the_custom_menuhttp://docs.moodle.org/dev/Themes_2.0_adding_courses_and_categories_to_the_custom_menu

but I couldn't get the integration with course categories to work (described at the bottom of the page).

In reply to Barbara Lawrence

Re: My Courses Dropdown menu does not work

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

I think the problem stems from the fact the category tree was changed at some point and broke the existing my course menu.

There is a fix in this in one of the forum post for Bootstrap,  if I can find it I'll give you a link to it.

EDIT:

https://moodle.org/mod/forum/discuss.php?d=229649

Cheers

Mary

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

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

Well it appears to be the same code. It works in both themes...I just dont understand why it's not working in your theme.

Cheers

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Would it be possible for you to send me one of those themes?  My thinking is if it works in one of your themes then there is something in the code for Rocket that we are missing.  If it does not work, then I am doing something wrong.

Scott

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

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

Can you send me your email address in a message?

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Mary

Email has been sent.

Scott Karren

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

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

Hi Scott,

I got your email but did not sed the theme, as I could not get Rocket theme working again after my first disaterous mess I got into with it. I had to start over with Rocket theme because I ended up deleting the one I was using.

For some reason the menu did not work.  It took me ages to figure it out...but then realised how I had got the menu to work the first time, but had forgotten about it.  There is a setting in rocket/config.php which need activating. It should have been active but isn't.

If you look in rocket/config.php and find this line of code...

// $THEME->rendererfactory = 'theme_overridden_renderer_factory';

you need to remove  // from the start of that line so that it reads...

$THEME->rendererfactory = 'theme_overridden_renderer_factory';

and save the file back to your server...then do a purge all caches in Site Administration > Development (if you don't have Theme Developer Mode enabled), then refresh your screen you should see the menu working.

HTH

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Julian and Mary

That fixed it!!  Thank you both for your help with this.  Onward and upward now.

Scott Karren

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

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Sadly, as usual, Mary is 100% right that it is the theme designers responsibility to document their work for the community. This is something I have been meaning to do.

I promise to have something up in the MoodleDocs in the next week or so explaining the use of the core functions of this theme. Many thanks as always to answering these questions before I do.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Further to my last post I have started documenting this theme in the MoodleDocs. Please bare with me as this may take a little while to be finished.

I have also updated the code in the Plugins DB with some minor code fixes.

http://docs.moodle.org/22/en/Rocket_theme

Julian

Average of ratings: Useful (1)
In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Brian Gray -

Can you provide some more information about the custom block location (zone 4 on some of the documentation)?  I'm confused by this - where/how do I add an HTML block (or any other block) here?

In reply to Brian Gray

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Brian

To add the block - On the front page you will want to turn editing on.  Once you have done this you should see the "Add Block" block in one of the columns.  Select the HTML Block from the drop down list.  This will add the block, you can now add any content to this block.

To move the block - With editing on you should see the move icon in the header of the block, it looks like a four sided arrow.  Click this and you will see a series of boxes appear.  Click the box in zone 4 and Moodle will move the block to that zone.

Hope this helps.

Scott Karren

In reply to Scott Karren

Re: Getting the Rocket ready for Launch!

by Brian Gray -

Thanks, Scott.  When I was playing with it at first, I didn't notice the dashed-line box in zone 4 when I tried to move a box.

It works as advertised.

 

bkg

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Rafael Lara -

Hi there,

I have installed Rocket theme using Moodle 2.2.1. It looks wonderful. smile

I can see the template but the Navigation Menu, Site Administration, etc. menus are not working. They appear, but when I click on them, they do nothing. Has anyone faced this problem?
Am I forgetting to upload any php? I have checked again and again that no file is missing (in fact, I have uploaded them all at once).

Thanks! 

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Steve James -

Can anyone help with this problem?

I have tired to install the Rocket on two different moodle installations, on two different servers both give the same error.

"Parse error: syntax error, unexpected $end in /home/site/public_html/moodle1/theme/rocket/settings.php on line 23"

One site is a brand new test install so completely empty nothing added etc it is version - Moodle 2.2.1 (Build: 20120109)

The other site is our live site version - Moodle 2.2.1+ (Build: 20120127)

In both instances I have ftp'd the rocket directory into the theme directory

so that the path is;  /public_html/moodle1/theme/rocket

 

Any help would be appreciated

Steve

 

In reply to Steve James

Re: Getting the Rocket ready for Launch!

by Scott Karren -

Steve

This error generally means that a bracket is missing from the code file so php does not know what to do with it.  Can you open up the settings.php file and see what is after line 23?  If there is nothing there then the file is incomplete and chances are you got a bad download and will need to re-download the theme.  The download links are higher up in this thread.

HTH

Scott Karren

In reply to Steve James

Re: Getting the Rocket ready for Launch!

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

Hi Steve,

This all depends on the download. Julian has recently updated the download in the New Plugins Database - Rocket theme where you are supposed to download this theme. If you downloaded it outside of this database then it is probably an old version.

I have just checked this file and can find no error.

HTH

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Again, as usual, Mary has beaten me to the answer here.

That file has no errors and please be sure to grab it from the official source only. That way you are guarranteed the best expereince.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Steve James -

I checked and the version that I downloaded was version

2011011800 Release date Wednesday, January 18, 2012, 01:35 PM

From the plugins database on moodle.org

Some else suggested to check that there was content after line 23

and there is. The file looks ok.

I have attached the settings.php file as it was downloaded.

I have tried downloading and installing the theme from two different machines, one at home one at work and on two different moodle installs.

And I always get the same unexpected $end error on line 23.

 Steve

 

 

In reply to Steve James

Re: Getting the Rocket ready for Launch!

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

The settings page is identical to mine and I'm not getting that error.

Have you actually tried looking at the settings.php via your file manager editor (server side) rather than just copying the file you still have from the original zip?

It could be your servers are striping the closing brace from the file.

This can happen in some servers if you FTP themes in an otherwise cPanel server environment.

HTH

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Steve James -

Thanks for that tip.

I had a look at the server side files and sure enough the php files had been altered in the ftp transfer.

I got around it by uploading the zipped theme file into the theme directory and unzipping it on the server using cpanel.

The theme then worked.

 

Steve

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Christoph Wettstein -

Julian,

First of all, amazing theme - thanks for this!

However, there is a point where I'm currently strugggling: is there an option to enable/display the language menu to allow the users to change the language?

Thanks, Chris

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Kirill Astashov -

Hi Julian.

I've just installed the theme to test on a local instance, looks totally broken.

1. A PHP notice and fatal error are showing.
2. Instead of page contents it says [MAIN CONTENT GOES HERE]
3. JavaScript menus (navigation/settings) won't expand or collapse.

See the attached screenshot.
All theme settings are default, tried on Moodle installed in subfolder and in wwwroot, same result.
Moodle 2.2 (Build: 20111205) MATURITY_STABLE.
Any ideas?

In reply to Kirill Astashov

Re: Getting the Rocket ready for Launch!

by Kirill Astashov -

Seems that same issue has been reported on Tracker

https://tracker.moodle.org/browse/CONTRIB-3498

In reply to Kirill Astashov

Re: Getting the Rocket ready for Launch!

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

Hi Kirill,

Yes there are issues with this theme, however it does depend on where you are downloading the theme from as the one in the main download area is badly affected, but the zip-ball in the alternative URL is a better version.

It is a great pity that this theme is not being updated in the Plugins Database.

From memory the theme folder contains .DS_Store files which are MAC generated and should not be in this theme. Also some of the php files are save in MAC format rather than UNIX and this too is adding to the problems.

CONTRIB-3498 is the place to make known all the problems which need addressing, with this theme.

Thank you,

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

I have updated the theme in the database to be the same as the one currently in Git. It has some bug fixes, but more to some.

Should at least fix the main issues many are reporting. As Mary has stated. Best place to put issues is not here but in the tracker and attached to the Rocket as an item (see https://tracker.moodle.org/browse/CONTRIB/component/11930 ) . That way I can try and keep on top of things and fix issues people are reporting.

MAJOR ISSUE: currently the variable width does not work as it should. Please keep to fixed width if you want to use this theme currently. The next version will hopefully have a fix for this.

Julian

In reply to Kirill Astashov

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

This has now been updated and closed

Code error is rectified and I have updated my .gitignore to no longer sync those pesky OSX generated .DS_Store files.

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Benjamin Gee -

I presume this is the right thread to ask my question, if not please excuse me.

I'd like to change the height of the banner section and subsequently the "Toplinks" section to match. I've done so by changing this:

#banner {
    height: 350px;
    width: 750px;

and this:

#toplinks {
    height: 350px;
    width: 100%;
}

The issue I'm facing is the background transition from blue to white doesn't match up with the newly sized banner and menu??

Any idea how I can reslove this? Firebug's not giving me any hints!

Thanks.

Attachment bg_match.jpg
In reply to Benjamin Gee

Re: Getting the Rocket ready for Launch!

by Benjamin Gee -

^^^^^ Does any clever person know how I can make the background conform?!? ^^^^^

smile

In reply to Benjamin Gee

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

I have released an update that now allows you to change this with a setting instead of having to use code. Hope that will make this easier for you.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Benjamin Gee -

Hey Julian.. thanks for the reply and the info on the update.

The new funtionality looks awesome. Especially the edit mode!!!!!!!!!!!!

Like some other people I'm having problems with the layout of the new site (this issue didn't occur just prior to V.1)

I thought I'd throw up a few screens just in case it helps.

I noticed in your youtube video Here your copy exhibits the same issues.. when you click on some links the logo insets and you have the same problem with the banner being slightly off to the right. The top background colour transition from red to grey is also too low and doesn't meet up with the banner anymore?

Fingers crossed it's not too difficult to fix.. I'm absolutely loving the theme otherwise, especially it's look and the "website-ish" functionality ;) Well done!!

Regards,

Benjamin.

Attachment p1.jpg
In reply to Benjamin Gee

Re: Getting the Rocket ready for Launch!

by Benjamin Gee -

Another example

Attachment p2.jpg
In reply to Benjamin Gee

Re: Getting the Rocket ready for Launch!

by Benjamin Gee -

Last one

Attachment p3.jpg
In reply to Benjamin Gee

Re: Getting the Rocket ready for Launch!

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

Hi Benjamin,

If you look at the CSS for these elements using Firebug you will see that there is a disparity between the actual size of the logo and space it is allocated.

HTH

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Thanks again for the feedback everyone.

I hate how multiple browsers (especially IE) all handle paddings and margins differently.

Ill get an update up ASAP with a fix. Stay tuned

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Benjamin Gee -

Great news Julian!! I seem to be having the same issue in both FF and Chrome.

@Mary - Thanks for the reply Mary, strange the logo size and container size are different according to firebug, although that's not causing all the alignment issues.. strange thing is, in rockets theme settings it states the default logo size being "272px by 72" and that definitely isn't right mixed

I'll keep my eyes peeled for updates Julian..


B.

In reply to Benjamin Gee

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Hoping to get some help from Mary here.

I have spent nearly an hour going insane because of bloofy IE.

Check out http://features.demo.moodle.com.au/course/

All browsers render this page perfectly EXCEPT for IE.

I am trying to allow for the screen to render in fixed or variable width..but this is doing my head in. Suggestions are more than welcomed on suggested fix.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Brand new install of Rocket produced Errors as soon as I logged in and trying to select theme. Could not set default blocks. Looks like you have not set the homeblock? Here the stack trace I got trying to add an HTML block into the banner area.
I can't even think about IE7/8 with all this going on! Cheers  Mary
Invalid get_string() identifier: 'region-homeblock' or component 'theme_rocket'. Perhaps you are missing $string['region-homeblock'] = ''; in C:\wamp\www\moodle222/theme/rocket/lang/en/theme_rocket.php?
  • line 6386 of \lib\moodlelib.php: call to debugging()
  • line 6978 of \lib\moodlelib.php: call to core_string_manager->get_string()
  • line 1156 of \lib\outputlib.php: call to get_string()
  • line 1183 of \lib\outputlib.php: call to theme_config->get_region_name()
  • line 88 of \blocks\edit_form.php: call to theme_config->get_all_block_regions()
  • line 169 of \lib\formslib.php: call to block_edit_form->definition()
  • line 59 of \blocks\edit_form.php: call to moodleform->moodleform()
  • line 1214 of \lib\blocklib.php: call to block_edit_form->__construct()
  • line 1071 of \lib\blocklib.php: call to block_manager->process_url_edit()
  • line 1210 of \lib\pagelib.php: call to block_manager->process_url_actions()
  • line 720 of \lib\pagelib.php: call to moodle_page->starting_output()
  • line 632 of \lib\outputrenderers.php: call to moodle_page->set_state()
  • line ? of unknownfile: call to core_renderer->header()
  • line 1363 of \lib\setuplib.php: call to call_user_func_array()
  • line 95 of \index.php: call to bootstrap_renderer->__call()
  • line 95 of \index.php: call to bootstrap_renderer->header()
Invalid get_string() identifier: 'region-homeblock' or component 'theme_base'. Perhaps you are missing $string['region-homeblock'] = ''; in C:\wamp\www\moodle222/theme/base/lang/en/theme_base.php?
  • line 6386 of \lib\moodlelib.php: call to debugging()
  • line 6978 of \lib\moodlelib.php: call to core_string_manager->get_string()
  • line 1165 of \lib\outputlib.php: call to get_string()
  • line 1183 of \lib\outputlib.php: call to theme_config->get_region_name()
  • line 88 of \blocks\edit_form.php: call to theme_config->get_all_block_regions()
  • line 169 of \lib\formslib.php: call to block_edit_form->definition()
  • line 59 of \blocks\edit_form.php: call to moodleform->moodleform()
  • line 1214 of \lib\blocklib.php: call to block_edit_form->__construct()
  • line 1071 of \lib\blocklib.php: call to block_manager->process_url_edit()
  • line 1210 of \lib\pagelib.php: call to block_manager->process_url_actions()
  • line 720 of \lib\pagelib.php: call to moodle_page->starting_output()
  • line 632 of \lib\outputrenderers.php: call to moodle_page->set_state()
  • line ? of unknownfile: call to core_renderer->header()
  • line 1363 of \lib\setuplib.php: call to call_user_func_array()
  • line 95 of \index.php: call to bootstrap_renderer->__call()
  • line 95 of \index.php: call to bootstrap_renderer->header()
Invalid get_string() identifier: 'region-homeblock' or component 'theme_canvas'. Perhaps you are missing $string['region-homeblock'] = ''; in C:\wamp\www\moodle222/theme/canvas/lang/en/theme_canvas.php?
  • line 6386 of \lib\moodlelib.php: call to debugging()
  • line 6978 of \lib\moodlelib.php: call to core_string_manager->get_string()
  • line 1165 of \lib\outputlib.php: call to get_string()
  • line 1183 of \lib\outputlib.php: call to theme_config->get_region_name()
  • line 88 of \blocks\edit_form.php: call to theme_config->get_all_block_regions()
  • line 169 of \lib\formslib.php: call to block_edit_form->definition()
  • line 59 of \blocks\edit_form.php: call to moodleform->moodleform()
  • line 1214 of \lib\blocklib.php: call to block_edit_form->__construct()
  • line 1071 of \lib\blocklib.php: call to block_manager->process_url_edit()
  • line 1210 of \lib\pagelib.php: call to block_manager->process_url_actions()
  • line 720 of \lib\pagelib.php: call to moodle_page->starting_output()
  • line 632 of \lib\outputrenderers.php: call to moodle_page->set_state()
  • line ? of unknownfile: call to core_renderer->header()
  • line 1363 of \lib\setuplib.php: call to call_user_func_array()
  • line 95 of \index.php: call to bootstrap_renderer->__call()
  • line 95 of \index.php: call to bootstrap_renderer->header()

Invalid get_string() identifier: 'region-homeblock' or component 'theme_base'. Perhaps you are missing $string['region-homeblock'] = ''; in C:\wamp\www\moodle222/theme/base/lang/en/theme_base.php?

  • line 6386 of \lib\moodlelib.php: call to debugging()
  • line 6978 of \lib\moodlelib.php: call to core_string_manager->get_string()
  • line 1172 of \lib\outputlib.php: call to get_string()
  • line 1183 of \lib\outputlib.php: call to theme_config->get_region_name()
  • line 88 of \blocks\edit_form.php: call to theme_config->get_all_block_regions()
  • line 169 of \lib\formslib.php: call to block_edit_form->definition()
  • line 59 of \blocks\edit_form.php: call to moodleform->moodleform()
  • line 1214 of \lib\blocklib.php: call to block_edit_form->__construct()
  • line 1071 of \lib\blocklib.php: call to block_manager->process_url_edit()
  • line 1210 of \lib\pagelib.php: call to block_manager->process_url_actions()
  • line 720 of \lib\pagelib.php: call to moodle_page->starting_output()
  • line 632 of \lib\outputrenderers.php: call to moodle_page->set_state()
  • line ? of unknownfile: call to core_renderer->header()
  • line 1363 of \lib\setuplib.php: call to call_user_func_array()
  • line 95 of \index.php: call to bootstrap_renderer->__call()
In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Tina Powers -

Hello,

We love the Rocket theme. We just downloaded and are having trouble getting the banner in; the whole section seems off. (Zones 4 & 5 on reference page) We have created a block in HTML with a UL list and moved it to the Top Links, however, after saving the changes the block disappears. Similarly, the banner will not appear. We have enabled global settings, and tried several files to no avail. Thoughts?

In reply to Tina Powers

Re: Getting the Rocket ready for Launch!

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

The problem with the HTML Block is that you need to give it a title, else it will not work, that's just the way it's designed. However you can hide the title with CSS once it is made. smile

In reply to Tina Powers

Re: Getting the Rocket ready for Launch!

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

Tina,

There appears to be a problem with this theme where you are trying to add your HTML block in the block area of the banner.

Julian is aware of it and will be updating the theme accordingly.

Cheers

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Tina Powers -

Thanks, Mary for this. Do you guys have any idea when this update will be available? Will it be announced on the discussion forum?

In reply to Tina Powers

Re: Getting the Rocket ready for Launch!

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

Hopefully yes! smile

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Tina Powers -

Hi Mary,
We are still having trouble with the TopLinks section of Julian's rocket theme. We are wondering if there is a fix that we might be able to take care of from this end. Does he know yet what has caused the issue.

Just in case this is not a result of the identified bug, I am attaching a screen shot.Please note in the attachment:

We have circled the logo along with the logo link in the Rocket theme settings page.

We have circled the banner link in the same page and there is a question mark indicating that the banner is not presenting as we expected.

Both the logo and the banner files are stored in the same directory on the server, however, only the logo link is exhibited on the page.

Do you have any suggestions and do you still think this is the bug that Julian is working on?

Thanks for your help.

Attachment rocket banner issue.PNG
In reply to Tina Powers

Re: Getting the Rocket ready for Launch!

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

I'm not sure what is wrong with it. I have been attempting to fix it but it is not easy. In actual fact I have started to rebuild a copy of this theme and even so it is a pain to do.

If you have not tried this already, go to the download area where you originally d/loaded this theme and look for the link to Julian's GITHUB. Here you should find the most uptodate version.

Try that in place of the one you have now and see if it works any better?

HTH

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Benjamin Gee -

Hey Julian.. I've got to have our new moodle site up and running by Wednesday next week, I desperately want to use 'Rocket' but with the current formatting issues, sadly I won't be able to.

I've spent the best part of two days trying to fiddle the css into submission and I just can't get it to work across all browsers... well the good ones anyway, I'm not fussed whether it works in IE to be honest, we specifically instruct our users not to use it for all the obvious reasons.

Could you give us an update on how things are progressing and whether you intend to have the formatting issues sorted out anytime soon?

Thanks very much.

B.

In reply to Benjamin Gee

Re: Getting the Rocket ready for Launch!

by David Dunn -

Hi Julian,

I confirm Benjamin's formatting concerns. I see the same misalignments on the home page in FF 12.0, and even larger issues in the Admin pages (see image).

Rocket CSS issues

I have set the screen width to Variable and note that resizing the Admin pages seems to show inconsistencies in what is actually variable. Could this be a clue?

I haven't as yet explored the theme's features beyond this point, but am already excited by the first impressions.

- David

In reply to Benjamin Gee

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Hi all,

I am one of the lead organisers of iMoot and that has been taking up all my time as of late. This has meant I have had no time to spend on rocket.

The thme, as far as I am aware, works fine in fixed width. It is the variable width thaht is screwy. I am thinking I should disbale that function in the next release until I get a chance to do it propoerly.

My advice right now is that if you want to use Rocket, stick in "fixed width" mode and you will be fine.

If someone comes up with a solution for the variabe width code I would be more than happy to merge it in.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Tharaka Nuwan -

I am using moodle 2.1 and setup Google Oauth2.0 authentication plugin and it is working well.

But I want to put it just above the moodle login box(screenshot) but I don't know where to put that code and if needed how to edit the exisiting php code. I am not familar with php so help me to fix this.

When I put that code to general.php it view like attached screenshot It won't dissapear after login.

Attachment screenshot.gif
In reply to Tharaka Nuwan

Re: Getting the Rocket ready for Launch!

by Miriam Laidlaw -
Picture of Plugin developers

To get your box to disappear after login, put something like:

if (isloggedin()) { echo "You are logged in with Facebook"; }

else {

THE CODE FOR YOUR AUTHENTICATION LOGIN BOX HERE

}

Don't forget that as this is PHP code, it needs to sit within <?php ?> tags.

To get the Facebook authentication to show up on the login page... Erm, I can't think how to do this without touching the core Moodle code. Anyone?

In reply to Miriam Laidlaw

Re: Getting the Rocket ready for Launch!

by Tharaka Nuwan -

(Edited by Mary Evans - original submission Friday, 8 June 2012, 09:42 AM)

I removed all the general.php code as we already know what it looks like.

Thank you but it won't work....

This is what I want to add to have Facebook login button

        <?php
              //get previous auth provider
              $allauthproviders = optional_param('allauthproviders', false, PARAM_BOOL);
              $cookiename = 'MOODLEGOOGLEOAUTH2_'.$CFG->sessioncookie;
              if (empty($_COOKIE[$cookiename])) {
                  $authprovider = '';
              } else {
                  $authprovider = $_COOKIE[$cookiename];
              }
          ?>
        <center>
            <br/><br/><br/>
                  <?php echo get_string('signinwithanaccount','auth_googleoauth2'); ?>
                  <br/><br/>
            <div style="width:'1%'">
                  <?php
                        $displayprovider = ((empty($authprovider) || $authprovider == 'google' || $allauthproviders) && get_config('auth/googleoauth2', 'googleclientid'));
                        $providerdisplaystyle = $displayprovider?'display:inline-block;':'display:none;';
                  ?>
                  <div class="singinprovider" style="<?php echo $providerdisplaystyle; ?>">
                              <a href="https://accounts.google.com/o/oauth2/auth?client_id=<?php echo get_config('auth/googleoauth2', 'googleclientid'); ?>&redirect_uri=<?php echo $CFG->wwwroot; ?>/auth/googleoauth2/google_redirect.php&scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email&response_type=code">
                                    <img src="<?php echo $CFG->wwwroot ?>/theme/YOURTHEME/pix/GOOGLELOGO.jpg" />
                              </a>
                  </div>
                  <?php
                        $displayprovider = ((empty($authprovider) || $authprovider == 'facebook' || $allauthproviders) && get_config('auth/googleoauth2', 'facebookclientid'));
                        $providerdisplaystyle = $displayprovider?'display:inline-block;':'display:none;';
                  ?>
                  <div class="singinprovider" style="<?php echo $providerdisplaystyle; ?> padding-left: 20px;">
                              <a href="https://www.facebook.com/dialog/oauth?client_id=<?php echo get_config('auth/googleoauth2', 'facebookclientid'); ?>&redirect_uri=<?php echo $CFG->wwwroot; ?>/auth/googleoauth2/facebook_redirect.php&scope=email&response_type=code">
                                    <img src="<?php echo $CFG->wwwroot ?>/theme/YOURTHEME/pix/FACEBOOKLOGO.png" />
                              </a>
                  </div>
                  <?php
                        $displayprovider = ((empty($authprovider) || $authprovider == 'messenger' || $allauthproviders) && get_config('auth/googleoauth2', 'messengerclientid'));
                        $providerdisplaystyle = $displayprovider?'display:inline-block;':'display:none;';
                  ?>
                  <div class="singinprovider" style="<?php echo $providerdisplaystyle; ?>">
                              <a href="https://oauth.live.com/authorize?client_id=<?php echo get_config('auth/googleoauth2', 'messengerclientid'); ?>&redirect_uri=<?php echo $CFG->wwwroot; ?>/auth/googleoauth2/messenger_redirect.php&scope=wl.basic wl.emails wl.signin&response_type=code">
                                    <img src="<?php echo $CFG->wwwroot ?>/theme/YOURTHEME/pix/MESSENGERLOGO.jpg" />
                              </a>
                  </div>
            </div>
            <?php if (!empty($authprovider)) { ?>
                  <br/><br/>
                  <div class="moreproviderlink">
                  <a href='<?php echo $CFG->wwwroot . (isset($CFG->alternateloginurl) ? $CFG->alternateloginurl : '/login/index.php') . '?allauthproviders=true'; ?>' onclick="changecss('singinprovider','display','inline-block');">
                                    <?php echo get_string('moreproviderlink', 'auth_googleoauth2');?>
                              </a>
                  </div>
            <?php } ?>
        </center>

If you want any other file code I will post it..I don't know php 

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Nano A -

I really like this theme Julian!

Just need a quick pointer to create a label in the frontpage like yours.

I read that "just by putting a table with CSS formats it automatically", but I don't know how to do this.

Thanks and sorry if this is a very basic question. smile

In reply to Nano A

Re: Getting the Rocket ready for Launch!

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

You need to...

  1. With Editing ON add an HTML block using the ADD BLOCK
  2. Give this block a title - Links (or something else but keep it short)
  3. In the Text Editor menu click on the <> or "html" button this opens the plain text area to add the HTML to
  4. Now ADD the following HTML links

<ul>
<li><a href="#" title="link" >Link 1</a>
<li><a href="#" title="link" >Link 2</a>
<li><a href="#" title="link" >Link 3</a>
<li><a href="#" title="link" >Link 4</a>
<li><a href="#" title="link" >Link 5</a>
</ul>

Then save the settings.

Now with Editing still on move this block to the top-left block region and it should change as required.

HTH

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Nano A -

Thanks Mary!

 

Sorry I was not clear enough but I was talking about this area:

 

Your tip was great anyway as that was probably going to be my next question smile

 

 

In reply to Nano A

Re: Getting the Rocket ready for Launch!

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

OK...

To do this you need to

  1. Enable Site Topic in Settings > Frontpage settings> Edit settings
  2. Turn editing on in the frontpage
  3. CKICK the editing icon somewhere towards the top of the page (looks like a hand holding a pen or just a pencil)
  4. This is the area you can add images and text to. You can add a table or just add and image set it to display right or left and add some text. Just use the Text Editor menu to add stuff with.

HTH

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Nano A -

I can add a label and insert a table and text, but I can't seem to find is how to format it automatically... (to make it look like the ones in his example)

In the instructions in the first post, Julian says "just by putting a table with a custom class it formats it automatically..."

In reply to Nano A

Re: Getting the Rocket ready for Launch!

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

does is say what class? If he gives one then should be able to add this into the settings for the table.

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Nano A -

He did say CSS in the first post... I'll guess will have to wait until Julian pops in smile

 

I asked this next question in the SCORM forum and got some help but thought you might know how to do this Mary...

Would you know by any chance how to align the SCORM player to the top?

First, SCORM player was showing like this in this theme:

 

this code added to the CSS window in the 'theme settings' reduced the wated space

.yui-layout-doc {
height: 650px !important;
}

.yui-layout {
height: 650px !important;
}

.yui-skin-sam .yui-layout .yui-layout-unit .yui-layout-bd-noft {
border:0 !important;
}

 

and made it look like this

 

The size of the window is correct now but the player is aligned to bottom leaving 1/3 of the scorm activity out of the screen.

Do you know what should I add to the CSS to align it to the top?

 

Thanks smile

 

 

 

In reply to Nano A

Re: Getting the Rocket ready for Launch!

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

Are you using the copy of Rocket that is in Julian's GITHUB as that looks like it is using the Afterburner theme layout. So just as a test, switch to Afterburner theme and see if the problem exists in that theme also. I shouldn't as it works ok on my local WAMP server.

Let me know how you get on.

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Nano A -

In Afterburner looks a little bit better because the central column is wider, but the scorm activity is centered (as opposed to aligned to bottom in Rocket).

It should be aligned to top, shouldn't it?

I tested this in Safari, Firefox and Chrome.

 

In reply to Nano A

Re: Getting the Rocket ready for Launch!

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

Not necessarily, it depends on how they have been styled. 

If none have been set in a theme then the CSS comes from the SCORM style.css which you can find in moodle/mod/scorm/style.css

It could be that there is some css in Rocket theme that is styleing the page and so SCORM just fits into what is there, as the theme takes presidence over the mod.

Try using FireBug to inspect the CSS on the page and for the scorm player too. and see what styles are at play in the Rocket theme as opposed to what you see in Afterburner.

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Nano A -

Thanks for the pointer Mary.  Will investigate...

In reply to Julian Ridden

Απάντηση: Getting the Rocket ready for Launch!

by maria kasapidi -

Hi all from Athens Greece!

Well, i have my rocket ready for launch http://www.schoolessons.gr/school-corner/ but i have i problem ...
I want to change the label at "all courses'  at the top menu and "navigation" at the left to be in Greek language. Pls have you any idea who to do this? Tell me in simple words as am not a "moodle girl" :pppp
Attachment rocket-school.jpg
In reply to maria kasapidi

Re: Απάντηση: Getting the Rocket ready for Launch!

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

Γεια σου,
Δε μιλάω ελληνικά, αλλά μόνο με το Google μεταφραστή για να κάνει τη δουλειά για μένα εδώ.

Θα πρέπει να δείτε τη σελίδα Language Settings.
Για να αλλάξετε My Courses ακολουθήστε τις οδηγίες μου παρακάτω:

  1. First you will need to make a new sub-directory in rocket/lang/ and name it el (this is the abbreviated name for Elonka).
  2. Make a copy of theme_rocket.php and add it to rocket/lang/el/
  3. Using Notepad open rocket/lang/el/theme_rocket.php and change the following language $string  which applys to the theme.
    For example:
    $string['mycourses'] = 'My Courses';
    $string['navigation'] = 'navigation';
    so that it looks like this...
    $string['mycourses'] = 'Μαθήματα μου';
    $string['navigation'] = 'πλοήγηση';

  4. Save the file and then test it to see that the language is working. you may need to Purge all cache by going to...
    Site administration > Development > Purge all caches

I hope this helps?

Mary

 

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

Απάντηση: Re: Απάντηση: Getting the Rocket ready for Launch!

by maria kasapidi -

Καλημέρα!

Thanks!!!!  Now it's all Greek to you!!!

Make me more happy... can i replace the header image with a flash same size?

Ευχαριστώ!!!!!!!!!

In reply to Mary Evans

Απάντηση: Re: Απάντηση: Getting the Rocket ready for Launch!

by maria kasapidi -

Hello again! I finaly did it! It's all Greek and I have A FLASH BANNER!!!

http://www.schoolessons.gr/school-corner/

Thank you again smile

In reply to maria kasapidi

Re: Απάντηση: Re: Απάντηση: Getting the Rocket ready for Launch!

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

Hi Maria...more Google greek! smile

Εξαιρετική! τι μια μεγάλη σελίδα που αναζητούν ιστοσελίδα.

Cheers

I guess you are familiar with CSS because that is the best way to add images, they work much faster once they are in Moodle cache! You have a really lovely looking website.

Well done!

Mary

In reply to Mary Evans

Απάντηση: Re: Απάντηση: Re: Απάντηση: Getting the Rocket ready for Launch!

by maria kasapidi -

Tks once again for your help!

In fact am familiar wth moodle up to 1.9. This is my first efforts directly to 2.3.1

Have a nice weekend smile

In reply to maria kasapidi

Re: Απάντηση: Re: Απάντηση: Re: Απάντηση: Getting the Rocket ready for Launch!

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

Well Maria, you have done exceptionally well considering the vast change from Moodle 1.9 to 2.3 and practically solved most of the problems people have with Rocket theme as well!

Have a nice weekend too!

Thank you

Mary

In reply to maria kasapidi

Re: Απάντηση: Re: Απάντηση: Re: Απάντηση: Getting the Rocket ready for Launch!

by Julian Ridden -

Hi Maria,

Thanks for choosing to use Rocket. Your site is looking great.

I have attached a rocket lang file. If you could translate it into Greek I would be more than happy to include it in the main release.

Julian

In reply to Julian Ridden

Απάντηση: Re: Απάντηση: Re: Απάντηση: Re: Απάντηση: Getting the Rocket ready for Launch!

by maria kasapidi -

Hi Julian!

Tks for kind words. I really love rocket!!!! Of cource i will translate and sent back in a few days as i am in vacations.

Keep Moodling!

In reply to Julian Ridden

Απάντηση: Re: Απάντηση: Re: Απάντηση: Re: Απάντηση: Getting the Rocket ready for Launch!

by maria kasapidi -

Hi, Julian,

With a little delay because of vacation i attache the lang rocket file you send me. Hope to help!

My rocket run already and next week i will have the grand opening, but i have a problem. I canot register my site. Can you help me? url is www.schoolessons.gr/school-corner

Ty, for your help and Mary too

Maria Kasapidi

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Lars Gronholt -

Hi Julian,

I've been asked by a client to install Rocket Theme on their new Moodle setup. It was a 2.3.1 fresh install which i've updated to 2.3.2.

I'm getting lots of 'undefined variable' errors from the theme though which seem to be breaking the CSS. I am wondering if someone can point me in the right direction for a fix here: http://moodle.entity1.com/

Regards,
Lars

In reply to Lars Gronholt

Re: Getting the Rocket ready for Launch!

by Miriam Laidlaw -
Picture of Plugin developers

I experienced a similar thing with one of my own themes when I first installed it on a Moodle 2.3 site. Try going to Rocket's settings page, clicking on everything and reselecting it, then saving.

With mine, I had an advertisement set and it was not liking that. I went to the settings page, found where you could turn off the advertisement and made sure it was switched to be ON, clicked save and it was fine.

In the meantime, I'm going to install Rocket on my own site and see what happens...

Edit: Ok, I didn't get that problem, but there were some issues with my installation of Rocket. I got the version directly from Github, by the way:

It didn't like me embedding the video from Jing, so here is the link to my Jing video about the installation of Rocket on my local Moodle 2.3 site.

Edit 2: Fixed the images issue seen in my video by tweaking the URLs of the images in the settings page. Still getting sideways scroll. Unable to reproduce the error that Lars is getting.

Average of ratings: Useful (1)
In reply to Miriam Laidlaw

Re: Getting the Rocket ready for Launch!

by Lars Gronholt -

Wow, thanks for going to all that effort, Miriam. I had a wander through Rocket's settings screen and tried changing it but then i realised, mine is drastically different to the one shown in your video: http://i.imgur.com/Re01Z.png

Now I'm starting to wonder if I've maybe managed to install an old release somehow. Will check that first thing in the morning.

In reply to Lars Gronholt

Re: Getting the Rocket ready for Launch!

by Miriam Laidlaw -
Picture of Plugin developers

I got the master branch directly from github, which I believe is the most up-to-date version of Rocket for Moodle 2.3. You can download it directly by clicking HERE. smile

In reply to Miriam Laidlaw

Re: Getting the Rocket ready for Launch!

by Lars Gronholt -

Ah thank you, that was it! Really strange though, as I was *sure* i downloaded the version for Moodle 2.3.

I don't seem to have that sideways scrolling issue you demonstrated. That's really odd.

In reply to Lars Gronholt

Re: Getting the Rocket ready for Launch!

by Miriam Laidlaw -
Picture of Plugin developers

I'll see if I can figure out the sideways scroll myself sometime when I have a bit more time to tinker around. smile

In reply to Miriam Laidlaw

Re: Getting the Rocket ready for Launch!

by Thomas Lange -
Miriam Many thanks for your great work, Could you expand on how you solved the missing image issue (your Edit 2). I am also not seeing the menu bar on top of the large missing image Regards Thomas
In reply to Thomas Lange

Re: Getting the Rocket ready for Launch!

by Miriam Laidlaw -
Picture of Plugin developers

I put the full location of the image in, from http://... through to the last .png at the end.

I won't give you the path I used, as I have rocket installed on a local copy of Moodle 2.3 on a Mac, and using a less conventional way of storing my themes in a folder that is not the normal theme folder in Moodle... Just to be difficult. wink

But the URL should be something along the lines of:

http://yourmoodleurl/theme/rocket/pix/logo/rocket.png for the logo

http://yourmoodleurl/theme/rocket/pix/banner/default.png for the banner

If they still don't show, try clearing the theme cache. smile Good luck!

If you're not seeing the menu bar, make sure you have added something into the custom menu box under Site Admin > Appearance > Themes > Theme settings

In reply to Miriam Laidlaw

Re: Getting the Rocket ready for Launch!

by Thomas Lange -

Miriam

 

Great help again - thanks. Fixed the banner and logo. The navigation appeared as well - might have missed it repeatetly to set up correctly (just copied the dummy text in for now)

Last issue at moment is the block underneath the logo - I think I should be able to drop an existing block_html into here but it doesn't stick (I created the TOPLINKS block which I want to move up). I see that http://www.schoolessons.gr/school-corner/ managed to add it. Am I looking at the wrong area as well.

Attachment Capture.JPG
In reply to Thomas Lange

Re: Getting the Rocket ready for Launch!

by Thomas Lange -

Got everything sorted.

 
Reading through this helped:
 
 
Regards
 
Thomas
In reply to Thomas Lange

Re: Getting the Rocket ready for Launch!

by Thomas Lange -

I previously had an issue with drag and drop not working. Figured out a week ago that it can be solved with upgrading the theme on my install with from 2.1.1 to 2.2 (theme version - not moodle).

As I had to move server with a backup from just before the upgrade I now have the same problem. Unfortunately I can not find my notes on how I did the upgrade. Google and search have not been good to me so far. Could some very nicer moodler just reply with a link on how to upgrade themes again - got a presentation on Monday AM and need to put a lot of content on.

 

Many thanks

 

Thomas

In reply to Thomas Lange

Re: Getting the Rocket ready for Launch!

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

Hi Thomas,

To upgrade a THEME in Moodle all you do is remove the theme from you moodle site and replace it with a new version. Moodle does the rest. It's that easy!

Themes, believe it or not, are very easy to add and delete as that is all you do with them. If you don;t want them, delete them from your server. Just as long as you NEVER delete BASE and CANVAS as these two are PARENT THEMES and NEVER delete STANDARD theme as this is the Default Moodle theme!!!.

Just a note of warning though, there are some issues with Moodle 2.3 where the Drag-n-Drop is not working as desired in Aardvark Post-IT, Aerie & Rocket themes. This is a Moodle bug and nothing to do with the themes themselves.

Hope this helps?

Mary

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Thomas Lange -

Mary - thanks for the quick reply.

What happens to the settings like logo/colours etc. Will they just remain in the "system"

Thomas

In reply to Thomas Lange

Re: Getting the Rocket ready for Launch!

by Thomas Lange -

Quick update here. 

I had made the assumption that I was on version 2.1.1 on the new server as drag and drop failed to work. Just checked and new server is already on 2.2 so no upgrade needed now.

The reason I made the assumption was that drag and drop had stopped during the move. The reason it had stopped was down to the fact that the new server is at school and only IE as browser is allowed. Installed Chrome and Drag and drop is working fine for files. Which helps me in the short term over the weekend to move loads of files into courses but other teachers will not be having Chrome unfortunately. Will Moodle 2.4 fix this issue?

Cheers

 

Thomas

In reply to Thomas Lange

Re: Getting the Rocket ready for Launch!

by Paul Nicholls -

Hi Thomas,

If it's file drag and drop that you're referring to (i.e. dragging files into Moodle to create resources), that can't be "fixed" by any changes at the Moodle end - unfortunately, IE simply doesn't support that functionality until IE10.  In earlier versions of IE, you might be able to add support for it by installing Chrome Frame - my understanding is that it doesn't require admin privileges to install, so you might even be able to install it at school - and enabling it for your Moodle site (see here for instructions on triggering it from the server side, including prompting users to install it if they don't have it already).

Chrome Frame basically bolts Chrome's rendering engine (including its V8 JavaScript enginer) into IE, which brings performance boosts (largely due to V8) as well as the ability to use newer features (such as file drag and drop) which aren't supported by your version of IE.

-Paul

In reply to Thomas Lange

Re: Getting the Rocket ready for Launch!

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

Yes these sit in the database, so when you add a new version of the same theme Moodle updates the relevant tables in the DB. smile

It's all clever stuff!

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Lars Gronholt -

argh. My client just discovered another issue I *believe* is Rocket related.

When going to Site Admin: Courses: Course listing
clicking on the ENROL button for a course throws this error:

SyntaxError
Line: 1268

I tried redownloading the absolute latest master as per Miriam's previous link in late October, but it's made no difference.

I switched to a bunch of the built-in themes and tried the above  - everything worked as intended, it's just Rocket that appears to have this problem for me (really not sure why, as the referenced file doesn't even seem to be in the Rocket dir).

Does anyone have any idea what might be causing this?
Regards, Lars

In reply to Lars Gronholt

Re: Getting the Rocket ready for Launch!

by Lars Gronholt -

ahhhah - sorry. Disregard the above issue - I still had Display debug messages enabled from trying to fix the previous issue. Unchecking it solved the prob. :D

In reply to Lars Gronholt

Re: Getting the Rocket ready for Launch!

by Andrew Normore -

Hey, im getting the same error, how did you fix?

 

 

Attachment eoeeor.jpg
In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Todd Almarez -

Thank you for a great theme!  Not sure if this is the appropriate forum for this question...apologies if I need to re-post elsewhere.

I'm trying to modify the text color in the section summary of the main course page and I can't seem to locate the file.  Here is the scenario:

I have the course layout set to "Show one section per page" and course completion turned on.  On the main course page, the summary of activites is displayed under each section title.  I'm trying to change the font color for section-summary-activities and can't seem to find the file for this.  Firebug is telling me the CSS is located in "...root/theme/styles.php/rocket/1354118264/all" but this file does not exist.

Any help you can provide is appreciated.

In reply to Todd Almarez

Re: Getting the Rocket ready for Launch!

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

Hi,

You donlt need the file, all you need is the CSS selector and the code you want to change. If you make changes in Firebug just highlight and copy that set of code and paste it into the Rocket Custom CSS box found in the Rocket themes own settings page. You will find it in a stack of theme nemas listed just below Them selector at thin location ...

Settings > Site Administration > Appearance > Themes >>> Rocket (link)

Be sure that Theme Designer Mode is Enabled you can do that in Admin Theme settings which is the first link at the same place location as explained above...Settings > Site Administration > Appearance > Themes > Theme settings.

I hope this is not too confusing?

Or see this Video on how to use Firebug in Moodle...smile

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by tobi ololade -

Nice theme

but pls i want that banner to be a slide show of like 5 pics, how do i go abt that?

Thanks

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Graham Clark -

I've downloaded Rocket and installed it on my Moodle 2.3.3 site but I can't get it to work properly. In particular, I'm getting the error message below:

Notice: Undefined variable: PAGE in /home/gracconc/public_html/theme/rocket/renderers.php on line 185

What does this mean and how do I fix it? Thank you.

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Nano A -

I have a problem trying to get the "login" block to look like the sample in this post.

This is how it looks in my site.  As you see below, the login button looks out of place.

 

 

 

I am running a Moodle 2.4+ (Build: 20121220) - Upgraded from 1.9.17 -  and Rocket theme (2012080300).

 

Any hints on why could this be happening?

 

 Thanks!

In reply to Nano A

Re: Getting the Rocket ready for Launch!

by Nano A -

Also, the main login screen always shows in fixed width, although the theme is setup as "Variable width".  

I would appreciate if someone can give me hints on how I can tackle both issues.

 

Thanks!  smile

In reply to Nano A

Re: Getting the Rocket ready for Launch!

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

Hi,

The login screen is made to look like that as all you need to do is login. It's fast and easy. If you want the login page width to be 100% you will need to find the login page layout CSS that sets the current width.

As for the login button, that again is a CSS issue. To fix that you need to find the relevant CSS rule for that input button.

Using Firebug would help with this. Here is a nice tutorial which will help get you started.

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Nano A -

Thanks for your reply Mary.

I have used firebug as you suggested but I'm not a programmer and I'm a bit lost  sad

 

I have two sites:

  1. The older one (blue) is on Moodle 2.2.3+ (Build: 20120601) and Rocket (2012041704)
  2. The new one (green) is on Moodle 2.4+ (Build: 20121220) - Upgraded from 1.9.17 -  and Rocket theme (2012080300)

 

In this screenshot from my newest install, I can see that changing

<div class="c1 btn"   to  <div class="footer"  (as I see it was in the previous version of rocket), it fixes the gray background in the button and places it to the right.

But I don't know in what file I should make that change to... as the change is not in the CSS but the HTML (isn't it?)

 

 

 

Regarding the main login screen. I wanted it to look like the old website (the blue one). See the comparison here.  What changed in the code from the previous one to this one?  Is it the theme? or Moodle?

These are screenshots of how the login screen looks in both installations.

 

 

 

I appreciate your help! smile

 

 

In reply to Nano A

Re: Getting the Rocket ready for Launch!

by Julian Ridden -

Hi Nano,

The homescreen is designed to be fixed width so that the banner block work. With variable widths the grpahic goes mental. It was a design choice. All other page will be variable width.

Julian

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Nano A -

Thanks for your quick response Julian.

I understand what you are saying, but is the main login page related to the front page?  In the old website both are different, the main front page is fixed and the main login page is variable width.

Is it possible to put variable width only to the main login page?  The main reason I want to do this is to give the instructions box some design.

Also, any hints on how to fix the login button on the front page?  Is this a bug?

Thanks for your time helping me with this. smile

In reply to Julian Ridden

Re: Getting the Rocket ready for Launch!

by Marcel Mihulka -

Hi,

Great theme, but I am struggling to get the side block (Zone 4) to work. I have read it is just a drag and drop but this is not occuring. I can also see that the Site title (Zone 8) is too far left where (Zone 6) should be. I equally can not add a block there and the bar of Zone 8 is not the same colour of Zone 2.

I am using 2.4.1+ (Build: 20130214) on Google Chrome.

I have attached a screenshot. 

Hope to hear from someone soon.

Marcel

 

In reply to Marcel Mihulka

Re: Getting the Rocket ready for Launch!

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

I answered you yesterday in your previous post.

In reply to Mary Evans

Re: Getting the Rocket ready for Launch!

by Person Rocha da Cunha -

Hello, i am Brazilian an i need some help, can you ask my question?

Where i can find the files that allow me to translate the text that i show in the picture?

Other thing that i want to know is about theme performance, i had eighty concurent connections and my server stuck! Diferently when i used default theme.

Environment i use Moodle 2.3.1 in a VPS six core.

 

Attachment EnglishForum.png
In reply to Person Rocha da Cunha

Re: Getting the Rocket ready for Launch!

by Jay Regan -

Could somebody be kind enough to help with my current theming conundrums, as seen in my attached image number 1 the menu has a funny problem  when you hover on it in Firefox the links will shunt down, almost like there is extra padding being added to the top of the links for the hover state (doest happen in IE).

Also as seen number 2, how on earth  can I adjust the height of the top colour bar, it is driving me nuts, I hope its nothing simple that I am simply overlooking mixed.

Any help will be much appreciated.

Attachment problemos.jpg
In reply to Jay Regan

Re: Getting the Rocket ready for Launch!

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

I think this may be caused by the developers who have taken over maintaining this theme.

The setting for the height of the coloured top deep border is in the Rocket theme settings, or there should be some documentation how to adjust it.

I'm taking a look at this theme and will get back to you ASAP

Cheers
Mary

In reply to Jay Regan

Re: Getting the Rocket ready for Launch!

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

OK...this looks like it could be something to do when using the Bootstrap setting. It could well be that the menu is being affected, as the menu in Rocket is nothing like the one in Bootstrap. So can you verify you have thie setting enabled?

As for  the coloured top border that is all governed by the header table height which is hard coded to be 133px. So If you add...

body { background: none; }

to the Custom CSS box in the Rocket themes custom setting page, and save the setting. The coloured background vanishes and you are still left with the same height of the header area.

If you want to make the header not as deep then you could try changing the height:133px; in this line...found in moodle//theme/rocket/layout/default.php to whatever depth you want,

<table style="width:100%; height:133px; margin: 0px;">

Even so this will probably mess up the whole of the site as the banner also has a say in the ultimate height of the header.

Hope this helps?

Mary