Drupal 5?
danwassink - May 20, 2008 - 03:27
| Project: | iUI |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
| Issue tags: | Subscribing |
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.
#17
Subscribing... Would love a 5.x version!
#18
I would love a Drupal 5 version and it looks to me like it's pretty much done? Someone just need to patch it
#19
so whats the word on 5x?
#20
I'd be happy to commit any patches.
#21
Wow that would be tremendous :)
#22
Subscribing. Anyone have this working in 5.x? Are the mods in #10 and #13 all that's required?
#23
subscribing
#24
Hello,
I started out with #12 and #13 posts above - it helps loading the css and display fields, but the theme does not display properly for example, one field is written on the top of the other field, this I think, it is because of the format of iui theme does not work with the returned results of my drupal5.
I am working on to make it a version D5 build iui. Anyone would like to discuss or ask question I may be able to answer. When there will be some progress I will attach my work.
#25
Subscribing, greetings, Martijn