• Page 1 of 1
  • 1
Forum moderator: bigblog  
Fb and website comments in one problem
Ed05
Posts: 556
Reputation: 7

Message # 1 | 6:25 PM
Hello to all, i hope that finaly some one will help me with this code. Its not work properly, this is tab navigation for fb and website comments in one. When i pres fb or website comments it sholud show comments with help of css properly but it is not. when i press button it flow me on the bottom of website. Try this code and if any one have solution...

HTML
Quote
<?if($USER_LOGGED_IN$)?>
<!-- komentari -->
<div id="tabs-1">
<div class="tabs">

<ul class="tabNavigation">
<li><a href="#first"class="selected">Tvister Komentari: <b>$COM_NUM_ENTRIES$</b></a></li>
<li><a href="#second">Facebook Komentari: <b><fb:comments-count href=$ENTRY_URL$></fb:comments-count></b></a></li>


</ul>

<div id="first" class="tab_content" style="display: block;">
<?if($COM_IS_ACTIVE$)?>
<?if($COM_CAN_READ$)?>
<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr><td colspan="2">

$COM_BODY$

</td></tr>
<tr><td colspan="2" align="center">$COM_PAGE_SELECTOR1$</td></tr>
<tr><td colspan="2" height="10"></td></tr>
</table>
<?endif?>

<?if($COM_CAN_ADD$)?>
$COM_ADD_FORM$
<?else?>
<?if($USER_LOGGED_IN$)?><?else?><div align="center" class="commReg"><!--<s5237>-->Samo registrovani korisnici mogu upisivati komentare.<!--</s>--><br />[ <a href="$REGISTER_LINK$"><!--<s3089>-->Registruj Se<!--</s>--></a> | <a href="$LOGIN_LINK$"><!--<s3087>-->Uloguj se<!--</s>--></a> ]</div><?endif?>
<?endif?>
<?endif?>

</div>

<div id="second" class="tab_content" style="display: none;">
<div id="fb-root"></div><script src="http://connect.facebook.net/sr_RS/all.js#xfbml=1"></script><fb:comments href="$ENTRY_URL$" num_posts="10" width="580" colorscheme="dark"></fb:comments></div>
</div>
</div>
<!-- /Komentari -->

<?else?>

<!-- komentari -->
<div id="tabs-1">
<div class="tabs">

<ul class="tabNavigation">
<li><a href="#first">Facebook Komentari: <b><fb:comments-count href=$ENTRY_URL$></fb:comments-count></b></a></li>
<li><a href="#second">Tvister Komentari: <b>$COM_NUM_ENTRIES$</b></a></li>
</ul>

<div id="first" class="tab_content" style="display: block;">
<div id="fb-root"></div><script src="http://connect.facebook.net/sr_RS/all.js#xfbml=1"></script><fb:comments href="$ENTRY_URL$" num_posts="10" width="580" colorscheme="dark"></fb:comments>
</div>

<div id="second" class="tab_content" style="display: none;">
<?if($COM_IS_ACTIVE$)?>
<?if($COM_CAN_READ$)?>
<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr><td colspan="2">

$COM_BODY$

</td></tr>
<tr><td colspan="2" align="center">$COM_PAGE_SELECTOR1$</td></tr>
<tr><td colspan="2" height="10"></td></tr>
</table>
<?endif?>

<?if($COM_CAN_ADD$)?>
$COM_ADD_FORM$
<?else?>
<?if($USER_LOGGED_IN$)?><?else?><div align="center" class="commReg"><!--<s5237>-->Samo registrovani korisnici mogu upisivati komentare.<!--</s>--><br />[ <a href="$REGISTER_LINK$"><!--<s3089>-->Registruj Se<!--</s>--></a> | <a href="$LOGIN_LINK$"><!--<s3087>-->Uloguj se<!--</s>--></a> ]</div><?endif?>
<?endif?>
<?endif?>
</div>
</div>
<!-- /Komentari -->
<?endif?>


CSS

Code
/* Табы  
------------------------------------------*/  
#tabs-1 {text-align:center; margin-top: 20px;}  
.tabNavigation {list-style:none; margin: 0; padding: 0;}  
.tabNavigation li {  
  display: inline;  
  margin: 0px 5px 0px 5px;  
  text-shadow: 1px 1px 1px #111111;  
}  

.tabNavigation li a {  
  color: #FFFFFF;  
  background: url('fon_tab_01.gif') repeat-x top #6E6E6E;  
  border-top: 1px solid #FFFFFF;  
  border-right: 1px solid #FFFFFF;  
  border-left: 1px solid #FFFFFF;  
  padding: 6px 10px 6px 10px;  
}  

.tabNavigation li a.selected,ul  
.tabNavigation li a.selected:hover {color:#FFFFF; background:#111111; border-bottom: 1px solid #111111; }  
.tabNavigation li a:hover {color: #FFFFFF; background: url('http://www.extracafe.rs/2012/skripta/fon_tab_01.gif') repeat-x top #111111;}  
.tabNavigation li a:focus {outline: 0;}  

.tab_content {  
  overflow: hidden;  
  text-align:left;  
  border-top: 1px solid #555555;  
  padding: 5px 0px 10px 0px;  
  margin-top: 6px;  
}    


I asked for this code from some guy but he give to me wrong code obviously. It was wors than now,i eddited it but i cant fix it. dry

!
Molly
Posts: 12
Reputation: 1

Message # 2 | 11:31 PM
That's probably because you're stealing codes from other sites. It's not enough to only copy some code from source, to get something work well.
Ed05
Posts: 556
Reputation: 7

Message # 3 | 3:30 PM
Like you can se on my website there is uniqe design and these month i notice that others steal codes form me. This code give to me your friend from ec infinity so you are totaly wrong.
!
Infinity2605
Posts: 24
Reputation: 1

Message # 4 | 6:36 PM
Quote Ed05 ()
Like you can se on my website there is uniqe design and these month i notice that others steal codes form me. This code give to me your friend from ec infinity so you are totaly wrong.


I am not his friend smile
Ed05
Posts: 556
Reputation: 7

Message # 5 | 8:45 PM
Oh, how is that happend sad .. Ok you are colleagues. Never mind,that is not subject here.
!
  • Page 1 of 1
  • 1
Search:
Support
Need help? Contact our support team via the contact form or email us at support@ucoz.com.