Drupal 5?
danwassink - May 20, 2008 - 03:27
| Project: | iUI |
| Version: | 6.x-1.0 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
Jump to:
Description
Will this work for Drupal 5.x? I am still waiting for a couple modules before I switch to 6... mainly Organic groups and Image Cache. This looks like it is what I need. Would it be easy to port it over to 5?
Thanks!
Dan Wassink

#1
Hi Dan. Yup, it would work on Drupal 5, with a small backport. I wouldn't be surprised if it worked with a hack in iui.info to remove "core".
#2
+1
#3
I know this question is often difficult to answer. However, if you have a rough ETA on the port to5.x that would be appreciated.
Or in lieu of that, specific guidance on how to pitch in and help accelerate would also be welcomed.
Cheers.
#4
subscribing
#5
Agreed.
#6
So what's happening? Is progress being made? There seems a lot of interest, so is there a chance somebody can put something together?
#7
I tried removing the "core" line in the .info file but it still won't work with Drupal 5. Please can you get working on this?
#8
Probably not the kindest way to ask for someone to spend time on it. Got money? Hire someone on the forums to help you with it.
#9
I tried doing it myself and said please. A lot of people want this, I'm trying to get things done more for them than me.
#10
Good News!
I've kind of got it working.
Now, I know nothing about themes, really, so this is a horrible hack. If you want iUI for Drupal 5, here's what you can do:
core = 6.x
stylesheets[screen][] = iui/iui/iuix.css
scripts[] = iui/iui/iuix.js
; Information added by drupal.org packaging script on 2008-05-19
version = "6.x-1.0"
core = "6.x"
project = "iui"
datestamp = "1211223912"
<style type="text/css">@import url("[your set-up]/iui/iui/iui/iuix.css");
</style>
<script src="[your set-up]/iui/iui/iui/iuix.js" type="text/javascript"></script>
[your set up] should be path/to/iui.6.whatever which should be in your (sites/all)/modules folder. I have no idea how relative urls work in drupal so I just referenced the entire URL.
However: there seems to be a problem: the links are added, but no title/wording is given for them. There must be some change between 5.x and 6/x as to how link titles are referenced (maybe). Check it out on my site: http://goive.heebie.co.uk - you'll see the top two links are there, but there's just no wording there.
The 6.x code is:
<?php
// Display the primary links
if (!empty($primary_links)) {
echo '<ul id="home" title="' . ($title ? $title : $site_name) . '" selected="true">';
foreach($primary_links as $link_name => $link) {
echo "<li><a href='{$link['href']}'>{$link['attributes']['title']}</a></li>";
}
if (!empty($content)) {
echo '<li>' . l(t('Details'), '<front>', array('fragment' => 'front_content')) . '</li>';
}
echo '</ul>';
} // if (!empty($primary_links))
// TODO: Display the search form
?>
Also not sure what that 'Details' link is....
#11
Tracking. Really interested in this mod as well.
I tried the above method to no avail. Any other ideas?
txcrew
#12
So did you get to the stage I got or nothing at all?
#13
on a fresh 5.10 install, I followed the steps at #10 by heebiejeebieclub at arrived at the same result..
but I found a solution to get primary link titles working :)
do the steps at #10 then modify your page.tpl.php:
replace:
<?php$link['attributes']['title']
?>
with:
<?php$link['title']
?>
I also removed the details link(?) as I had no use for it.
anyone want to build on this/create a patch?
#14
Can you submit a link to your theme so we can check it out?
#15
subscribing
#16
Ah, a 5.x version would be greatly appreciated.