Header_welcome_block

Założony przez  Sepowaty.

wersja skryptu MyBB: 1.6.10
adres forum: http://forum.repvictoria.pl/
na czym polega problem (screen, opis, komunikaty):

Witam! Po wgraniu nowego stylu "Algid" mam problem z paskiem na górze strony. Na stronie głównej działa prawidłowo, jednak gdy próbuję rozwinąć pasek panelu użytkownika będąc w temacie to jest już problem.

[Obrazek: problemjh.png]
[Obrazek: problem2ct.png]

Mój szablon headerinclude

<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="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<
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" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.leanModal.min.js"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.idTabs.min.js"></script>
<
script type="text/javascript">
jQuery(function() {
jQuery('a[rel*=leanModal]').leanModal({ top 200closeButton".modal_close" });
});
</
script
<
script type="text/javascript">
    
jQuery(document).ready(function(){
     
jQuery('#loged-toggle').click(function() {
      
jQuery('#loged-content').slideToggle(300, function() {
      
jQuery("#loged-toggle p").toggle();
      });
     });
    });
</
script>
<
script type="text/javascript">
jQuery(document).ready(function() 
{
    
jQuery('div.htmltabs div.tabsContent').hide();//tabsContent class is used to hide all the tabs content in the start
    
jQuery('div.tab1').show(); // It will show the first tab content when page load, you can set any tab content you want - just put the tab content class e.g. tab4
    
jQuery('div.htmltabs ul.tabs li.tab1 a').addClass('tab-current');// We will add the class to the current open tab to style the active state
    //It will add the click event on all the anchor tag under the htmltabs class to show the tab content when clicking to the tab
    
jQuery('div.htmltabs ul li a').click(function()
    {
        var 
thisClass this.className.slice(0,4);//"this" is the current anchor where user click and it will get the className from the current anchor and slice the first part as we have two class on the anchor 
        
jQuery('div.htmltabs div.tabsContent').hide();// It will hide all the tab content
        
jQuery('div.' thisClass).show(); // It will show the current content of the user selected tab
        
jQuery('div.htmltabs ul.tabs li a').removeClass('tab-current');// It will remove the tab-current class from the previous tab to remove the active style
        
jQuery(this).addClass('tab-current'); //It will add the tab-current class to the user selected tab
    
});
});
</
script>
<
script type="text/javascript">jQuery.noConflict();</script>
<
script type="text/javascript" src="http://ciasteczka.eu/cookiesEU-latest.min.js"></script>
<
script type="text/javascript">

jQuery(document).ready(function(){
    
jQuery.fn.cookiesEU();
});

</
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>
<
script type="text/javascript">

  var 
_gaq _gaq || [];
  
_gaq.push(['_setAccount''UA-37944722-1']);
  
_gaq.push(['_setDomainName''repvictoria.pl']);
  
_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 
document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gas);
  })();

</
script>
{
$newpmmsg

Mój szablon header_welcomeblock_member

<div id="loged">
 <
div id="loged-slide">
{
$lang->welcome_back
<
div id="loged-content">
    <
div class="linki">
<
p style=" position:relative; border-bottom: 1px solid #333; border-top: 1px solid #333;"><a href="usercp.php?action=avatar"><img src="{$mybb->user['avatar']}width="30" height="30" style="position:relative; margin-right:15px; margin-bottom: -10px; margin-top:-5px; "><a href="{$mybb->settings['bburl']}/usercp.php"><strong>{$lang->welcome_usercp}</strong></a><br/></p>

  <
span style="float:left; font-size:11px; margin-right:10px;">
  <
p><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 350, 350);">{$lang->welcome_open_buddy_list}</a></p>
  <
p><a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a></p>
  </
span>

  <
span style="font-size:11px;">
  <
p><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a></p>
  <
p><a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}</p>
  </
span>
  <
span style="float:left; font-size:11px; margin-right:10px;">
  {
$modcplink}{$admincplink}
  </
span>

  <
span style="font-size:11px;">
  <
p><class="logout" href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">{$lang->welcome_logout}</a></p>
  </
span>
    </
div>
</
div
 </
div>
<
div id="loged-toggle"

<
p><img src="{$theme['imgdir']}/login_panelopen.png"/></p>
<
p style="display: none;"><img src="{$theme['imgdir']}/login_panelclose.png"/></p>
</
div>
</
div
RadnoK napisał 22.05.2013, 18:33:
Problem dotyczy stylu. Przenoszę do odpowiedniego działu. Pamiętaj o poprawnym tytułowaniu swoich tematów.
[Obrazek: modnotice_howto.png]
@Odświeżam
Ja radziłym zmienić styl albo przekodować (zlecić komuś?) ma on parę dość denerwujących bugów. :/
Błędy, które znalazłem w tym stylu osobiście sam rozwiązałem. Pozostał mi tylko ten z rozwijanym menu.

Jeśli wpiszę zmienną {$headerinclude} w szablonie "Header" to będzie działać, ale będzie wracać do pozycji "0".
Jeśli to menu ma być na wierzchu to może spróbuj dodać w CSS
z-index: 9999;
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
Zobacz czy w szablonie index nie masz przypadkiem jakiegoś kodu którego wymaga te menu.
Index wygląda (prawie) domyślnie:

<html>
<
head>
<
title>{$mybb->settings['bbname']}</title>
{
$headerinclude}
<
script type="text/javascript">
<!--
    
lang.no_new_posts "{$lang->no_new_posts}";
    
lang.click_mark_read "{$lang->click_mark_read}";
// -->
</script>
</
head>
<
body>
{
$header}
{
$recentposts}
{
$forums}
{
$dvz_shoutbox}
<
br />
{
$boardstats}

<
dl class="forum_legend smalltext">
    <
dt><img src="{$theme['imgdir']}/on.png" alt="{$lang->new_posts}title="{$lang->new_posts}style="vertical-align: middle; padding-bottom: 4px;" /></dt>
    <
dd>{$lang->new_posts}</dd>

    <
dt><img src="{$theme['imgdir']}/off.png" alt="{$lang->no_new_posts}title="{$lang->no_new_posts}style="vertical-align: middle; padding-bottom: 4px;" /></dt>
    <
dd>{$lang->no_new_posts}</dd>

    <
dt><img src="{$theme['imgdir']}/offlock.png" alt="{$lang->forum_locked}title="{$lang->forum_locked}style="vertical-align: middle;" /></dt>
    <
dd>{$lang->forum_locked}</dd>
</
dl>
<
br style="clear: both" />
{
$footer}
</
body>
</
html
Rzeczywiście, odpuściłem sobie. Teraz przebudowałem menu i wygląda to całkiem inaczej.



Użytkownicy przeglądający ten wątek:

1 gości