Smf facebook kodu hatası

Başlatan herme, 29 Mar 2016 21:05

« önceki - sonraki »

0 Üye ve 1 Ziyaretçi konuyu incelemekte.



  1. 632

  2. 250

Merhaba arkadaşlar facebook sayfa kodu hatası alıyorum yardımcı olurmusunuz,kodu aşağıya ekledim nerede hata yapıyorum.Şimdiden teşekkür ederim.

if ($context['user']['is_logged'])
{   echo '<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/tr_TR/sdk.js#xfbml=1&version=v2.5&appId=1690377574553203";
  fjs.parentNode.insertBefore(js, fjs);
}(document, \'script\', \'facebook-jssdk\'));</script>';

echo '
  <table width="100%">
<tr>
<td>';
//SMFPacks Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- SMFPacks Shoutbox
echo '
</td>
<td width="30%">

<div class="windowbg2">

<div class="content">
<div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft">Facebook
</span>
</h3>
</div>
<div class="fb-page" data-href="https://www.facebook.com/Webevcil-495828790588877/" data-tabs="timeline" data-width="100%" data-height="267" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"></div>
</div>
<span class="botslice"><span></span></span>
</div>
</td>
</tr>
</table>';

*

  1. 3,019

  2. 582

  3. 890
kodun en son süslü parentez koymamışsınız if sorgusu kapanmamış
if ($context['user']['is_logged'])
{   echo '<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/tr_TR/sdk.js#xfbml=1&version=v2.5&appId=1690377574553203";
  fjs.parentNode.insertBefore(js, fjs);
}(document, \'script\', \'facebook-jssdk\'));</script>';

echo '
  <table width="100%">
<tr>
<td>';
//SMFPacks Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- SMFPacks Shoutbox
echo '
</td>
<td width="30%">

<div class="windowbg2">

<div class="content">
<div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft">Facebook
</span>
</h3>
</div>
<div class="fb-page" data-href="https://www.facebook.com/Webevcil-495828790588877/" data-tabs="timeline" data-width="100%" data-height="267" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"></div>
</div>
<span class="botslice"><span></span></span>
</div>
</td>
</tr>
</table>';
}



  1. 632

  2. 250
Alıntı yapılan: snrj - 29 Mar 2016 21:08kodun en son süslü parentez koymamışsınız if sorgusu kapanmamış
if ($context['user']['is_logged'])
{   echo '<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/tr_TR/sdk.js#xfbml=1&version=v2.5&appId=1690377574553203";
  fjs.parentNode.insertBefore(js, fjs);
}(document, \'script\', \'facebook-jssdk\'));</script>';

echo '
  <table width="100%">
<tr>
<td>';
//SMFPacks Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- SMFPacks Shoutbox
echo '
</td>
<td width="30%">

<div class="windowbg2">

<div class="content">
<div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft">Facebook
</span>
</h3>
</div>
<div class="fb-page" data-href="https://www.facebook.com/Webevcil-495828790588877/" data-tabs="timeline" data-width="100%" data-height="267" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"></div>
</div>
<span class="botslice"><span></span></span>
</div>
</td>
</tr>
</table>';
}

Kardeşim teşekkür ederim.Şu an oldu


MENU ×