I'm having some trouble getting the shoutbox to update the background color properly when AJAX updates with a new shout. It shows up as transparent or something-- it's just the same color as the background of the sidebar. Is there a particular style I need to set somewhere? I've done some fairly heavy color modifications to the BlueBreeze theme for my site. I tried to fix the AJAX code myself, but I'm not familiar with a lot of the details. I'm happy to provide more information if it's needed.

Comments

Daen-1’s picture

Version: 5.x-1.0 » 5.x-1.x-dev

Correction: After downloading the newest dev version, it now shows new posts in the correct color for a style I set in the shoutbox.css file-- it isn't the background of the sidebar any longer. However, it's not updating the new prepended shouts correctly. It removes the previously first shout and places the new first shout in its place. I fixed this problem by changing the code on lines 33-39 of shoutbox-form.js to read:

if(Drupal.shoutbox.shownAmount >= Drupal.shoutbox.showAmount)
{
if(Drupal.shoutbox.ascending)
$('#shoutbox-posts').children().eq($('#shoutbox-posts').children().length - 1).remove();
else
$('#shoutbox-posts').children().eq(0).remove();
}
}

After further checking, the color issue has been resolved almost totally. When the page is reloaded, however, the next shout post will show up in the same color as the first post in the box. Subsequent posts alternate as they should from the incorrectly colored one.

Great work on the module, by the way.

disterics’s picture

Assigned: Unassigned » disterics
Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.