Hi,

how can we make shoutbox block scrollable instead of long listing messages.and also a clear button needed.
any smilies we can add..? ( just like phpbb does).

Comments

mstef’s picture

Priority: Major » Normal

Smiles: Look for the Smileys module. That'll do it..

I'll have to think about putting the shouts inside a scrollable div. You can set the number of shouts you want the block to display via the admin UI. Then if you want to view more, you click on 'View all shouts'. Not sure if the scroll is necessary, and people might want it to display long...

A clear button doesn't seem like a good idea. That would be a way for an admin to instantly delete every single shout? You can set the module to delete shouts that are X days old. Seems like enough..

mstef’s picture

Status: Active » Postponed
madhusudan’s picture

Thanks for the fast reply.. :-)
ok forget smileys and clear button

well, I have a scenario here..

In our intranet site at average 70 people will be logged in at any given time. so if among 70, 20 people are active in shoutbox,
and they continuously post shouts then the shout message will grow. occupying almost of the site space!. since i am placing the shoutbox block at the top(header). the rest of the content will go down,and user will feel annoying.

so if we have a scroll box then no matter whatever the max shout display limit is. it will be in that block only..

is it simple to do.. then at-least guide me how to proceed. :-)

mstef’s picture

Use CSS. Take whatever wraps the entire shoutbox block, make it something like

height: 300px;
overflow-y: auto;

If there isn't a div that wraps it well enough, override the theme functions in your theme's template.php.

Have you used Organic groups? Shoutbox comes with Shoutbox group which makes shoutbox block and pages "group-aware" so you can have separate shoutboxes for each group - automatically..

madhusudan’s picture

Thanx,
that's what I was looking for.. :-)

can we make the shout text field and shout button sticky(stay at the top), while in scrolling it goes up..

yes i do use organic groups..shoutbox works great with OG.

mstef’s picture

Is there a div that wraps just the shouts?

If not, you could probably add one with using the theme functions. If not, let me know, I'll add one, or make it easier to add one yourself.

madhusudan’s picture

nope, i didnt find any div for that.. but that css tweak which u gave worked out.. :-)

and one more prob in OG shouts.

if a user not a member to a group and if he clicks on the group,still the group shouts are visible,which are posted by group members, cant we make it hidden until he becomes member of that group..?

like one in the module made which doesn't allow non members to post shouts.?

mstef’s picture

i think the logic behind that decision was that if you wanted group stuff to be private, if wouldn't be a public group, thus the shoutbox wouldn't be accessible. If you don't agree, open up a new feature request, and we'll talk there.

madhusudan’s picture

started new issue for feature request

http://drupal.org/node/866912

vitalblue’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)