MyBB Community Forums

Full Version: Java and Jquary Inclodeing problem!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I want add some bangla typing java script tools on my forum. But when i add this the post editor is not working and also not visible. But I really need to add this in forum because it is bangla forum and also need to typing inputs tools. My forum link is : www.webmasterbd.com
Quote:<script type="text/javascript" src="bKeyboardJS/jquery-1.2.1.min.js"></script>
<script type="text/javascript" src="bKeyboardJS/jquery.cookie.js"></script>
<script type="text/javascript" src="bKeyboardJS/common.js"></script>
<script type="text/javascript" src="bKeyboardJS/layout.js"></script>

<script type="text/javascript" src="bKeyboardJS/main.js"></script>
You have to remember that MyBB uses Prototype. If you include jQuery, you need to follow the advice on including it with other libraries.

Using jQuery with Other Libraries
I swear this thread has been made before.
Quote:<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=1400"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1400"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1400"></script>
<script type="text/javascript" src="bKeyboardJS/jquery-1.2.1.min.js"></script>
<script type="text/javascript" src="bKeyboardJS/jquery.cookie.js"></script>
<script type="text/javascript" src="bKeyboardJS/common.js"></script>
<script type="text/javascript" src="bKeyboardJS/layout.js"></script>
<script type="text/javascript" src="bKeyboardJS/main.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}

I am add the java script like this. and also make it prototype compatible. But now the problem : Its Not Working
I test it other Site it work good?
And it also not visible on page source code!!!!!!!! Do anything for me
(2008-12-28, 05:58 PM)rabbane Wrote: [ -> ]I am add the java script like this. and also make it prototype compatible. But now the problem : Its Not Working

How did you make it prototype-compatible?
Quote:2 Overriding the $-function
3 Including jQuery before Other Libraries
4 Referencing Magic - Shortcuts for jQuery

Also, please describe what isn't working.
The code result not visible on page. Exch I see that the java script code also not visible in page source code.
What Javascript code?
<script type="text/javascript" src="bKeyboardJS/jquery-1.2.1.min.js"></script>
<script type="text/javascript" src="bKeyboardJS/jquery.cookie.js"></script>
<script type="text/javascript" src="bKeyboardJS/common.js"></script>
<script type="text/javascript" src="bKeyboardJS/layout.js"></script>
<script type="text/javascript" src="bKeyboardJS/main.js"></script>
Make sure you put it in the headerinclude template of the theme you're currently using.
Yes i am using.
http://community.mybboard.net/thread-34598.html
is that cause > i want to see it but not able see it
Pages: 1 2