We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] More than 10 "shouts" in shoutbox
Topic Started: Sep 30 2015, 05:31 PM (533 Views)
_wizard_
Member
[ * ]
Is it possibile to have more than 10 "shouts" in shoutbox?
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Admin CP >> Board Template >> Below the Board
Code:
 
<script type="text/javascript">
function getArchivedShouts() {
var lastHasOdd = $('#shoutbox li:last').hasClass('odd');
$.get(main_url + 'stats/shout_archive/1/?force_ads', function(data) {
$('#sbx_archive tbody tr:not([class])', data).nextAll().each(function() {
lastHasOdd = !lastHasOdd;
var $this = $(this);
var $user = $this.find('td.c_desc a').wrap('<p />').parent().html();
var $time = $this.find('small').html();
var $shout = $user + ': ' + $this.children('td:not([class])').html();
var $shoutID = $this.children('td:not([class])').find('a[onclick]').attr('onclick').match(/(?:\d*)?\d+/);
$('#shoutbox').append('<li id="shout-' + $shoutID + '"><dl><dt>' + $time + '</dt><dd>' + $shout + '</dd></dl></li>');
if (lastHasOdd) {
$('#shoutbox li:last').addClass('odd');
}
});
});
}

$('#shoutrefresh').click(function() {
shoutGrab();
getArchivedShouts();
});

$('#shoutpost').submit(getArchivedShouts);

if ($('#shoutbox').length) {
getArchivedShouts();
}
</script>
This will make the number of shouts in the shout box max out at 50.
Edited by DaPizzaMan, Oct 1 2015, 02:43 PM.
Offline Profile Goto Top
 
_wizard_
Member
[ * ]
thanks.
It works, but there is a little bug: when i post a message in the shoutbox, shoutbox returns to 10-reply-only. It is possible to fix this?
Edited by _wizard_, Oct 1 2015, 12:06 PM.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

I've edited my above post with the correct code that fixes your issue and another issue regarding the shoutbox refresh.
Offline Profile Goto Top
 
_wizard_
Member
[ * ]
sorry but unfortunately it didn't fix my issue
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

It works fine when I tested it out. May I have a link to your board?
Offline Profile Goto Top
 
_wizard_
Member
[ * ]
DaPizzaMan
Oct 1 2015, 05:23 PM
It works fine when I tested it out. May I have a link to your board?
my board is accessible only by registered and approved user. Being an admin of zetaboards, can you bypass this limit? If so, i'll send you the link.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

No but you can send a support ticket and I'll be able to help you from there.
Offline Profile Goto Top
 
_wizard_
Member
[ * ]
Thanks, i sent a support ticket
Offline Profile Goto Top
 
Jason
Member Avatar
Member
[ *  *  *  *  * ]
I'll close this topic now as you are also dealing with it through the Support Ticket System.
Offline Profile Goto Top
 
Jason
Member Avatar
Member
[ *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic