OSX Blue updated for 1.3

OSX Blue updated for 1.3

Floyd Collins發表於
Number of replies: 29

I have updated my OSX Blue theme for Moodle 1.3

You can download it here

評比平均分數: -
In reply to Floyd Collins

Re: OSX Blue updated for 1.3

Ruben Fonseca發表於

Hi Floyd,

We are using this and just wanted to let you know that the spacer.gif was missing in the pix folder.  I substituted a 1px transparent gif as a guess.

Thanks for the theme.

微笑

In reply to Ruben Fonseca

Re: OSX Blue updated for 1.3

Floyd Collins發表於
Yeah when I was cleaning up the theme folder I removed it sorry about that. It is fixed and if you re-download the theme from my site, the spacer.gif pix will be there. 
In reply to Floyd Collins

Re: OSX Blue updated for 1.3

Paul Reyes發表於
im having a problem with your theme...when i try to use it...my login button doesnt redirect me to my moddle data directory...when i try to fix it using dreamweaver...a ">" appears before the logo...
In reply to Paul Reyes

Re: OSX Blue updated for 1.3

Floyd Collins發表於
Sounds like to me that you have placed the > somewhere in the code and that is why it is showing up.

In order to help you maybe you could post your header.html file here so I can try and spot this run away >. If the login is not working you will need to adjust the following line in the header.html,  <form action="../login/index.php" method="post" name="login" id="login">

where it says ../login/index.php change this to the path to your login folder, since moodle is on the root of my web server I just point to the login folder that is up one level from the themes folder.

In reply to Paul Reyes

Re: OSX Blue updated for 1.3

Kristen Zander發表於

This is what I used as the code for the login button.  It didn't redirect me either, probably a path difference in installation, but this should work because it looks at the specific configuration for the machine.

<form action="<?php echo "$CFG->wwwroot/login/index.php"?>" method="post" name="login" id="login">

Kristen

In reply to Kristen Zander

Re: OSX Blue updated for 1.3

Floyd Collins發表於
Not sure I tried doing this same trick and could not get it to fly.
<form action="<?php echo "$CFG->wwwroot/login/index.php"?>" method="post" name="login" id="login">

Here is what I came up with that worked for me.
<form action="../login/index.php" method="post" name="login" id="login">
In reply to Floyd Collins

Re: OSX Blue updated for 1.3

Kristen Zander發表於

That's wierd, it worked for me, and I did the same thing on the logout and it worked there as well.  I am with you that it should work just doing the ../ as you said, but it didn't.  Not sure...

Kristen

In reply to Floyd Collins

Re: OSX Blue updated for 1.3

L. Vandijck發表於

Very nice theme indeed.
What I'm missing is the language menu on the home page? I've been doodling (moodling?) around a bit trying to insert it (cheating from other themes' headers) but my knowledge of PHP is next to nothing and I haven't been succesful yet.
Could you show me the light?

In reply to Floyd Collins

Re: OSX Blue updated for 1.3

Sam Fisher發表於
Thanks for making a very nice theme available. I changed the logo and it looks very nice. Two questions (I have limited experience in this). On the Courses page the icons are missing that show no enrollment key is needed and no guests are allowed. Also, on the same page the logout button in the upper right hand corner generates an error. I don't know if I messed up something when changing the logo.

Neither of these are serious problems. I've attached a screenshot.
附件 DataEnter001.gif
In reply to Sam Fisher

Re: OSX Blue updated for 1.3

Floyd Collins發表於
looks like you are missing spacer.gif in the folder
/moodle/theme/OSXblue/pix/spacer.gif

Download the image from here and unzip it into your /moodle/theme/OSXblue/pix/ folder.
Let me know if this does it for you.

For the logout edit header.html in the OSXblue them folder.
Find the lines. Just do a search for Logout in your editor to find it fast.
?>
<span style="font-size: 12px;">Logged in as: <?php echo $USER->username; ?><br />(<a href="/login/logout.php">Logout</a>)</span>
<?

Change the "/login/logout.php"   to
"http://samfisher.us/moodle/login/logout.php"
So when your done the whole line should read.
?>
<span style="font-size: 12px;">Logged in as: <?php echo $USER->username; ?><br />(<a href="http://samfisher.us/moodle/login/logout.php">Logout</a>)</span>
<?
Let me know if this fixes your issue.
In reply to Floyd Collins

Re: OSX Blue updated for 1.3

W Page發表於
Hi Floyd,

I had the same problems as Sam initially. Your recommendations resolved those problems. However, I also had a problem logging in from the HomePage. I also got an erorr with that. I needed to "hard code" in the address as you indicated in the logout problem above to get it to work.

Now another problem. Take a look at the image below. You will see some of the icons are missing. How can I resolve this problem?
  • Image 1 - HomePage
  • Image 2 - Course page

Nice theme.

Thanks in advance.

WP1

附件 OSX_prob_01.gif
In reply to W Page

Re: OSX Blue updated for 1.3

Floyd Collins發表於
Looks like you are missing some images. You have installed mods on your site, what you need to do is copy the mod images to the theme folder.

Here is one of your missing files /moodle/theme/OSXblue/pix/mod/questionnaire/icon.gif
So you need to go into the mod folder for the questionnaire and copy the folder with the icon.gif to the OSXblue/pix/ folder. Make sure you only copy the folder and the icon.gif you do not need to copy all the other files that are in the mod folder. I find it easyer to just create the folder then copy over the icon.gif file for the mod.

Hope this helps.

In reply to Floyd Collins

Re: OSX Blue updated for 1.3

W Page發表於
Yes it does help Floyd!!

Thanks for the info. I learn a new Moodle fact, trick and tweak every day. Will grab all the icons and place them in the proper theme folder in the OSX theme directory.

This is a really nice School Theme.

WP1
In reply to Floyd Collins

Re: OSX Blue updated for 1.3

Bert Demandt發表於
I like your theme. However links to words from the glossary are not highlighted in any way. Links work okay, but are only visible when hovering the cursor over it (turning from black to red and being underlined).
I've tried changing the value of $THEME->highlight in config.php but apparently that's not what it takes to change the background of a linked word. Even changing the values of a:link in styles.php didn't do the trick.
Should I make other changes somewhere else to get this effect?
In reply to Bert Demandt

Re: OSX Blue updated for 1.3

Floyd Collins發表於

Did you change this value in styles.php ?

a:hover {
text-decoration: underline;
color: 600;

In reply to Floyd Collins

Re: OSX Blue updated for 1.3

Bert Demandt發表於
No, I didn't, as the hover effect works as it should: when pointing at a linked word it changes colour and gets underlined.
The problem is that the linked words are not recognized as such in a text, because they have no extra characteristic distinguishing them from ordinary text (font colour, background colour, text-decoration feature). In these forums e.g. linked words have a different background colour. That's what I'm looking for, because now links are simply not obvious.
Exploring the standard theme I found the declaration $THEME->autolink in config.php, which is missing in your theme's config.php. I was hopeful, because the explanation stated "to color auto-generated links (eg glossary)". I added this missing line to the OSX's config.php, checked that styles.php contains lines using it (a.autolink etc) and still no result. In short, I'm still puzzled.
In reply to Bert Demandt

Re: OSX Blue updated for 1.3

Bert Demandt發表於
Update: it seems to work in the end.
As stated before, I added the autolink line to config.php and that must have made the difference. Although at first tries there was no visible result, a bit later it suddenly worked as expected. Probably due to cached files not being refreshed yet.
Consider me a happy man again.

In reply to Bert Demandt

Re: OSX Blue updated for 1.3

W Page發表於
Hi Burt!

I really like this theme as well.

Would you please outline exactly what you did
  • what files you changed
  • where you changed the code (like line number) in the files.
Thanks in advance.

WP1
In reply to W Page

Re: OSX Blue updated for 1.3

Floyd Collins發表於
Thanks Burt
I dont know why I removed that, must have been an oversite or soemthing.

WP I am going to update the download with all the changes and a readme for those who use this theme.

All you need to do is edit config.php in the theme folder and add this line

$THEME->autolink     = "#DDDDDD";  // To color auto-generated links (eg glossary)

Add it right under the
$THEME->hidden       = "#AAAAAA";  // To color things that are hidden
line.

I am going to update like I said and upload the theme to the server.
Thanks for all the bug tracking folks.
In reply to Floyd Collins

Re: OSX Blue updated for 1.3

Floyd Collins發表於
The download now has all the updates and a readme on how to set the location for login and logout. 
In reply to Floyd Collins

Re: OSX Blue updated for 1.3

W Page發表於
Thank you, Floyd, for such a nice theme.  It was definately not just thrown together and obviously took a lot of time and thought.

WP1
In reply to Floyd Collins

Re: OSX Blue updated for 1.3

faisal khalid發表於

Hi Floyd and all

Thanks for this theme, it looks great. I installed it and it work fine except that in the weekly layout there is no white background for each week like in the topical layout. I tried to match them in styles.php but it didnt work. Then I tried to delete my temp files (in IE) and it works just one time and then it got back as it was. I think the problem is with my computer. I tried several time and same thing happened is there a way I can go over this problem?

 

Second: how can I remove the login stuff form the header?

 

Third: I think web.gif is missing.

 

Again thanks for this very nice theme

 

Faisal

In reply to Floyd Collins

Re: OSX Blue updated for 1.3

faisal khalid發表於

Hi Floyd and all

Thanks for this theme, it looks great. I installed it and it work fine except that in the weekly layout there is no white background for each week like in the topical layout. I tried to match them in styles.php but it didnt work. Then I tried to delete my temp files (in IE) and it works just one time and then it got back as it was. I think the problem is with my computer. I tried several time and same thing happened is there a way I can go over this problem?

 

Second: how can I remove the login stuff form the header?

 

Third: I think web.gif is missing.

 

Again thanks for this very nice theme

 

Faisal

In reply to faisal khalid

Re: OSX Blue updated for 1.3

Floyd Collins發表於
I just updated the theme again and took out the login in the upper right since we have blocks now that do this for us on the main page. Here is the address
http://goohio.com/moodle/
Oh and web.gif is in there.
In reply to Floyd Collins

Re: OSX Blue updated for 1.3

Mike Watson發表於
Hi Floyd. 

I appreciate the time you've spent on this theme.  We've been using it for a while, but now have a need to put the language menu bar on the site.

How do I accomplish this?


Thanks for your time.

Mike
In reply to Mike Watson

Re: OSX Blue updated for 1.3

Floyd Collins發表於

The easy way of doing this is to compare the header.html with one of the standard themes, you should be able to see what all I took out. Then you can modify the theme by adding in the code needed for the lang menu.

I will look over the code and see what I did when I get time, right now I am very busy, trying to get my house ready for winter. I will see what I can do, but in the mean time take a look at the code.

Thanks.