Closed (fixed)
Project:
Compact Forms
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Apr 2008 at 06:29 UTC
Updated:
2 Jan 2014 at 23:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lomz commentedCorrected the status since there are no patch to port, but subscribing, I would also like this one to be ported.
Comment #2
toemaz commentedI could port the module but then I would like more testers for a patch I want to put into the module before I start the port work. See http://drupal.org/node/165608 with the latest version of the adjusted module attached to comment http://drupal.org/node/165608#comment-821281
Comment #3
panji commentedwait
Comment #4
bensemmel commentedA D6 version would be great...
Comment #5
fm commented+1
Subscribing.
Comment #6
ssiruguri commentedI have ported the module to 6.x, and would be glad to upload it. Can some one help me with how to do that? I have also emailed the original developer, Tom S., about this.
Sameer.
Comment #7
fm commentedThere should be a "File attachments" dialog within the comment form on this page. You may have to zip the file before uploading.
Comment #8
ssiruguri commentedok, I have attached my module files here -- but I still don't know how to enter it as a patch to drupal.org. Any clues?
Comment #9
ssiruguri commentedMy bad -- I should have uploaded a patch file, not the entire contents of my modules/compact_forms folder.
For the attached file, one way to run it is to use the -p2 parameter to
patch, after you have changed location to the folder that has the compact_forms code on your Drupal installation (typically this is modules/compact_forms within the Drupal installation directory.)So, in essence, you run:
cd drupal/modules/compact_formspatch -p2 < patch_file.txtSameer.
Comment #10
ssiruguri commentedComment #11
ssiruguri commenteddammit. sorry, all. i left a debug message in there, in my previous patch. please use the one attached to this comment (and also named a lot better.)
s.
Comment #12
fm commentedI've run the patch from comment #11 (above) and it seemed to run successfully; I then activated the module, added the form css ID that I wished to modify, and saved the configuration. However, the label has not been overlaid on the form-field as indicated by the module description.
Comment #13
ssiruguri commentedI would like to take a look to see if I can fix this. Can you send me:
1. The entries in the Configuration for which form IDs you have entered, and
2. The source (HTML) file of the page on which you are expecting the textfield title to show up inside the text field.
There are some possibilities for why this isn't working:
1. The code expects a textfield or password type for the form element in order to overlay the title. Maybe it's a different form element.
2. You need to have defined a title, which is what gets overlaid. Maybe you didn't define a title.
3. The IDs sometime don't show up as you expect --- it took me a while to figure out, for example, that it's not user-login, but user-login-block (I think) for the login/password form on the front page.
Comment #14
fatfish commented+1
Subscribing.
Comment #15
JStarcher commentedWorks for me with the patch from post 11.
Note that the user-login-form is not the name of the form anymore in 6.x, it's just user-login. I did not change the default in the code, that might be something you want to do before you add the release.
I've attached the patched version for those who don't want to mess with running the patches.
Comment #16
sunHm. No response from maintainer in this issue since 2008-04-08.
FYI: #404144: Taking over Compact Forms project - so either he will finally show up or I'll get this on track.
Comment #17
mitchell commented@sun: Thanks for taking this on!
(odd, but it doesn't look like #404144: Taking over Compact Forms project turned green in #16.)
Comment #18
einkahumor commented#15 doesn't work for me. I get the settings form and all seems to be ok but it still doesnt make the login form "compact".
I've almost no programming experience but I'd love to help by testing if I can, this module is great.
Comment #19
einkahumor commentedActually I just found out that it's just the form in the User Login Block (using the Zen theme) that doesn't "compact". If I go to /user I see that the form there works as expected. I tried switching to Garland but the User Login Block is still not compact.
Is there an issue with forms in blocks?
Comment #20
davemybes commentedGood question. I cannot get the search block form (search-block-form) to compact.
*edit* After some playing around, I discovered that it does work, but using the label text i.e. Search this site, and not the submit button i.e. Search. I had to manually hide the search button using CSS and then reposition the label text a bit to get it to appear properly within the search box.
Comment #21
asak commentedI can confirm this works with D6.10 tested with a webform form in a block.
the only thing is the text color which was illusive.
+1 !!
Comment #22
einkahumor commentedIncrn8: Can you explain what you mean by "some playing around"? I still cant get it to work on blocks.
Comment #23
davemybes commentedThe "playing around" was basically looking through the code using Firebug and finding out where the compact forms wrapper gets added. I saw that its only on the label, so make sure that your block forms have a label in their form code. If not, you won't see anything appear in your input. Oh, I also noticed that sometimes I had to click in the input field and then outside of it for the label to appear.
Comment #24
fm commentedThe module attached to post #15 is working for me. Looks good.
I agree with text color issue in #21, but for me that's minor.
Comment #25
sunSorry, this needs to be redone, since #404132: Properly use Drupal behaviors / Code clean-up went it. Should be much more trivial now.
Comment #26
sunAttached patch should do it.
Comment #27
sunCommitted with slight adjustments ;)