MyBB Community Forums

Full Version: Ajax shoutbox info please?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've installed a Ajax shoutbox everything seems fine other than the shouts just keep on going on down the shoutbox ( see picture)
I'm on MyBB version: 1.2.9

I was wondering if i could somehow set the shouts to a limit 6 in the box then it starts on the next page?


Not sure if i explained that very well .I don't want the shouts to keep on going on and on as they seem to be at the moment.

I added this code in my footer

Quote:<table border="0" cellspacing="1" cellpadding="1" class="tborder">
<tr>
<td class="thead"><strong>ShoutBox</strong></td>
</tr>
<tr>
<td class="trow1"><script>show_sb()</script></td>
</tr>
</table>
<br />


Also is it possible to make poeple have post count before they can use the shoutbox?

Can anyone suggest how i can do this please?

Thank you.
open ajaxshoutbox.php in notepad

look for..
$postsperpage = "15";

change it to

$postsperpage = "6";

that should make 6 posts per page instead of the default 15.

for the post count....

in the same file,

go to line 161

it should look like this:
	if(!isset($mybb->user['uid']) || $mybb->user['uid'] == ""){

change it to...

	if(!isset($mybb->user['uid']) || $mybb->user['uid'] == "" || $mybb->user['postnum'] < 15){

this will make users need 15 posts to use the shoutbox. its only a quick fix and will tell users they need to login if they havn't got 15 posts. you can change the message on the next line if you want