Welcome to Admin Junkies, Guest — join our community!

Register or log in to explore all our content and services for free on Admin Junkies.

How to fix broken inline moderation.

_B_

Addicted member
Joined
May 18, 2020
Messages
934
Credits
0
This was actually one of the problems my site faced unexpectedly last week and it actually took a while to find a solution for it. The issue was that inline moderation wouldn't work at all. Selecting a thread would not display it as appearing for moderation tools. As seen here, the number still remains 0 when I selected a thread to try and perform a moderator action.
VzvDh1b.png
Make sure you backup your templates/codes before you edit them.
All of this occurs within the headerinclude template located within your theme:



1) Ensure your scripts match version of MyBB that you are using. This is actually quite a common issue when upgrading as it may not update itself. Find this code (note that ver=1822 is just an example. It could be anything).
PHP:
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1822"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1822"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1822"></script>

Replace with this code (where ver=1824 means the latest version of MyBB - 1.8.24). This ensures it runs with the latest version of MyBB (or the one that you are currently running which I recommend should be the latest one).
PHP:
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1824"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1824"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1824"></script>


2) Make sure that you are not missing any Javascript codes within that template. This was actually the issue with mine and I didn't realise I was missing so many within the theme which I had to manually add. It should start like this:
Code:
<script type="text/javascript">
<!--
CODES CODES CODES LOL
// -->
</script>

Make sure to replace or add with this:
PHP:
<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 cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";
	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>

Point 2) should fix the problem as missing scripts like this tend to cause the functions not to work. If none of this works then this is an issue with something else which I am not sure.

[/align]
 
Advertisement Placeholder
Inline images in Guide articles display for all users as a broken link or don't display for anonymous users or end users.

This problem occurs where images are attached as inline attachments to another article that is:

  • Restricted to a specific group of users
  • In draft status
  • In archived status
Due to any of these reasons, the image is displayed as a broken link, followed by the name of the image:
 
This is truly an educative article, I have really come across broken line maderatilon severally but I never knew what was the problem, I use to think it was network problem.
 
Backing up anything for it before you are able to actually make changes is very important because there is so many times that I have been coding and I have realised that I have made a mistake however I did not have a previously saved version in order to revert back and this was quite traumatizing for lack of a better word because you have a lot more work to do then.
 

Log in or register to unlock full forum benefits!

Log in or register to unlock full forum benefits!

Register

Register on Admin Junkies completely free.

Register now
Log in

If you have an account, please log in

Log in
Who read this thread (Total readers: 0)
No registered users viewing this thread.

New Threads

Would You Rather #9

  • Start a forum in a popular but highly competitive niche

    Votes: 10 28.6%
  • Initiate a forum within a limited-known niche with zero competition

    Votes: 25 71.4%
Win this space by entering the Website of The Month Contest

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds