20.09.2014, 05:22
Hallo, ich habe kurz gesagt folgendes Problem: die globalen templates wurde nicht aktualisiert und ich finde keine Option, diese auf den Standard zurückzusetzen. Das führt natürlich zu z.B. folgendem Problem:
Also wird immer noch prototype statt jQuery geladen.
Die globalen Dateien sehen folgendermaßen aus:
forumdisplay:
gb_newcomment:
headerinclude (hier liegt das hauptproblem schätze ich):
Wie kann ich diese Templates denn zurücksetzen?
Danke schonmal im Voraus!
Code:
GET http://speedcube.de/forum/jscripts/prototype.js
[...]
TypeError: $(...).ready is not a function post.js:4
ReferenceError: jQuery is not defined jquery.sceditor.bbcode.min.js:3
TypeError: $(...).ready is not a function bbcodes_sceditor.js:3
ReferenceError: jQuery is not defined newreply.php:395
TypeError: $(...).bind is not a function newreply.php:648
TypeError: $(...) is null
Also wird immer noch prototype statt jQuery geladen.
Die globalen Dateien sehen folgendermaßen aus:
forumdisplay:
Code:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$foruminfo['name']} </title>
{$headerinclude}
{$rssdiscovery}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
function ads_out(obj) {
obj.style.display = 'none';
}
function ads_in(obj) {
obj.style.display = 'inline';
}
function random_google() {
if (document.all) {
obj1 = document.all.googleads1;
obj2 = document.all.googleads2;
} else {
obj1 = document.getElementById("googleads1");
obj2 = document.getElementById("googleads2");
}
ads_in(obj1);
ads_in(obj2);
a = 1 + 5*(Math.random());
a = Math.round(a);
if (a == 2) {
ads_out(obj1);
} else {
ads_out(obj2);
}
}
// -->
</script>
</head>
<body>
{$header}
{$moderatedby}
{$usersbrowsing}
{$rules}
{$subforums}
{$threadslist}
{$footer}
<!-- Google Analytics start -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18862167-3']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- Google Analytics end -->
</body>
</html>
gb_newcomment:
Code:
<head>
<title>{$mybb->settings['bbname']} - New Guest Book Comment</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
<tr>
<td class="thead"><strong>New Comment</strong></td>
</tr>
<tr>
<td class="trow1"><br />
<form action='' method='post'>
<div align='center'>BB Code Enabled!</div>
<p>Comment:<br/>
<textarea cols='50' rows='5' name='comment'></textarea></p>
<input type='hidden' name='id' value='{$uid}'/>
<input type='submit' value='Add Comment'/>
</form></td>
</tr>
</table>
{$footer}
</body>
</html>
headerinclude (hier liegt das hauptproblem schätze ich):
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->settings['bburl']}/jscripts/prototype.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{lang: 'de'}
</script>
{$stylesheets}
<script type="text/javascript">
<!--
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 imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}
Wie kann ich diese Templates denn zurücksetzen?
Danke schonmal im Voraus!