MyBB Community Forums

Full Version: codebuttons gone please help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hiya!

Strangely my codebuttons like Bold, Italic, Underline ETC have disappeared.

The forums URL is: www.habfab.x10.mx/forum

The test account is:
Username: test
Password: tester

[Image: codebuttons.png]

thanks! Smile

~ David
the contents of Templates and style => my template => edit tmplate new thread:

<html>
<head>
<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php?fid={$fid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->post_new_thread}</strong></td>
</tr>
{$loginbox}
<tr>
<td class="trow2" width="20%"><strong>{$lang->thread_subject}</strong></td>
<td class="trow2">{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong>{$smilieinserter}</td>
<td class="trow2">
<textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea>
{$codebuttons}
{$multiquote_external}
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="7"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$pollbox}
{$captcha}
</table>
{$attachbox}
<br />
<div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}</div>
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$footer}
</body>
</html>
This is a conflict with jQuery, but you also could have disabled it in your User CP's options.
1. Go to Admin CP > Templates & Style > Templates > Your Template Set > Ungrouped Templates > headerinclude.

2. Find:

<script type="text/javascript" src="http://habfab.x10.mx/forum/jscripts/jquery.js"></script>

3. Add below:

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

4. Save the template.
(2011-11-28, 08:27 PM)Fábio Maia Wrote: [ -> ]1. Go to Admin CP > Templates & Style > Templates > Your Template Set > Ungrouped Templates > headerinclude.

2. Find:

<script type="text/javascript" src="http://habfab.x10.mx/forum/jscripts/jquery.js"></script>

3. Add below:

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

4. Save the template.

Thanks for the replys!

I just added this with no luck. Heres the current code:
<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" />
<link rel="stylesheet" href="{$mybb->settings['bburl']}/css/colorpicker.css" type="text/css" />
<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/popup_menu.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/colorpicker.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/eye.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/utils.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/profiledesign.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}
{$sb_refresh}

Thanks again Smile

~ David
admin panel --> configuration --> settings --> Clickable Smilies and BB Code -->
set on for Clickable MyCode Editor AND Clickable Smilies Inserter & save settings
both of them are already set to yes. Thanks for the idea though Smile

~ David
Hmm, I think the jQuery plugins you have need some tweaking as well. To confirm this, replace your current code with 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" />
<link rel="stylesheet" href="{$mybb->settings['bburl']}/css/colorpicker.css" type="text/css" />
<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/popup_menu.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<!--
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/colorpicker.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/eye.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/utils.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/profiledesign.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}
{$sb_refresh}

This will comment out the jQuery plugins. If the code buttons work after this, then the issue lies within the jQuery plugins.
(2011-11-28, 09:22 PM)Fábio Maia Wrote: [ -> ]Hmm, I think the jQuery plugins you have need some tweaking as well. To confirm this, replace your current code with 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" />
<link rel="stylesheet" href="{$mybb->settings['bburl']}/css/colorpicker.css" type="text/css" />
<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/popup_menu.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<!--
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/colorpicker.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/eye.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/utils.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/profiledesign.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}
{$sb_refresh}

This will comment out the jQuery plugins. If the code buttons work after this, then the issue lies within the jQuery plugins.

Thanks for the reply!
Still not showing up. D;

~David
did you have the same problem with mybb default style
(2011-11-29, 11:11 AM)mohdows Wrote: [ -> ]did you have the same problem with mybb default style

Still not showing, even on mybb default style

~ David

Without sounding stupid I think the coding is missing for it - any idea on what it should be and where it's located? cheers

~ David
Pages: 1 2