MyBB Community Forums

Full Version: Header?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys, 

I have some problems, I added new theme, and I have "WELCOME Nico'x (Arrow down for some edits)" and "LOGOUT"

When I try to click on some of these, nothing happends, like it haven't got any links, I can't find it in my "header" templates, I'm not sure what that could be, also, for guest's, they have there "Login" or "Register" 

I tried it by incognito chrome, so I was "Guest" and when I try to click on "Login" or "Register" nothing happends, the same problem as "LOGOUT" or something like that, here are 2 pictures.

Screenshots: http://imgur.com/a/N3qdt


Thanks in advence.
You may pm me an admin account to check this for you.
Sure!
Got a link to the board please? Smile
I will send you in private message
(2016-08-01, 07:12 PM)katos Wrote: [ -> ]Got a link to the board please? Smile

The theme is made for 1.6. It's a mess. Look at the 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" />
<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://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="images/myskins/script/jqueryslidemenu.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</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}



<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {

    jQuery('a[href=#top]').click(function(){
        jQuery('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });

});
</script>



<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($) {
    if ($(".avatarr img").attr("src") === "") {
        $(".avatarr img").attr("src", "images/myskins/defaultavatar.png");
    }
});
</script>



<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript">
/**
 * Modal Boxes JS
 *
 * @author Euan T. <[email protected]>
 * @version 1.0.0
 */

jQuery.noConflict();

jQuery(document).ready(function($)
{
    // Make the jQuery modal login redirect you back to the page you're currently on //
    $('#loginModal input[name="url"]').attr("value", window.location);
    // /Login redirect //

    // Modal Boxes //
    $('a[name="modal"]').on('click', function(event)
    {
        event.preventDefault();
        
        var target = $(this).attr('rel');
        
        // Set up the shadowing
        var maskHeight = $(document).height();
        var maskWidth = $(window).width();
        $('#mask').css({'width': maskWidth, 'height': maskHeight});
        $('#mask').fadeIn(1000);    
        $('#mask').fadeTo("slow", 0.8);  
        
        // Position the actual modal
        var winH = $(window).height();
        var winW = $(window).width();
        $(target).css('top',  (winH / 2) - ($(target).height() / 2));
        $(target).css('left', (winW / 2) - ($(target).width() / 2));
        $(target).fadeIn(2000); 
    });
    
    $('.modalBox a[rel="closeModal"]').on('click', function(event)
    {
        event.preventDefault();
        $('#mask, .modalBox').hide();
    }); 
    
    $('#mask').on('click', function ()
    {
        $(this).hide();
        $('.modalBox').hide();
    }); 
    // /Modal Boxes //
});
</script>



<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="images/myskins/script/jquery.innerfade.js"></script>
<script type="text/javascript">  
jQuery.noConflict();
jQuery(document).ready( function($){
               $('#news').innerfade({ 
		animationtype: 'slide', 
		speed: 950, 
		timeout: 3000, 
		//type: 'random', 
		type: 'sequence', 
		containerheight: '1em' }
	); 
	} 
); 
</script>


<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($)
{
        $('#login-trigger').click(function(){
                $(this).next('#login-content').slideToggle();
                $(this).toggleClass('active');                                  

                if ($(this).hasClass('active')) $(this).find('span').html('&#x25B2;')
                        else $(this).find('span').html('&#x25BC;')
                })
}); 
</script>





<script type="text/javascript" src="images/myskins/script/tipsy.js"></script>
<script type='text/javascript'> 
jQuery.noConflict();
jQuery(function() {
jQuery("a").tipsy({gravity: jQuery.fn.tipsy.autoNS});
jQuery("img").tipsy({gravity: jQuery.fn.tipsy.autoNS});
  });
</script>

There is multiple jQuerynoconflicts and multiple loading of the same things.
Your theme is indeed messy, and your theme references things that it really should not.
However, to the matter at hand:

As a guest, login is referenced as:

<a href="http://[snip.com]/member.php?action=login" name="modal" rel="#loginModal" class="loginbutton" style=" color: #79BBFF;font-family: 'BebasNeueRegular';font-size: 18px;" original-title=""><i class="icon-white icon-home" style="font-size: 20px;margin-top: 6px;"></i> Login</a>

Change to:
<a href="http://[snip].xxx.com/member.php?action=login"> Login</a>

would be far easier

Essentially, you need to fix the links as they are misconfigured and poorly coded - which is leading to broken code. Hence why they don't work. Unfortunately, it would personally take me too long to fix your headerinclude and sort your template.