Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 8 Months, 1 Week ago Issue with Text Editor, template update and Default Theme.
#1
Solved: 4 Years, 8 Months, 1 Week ago
Hello.
I have recently updated my site to 1.8
Site : www.dotainternational.com

I am facing few issues.

1. I can not see text editor any where, New Thread, Edit thread, Quickreply etc... I have checked may guides here and tested them, but nothing works.

After some testing I found that when I revert headerinclude template to orginal, then it shows the text editor. but reverting to original removes all the addition JS codes added to headerinclude. Because of which few plugins like My Alert etc and my site's theme (Elfenlie) does not work properly.

Here is my headerinclude code.

<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=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>

[color=#ff3333]<script type='text/javascript'> 
jQuery.noConflict();
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>
<script type="text/javascript" src="images/ElfenLie/elfenlie1.js"></script>
<script type="text/javascript" src="images/ElfenLie/tipsy.js"></script>
<script type="text/javascript" src="images/ElfenLie/modalbox.js"></script>
<script type="text/javascript" src="images/ElfenLie/jquery.cookie.js"></script>
<script type="text/javascript" src="images/ElfenLie/sidebar.js"></script>
<link rel="stylesheet" href="images/ElfenLie/ico2/css/font-awesome.css"></link>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,700,800,300' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
    document.write(unescape("%3Cscript src='http://code.jquery.com/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript">
    var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
    document.write(unescape("%3Cscript src='http://code.jquery.com/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript">
    var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.js"></script>
[/color]{$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>

2. Most of the plugins I uninstalled during up gradation, can not be installed now. Saying that it does not support 1.8.
Is it possible to make them work by changing version number from 1.6 to 1.8 or do we need some special update in that...???

3. Upgradation of Theme's Templates : When I installed the update, after it, it has not update any of template, I see the templates the way they were before updating. When I see difference report, there it shows few changes but actually there is no change made to any of the template... I can only make change by clicking on revert to original thing, but that removes all the edits I have made earlier. (It distorts my themes even)

4. Here is a screen shot of how my Default theme looks after the upgradation from 1.6 to 1.8.

Kindly help me out.

Regards.


Attached Files Thumbnail(s)
   
Reply
#2
Solved: 4 Years, 8 Months, 1 Week ago
These aren't MyBB bugs, moved to support.

1. This headerinclude is very messy. You need to:
a) Use the Find Updated templates functionality to remove 1.6 stuff like Prototype library.
b) Remove unnecessary jQuery duplicates (is loaded 3 times if I saw correctly, should be loaded only once).
c) jQuery cookie is included in 1.8, remove it too.
d) Remove 2nd instance of MyAlerts js.
e) What's [color=#ff3333] doing in there?
f) noConflict is not needed anymore.

If you still don't know how it should look after changes, I or someone may edit it for you if we find time.

2. http://community.mybb.com/thread-158487-...pid1098761

3. You have to edit each listed template manually. Sometimes there is no way MyBB can know what needs to be removed/added in customised templates due to changes in them.

4. Check 1a) and 3.
Reply
#3
Solved: 4 Years, 8 Months, 1 Week ago
Thanks dear. I have cleaned it. It was a pasting error that it was so messed up, but even then it was messes up. Now I have removed all useless things from it. Here is new headerinclude code please.

Quote:<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=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/ElfenLie/elfenlie1.js"></script>
<script type="text/javascript" src="images/ElfenLie/tipsy.js"></script>
<script type="text/javascript" src="images/ElfenLie/modalbox.js"></script>
<script type="text/javascript" src="images/ElfenLie/sidebar.js"></script>
<link rel="stylesheet" href="images/ElfenLie/ico2/css/font-awesome.css"></link>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,700,800,300' rel='stylesheet' type='text/css'>




<script type="text/javascript">
var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.js"></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>


If I remove the coloured codes, then it works perfectly. 1st colored part is added by theme. 2nd one is added by MyAlert. If I remove these, theme totally distorts and does not work.
Reply
#4
Solved: 4 Years, 8 Months, 1 Week ago
Well, MyAlerts isn't fully 1.8 compatible yet, I think. At least the author is working on it, in meanwhile I'd deactivate it. And if you want to risk any bugs - at least remove noConflict line from the jscripts/myalerts.js file.

And the rest - remove noConflict line also from the purple .js file.

If that still won't fix it, provide a test account with newreply/newthread.php access.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)