April 23rd, 2006
Added plugin “view all themes” to extend the 3 available themes in WordPressMu
In Moodle:
- config.php: to configure how the CSS files work together. You can build your theme onto the standard or onto any parent theme, can include or exclude several CSS files.
- styles.php: Builds the bridge to the CSS files. You don’t need to edit anything.
- header.html: Included at the top of each page. This is what you need to edit to add a logo at the top of pages, for example.
- footer.html: Included at the bottom of each page.
- styles_color.css: CSS styles for all colour properties.
- styles_fonts.css: CSS styles for fonts, font-size, line-height etc.
- styles_layout.css: CSS styles for the page layout, positioning etc.
- styles_moz.css: CSS styles for Mozilla special rounded corners.
CSS controls websites in this order:
- the
style attribute overrides
- a style block, which overrides
- a
linked stylesheet, which overrides
- an imported sheet.
Posted in Dev | No Comments »
April 23rd, 2006

Click to view an example of FTP.
Left screen is the host computer (your desktop) the right screen shows files and folders on the remote server (the stuff on your website).
Posted in Dev | No Comments »
April 18th, 2006
Looking at the “loop” function of Wordpress to determine how it uses CSS to build pages. If I can tie this to the Moodle Theme, then styling the two together should be relatively easy.
After about 3 hours’ research, Moodle is much more extensible in terms of login options : THESIS » Administration » Users » Authentication options allows the use of an ‘external database’ to register and auththenticate users.
Modify MySQL via PHP MyAdmin to match the database name, user, password, and appropriate columns to Wordpress. In this case, point to table wp_users, and then the appropriate password and username columns.
Remember that Moodle uses MD5 encryption on its passwords- so you need to check the appropriate box in the Authentication php page!
Content:
Hardcoded links connect WP blog to Moodle. Because the WP login username is the same as the Moodle username, the username should be be passed back and forth using links that include $user, but that doesn’t seem to be working. For now, the user will have to log in to each site as they move back and forth.
Next- develop a teacher lesson, student blog with rss feeds for assignments.
STYLES:
Matching CSS files is a bit of a chore.
to change headers in WP, edit the following in header.php
#header {
background: url("/images/kubrickheader.jpg")
no-repeat bottom center; }
#headerimg {
margin: 7px 9px 0;
height: 192px;
width: 740px; }
Change all fonts to: font-family: ‘Lucida Grande’, Verdana, Arial, Sans-Serif;
colors: blue = #0099CC
Posted in Dev | No Comments »
April 18th, 2006
Both WP and Moodle use CSS stylesheets, and are quite flexible in their appearance. Now that both are installed, I need to coordinate the two styles so that they appear to have the same styling and color.\\
To determine logos and placement, Moodle has some hints:
To update logos with your own:
- create two file with two different sized logos:
- logo.jpg, height100 pixel
- logo_small.jpg, height 50 pixel
- via FTP upload the jpg files into /moodle/theme/formal_withe folder, overwriting the existing jpg.
The bigger logo will be used for the home page only, while the smaller will be used for all the other pages.
First I’m coordinating the Logos. Doesn’t seem like much, but it’s a really good way to get the sites to connect visually.
Changing the logo in Moodle was easy- just create teh files abocve and copy into the appropriate ‘Themes’ folder. Unfortunately WordPress MU isn’t wuite set up enough, so I had to delete the standard image file and replace it with my own. Looks like the WP hack is going to be a little ugly.
Posted in Dev | No Comments »
April 13th, 2006
To alter the code in the sidebar, download sidebar.php and then make your changes to teh HTML or PHP. Then just upload the new file after saving it. The example here adds the text link “Open School” to the sidebar.
Posted in Dev | No Comments »
April 10th, 2006
can MT of WP be hacked via rss to populate teacher/users pages?
Posted in Dev | No Comments »
April 9th, 2006
Installing an unstable version of WordPress MU, which is still unstable but may serve exactly the function I’m looking for- meaning a separtate simple blog install for every user.
Download file wpmu-unstable.zip from the wordpress site.
Upload the .zip to my thesis URL, thesis.rabbitjack.com using WinSCP
Unzip the file in a shell (I use PuTTY) with this command
unzip wpmu-unstable.zip
Change the name of the folder that the unzip created (should be wpmu[date]) to wpmu.
Next use a browser to open the folder- this will start the PHP-driven install. Be careful when creating a user/pwd, or login will be a pain…
The PHP installer will configure the new blog for ADMIN-level access to all of the blogs created later.
Go to MySql manager and create a new database for this blog to live in.
Once MySQL and WPmu are talking to eachother, the PHP will send a login email to the registered admin login.
Now the fun stuff: fiddling with PHP, HTML and MySQL
Posted in Dev | No Comments »
April 9th, 2006
The idea is to take the sucess of ’social software’ like WordPress and utilize it to make the user end of Moodle stickier. To accomplish this I need to do the following:
- Figure out how to add an automatic blog install to the ‘new user’ function of Moodle
- Add links to the Moodle pages that pass user info between Moodle and Wordpress via their separate MySQL tables
- Format the two so that the appearance is seamless
- Add moodle functionality to the blogs (Quickmail, some sort of attendance-keeping function (ideally by reporposing a freeware image display program)
- Connect the Blog to Moodle via RSS tags, and create a funstion that will allow school administrators to update parts of every user’s blog via their own acct or a public announcements page.
Sources for my poor uneducated brain:
How to Write a Simple WordPress Plugin
Weblog Tools Collection
Moodle.org
First I’m researching the install function of Wordpress to see if I can slide a form into the Moodle registration process that will automatically create a Wordpress blog for each new user. There has been some research at multiple installs via a PHP script, but I think I’d liek to have it driven by user registration for demo purposes.
notes: The RSS tags could be placed in MediaWiki- with the though that School admins could have an access leve that loowed them to launch messagee to all users’ computers.
Looks like I’m not he only one who is looking for this sort of funtionality: Wordpress has developed WordpressMU (multiple user), though it’s in development and this is ‘bleeding-edge’ code.
Posted in Dev | No Comments »
April 7th, 2006
Wordpress Requirements: PHP version 4.2 or greater MySQL version 3.23.23 or greater from http://wordpress.org/about/requirements/
Moodle Requirements:
- Web server software. Most people use Apache, but Moodle should work fine under any web server that supports PHP, such as IIS on Windows platforms.
- PHP scripting language (version 4.1.0 or later). PHP 5 is supported as of Moodle 1.4. (Please note that there have been issues installing Moodle with PHP-Accelerator)
- a working database server: MySQL or PostgreSQL are completely supported and recommended for use with Moodle. MySQL is the choice for many people because it is very popular, but there are some arguments in favour of PostgreSQL, especially if you are planning a large deployment. The minimum version of MySql is currently 3.23. Please note that MySQL 4.1.16 is the minimum version for Moodle 1.6 (many Linux distros currently carry an older version, you should check if planning to use 1.6). from http://docs.moodle.org/en/Installing_Moodle#Requirements
Posted in Dev | No Comments »
April 4th, 2006
Using secure shell server - I use PuTTy, go to the directory where you are installing Moodle and
to connect: login as [this is the user login to your domain]
password [this is the pwd to your domain]
next, navigate to the directory with the moodle.zip file. Unzip the file with this command: unzip [filename.zip]
next use a browser to open install.php, and run the install. Moodle will guide you
DESCRIBE THE MSQL INSTALL
Moodle 1.5.3+ (2005060230)
Posted in Dev | No Comments »