Not Solved Javascript completely broken
#1
Not Solved
Edit leads to full edit (doesn't give option for quick edit)
When posting, it refreshes the page and goes to post rather than posts without refresh
etc

Site: https://tunerheat.com

postbit_edit:
<a class="downpost" href="editpost.php?pid={$post['pid']}" id="edit_post_{$post['pid']}" title="{$lang->postbit_edit}" class="postbit_edit"><img src="images/green/edit_40b.png"> Edit</a>
<div id="edit_post_{$post['pid']}_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="javascript:;" class="popup_item quick_edit_button" id="quick_edit_post_{$post['pid']}">{$lang->postbit_quick_edit}</a></div><div class="popup_item_container"><a href="editpost.php?pid={$post['pid']}" class="popup_item">{$lang->postbit_full_edit}</a></div></div>

<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
$("#edit_post_{$post['pid']}").popupMenu();
}
// -->
</script>

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" />
<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->asset_url}/jscripts/jquery.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1807"></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='' />";
var modal_zindex = 9999;
// -->
</script>{$myalerts_js}
Reply
#2
Not Solved
can you tell us which theme actually you are using ?
have you checked the issue with MyBB's default (stock) theme ?
Reply
#3
Not Solved
(2016-10-10, 04:19 AM).m. Wrote: can you tell us which theme actually you are using ?
have you checked the issue with MyBB's default (stock) theme ?

I'm using https://community.mybb.com/mods.php?action=view&pid=507, but it wasn't working ever since I installed it and it's a very buggy theme so I fixed everything I could, but been having jquery problems for the longest time

I haven't had any other issues with it in the previous themes.

The theme is called THVB on the forum
Reply
#4
Not Solved
^ looks like that theme is not fully compatible with MyBB 1.8.x

you may follow below guidance (esp. for postbit related templates & showthread related templates)
upgrading guidance Wrote:Visit your Admin Control Panel, then go to Templates & Style > Templates > Find Updated Templates.
This will show you a list of all the templates that have changed during the upgrade.

You can either revert these templates to their default - meaning all the changes you've made to it will be removed
- or you can see a Diff Report which will show you exactly what's changed. If you have a custom theme installed,
it is probably best that you look at the Diff Report and apply the changes you need.
Reply
#5
Not Solved
(2016-10-10, 04:42 AM).m. Wrote: ^ looks like that theme is not fully compatible with MyBB 1.8.x

you may follow below guidance (esp. for postbit related templates & showthread related templates)
upgrading guidance Wrote:Visit your Admin Control Panel, then go to Templates & Style > Templates > Find Updated Templates.
This will show you a list of all the templates that have changed during the upgrade.

You can either revert these templates to their default - meaning all the changes you've made to it will be removed
- or you can see a Diff Report which will show you exactly what's changed. If you have a custom theme installed,
it is probably best that you look at the Diff Report and apply the changes you need.

The only updated template is:

forumdisplay

report:

[Image: YJSWYLv.png]

Edit: Updated it and didn't do any changes unfortunately
Reply
#6
Not Solved
run file verification tool from below location. what does it report ?
admin panel >> tools & maintenance >> file verification
ignore reported images & ignore files reported from install folder & its sub-folders
Reply
#7
Not Solved
(2016-10-10, 05:19 AM).m. Wrote: run file verification tool from below location. what does it report ?
admin panel >> tools & maintenance >> file verification
ignore reported images & ignore files reported from install folder & its sub-folders

htaccess-nginx.txt Changed
index.php Changed
cache/themes/index.html Missing

Quick reply spinner also gets stuck until refresh

test account:
username: S-S
pw: test123

Bump. Still need help with this
Reply
#8
Not Solved
Bump. Still need help with this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)