MyBB Community Forums

Full Version: MyShoutBox doens't work on MyBB 1.8.0?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(2014-10-30, 04:38 AM)HappyPikachu Wrote: [ -> ]
(2014-10-29, 09:21 PM)SeNCeR Wrote: [ -> ]headerinclude template not in the code. Buttons editor will be lost.
./jscripts/prototype.js conflict happens.

Global Templates > mysb_shoutbox Add into the..



<script type="text/javascript" src="{$mybb->asset_url}/jscripts/prototype.js"></script>

Unfortunately that doesn't fix the buttons. Shoutbox still works, though.

headerinclude template remove the code line. Works for me correctly.
I see the conflict with jquery so one solution is to put the code only in Index Page Templates -> index just before the
</head>
This way the script will be loaded only on forum index page where the shoutbox is.
What's your website, maybe I could take a look (the site on your profile redirects somewhere else)?

Here's my Global Templates -> mysb_shoutbox:

	<script type="text/javascript" src="jscripts/myshoutbox.js?ver=1400"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/prototype.js"></script>
<style type="text/css">

.shoutbox {
	margin: 0;
	padding: 0;
	left: 0;
}


li.shoutbox_normal {
	list-style: none;
	margin: 0;
	position: relative;
	cursor: pointer;
	color: transparent;
	display: inline ;
	border: 1px;
	border-color: #FFFFFF;
}

li.shoutbox_color {
	list-style: none;
	position: relative;
	cursor: pointer;
	color: transparent;
	display: inline ;
	border: 0px;
	float: left;
	margin: 1px;
}

.shoutbox_button_color a {
	width: 9px;
	height: 9px;
	display: block;
	border: 1px solid #FFF;
}

</style>

<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse.gif" id="shoutbox_img" class="expander" alt="[-]" /></div>
<div><strong>{$lang->mysb_shoutbox}</strong> (<a href="index.php?action=full_shoutbox">{$lang->mysb_fullsbox}</a> - <a href="pspshoutbox.php">{$lang->mysb_portable}</a>)<br /></div>
</td>
</tr>
</thead>

<tbody id="shoutbox_e">
<tr>
 <td class="trow2" width="66%" align="center"><form onsubmit="ShoutBox.postShout(); $('shout_data').value = ''; return false;">{$lang->mysb_shout} <input type="text" id="shout_data" size="50" /> - <input type="submit" value="{$lang->mysb_shoutnow}" id="shouting-status" /></form></td>
 <td class="trow2" width="12%" align="center">{$lang->mysb_options}</td>
</tr>
<tr>
 <td class="trow1" width="76%"><div id="shoutbox_data" style="height: {$mybb->settings['mysb_height']}px; overflow: auto;">{$lang->mysb_loading}</div></td>
 <td class="trow1" width="12%" align="center">
	<a style="cursor: pointer;" id="smilies" onclick="window.open('misc.php?action=smilies&amp;popup=true&amp;editor=clickableEditor','{$lang->mysb_smilies}','scrollbars=yes, menubar=no,width=460,height=360,toolbar=no');">{$lang->mysb_smilies}</a>
	<br />
	<a style="cursor: pointer;" onclick="window.open('shoutbox.php','{$lang->mysb_shoutbox}','scrollbars=yes, menubar=no,width=825,height=449,toolbar=no');">{$lang->mysb_popup_shoutbox}</a>
 </td>
</tr>
</tbody>
</table>

<script type="text/javascript">
ShoutBox.refreshInterval = {$mybb->settings['mysb_refresh_interval']};
ShoutBox.MaxEntries = {$mybb->settings['mysb_shouts_main']};
ShoutBox.lang = ['{$lang->mysb_posting}', '{$lang->mysb_shoutnow}', '{$lang->mysb_loading}', '{$lang->mysb_flood_check}', '{$lang->mysb_no_perform}', '{$lang->mysb_already_sent}', '{$lang->mysb_deleted}', '{$lang->mysb_invalid}', '{$lang->mysb_self}', '{$lang->mysb_report_invalid_sid}', '{$lang->mysb_shout_reported}', '{$lang->mysb_shout_already_reported}'];
{$extra_js}
Event.observe(window, 'load', ShoutBox.showShouts); 
</script>

<br />

And here's mynecraft Templates -> headerinclude:

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>

{$stylesheets}
<script type="text/javascript">
<!--
	lang.unknown_error = "{$lang->unknown_error}";

	lang.select2_match = "{$lang->select2_match}";
	lang.select2_matches = "{$lang->select2_matches}";
	lang.select2_nomatches = "{$lang->select2_nomatches}";
	lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
	lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
	lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
	lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
	lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
	lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
	lang.select2_loadmore = "{$lang->select2_loadmore}";
	lang.select2_searching = "{$lang->select2_searching}";

	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var rootpath = "{$mybb->settings['bburl']}";
	var imagepath = "{$theme['imgdir']}";
  	var yes_confirm = "{$lang->yes}";
	var no_confirm = "{$lang->no}";
	var MyBBEditor = null;
	var spinner_image = "{$theme['imgdir']}/spinner.gif";
	var spinner = "<img src='" + spinner_image +"' alt='' />";
// -->
</script>
{$newpmmsg}

Finally, here's the site (and a test account):

http://forums.pigcraft.net/
User: shoutboxtest
Pass; qwerty

(2014-10-30, 07:02 PM)gabri-el Wrote: [ -> ]I see the conflict with jquery so one solution is to put the code only in Default Templates -> index just before the


</head>
This way the script will be loaded only on forum index page where the shoutbox is.

So buttons should work on all pages except index. Hmm, thanks gabri-el, I'll try that and get back to you!

EDIT: It does work, +1. Still trying to get the index working, though! Wink
Did you removed the code from Global Templates -> mysb_shoutbox and Templates -> headerinclude and leave it only in Index Page Templates -> index?
I use the default theme of mybb 1.8 with a little customization and my site is the one from my profile.

The password that you gave me is incorrect. I can't login.
Yes and yes.

My bad, try now! Smile

EDIT: The buttons on your page don't work for me either. Using Chrome.
Ended up installing DVZ shoutbox instead. Thanks anyway!
Yes there are conflicts between jquery and prototype and some features using jquery are not working propertly but it's a temporary workaround until a similar or better free shoutbox for mybb 1.8 will be released.
(2014-11-22, 11:59 AM)gabri-el Wrote: [ -> ]Yes there are conflicts between jquery and prototype and some features using jquery are not working propertly but it's a temporary workaround until a similar or better free shoutbox for mybb 1.8 will be released.

I changed everything in myshoutbox to use jqurry instead of prototype a while back for my forums to work in 1.8, it is fully functional and doesn't require you to use prototype. It's a tad bit messy but it works fine Big Grin

Replace the myshoutbox.php with the one I attached to get it working properly!
(2014-11-23, 01:39 AM)ZombieWizzard Wrote: [ -> ]
(2014-11-22, 11:59 AM)gabri-el Wrote: [ -> ]Yes there are conflicts between jquery and prototype and some features using jquery are not working propertly but it's a temporary workaround until a similar or better free shoutbox for mybb 1.8 will be released.

I changed everything in myshoutbox to use jqurry instead of prototype a while back for my forums to work in 1.8, it is fully functional and doesn't require you to use prototype. It's a tad bit messy but it works fine Big Grin

Replace the myshoutbox.php with the one I attached to get it working properly!

does not work Huh
Just use rin shoutbox(Firebase). Its performance is better than any shoutbox I have seen(IPBoard,vBulletin) yet free of charge.
Pages: 1 2 3