I would like to know how do I invert the position of 'shoutbox-add-form' and 'shoutbox-post' divs according to the attached image exemple.
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | shoutbox_block_order.zip | 1.11 KB | jberg |
| #17 | shoutbox_block_order.tgz | 640 bytes | jberg |
| #9 | ascending_form_incl_description.patch | 1.6 KB | aschiwi |
| #3 | ascending_form.patch | 1.35 KB | snufkin |
| sb.PNG | 76.97 KB | stv |
Comments
Comment #1
stv commentedComment #2
stv commentedInvert position of 'shoutbox-add-form' and 'shoutbox-post' divs, acording to attached image.
Comment #3
snufkin commentedThis should be depending on what the admin configuration is in the variable 'shoutbox_ascending'. Its an easy change in the function that renders the content of the block, patch attached.
Comment #4
SpiffBB commentedThank you!
The mod works great and is very useful for me.
/O
Comment #5
rv0 commentedThank you
mod posted in #3 works great and is much less nasty than the hack i was using.
works perfect
Comment #6
disterics commented@snufkin I think this should have its own option so that users can choose to have the form be at the top or at the bottom of the page. Will wait for your patch.
Comment #7
disterics commentedAlso can you please add a test for this?
Comment #8
aschiwi commentedUhm I successfully patched a 6.x-1.x-dev version of shoutbox but the add form is still below the posts, is there something else I would have needed to do?
***update
Never mind, read the source code which says "// Put the form and forbidden message on top if the messages are ascending (newest on top)."
Comment #9
aschiwi commentedI have created my first patch ever which adds a better description to the "Post newest shouts on top" checkbox :) Please review it and see if I did everything correctly. I included your changes so people get all changes at once.
By the way, I did not run into any trouble using your patch, it works fine.
Comment #10
mstef commentedThis is done in 2.0.
Comment #11
satyavirya commentedHi Mike, I just updated to 2.1, I don't see the add shout form position to be on bottom when I unchecked "Post newest shouts on top". I think patch from snufkin http://drupal.org/node/635266#comment-2343302 will do.
Comment #12
satyavirya commentedsorry for the double post, bad internet connection
Comment #13
mstef commentedIt was my understanding that Shoutbox 1.x puts the shouts above the shout form. According to the screenshots at the beginning on this issue, it seems that the shouts are desired to be below the shout form. And that's what 2.x does.
Comment #14
snufkin commentedI think the issue here (at least for me) was that it should be on the end where the newest shout is. So for shouts where newest is on top - put the shout form above, for shouts where oldest on top put it below. This is more intuitive for most of the users. The 2.x version simply puts the form above the shouts.
Comment #15
liliplanet commentedwould most appreciate the form on top for 7.x pls ..
Comment #16
cimo75 commented+1
Comment #17
jberg commentedHere's a little helper module for switching the order of the block's elements as requested in comments #15 and #16. It has no user interface, but you can set the order of the elements in shoutbox_block_order.module; smaller values will "float" higher. There's a bit of documentation in the .module file. Hope this helps.
Comment #18
jberg commentedAnd in case there's someone on a Windows machine wanting to use that helper module, here's a zip archive of the same thing.
Comment #19
jmorenobl commentedI just wanted to thank you for the helper module :D
Regards,
Jorge.
Comment #20
micahw156This can also be changed using hook_form_alter() in a site module.
I also like the idea of making this configurable on the admin screen, but this is a quick (and clean) fix in the interim.
Comment #21
micahw156Marked #1826256: Put "Shout" filed above the messages as duplicate of this issue.
Comment #22
micahw156Marked #1767998: Location of Add Form as duplicate of this issue.
Comment #23
vitalblue commented