MyBB Community Forums

Full Version: 1point8 Theme generating js error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Hello,

I installed the custom theme 1point8 and receiving the following error

Uncaught ReferenceError: jQuery is not defined restive.min.js:14
Uncaught ReferenceError: $ is not defined showthread.php?tid=1:15
Uncaught ReferenceError: jQuery is not defined showthread.php?tid=1:20

I think sequence of  .js files need to changed

<script type="text/javascript">
     $(document).ready(function () {
           $('selector').restive(options);
     });
</script>

called above function before including jQuery.

On showthread.php page

Report link is pointing to "Thread.reportPost(23223); There is no function named Thread.reportPost(2323). The function is i think Report.reportPost(23232)

Please reply if someone is going to fix this errors and going to upload new version.
Link to your forum?  have you installed any plugins or added any jQuery?
(2014-09-05, 12:28 AM)iAndrew Wrote: [ -> ]Link to your forum?


Just trying it locally not uploaded online. Didn't make any changes in it just imported the theme and it is giving these errors.
(2014-09-05, 12:32 AM)maviss Wrote: [ -> ]
(2014-09-05, 12:28 AM)iAndrew Wrote: [ -> ]Link to your forum?


Just trying it locally not uploaded online. Didn't make any changes in it just imported the theme and it is giving these errors.

Doesn't give any errors online but can you post your header include template here?

My sites down so can't test it.
(2014-09-05, 12:35 AM)iAndrew Wrote: [ -> ]
(2014-09-05, 12:32 AM)maviss Wrote: [ -> ]
(2014-09-05, 12:28 AM)iAndrew Wrote: [ -> ]Link to your forum?


Just trying it locally not uploaded online. Didn't make any changes in it just imported the theme and it is giving these errors.

Doesn't give any errors online but can you post your header include template here?

My sites down so can't test it.


HERE IS THE DEFAULT CONTENT OF headerinclude
============================================


<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 href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' 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="images/1point8/restive.min.js"></script>

<script type="text/javascript">
$(document).ready(function () {
$('selector').restive(options);
});
</script>
<script>
jQuery.noConflict();
</script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1800"></script>
<script type="text/javascript" src="images/1point8/jquery.cookie.js"></script>
<script type="text/javascript" src="images/1point8/tipsy.js"></script>

<script type='text/javascript'>
jQuery(function() {
jQuery("a").tipsy({gravity: jQuery.fn.tipsy.autoNS});
jQuery("title").tipsy({gravity: jQuery.fn.tipsy.autoNS});
jQuery("img").tipsy({gravity: jQuery.fn.tipsy.autoNS});
jQuery("i").tipsy({gravity: jQuery.fn.tipsy.autoNS});
jQuery("span").tipsy({gravity: jQuery.fn.tipsy.autoNS});
jQuery("div").tipsy({gravity: jQuery.fn.tipsy.autoNS});
});
</script>

{$stylesheets}
<script type="text/javascript">
<!--
lang.unknown_error = "{$lang->unknown_error}";

lang.select2_match = "{$lang->select2_match}";
lang.select2_matches = "{$lang->select2_matches}";
lang.select2_nomatches = "{$lang->select2_nomatches}";
lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
lang.select2_loadmore = "{$lang->select2_loadmore}";
lang.select2_searching = "{$lang->select2_searching}";

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 rootpath = "{$mybb->settings['bburl']}";
var imagepath = "{$theme['imgdir']}";
var yes_confirm = "{$lang->yes}";
var no_confirm = "{$lang->no}";
var MyBBEditor = null;
var spinner_image = "{$theme['imgdir']}/spinner.gif";
var spinner = "<img src='" + spinner_image +"' alt='' />";
// -->
</script>



========================
TEMPLATE: postbit_report

<a href="javascript:Thread.reportPost({$post['pid']});" title="Report this post"><span class="pbbutton"><i style="font-size: 14px;" class="fa fa-eye-slash fa-fw"></i>&nbsp;Report</span></a>

Thread.reportPost() should be Report.reportPost() as this is the function used in default theme.
====================
^ by any chance, are you using 1.6 version theme on MyBB 1.8 ..
(2014-09-05, 01:15 AM).m. Wrote: [ -> ]^ by any chance, are you using 1.6 version theme on MyBB 1.8 ..

No.. I am using 1.8 theme on 1.8 MyBB
(2014-09-05, 01:07 AM)maviss Wrote: [ -> ]========================
TEMPLATE: postbit_report  

<a href="javascript:Thread.reportPost({$post['pid']});" title="Report this post"><span class="pbbutton"><i style="font-size: 14px;" class="fa fa-eye-slash fa-fw"></i>&nbsp;Report</span></a>

Thread.reportPost() should be Report.reportPost() as this is the function used in default theme.
====================



should already be updated with Report.reportPost() if not i'll do it once i can access my site. cheers for letting me know.

@.m. no i made it on beta 3 of 1.8
(2014-09-05, 01:36 AM)iAndrew Wrote: [ -> ]
(2014-09-05, 01:07 AM)maviss Wrote: [ -> ]========================
TEMPLATE: postbit_report  

<a href="javascript:Thread.reportPost({$post['pid']});" title="Report this post"><span class="pbbutton"><i style="font-size: 14px;" class="fa fa-eye-slash fa-fw"></i>&nbsp;Report</span></a>

Thread.reportPost() should be Report.reportPost() as this is the function used in default theme.
====================



should already be updated with Report.reportPost() if not i'll do it once i can access my site. cheers for letting me know.

@.m. no i made it on beta 3 of 1.8


No both the problems are still there with #3 updated I installed mybb and 1point8 just an hour ago but these problems are still there


I found some more problems with it ...... announcement template has wrong colspan given ... and due to it rows layout is breaking.
any chance you can send me your forum url so i can see. send it through pm if you want
Pages: 1 2 3 4