Webboard

Pełna wersja: [MyBB 1.8.x] DVZ Shoutbox problem
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Stron: 1 2 3
Tak podmieniłem jak mówiłeś
headerinclude :
Kod:
<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=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1809"></script>
<link rel="Shortcut icon" href="{$mybb->asset_url}/images/GamesVision/favicon.ico" />
<link rel="stylesheet" href="{$theme[imgdir]}/css/font-awesome.min.css">
<link rel="stylesheet" href="{$theme[imgdir]}/css/font-awesome.css">
{$stylesheets}
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/avatarep/avatarep.js"></script>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<!--
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;
var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";
// -->
</script>
<!-- Menu Usera -->
<script>
jQuery(function() {
  var button = jQuery('#loginButton');
  var box = jQuery('#loginBox');
  var form = jQuery('#loginForm');
  button.mouseup(function(login) {
      box.toggle();
      button.toggleClass('active');
  });
  form.mouseup(function() {
      return false;
  });
  jQuery(this).mouseup(function(login) {
      if(!(jQuery(login.target).parent('#loginButton').length > 0)) {
          button.removeClass('active');
          box.hide();
      }
  });
});
</script>
<!-- Kategorie Profil -->
<script>
jQuery(document).ready(function() {


jQuery(".tab_content").hide();
jQuery("ul.tabs li:first").addClass("active").show();
jQuery(".tab_content:first").show();


jQuery("ul.tabs li").click(function() {

jQuery("ul.tabs li").removeClass("active");
jQuery(this).addClass("active");
jQuery(".tab_content").hide();


var activeTab = jQuery(this).find("a").attr("href");
jQuery(activeTab).fadeIn();
return false;
});

});
</script>
<!-- Wybór Tła -->
<script type="text/javascript">
$(document).ready(function(){    
  if($.cookie('background')){    
      $("body").css("backgroundImage", "url(" + "images/" + $.cookie("background") + ".png)");
  };
  $(".bg_style").click(function () {  
       $(".bg_preview").slideToggle('fast');
       return false;
  });
  $(".bg_preview a").click(function() {
      var bg_id = $(this).attr("id");
        $("body").css("backgroundImage", "url(" + "images/" + bg_id + ".png)");
      $.cookie('background', bg_id, { expires: 365, path: '/' });
  });    
});
</script>
Otworzony był zbędny tag script.

Ponadto plik avatarep.js należy wgrać do images/avatarep/avatarep.js.
(29.12.2017, 10:44)Snake_ napisał(a): [ -> ]headerinclude :
Kod:
<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=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1806"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1809"></script>
<link rel="Shortcut icon" href="{$mybb->asset_url}/images/GamesVision/favicon.ico" />
<link rel="stylesheet" href="{$theme[imgdir]}/css/font-awesome.min.css">
<link rel="stylesheet" href="{$theme[imgdir]}/css/font-awesome.css">
{$stylesheets}
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/avatarep/avatarep.js"></script>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<!--
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;
var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";
// -->
</script>
<!-- Menu Usera -->
<script>
jQuery(function() {
  var button = jQuery('#loginButton');
  var box = jQuery('#loginBox');
  var form = jQuery('#loginForm');
  button.mouseup(function(login) {
      box.toggle();
      button.toggleClass('active');
  });
  form.mouseup(function() {
      return false;
  });
  jQuery(this).mouseup(function(login) {
      if(!(jQuery(login.target).parent('#loginButton').length > 0)) {
          button.removeClass('active');
          box.hide();
      }
  });
});
</script>
<!-- Kategorie Profil -->
<script>
jQuery(document).ready(function() {


jQuery(".tab_content").hide();
jQuery("ul.tabs li:first").addClass("active").show();
jQuery(".tab_content:first").show();


jQuery("ul.tabs li").click(function() {

jQuery("ul.tabs li").removeClass("active");
jQuery(this).addClass("active");
jQuery(".tab_content").hide();


var activeTab = jQuery(this).find("a").attr("href");
jQuery(activeTab).fadeIn();
return false;
});

});
</script>
<!-- Wybór Tła -->
<script type="text/javascript">
$(document).ready(function(){    
  if($.cookie('background')){    
      $("body").css("backgroundImage", "url(" + "images/" + $.cookie("background") + ".png)");
  };
  $(".bg_style").click(function () {  
       $(".bg_preview").slideToggle('fast');
       return false;
  });
  $(".bg_preview a").click(function() {
      var bg_id = $(this).attr("id");
        $("body").css("backgroundImage", "url(" + "images/" + bg_id + ".png)");
      $.cookie('background', bg_id, { expires: 365, path: '/' });
  });    
});
</script>
Otworzony był zbędny tag script.

Ponadto plik avatarep.js należy wgrać do images/avatarep/avatarep.js.


Skąd ten Avatarep.js wezme ?
https://community.mybb.com/mods.php?action=view&pid=74 możliwe, że stąd, nie pamiętam już od jakiego pluginu ten plik był.
Wgrałem na forum pokazuje te avatary ale shoutbox nadal nie działa.
Wciąż nie widzę pliku: http://argoriaot.xaa.pl/images/avatarep/avatarep.js

Jeśli nie używasz tego pluginu, to go odinstaluj, a z headerinclude usuń
Kod:
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/avatarep/avatarep.js"></script>
Stron: 1 2 3