Using Elgg 1.5 Theme on Elgg 1.6.1
Posted on 3rd January 2010 in Elgg Hacks
When Elgg 1.6.1 came out with many great improvements and bug fixes, many upgraded from the 1.5 version, I was one of them.
Everything looked good until I logged in and popup message showed up letting me know that I was now logged in but it was not disappearing from the screen. Even clicking on “click to dismiss” link did not work.
Another problem was that elgg topbar tools dropdown menu did not drop down. It took me a while to realize that I was using elgg theme for Elgg ver. 1.5 which uses older javascript files. I wanted to use the same theme but upgraded version of the theme was not available so I uploaded js files from Elgg 1.5 vendors/js folder and replaced ones on my new 1.6.1 elgg installation. It worked but that was only a temporary fix.
To get the permanent fix you have to update code in your theme folder/views/default/page_elements/ header.php file so it will call the new javascript files that are included in elgg version 1.6.1
Look for this code:
<script type=”text/javascript” src=”<?php echo $vars['url']; ?>vendors/jquery/jquery-1.2.6.pack.js”></script>
<script type=”text/javascript” src=”<?php echo $vars['url']; ?>vendors/jquery/jquery-ui-personalized-1.5.3.packed.js”></script>
And replace with this:
<script type=”text/javascript” src=”<?php echo $vars['url']; ?>vendors/jquery/jquery-1.3.2.min.js”></script>
<script type=”text/javascript” src=”<?php echo $vars['url']; ?>vendors/jquery/jquery-ui-1.7.2.custom.min.js”></script>
<script type=”text/javascript” src=”<?php echo $vars['url']; ?>vendors/jquery/jquery.form.js”></script>
And that should do the trick. So instead of changing to a different theme with a little copy and paste you can make your older theme work with new Elgg 1.6.1
If you have any problems, comment below.


Hi, this is a great idea, cause the file in ….elgg_1.2vendorsjquery are different from elgg_1.7.7vendorsjquery…
BUT, I do what you said, but don’t function at all, only the drop down menu, but the TOPBAR items(MENU-TOOLS-SETTINGS-ADMINISTRATION) aren’t in the topbar they are down…
Can you help me if I send u a screenshot of the site?!
(I am trying to put NOTEBOOK THEME(for elgg 1.2) in ELGG 1.7.7….Only a little thing isn’t displayed good…the topbar!
HI,
This post was written for Elgg 1.6.1 ( from 1.5), Elgg 1.7 introduced many new code changes so in order for Elgg 1.2 theme to work on Elgg 1.7.7 you will need more than just updating jquery files.
There are security tokens and much more.
I can look at it if I found some time but we are very busy at the moment with custom Elgg projects.
If you want post a link to your site.