Closed (fixed)
Project:
Inline
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Reporter:
Created:
23 Jan 2011 at 09:54 UTC
Updated:
18 Jul 2012 at 08:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
thomas1977 commentedSubscribing
Comment #2
Samat Jain commentedSubscribing… added the Drupal 7 (D7) tag as well.
Comment #3
MentalFS commentedFrom what I can see, there is no upload module in Drupal 7 anymore. They are supposed to be replaced by file fields, which confuses me - since you can only put one file into it. Does anyone know what happens to attachments when you upgrade from D6 to D7? Will all attachments be thrown away?
Not sure how this will affect inline. If there are no attachments, would it have to work with field references or something?
Comment #4
fax8 commentedIf you dig into the file field option you'll find a way to add more than one file.. I guess this is how multiple uploads will be converted when updating from D6 to D7.
Btw, inline needs porting to D7 or a script for migrating into something else (eg. media module).
Comment #5
Anonymous (not verified) commentedI would like to port it, and get some help from mantainers? May be we can have a D7 port soon.
Comment #6
Anonymous (not verified) commentedHi!: this is my port to D7. I've simplified the code a little. I'm posting this for inline devs review and corrections. Hope you can launch an alpha or beta release with this, so we can get it in full shape to start using and getting code maintained by the community.
As it is my first use of inline, i took the freedom to modify various terms on the code for adapting to D7 terminology (eg. instead of 'preset', i use the word 'style')
Please, somebody respond me on this. Last time i tried to help on the community with other module i was dissapointed by my code work not getting attention (a full week migrating a module from D6 to D7). Hope inline devs have a little time to pay me a little attention... i just want to USE inline on my production site and HELP others D7 users to use it!
Best regards!
Comment #7
Samat Jain commentedJavier, from what version of Inline did you start from? Also, consider posting a patch—it's much easier for developers to apply and use.
Comment #8
Anonymous (not verified) commentedHi!: I've used inline-6.x-1.0 version. I'm now posting the patch. Hope it is useful.
I'm waiting now for your responses. Thanks!
Comment #9
Anonymous (not verified) commentedAnybody could look at it? Thanks!
Comment #10
Anonymous (not verified) commentedNo news yet after 10 days? Please, anybody?
Comment #11
Richard Archer commentedI won't have time to properly review this patch for another 2 weeks.
Javier, how confident are you that the patch is 100% correct?
Are you willing to investigate bug reports for the patch?
I'm happy to clean up this patch and commit it if someone else reviews/supports it.
Comment #12
Anonymous (not verified) commentedRichard. Of source!! I WANT THAT!
Please commit it to head! I will look at reviews/bugs as they appear
Comment #13
Richard Archer commentedI have cleaned up this patch a little, reverting whitespace changes, fixing some Drupal style issues etc.
I also back-ported the changes from the 6.x-1.x-dev branch into this patch which was based on the 6.x-1.0 release.
I don't have a Drupal-7 installation running, so this code has been committed untested. Apologies if I've broken anything!
This new code has been pushed to a new branch, 7.x-1.x and a new 7.x-1.x-dev release created.
HEAD still contains the 6.x-2.x branch which I guess I should push into a branch of its own.
Thanks Javier, this is a really good start for inline's Drupal 7 compatibility!
Comment #14
yugongtian commented+1
Comment #15
Trunkhorn commentedsub
Comment #16
basicmagic.net commentedsubscribe
Comment #17
Anonymous (not verified) commentedA little change to fix warnings when there is no $build['body']
Comment #18
Richard Archer commentedI have committed that patch, thank you!!
Comment #19
byrond commentedThere was an issue that came up regarding dependency on the Upload module in D6. I changed the dependency to D7's core File module, and it seems to be working fine.
http://drupal.org/node/1173396#comment-4600550
Comment #20
fax8 commentedI'm upgrading a 6.x website where I was using inline to 7.x. The inline version published here (and on 7.x-dev) didn't work for my setup (just after running update.php ). Basically this 7.x version seems to look for image fields only while all the file upload fields converted from my 6.x install have been installed as general files.
Inline 6.x was working not only on image files but also on general files (by placing an "a" tag instead of "img") so I think that this version still needs work.
What I've done so far is http://sprunge.us/VjRZ .. I removed the checks for "image" fields so that now it should work for general file fields. Right now it somehow work in my setup, the only problem is that the file has to be set as "display" in order to be loaded from inline.
Comment #21
sunThanks for working on this. Not really sure whether the committed patches are an actual improvement, but quite possibly, a step forward.
Committed attached patch as a follow-up.
Comment #22
drzraf commentedI agree that some one-liners are a step forward, but
ea7ee598885a4030105eb6c9272a35c8179ae03e mostly changes whitespaces (generated without diff -w) and move functions around without a strong reason for this ! (does anyone really think that code-indentation is the main problem/priority of D7 Inline)
There are others issues (some of them with patches) waiting in the queue which will have to be rerolled... (like mines in #1309542: D7 core File field is not handled by Inline & #1328260: $file->title not correctly tested, inexistant $file->filepath and missing file_create_url() for images :) )
nb: some people are not using nor doing business with Drupal and only contribute to make this CMS better/easier for associations/ngo, ... please don't make our lifes harder : consider commenting issues (and/or pending patches) about functional changes before trivial ones.
thx
Comment #23
sun@drzraf: Exactly. However, to clarify, the commit you mentioned (same as patch in #21) reverted the needless/bogus white-space changes and movement of functions to their original locations. This is important for maintenance across major versions of this module (e.g., backporting of bug fixes, etc).
Will try to look at the other patches ASAP, if no one beats me to it. Thanks!
Comment #24
Anonymous (not verified) commentedCouple of fixes for integration with Lightbox2, and some other bugs
Please push to HEAD?
Comment #25
sunThanks!
Comment #26
Anonymous (not verified) commentedI've commited this (patch in #24) already. @sun please point me any error on my push?
Comment #27
sunLooks fine to me! :)
Comment #29
OnkelTem commented