Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 2 Years, 5 Months, 3 Weeks ago Inline Moderation Doesn't Work
#1
Solved: 2 Years, 5 Months, 3 Weeks ago
After upgrading Valora to myBB 1.8.10, inline moderation no longer works. When trying to delete any posts, this error comes back:

Quote:Sorry, but you did not select any posts to perform inline moderation on, or your previous moderation session has expired (Automatically after 1 hour of inactivity). Please select some posts and try again.

I have tried the fix from robbie626's How to Fix inline Moderation Tools for 1.8.10 (3rd Party Themes)

I also tried older fixes from this thread and this thread to no avail. 

We are using custom themes but default templates. Based on all the support I have read, the issue is likely somewhere in the headerinclude file, so I have included that code below.

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="Shortcut icon" href="{$mybb->settings['bburl']}/favicon.ico" />
<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=1804"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1804"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1810"></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;

function dismissANN(id)
{
if(!$("Ann_"+id))
{
return false;
}

if(use_xmlhttprequest != 1)
{
return true;
}

new Ajax.Request("index.php?action=ann_dismiss", {method: "post", postBody: "ajax=1&my_post_key="+my_post_key+"&id="+id});
Element.remove("Ann_"+id);
return false;
}
var spinner_image = "{$theme['imgdir']}/spinner.gif";
var spinner = "<img src='" + spinner_image +"' alt='' />";
var modal_zindex = 9995;
</script>
Reply
#2
Solved: 2 Years, 5 Months, 3 Weeks ago
maybe I missed it scrolling through, but I don't see
"var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";"

See this thread
https://community.mybb.com/thread-206896.html
Reply
#3
Solved: 2 Years, 5 Months, 3 Weeks ago
(01-24-2017, 12:58 AM)HLFadmin Wrote: maybe I missed it scrolling through, but I don't see
"var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";"

See this thread
https://community.mybb.com/thread-206896.html

I did try adding in that code before posting this bug and it had no result so I removed it.
Reply
#4
Solved: 2 Years, 5 Months, 3 Weeks ago
(01-24-2017, 01:15 AM)Azil Wrote:
(01-24-2017, 12:58 AM)HLFadmin Wrote: maybe I missed it scrolling through, but I don't see
"var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";"

See this thread
https://community.mybb.com/thread-206896.html

I did try adding in that code before posting this bug and it had no result so I removed it.

Following all instructions in the mentioned thread should solve the problem.

After uploading files from the update package you should use the Find Updated Templates tool in the ACP to view template changes (MyBB doesn't automatically update templates that were customized) and apply them as indicated. If the forum takes advantage of a CDN its cache should be purged (this doesn't include external scripts, fonts, etc.); you can also try forcing a cache refresh in your browser (CTRL + F5).
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply
#5
Solved: 2 Years, 5 Months, 3 Weeks ago
(01-24-2017, 01:35 AM)Devilshakerz Wrote: Following all instructions in the mentioned thread should solve the problem.

After uploading files from the update package you should use the Find Updated Templates tool in the ACP to view template changes (MyBB doesn't automatically update templates that were customized) and apply them as indicated. If the forum takes advantage of a CDN its cache should be purged (this doesn't include external scripts, fonts, etc.); you can also try forcing a cache refresh in your browser (CTRL + F5).

Going through the rest of that tutorial did fix it. The problem was this line in particular:
Quote:echo " <script type=\"text/javascript\" src=\"../jscripts/general.js?ver=1807\"></script>\n";

Thanks for the help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)