Drupal 6 port
notabenem - March 7, 2009 - 09:30
| Project: | jCarousel Lite |
| Version: | 5.x-2.0-alpha2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | notabenem |
| Status: | closed |
| Issue tags: | Drupal 6 porting, module |
Jump to:
Description
I really needed a drupal 6.x version of this module, but there wasn't one. Therefore I decided to port it (apha2 to 6.x).
The only change besides the port is that I have renamed the 'jcarousellite' table to 'jcarousellite_node' to better reflect the module it supports. In addition, i plan to add some other functionality and may need additional tables. This change ensures that the naming scheme is consistent with some future changes.
Attached is the patch to be applied against 5.x-alpha2.
| Attachment | Size |
|---|---|
| 5.x-a2-6x.diff | 11.73 KB |

#1
Hello notabenem,
Thank you for your support and contribution.
However, the above patch fails 100%.
Please generate a patch using this how-to: http://drupal.org/patch/create.
#2
I have applied your changes manually.
Thank you for the patch and for your contribution.
#3
Hi Omar,
Sorry for the bad diff... works for me though. I've noticed that the readme for 6.x is a bit outdated and I forgot to change it. Maybe it could make it more up to date, especially the dependencies part.
#4
notabenem,
The port didn't handle the views integration, I should be working on this next week unless you plan to do it.
#5
Omar,
My primary goal was to make the basics working under d6.x. Although I updated some parts of the views integration module to be "compatible" with 6.x, I did not check whether it is actually working with views 2.x as I had no plans using that part.
Therefore, please do!
#6
it is NOT working. the following code from the jcarousellite.module is not embedded so it does not work.
<?php
// $Id: jcarousellite.module,v 1.3 2009/03/07 21:05:23 owahab Exp $
/**
* @file
* jCarousel Lite is a jQuery plugin that carries you on a carousel ride
* filled with images and HTML content. Put simply, you can navigate
* images and/or HTML in a carousel-style widget. It is super light weight,
* at about 2 KB in size, yet very flexible and customizable to fit most
* of our needs.
*/
function jcarousellite_add($data = NULL) {
static $added;
if (!isset($added)) {
drupal_add_js(drupal_get_path('module', 'jcarousellite') .'/js/jcarousellite.js');
drupal_add_js(drupal_get_path('module', 'jcarousellite') .'/js/jquery.easing.js');
drupal_add_js(drupal_get_path('module', 'jcarousellite') .'/js/jquery.mousewheel.js');
$added = TRUE;
}
if ($data) {
drupal_add_js($data, 'inline', 'footer', FALSE);
}
}
#7
How should I put thiese code in the file? I paste it into jcarousellite_views.module, but failed.
#8
D6 Beta 2 now works fine with Views 2.0.
Please open a new issue if this feature doesn't work.
#9
Automatically closed -- issue fixed for 2 weeks with no activity.