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

Rob Loach - May 20, 2008 - 04:58
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".

#2

grah - May 26, 2008 - 13:47

+1

#3

benansell - May 27, 2008 - 00:20

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

rastarr - August 8, 2008 - 04:26

subscribing

#5

amariotti - August 11, 2008 - 20:30

Agreed.

#6

B747 - August 16, 2008 - 21:52

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

B747 - August 27, 2008 - 12:04
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?

#8

amariotti - August 27, 2008 - 21:36

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

B747 - August 27, 2008 - 21:54

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

B747 - August 28, 2008 - 19:15

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

txcrew - August 29, 2008 - 05:25

Tracking. Really interested in this mod as well.

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

txcrew

#12

B747 - August 29, 2008 - 07:24

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

#13

grah - September 17, 2008 - 08:24

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

amariotti - September 28, 2008 - 03:45

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

#15

krisvannest - September 30, 2008 - 14:47

subscribing

#16

radune - November 26, 2008 - 08:48

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

#17

gthing - December 11, 2008 - 07:07

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

#18

andreas.wah@dru... - December 21, 2008 - 10:01

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

calimba - January 4, 2009 - 22:38

so whats the word on 5x?

#20

Rob Loach - January 5, 2009 - 01:21
Version:6.x-1.0» 6.x-1.x-dev

I'd be happy to commit any patches.

#21

cjd400 - January 6, 2009 - 00:38

Wow that would be tremendous :)

#22

btully - March 26, 2009 - 18:05

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

#23

tignux - April 2, 2009 - 10:42

subscribing

#24

dunn - September 15, 2009 - 14:34

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

Summit - September 15, 2009 - 14:39

Subscribing, greetings, Martijn

 
 

Drupal is a registered trademark of Dries Buytaert.