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

Comments

RobLoach’s picture

Status: Active » Patch (to be ported)

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".

grah’s picture

+1

benansell’s picture

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.

rastarr’s picture

subscribing

amariotti’s picture

Agreed.

B747’s picture

So what's happening? Is progress being made? There seems a lot of interest, so is there a chance somebody can put something together?

B747’s picture

Priority: Normal » Critical

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?

amariotti’s picture

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.

B747’s picture

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.

B747’s picture

Version: 6.x-1.x-dev » 6.x-1.0
Issue tags: -Subscribing

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:

  1. Go into iui.info and remove the following lines:
    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"
  2. Next, go into page.tpl.php and insert:
    <style type="text/css">
      @import url("[your set-up]/iui/iui/iui/iuix.css");
      </style>
  3. And also add
     <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).

The 6.x code is:

  // 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....

Anonymous’s picture

Tracking. Really interested in this mod as well.

I tried the above method to no avail. Any other ideas?

B747’s picture

So did you get to the stage I got or nothing at all?

grah’s picture

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?

amariotti’s picture

Can you submit a link to your theme so we can check it out?

krisvannest’s picture

subscribing

radune’s picture

Ah, a 5.x version would be greatly appreciated.

gthing’s picture

Subscribing... Would love a 5.x version!

andreas.wah@drupal.org’s picture

I would love a Drupal 5 version and it looks to me like it's pretty much done? Someone just need to patch it

calimba’s picture

so whats the word on 5x?

RobLoach’s picture

Version: 6.x-1.0 » 6.x-1.x-dev

I'd be happy to commit any patches.

cjd400’s picture

Issue tags: +Subscribing

Wow that would be tremendous :)

btully’s picture

Subscribing. Anyone have this working in 5.x? Are the mods in #10 and #13 all that's required?

tignux’s picture

subscribing

dunn’s picture

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.

Summit’s picture

Subscribing, greetings, Martijn