MyBB Community Forums

Full Version: Codebuttons Disappeared
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone, 

today suddenly the codebuttons in my editor (quickreply, newreply, newthread, etc.) disappeared. I read many threads where people had the same problem, and I already tried many solutions, e.g.

1. Checking that the clickable mycode in the ACP & in the UCP is ticked. 
2. Putting this code into the headerinclude

<script type="text/javascript">jQuery.noConflict();</script>

3. Checking if the my newthread/reply templates had {$codebuttons} in it.
4. Checking if the editor files/images and the editor.js still exist + have content.
5. Using different browsers to check if the problem appears everywhere. (Also asked different users, and they have the same problem.)
6. I uploaded a theme + templates from a week ago (where the codebuttons definitely worked), but even with that theme the codebuttons dont appear now, meaning the error cannot be template/theme based, right?

I'm really getting frustrated here. ^^ 

MyBB: 1.6.11
Forum: www.marineford.com

My headerinclude looks like this:


<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->settings['bburl']}/jscripts/mybb.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
    document.write(unescape("%3Cscript src='http://code.jquery.com/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>

<script type="text/javascript">
    var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.js"></script>
{$stylesheets}<!-- UNREADPOSTS_CSS -->
<script type="text/javascript">
<!--
	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 imagepath = "{$theme['imgdir']}";
// -->
</script>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-54872905-1', 'auto');
  ga('send', 'pageview');

</script>
{$newpmmsg}{$mention_autocomplete}
{$mystatus_js}

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/dropdownmenu.js"></script>
  
Can you help me? Thanks a lot. Smile
remove below code segment and check
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>

Edit: it would be better to upgrade your forum to MyBB 1.6.15
(2014-11-18, 01:03 PM).m. Wrote: [ -> ]remove below code segment and check
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>

That doesnt help. :/

Would a test account help?
^ not test account, would you like to PM me temporary admin account & later delete the account
(2014-11-18, 01:25 PM).m. Wrote: [ -> ]^ not test account, would you like to PM me temporary admin account & later delete the account

That's not necessary anymore, I fount the error. It was on the security side of the server: I blocked some bots/scripts who tried to access parts of my server, e.g. via FTP access hack, and there was 1 script that involved the editor. Blocking that caused the error, but I fixed it now. Smile

That was quite a relief haha thanks for the support anyway, I appreciate it.