MyBB Community Forums

Full Version: Odd Problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
So I've been getting some very odd problems with the theme I'm working on. I've looked through countless threads with the same problem, and they all seem to be fixed with jQuery.noConflict(), however since this is 1.8 and no Prototype is in the theme this can't be the issue.

I've also completely commented out my newfunctions.js file, which contains all my custom JS. However that didn't fix the error either.


So the first problem I'm having is inline moderation doesn't work somewhat (Selecting threads/posts doesn't add them to the counter at the bottom), and the Ajax part of quick reply doesn't work.

The second is when I click Edit Post, the dropdown menu doesn't show up in the right position.

The problems are happening on the Neon Glow theme. Any help would be greatly appreciated!
A few people have had these issues if you look in general support.

I even had a few reporting it as a theme issue for 1point8 which turned out it wasn't related to the theme.

Also the submit register button not working which is happening on your theme also.
Yeah I ended up in your theme thread while looking through Google for a solution. And I hadn't noticed that register wasn't working, also very frustrating.

What's most interesting is it's not a problem in the default theme, which means it's a modification made in the themes. However as I mentioned commenting out the custom JS file doesn't fix the error, so it has to be a problem with markup somewhere. However the markup also hasn't been changed much, so I'm very confused. xD

I wasn't able to find any other reports of the misplaced edit menu, but I might have just been search for the wrong keywords.
People have reported these issues on the default theme i meant well apart from the misplaced edit menu.
That's odd, I'm not able to replicate any of the errors I'm experiencing on the default theme.
Isn't this code from 1.6? in headerinclude

<script type="text/javascript">
<!--
	lang.unknown_error = "An unknown error has occurred.";

	var cookieDomain = ".audentio.com";
	var cookiePath = "/demo/mybb18/";
	var cookiePrefix = "";
	var deleteevent_confirm = "Are you sure you want to delete this event?";
	var removeattach_confirm = "Are you sure you want to remove the selected attachment from this post?";
	var loading_text = 'Loading. <br />Please Wait..';
	var saving_changes = 'Saving changes..';
	var use_xmlhttprequest = "1";
	var my_post_key = "84d89154b945e4d5533f8bfe5fe9cd9f";
	var rootpath = "http://audentio.com/demo/mybb18";
	var imagepath = "http://audentio.com/demo/mybb18/images/audentio/glowing";
  	var yes_confirm = "Yes";
	var no_confirm = "No";
	var MyBBEditor = null;
	var spinner_image = "http://audentio.com/demo/mybb18/images/audentio/glowing/spinner.gif";
// -->
</script>


Shouldn't it be this

<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>
Yes it is! And that solved most of my problems, you're a life saver!

However I'm still getting the problem with the edit menu, no idea what's up with that.

[Image: ibx7fWvK3OMwv7.png]
Check the default themes css and compare it with this themes. make sure it's positioned correctly.
Yes that was the first thing I did, the position isn't decided in CSS from what I can tell.
Revert your edit post template back to default then do the edits again.  

mine on default theme
<div id="edit_post_44_popup" class="popup_menu" style="position: absolute; top: 749px; left: 797px; display: none;"><div class="popup_item_container"><a href="javascript:;" class="popup_item quick_edit_button" id="quick_edit_post_44">Quick Edit</a></div><div class="popup_item_container"><a href="editpost.php?pid=44" class="popup_item">Full Edit</a></div></div>


Yours
<div id="edit_post_2_popup" class="popup_menu" style="position: absolute; top: 761px; left: 870.5px;"><div class="popup_item_container"><a href="javascript:;" class="popup_item quick_edit_button" id="quick_edit_post_2">Quick Edit</a></div><div class="popup_item_container"><a href="editpost.php?pid=2" class="popup_item">Full Edit</a></div></div>
Pages: 1 2