MyBB Community Forums

Full Version: Code Buttons Not Working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi myBB Forums,

I am currently having a problem with my CodeButtons, they are not showing up.

I have supplied a screenshot below.

Any assistance would be greatly appreciated.

[Image: cyG3d.png]

headerinclude template:
<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/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script type="text/javascript" <script type="text/javascript" 
jQuery.noConflict();
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
{$stylesheets}
<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>
{$newpmmsg}
Disable Rocketloader and AutoMinify on cloudflare
Now that I've done that, the buttons have disappeared completely, so it no longer shows the text that says "Font , Text Size" etc.
Post your website's URL and any testing account.
http://www.SimplicityForum.com

User: Yaldaram
Pass: Open123
I don't know why but I like this issue actually I love it because this was the most challenging issue I ever had.

@OP try the following options.

1) Change editor style from default to office 2007.
2) Enable Clickable MyCode Editor in ACP.
3) Reupload jscripts_themes folder.
4) Add {codebuttons} after <textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea> in newthread and newreply template.
5) Find updated templates and revert to original.
6) Reupload codebuttons folder to .images and .images/theme
7) Cloudflare: Disable Rocket Loader

P.S: Research before creating a thread.
Still unable to fix.
@kamz89, your post wasn't very helpful.

PS: Thanks but you didn't help one bit
In your headerinclude template find:

<script type="text/javascript" <script type="text/javascript" 
jQuery.noConflict();
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

Replace with:

<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>

And save the template. That part was pretty messy. Even if it wasn't, you were trying to use jQuery before actually loading it, which simply doesn't work. I also took the liberty to update the file to 1.7.2, the latest version.
Wow thanks so much Fabio.

You really are honestly, amazing.
I spent ages trying to fix this and then you come along and fix it so quickly.

So much respect man.
Really appreciate it!
Glad to help. Wink
Pages: 1 2