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

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

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

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

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

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

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

 
 

Drupal is a registered trademark of Dries Buytaert.