Hello everybody,
I am new here and I have a problem. I installed the Facebook connect plugin and it was successful, then I added the API Key and secret. Now I tried to add the code <?php fbc_button(); ?> to the header.php of the Twitter design. But it is totally equal where I post the code, every time I add this specific code my page does not load anymore. It just stays white... If I add it at the bottom of the header page I can see the header, but nothing else. Only the header and my categories.
Can someone please help me? Because I would like to add the facebook connect to this design, but it seems it does not work. What else do I need to do, in order to show it correctly? I mean it can't be that the whole page does not show whenever I add this code <?php fbc_button(); ?>
Where do I need to add this code? Or is there maybe another error in the header.php itself that I can't see?
here's the original code:
<!-- header -->
<div class="container">
<div class="row login_nav">
<ul class="unstyled">
<li>
<?php if( osc_users_enabled() ) { ?>
<?php if( osc_is_web_user_logged_in() ) { ?>
<?php printf(__('Hi %s', 'twitter'), osc_logged_user_name() . '!'); ?> ·
<a href="<?php echo osc_user_dashboard_url() ; ?>"><?php _e('My account', 'twitter') ; ?></a> ·
<a href="<?php echo osc_user_logout_url() ; ?>"><?php _e('Logout', 'twitter') ; ?></a>
<?php } else { ?>
<a href="<?php echo osc_user_login_url() ; ?>"><?php _e('Login', 'twitter') ; ?></a> ·
<a href="<?php echo osc_register_account_url() ; ?>"><?php _e('Register', 'twitter') ; ?></a>
<?php } ?>
<?php } ?>
</li>
<?php if ( osc_count_web_enabled_locales() > 1) { ?>
<?php osc_goto_first_locale() ; ?>
<li class="languages">
·
<a class="active" href="#"><?php _e('Language', 'twitter'); ?> <?php while ( osc_has_web_enabled_locales() ) { if( osc_locale_code() == osc_current_user_locale()) { ?>(<?php echo osc_locale_field('s_short_name') ; ?>)<?php } } ?></a>
<ul>
<?php $i = 0 ; ?>
<?php osc_goto_first_locale() ; ?>
<?php while ( osc_has_web_enabled_locales() ) { ?>
<li <?php if($i == 0) { echo "class='first'"; } ?>><a id="<?php echo osc_locale_code() ; ?>" href="<?php echo osc_change_language_url ( osc_locale_code() ) ; ?>"><?php echo osc_locale_field('s_short_name') ; ?></a></li>
<?php $i++ ; } ?>
</ul>
</li>
</ul>
<?php } ?>
</div>
<div class="logo">
<?php if( file_exists( WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg" ) ) { ?>
<a href="<?php echo osc_base_url() ; ?>">
<img src="<?php echo osc_current_web_theme_url('images/logo.jpg') ; ?>" alt="<?php echo osc_page_title() ; ?>" title="<?php echo osc_page_title() ; ?>" />
</a>
<?php } else { ?>
<div class="row">
<div class="span16 columns">
<h3><a href="<?php echo osc_base_url() ; ?>"><?php echo osc_page_title() ; ?></a></h3>
</div>
</div>
<?php } ?>
</div>
<div class="topbar-wrapper" style="z-index: 5;">
<div class="topbar">
<div class="fill">
<div class="container">
<?php osc_goto_first_category() ; ?>
<?php if(osc_count_categories () > 0) { ?>
<ul class="nav">
<?php while ( osc_has_categories() ) { ?>
<li class="<?php echo osc_category_slug() ; ?><?php if ( osc_count_subcategories() > 0 ) { ?> menu<?php } ?>">
<a href="<?php echo osc_search_category_url() ; ?>" <?php if ( osc_count_subcategories() > 0 ) { ?>class="menu"<?php } ?>><?php View::newInstance()->_erase('subcategories'); echo osc_category_name() ; ?></a>
<?php if ( osc_count_subcategories() > 0 ) { ?>
<ul class="menu-dropdown">
<?php while ( osc_has_subcategories() ) { ?>
<li class="<?php echo osc_category_slug() ; ?>"><a href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a></li>
<?php } ?>
</ul>
<?php } ?>
</li>
<?php } ?>
</ul>
<?php } ?>
<ul class="nav secondary-nav">
<li class="publish">
<a href="<?php echo osc_item_post_url_in_category() ; ?>"><?php _e("Publish your ad for free", 'twitter'); ?></a>
</li>
</ul>
</div>
</div><!-- /fill -->
</div><!-- /topbar -->
</div>
</div>
<!-- header end -->
best regards,
Tanjeria