MyBB Community Forums

Full Version: Code buttons problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed the plugin http://mods.mybb.com/view/all-id-mycode to my forum, and next thing I know the new thread and new post pages started having problems.

The Font and Text Size drop down menus are just text, the other buttons have dissapeared all together (see attached picture for more details). I was doing some searches and other people fixed it by editing the headerinclude template. I tried what I found in other threads but it didn't fix anything.

[attachment=29516]

Here is what my headerinclude template looks like:

<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>
{$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}

<link rel="shortcut icon" href="http://img69.imageshack.us/img69/1070/faviconwi.png" />


The link to my forum: http://thehockeynation.ca

Guests can post threads in this section, so I will link to it as well so you can see what I mean: http://thehockeynation.ca/forumdisplay.php?fid=5


PS: While trying to post this thread I was redirected to a page and entered in a re-Captcha code? It said I should ask to be permanently white-listed? Just thought I should ask about that too, but my main worry is about the template issue.
have you tried disabling that plugin ?
(2013-06-11, 04:42 AM).m. Wrote: [ -> ]have you tried disabling that plugin ?

Yes, I disabled it and also removed the file from the plugins folder.
Are you sure it's caused by this plugin? It doesn't add anything to headerinclude and doesn't affect newthread.php. Try disabling all plugins in ACP -> Settings -> General Configuration and if it works, diable one by one.
(2013-06-11, 12:45 PM)Destroy666 Wrote: [ -> ]Are you sure it's caused by this plugin? It doesn't add anything to headerinclude and doesn't affect newthread.php. Try disabling all plugins in ACP -> Settings -> General Configuration and if it works, diable one by one.

I'm almost positive it happened after I installed it. I could be wrong though.

I disabled every other plugin and still nothing.
Check the codebuttons template of your theme. Revert to original if it was changed (link is green). Also make sure there is nothing wrong with newthread/newreply templates.

If still nothing, tell if the editor works with default MyBB theme.

@down, jQuery doesn't seem to load on newthread in the lik you provided so that topic ain't solution. It may be caused by any JS conflict, not only jQuery. Try also reuploading jscripts folder from clean MyBB package of your version.
I did a test to see what the problem might be I used the default theme and template and the code buttons show up properly with that set. So I assumed it must be the template of the theme instead.

What I did was import a theme and template from this forum: http://thehockeynation.icyboards.net

(There is a guest account made, Username: Guest -- Password: guest)

As far as I know there was no problem when I first imported it. Just in case, I tried to import again and the problem still persists.

It works on that forum, which is also MyBB 1.6. I was hoping it was maybe a bad template edit I did by mistake, but I am using the exact same template on that forum and it works just fine there.

Any ideas?

I did some searching and found this thread (http://community.mybb.com/thread-122742.html) has the exact same problem. When trying to fix it there is a template edit. Unfortunately I don't seem to have the code Fabio Maia says to replace. Could that be the problem?[/code]

(2013-06-11, 06:01 PM)Destroy666 Wrote: [ -> ]Check the codebuttons template of your theme. Revert to original if it was changed (link is green). Also make sure there is nothing wrong with newthread/newreply templates.

If still nothing, tell if the editor works with default MyBB theme.

When I re-imported the theme I didn't make any template edits to codebuttons, newthread, newreply, etc so they are still the originals from the original forum I imported from.

And yes, it works nearly perfectly on the default MyBB theme. The templates for those 3 (newthread, newreply, codebuttons) are identical to the MyBB default one.

(2013-06-11, 06:01 PM)Destroy666 Wrote: [ -> ]Check the codebuttons template of your theme. Revert to original if it was changed (link is green). Also make sure there is nothing wrong with newthread/newreply templates.

If still nothing, tell if the editor works with default MyBB theme.

@down, jQuery doesn't seem to load on newthread in the lik you provided so that topic ain't solution. It may be caused by any JS conflict, not only jQuery. Try also reuploading jscripts folder from clean MyBB package of your version.

Okay, finish reuploading the jscript files in both jscript folders (/jscripts and /admin/jscripts) and but it fixed anythingUndecided

I decided to just re-install MyBB and hopefully that will fix any issues. I'll just be more careful with editing jscript files or adding plugins this time around. Thanks for the help .m. and Destroy666.
I wanted to bump this thread, because I think I've figured out what the problem is. Or... I at least know what it is not.

It is not the template. I imported the default theme again, and switched the template to the template used by the theme I am having issues with, and the text-box code buttons worked perfectly. The template was kind of iffy because it was made specifically for this theme I am trying to use, however the code buttons showed up on the text box in the new reply page.


Does this info help make the problem easier to solve? *fingers crossed*