14.02.2016, 11:26
wersja skryptu MyBB: 1.8.6
adres forum: freefrag.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):
Po zalogowaniu się, w prawym rogu u gory jest pasek usera z szablonu carbon 1.8 i powinny się wysuwać po kliknięciu tam na nick opcje z możliwością edytowania profilu, avatara, sygnatury, komunikator itd. Podejrzewam, ze trzeba z tamtego szablonu jakąs linijke z headerinclude przekopiować, ale mogę się mylić. Proszę zatem o pomoc w tym kierunku.
Konto testowe:
test
tester
Wyżej headerinclude z szablonu obecnie ustawionego czyli BlackPlayers, a niżej z carbonu:
refresfh
adres forum: freefrag.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):
Po zalogowaniu się, w prawym rogu u gory jest pasek usera z szablonu carbon 1.8 i powinny się wysuwać po kliknięciu tam na nick opcje z możliwością edytowania profilu, avatara, sygnatury, komunikator itd. Podejrzewam, ze trzeba z tamtego szablonu jakąs linijke z headerinclude przekopiować, ale mogę się mylić. Proszę zatem o pomoc w tym kierunku.
Konto testowe:
test
tester
Kod PHP:
<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" />
<link rel="stylesheet" href="{$mybb->asset_url}/images/BlackPlayers/reset.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="{$mybb->asset_url}/images/BlackPlayers/fonts/opensans/stylesheet.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="{$mybb->asset_url}/images/BlackPlayers/style.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1804"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1804"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1804"></script>
<script src="{$mybb->asset_url}/images/BlackPlayers/jscripts/jquery.cookie.js" type="text/javascript"></script>
<script src="{$mybb->asset_url}/images/BlackPlayers/jscripts/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="{$mybb->asset_url}/images/BlackPlayers/jscripts/BlackPlayers/SuperMenu.js" type="text/javascript"></script>
<script src="{$mybb->asset_url}/images/BlackPlayers/jscripts/BlackPlayers/sidebar.js" type="text/javascript"></script>
<script src="{$mybb->asset_url}/images/BlackPlayers/jscripts/modernizr.custom.js" type="text/javascript"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/xem_fast_rep.js"></script>
{$stylesheets}
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(document).Sidebar();
jQuery(".user-dd").Wysun({przycisk: "#login-link", efekt : "fade", czas : "0"});
jQuery(".login-box").hide().css({'top':- jQuery(".login-box").height() + "px"});
jQuery("#login-close").click(function(){
jQuery(".login-box").finish().animate({'top':'250px;'}, 300, function(){
jQuery(this).animate({'top':- jQuery(".login-box").height() + "px"}, 200, function(){
jQuery(this).hide();
});
});
});
jQuery("#log-link").click(function(){
jQuery(".login-box").show().finish().animate({'top':'250px'}, 300, function(){
jQuery(this).animate({'top':'121px'}, 200);
});
});
});
</script>
<script>
jQuery.fn.Wysun = function(arg){
var obj = jQuery(this);
var opcje = jQuery.extend({}, jQuery.fn.Wysun.defaults, arg);
jQuery.fn.Wysun.defaults = {
przycisk : jQuery(this),
efekt : "fade",
czas : "1000"
};
switch(opcje.efekt){
case "fade":
jQuery(opcje.przycisk).click(function(){
obj.css("display") == "none" ?
obj.finish().fadeIn(opcje.czas)
:
obj.finish().fadeOut(opcje.czas);
return false;
});
obj.click(function(event){
event.stopImmediatePropagation();
});
jQuery(document).click(function(event){
if(("#" + event.target.id != opcje.przycisk) && ("." + event.target.className != opcje.przycisk) && jQuery(opcje.przycisk).find(event.target).length < 1)
obj.finish().fadeOut();
});
break;
default : {
console.log("Nie ma takiego efektu: "+ opcje.efekt);
}
}
};
</script>
<script>
jQuery(document).ready(function(){
jQuery(".user-panel").SuperMenu();
});
</script>
<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='' />";
var modal_zindex = 9999;
</script>
Wyżej headerinclude z szablonu obecnie ustawionego czyli BlackPlayers, a niżej z carbonu:
Kod PHP:
<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>
<link href="themes/1/js-image-slider.css" rel="stylesheet" type="text/css" />
<script src="themes/1/js-image-slider.js" type="text/javascript"></script>
<link href="themes/1/tooltip.css" rel="stylesheet" type="text/css" />
<script src="themes/1/tooltip.js" type="text/javascript"></script>
<link href="generic.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
imageSlider.thumbnailPreview(function (thumbIndex) { return "<img src='images/thumb" + (thumbIndex + 1) + ".jpg' style='width:300px;height:60px;' />"; });
</script>
{$stylesheets}
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/avatarep/avatarep.js"></script>
<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>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/carbon/js/jquery.tipTip.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/carbon/js/jquery.tipTip.minified.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/carbon/js/carbon.js"></script>
<script type='text/javascript'>
jQuery(function() {
jQuery(".tipTip").tipTip({maxWidth: "auto", edgeOffset: 10,gravity: 'n'});
});
</script>
<!-- start gg-widget-html - Copyright GG Network S.A. -->
<a href="https://widget.gg.pl/widget/3fdfee377bb6d729aa30360549521351cc8ed75000ced38c5c1644f5455c6024#uin=22444157|msg_online=Witam, w czym mogę pomóc?|msg_offline=Zostaw wiadomość i informacje kontaktowe, a odpowiemy na Twoje pytanie.|hash=3fdfee377bb6d729aa30360549521351cc8ed75000ced38c5c1644f5455c6024" rel="nofollow" data-gg-widget="snapped-bottom" target="_blank"
style=" border: 1px solid #084972; -webkit-border-radius: 2px; background: linear-gradient(#2389c9 0%, #084972 100%); background:-webkit-linear-gradient(#2389c9 0%, #084972 100%); background: -o-linear-gradient(#2389c9 0%, #084972 100%); background: -moz-linear-gradient(#2389c9 0%, #084972 100%); border-radius: 2px; box-shadow: 0px 1px 2px -1px #fff inset; -webkit-box-shadow: 0px 1px 2px -1px #fff inset; -moz-box-shadow: 0px 1px 2px -1px #fff inset; color: #fff; display: inline-block; font-family: Arial, sans-serif; font-size: 13px; height: 30px; max-width: 300px; text-decoration: none;">
<img style="display: inline-block; line-height: 30px; padding: 6px 1px 6px 6px; vertical-align: top;" src="https://status.gadu-gadu.pl/users/status.asp?id=22444157&styl=1&source=widget">
<span style="display: inline-block; line-height: 30px; max-width: 262px; overflow: hidden; padding: 0 6px 0 0; text-overflow: ellipsis; ms-text-overflow: ellipsis; o-text-overflow: ellipsis; white-space: nowrap;">Zadaj pytanie on-line</span>
</a>
<!-- Chcesz mieć GG widget na swojej stronie? Sprawdź http://www.gg.pl/info/komunikator-na-twoja-strone/ -->
<!-- end gg-widget-html -->
<!-- start gg-widget-javascript - kod javascript możesz umieścić przed końcowym znacznikiem body - Copyright GG Network S.A. -->
<script type="text/javascript">
(function() {
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.id = 'gg-widget-script';
s.src = 'https://widget.gg.pl/resources/js/widget.js';
var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss); })();
</script>
<!-- end gg-widget-javascript -->
refresfh