Webboard

Pełna wersja: Dodanie pluginów i facebooka do panelu bocznego
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB:1.6.9
adres forum:SkillShoot.xaa.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):Czy mógłby ktoś uzupełnić mi penele boczne? Chodzi mi o top 5 użytkowników, facebook itp.

Daję kod pliku index:
Kod PHP:
<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>
<
script src="http://politykacookies.pl/politykacookies.js"></script> <script type="text/javascript"cookiesPolicy(); </script>
{
$header}


<
br>

<
table class="serwery" width="100%" cellspacing="0" cellpadding="4"><tbody><tr
<
td class="thead" colspan="6" style="text-align: center;"
<
div class="theadleft"></div
<
div class="theadright"></div
<
center><div class="theadmain"><div><strong>Serwery SkillShoot.pl</strong><br></div></div></center
</
td
</
tr


<
tr
<
td width="20" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Status</strong></span></td>
<
td width="65" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Nazwa</strong></span></td>
<
td width="300" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Monitor</strong></span></td
<
td width="135" class="tcat" style="text-align:center;"><span class="smalltext"><strong>IP serwera</strong></span></td
<
td width="45" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Połącz</strong></span></td
<
td width="45" class="tcat" style="text-align:center;"><span class="smalltext"><strong>HLTV</strong></span></td
</
tr


<
tr>
<
td class="trow1" style="text-align:center;" class="pmpopup" title="Status Serwera" ><img src="http://gamesign.pl/tabela_serwery/online1.jpg"></td>


<
td class="trow1" style="text-align:center;"><span class="smalltext">[DD2]SkillShoot</span></td><td class="trow2" style="text-align:center;"><span class="smalltext"><img src="http://cache.www.gametracker.com/server_info/178.19.110.101:27087/b_350_20_FFAD41_E98100_000000_591F11.png"></span></td
<
td class="trow1" style="text-align:center;"><span class="smalltext"><b>178.19.110.100:27091</b></span></td
<
td class="trow1" style="text-align:center;"><a href="steam://connect/178.19.110.101:27087" class="ipsButton_secondary" style="font-size: 0.8em;padding: 0 5px;"><img src="http://gamesign.pl/tabela_serwery/steam.png" height="16" width="16">&nbsp;&nbsp;  Steam</a></td
<
td class="trow1" style="text-align:center;"><a href="#" class="ipsButton_secondary" style="font-size: 0.8em;padding: 0 5px;"><img src="http://gamesign.pl/tabela_serwery/hltv.png" title="" border="0" height="16" width="16">&nbsp;&nbsp;  Dema</a></td
</
tr

</
tbody></table>

<
class="buttons" style="float: right;"></a>
 <
class="clickedbuttons" style="float: right;"></a>
 <
br class="clear" />
 <
div class="sidebar" style="float: right;width: 24%;">

<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
 <
tr>
 <
td class="tboczny"><strong>
Panel Boczny
 
</strong></td>
 </
tr>
 <
tr>
 <
td class="trow2">


Panel Boczny

 
</td>
 </
tr>
 </
tr>
 </
table>

<
br>
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
 <
tr>
 <
td class="tboczny"><strong>
Serwer De_Dust2
 
</strong></td>
 </
tr>
 <
tr>
 <
td class="trow2">


<
center>
<
iframe src="http://cache.www.gametracker.com/components/html0/?host=178.19.110.101:27087&bgColor=333333&fontColor=CCCCCC&titleBgColor=222222&titleColor=FF9900&borderColor=555555&linkColor=FFCC00&borderLinkColor=222222&showMap=1&currentPlayersHeight=100&showCurrPlayers=1&topPlayersHeight=100&showTopPlayers=1&showBlogs=0&width=215"></iframe>
</
center>

 </
td>
 </
tr>
 </
tr>
 </
table>

<
br>
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
 <
tr>
 <
td class="tboczny"><strong>
Panel Boczny
 
</strong></td>
 </
tr>
 <
tr>
 <
td class="trow2">


Panel Boczny

 
</td>
 </
tr>
 </
tr>
 </
table>

<
br>
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
 <
tr>
 <
td class="tboczny"><strong>
Panel Boczny
 
</strong></td>
 </
tr>
 <
tr>
 <
td class="trow2">


Panel Boczny

 
</td>
 </
tr>
 </
tr>
 </
table>

<
br>
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
 <
tr>
 <
td class="tboczny"><strong>
Panel Boczny
 
</strong></td>
 </
tr>
 <
tr>
 <
td class="trow2">


Panel Boczny

 
</td>
 </
tr>
 </
tr>
 </
table>






 </
td>
 </
tr>
 </
tr>
 </
table>


<
br>{$topStats['LastThreads']}
<
br>{$topStats['Posters']}
<
br>{$topStats['Reputation']}
<
br>{$topStats['Timeonline']}
<
br>{$topStats['NewestUsers']}





 </
div>
 <
div class="forums" style="float: left;width: 75%;">

<
div id="index_forums">
{
$dvz_shoutbox}
{
$custom_status_index}
{
$forums}

</
div>

</
div>

<
br style="clear: both" />
{
$boardstats}
{
$footer}
</
body>
</
html
Kod:
<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>
<script src="http://politykacookies.pl/politykacookies.js"></script> <script type="text/javascript"> cookiesPolicy(); </script>
{$header}


<br>

<table class="serwery" width="100%" cellspacing="0" cellpadding="4"><tbody><tr>
<td class="thead" colspan="6" style="text-align: center;">
<div class="theadleft"></div>
<div class="theadright"></div>
<center><div class="theadmain"><div><strong>Serwery SkillShoot.pl</strong><br></div></div></center>
</td>
</tr>


<tr>
<td width="20" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Status</strong></span></td>
<td width="65" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Nazwa</strong></span></td>
<td width="300" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Monitor</strong></span></td>
<td width="135" class="tcat" style="text-align:center;"><span class="smalltext"><strong>IP serwera</strong></span></td>
<td width="45" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Połącz</strong></span></td>
<td width="45" class="tcat" style="text-align:center;"><span class="smalltext"><strong>HLTV</strong></span></td>
</tr>


<tr>
<td class="trow1" style="text-align:center;" class="pmpopup" title="Status Serwera" ><img src="http://gamesign.pl/tabela_serwery/online1.jpg"></td>


<td class="trow1" style="text-align:center;"><span class="smalltext">[DD2]SkillShoot</span></td><td class="trow2" style="text-align:center;"><span class="smalltext"><img src="http://cache.www.gametracker.com/server_info/178.19.110.101:27087/b_350_20_FFAD41_E98100_000000_591F11.png"></span></td>
<td class="trow1" style="text-align:center;"><span class="smalltext"><b>178.19.110.100:27091</b></span></td>
<td class="trow1" style="text-align:center;"><a href="steam://connect/178.19.110.101:27087" class="ipsButton_secondary" style="font-size: 0.8em;padding: 0 5px;"><img src="http://gamesign.pl/tabela_serwery/steam.png" height="16" width="16">&nbsp;&nbsp; Steam</a></td>
<td class="trow1" style="text-align:center;"><a href="#" class="ipsButton_secondary" style="font-size: 0.8em;padding: 0 5px;"><img src="http://gamesign.pl/tabela_serwery/hltv.png" title="" border="0" height="16" width="16">&nbsp;&nbsp; Dema</a></td>
</tr>

</tbody></table>

<a class="buttons" style="float: right;"></a>
<a class="clickedbuttons" style="float: right;"></a>
<br class="clear" />
<div class="sidebar" style="float: right;width: 24%;">

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tboczny"><strong>
Facebook
</strong></td>
</tr>
<tr>
<td class="trow2">


Wygenerowany kod z Facebooka developers

</td>
</tr>
</tr>
</table>

<br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tboczny"><strong>
Serwer De_Dust2
</strong></td>
</tr>
<tr>
<td class="trow2">


<center>
<iframe src="http://cache.www.gametracker.com/components/html0/?host=178.19.110.101:27087&bgColor=333333&fontColor=CCCCCC&titleBgColor=222222&titleColor=FF9900&borderColor=555555&linkColor=FFCC00&borderLinkColor=222222&showMap=1&currentPlayersHeight=100&showCurrPlayers=1&topPlayersHeight=100&showTopPlayers=1&showBlogs=0&width=215"></iframe>
</center>

</td>
</tr>
</tr>
</table>

<br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
{$topStats['LastThreads']}
{$topStats['Posters']}
{$topStats['Reputation']}
{$topStats['Timeonline']}
{$topStats['NewestUsers']}
<br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tboczny"><strong>
Panel Boczny
</strong></td>
</tr>
<tr>
<td class="trow2">


Panel Boczny

</td>
</tr>
</tr>
</table>

<br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tboczny"><strong>
Panel Boczny
</strong></td>
</tr>
<tr>
<td class="trow2">


Panel Boczny

</td>
</tr>
</tr>
</table>






</td>
</tr>
</tr>
</table>
</div>
<div class="forums" style="float: left;width: 75%;">

<div id="index_forums">
{$dvz_shoutbox}
{$custom_status_index}
{$forums}

</div>

</div>

<br style="clear: both" />
{$boardstats}
{$footer}
</body>
</html>
Nie rozumiem twojego posta. Podałeś mi kod, który po wklejeniu i zapisaniu kasuje mi forum i kod (po odświeżeniu). Więc jakiś żart?
(24.11.2013, 00:32)monciu95 napisał(a): [ -> ]Nie rozumiem twojego posta. Podałeś mi kod, który po wklejeniu i zapisaniu kasuje mi forum i kod (po odświeżeniu). Więc jakiś żart?
Nie, nie żart, u mnie na forum (dla upewnienia) wszystko działało.

Spróbuj tak:
Kod:
<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>
<script src="http://politykacookies.pl/politykacookies.js"></script> <script type="text/javascript"> cookiesPolicy(); </script>
{$header}


<br>

<table class="serwery" width="100%" cellspacing="0" cellpadding="4"><tbody><tr>
<td class="thead" colspan="6" style="text-align: center;">
<div class="theadleft"></div>
<div class="theadright"></div>
<center><div class="theadmain"><div><strong>Serwery SkillShoot.pl</strong><br></div></div></center>
</td>
</tr>


<tr>
<td width="20" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Status</strong></span></td>
<td width="65" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Nazwa</strong></span></td>
<td width="300" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Monitor</strong></span></td>
<td width="135" class="tcat" style="text-align:center;"><span class="smalltext"><strong>IP serwera</strong></span></td>
<td width="45" class="tcat" style="text-align:center;"><span class="smalltext"><strong>Połącz</strong></span></td>
<td width="45" class="tcat" style="text-align:center;"><span class="smalltext"><strong>HLTV</strong></span></td>
</tr>


<tr>
<td class="trow1" style="text-align:center;" class="pmpopup" title="Status Serwera" ><img src="http://gamesign.pl/tabela_serwery/online1.jpg"></td>


<td class="trow1" style="text-align:center;"><span class="smalltext">[DD2]SkillShoot</span></td><td class="trow2" style="text-align:center;"><span class="smalltext"><img src="http://cache.www.gametracker.com/server_info/178.19.110.101:27087/b_350_20_FFAD41_E98100_000000_591F11.png"></span></td>
<td class="trow1" style="text-align:center;"><span class="smalltext"><b>178.19.110.100:27091</b></span></td>
<td class="trow1" style="text-align:center;"><a href="steam://connect/178.19.110.101:27087" class="ipsButton_secondary" style="font-size: 0.8em;padding: 0 5px;"><img src="http://gamesign.pl/tabela_serwery/steam.png" height="16" width="16">&nbsp;&nbsp; Steam</a></td>
<td class="trow1" style="text-align:center;"><a href="#" class="ipsButton_secondary" style="font-size: 0.8em;padding: 0 5px;"><img src="http://gamesign.pl/tabela_serwery/hltv.png" title="" border="0" height="16" width="16">&nbsp;&nbsp; Dema</a></td>
</tr>

</tbody></table>

<a class="buttons" style="float: right;"></a>
<a class="clickedbuttons" style="float: right;"></a>
<br class="clear" />
<div class="sidebar" style="float: right;width: 24%;">

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tboczny"><strong>
Facebook
</strong></td>
</tr>
<tr>
<td class="trow2">


WYGENEROWANY KOD Z FACEBOOKA

</td>
</tr>
</tr>
</table>

<br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tboczny"><strong>
Serwer De_Dust2
</strong></td>
</tr>
<tr>
<td class="trow2">


<center>
<iframe src="http://cache.www.gametracker.com/components/html0/?host=178.19.110.101:27087&bgColor=333333&fontColor=CCCCCC&titleBgColor=222222&titleColor=FF9900&borderColor=555555&linkColor=FFCC00&borderLinkColor=222222&showMap=1&currentPlayersHeight=100&showCurrPlayers=1&topPlayersHeight=100&showTopPlayers=1&showBlogs=0&width=215"></iframe>
</center>

</td>
</tr>
</tr>
</table>
<br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<br>{$topStats['LastThreads']}
<br>{$topStats['Posters']}
<br>{$topStats['Reputation']}
<br>{$topStats['Timeonline']}
<br>{$topStats['NewestUsers']}

</tr>
</table>

<br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tboczny"><strong>
Panel Boczny
</strong></td>
</tr>
<tr>
<td class="trow2">


Panel Boczny

</td>
</tr>
</tr>
</table>
</td>
</tr>
</tr>
</table>
</div>
<div class="forums" style="float: left;width: 75%;">

<div id="index_forums">
{$dvz_shoutbox}
{$custom_status_index}
{$forums}

</div>

</div>

<br style="clear: both" />
{$boardstats}
{$footer}
</body>
</html>
Dzięki :) Bardzo mi pomogłeś, ale skąd mam wziąć ten kod do facebooka lub jak ustawić top 5 użytkowników. <- O to mi bardziej chodziło :)
top:
NIe masz jeszcze pluginu wgranego, a kody dodane? :facepalm: https://webboard.pl/thread-42250.html
Facebook:

Wygeneruj sobie i wstaw tamten kod do panelu: https://developers.facebook.com/docs/
Kurczę :C Dodałem te top 5 wszystko pięknie działa, ale jak wygenerować ten kod?
No wchodzisz tutaj: https://developers.facebook.com/docs/ → Social Plugins → jeśli chcesz to pod panel boczny to Like box polecam.
https://developers.facebook.com/docs/plu...for-pages/ Tutaj już powinieneś sobie poradzić. Wystarczy podać link do funpage i dostosować wygląd.
Kod index:
Kod PHP:
<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>

<
script 
src
="http://politykacookies.pl/politykacookies.js"></script
<
script type="text/javascript"cookiesPolicy(); </script>

{
$header}





<
br>



<
table class="serwery" width="100%" cellspacing="0" cellpadding="4"><tbody><tr

<
td class="thead" colspan="6" style="text-align: center;"

<
div class="theadleft"></div

<
div class="theadright"></div

<
center><div 
class="theadmain"><div><strong>Serwery 
SkillShoot
.pl</strong><br></div></div></center>
 

</
td

</
tr





<
tr

<
td width="20" class="tcat" style="text-align:center;"><span 
class="smalltext"><strong>Status</strong></span></td>

<
td width="65" class="tcat" style="text-align:center;"><span 
class="smalltext"><strong>Nazwa</strong></span></td>

<
td width="300" class="tcat" style="text-align:center;"><span 
class="smalltext"><strong>Monitor</strong></span></td>
 

<
td width="135" class="tcat" style="text-align:center;"><span 
class="smalltext"><strong>IP 
serwera
</strong></span></td

<
td width="45" class="tcat" style="text-align:center;"><span 
class="smalltext"><strong>Połącz</strong></span></td>
 

<
td width="45" class="tcat" style="text-align:center;"><span 
class="smalltext"><strong>HLTV</strong></span></td>
 

</
tr





<
tr>

<
td class="trow1" style="text-align:center;" class="pmpopup" 
title="Status Serwera" ><img 
src
="http://gamesign.pl/tabela_serwery/online1.jpg"></td>





<
td class="trow1" style="text-align:center;"><span 
class="smalltext">[DD2]SkillShoot</span></td><td 
class="trow2" style="text-align:center;"><span 
class="smalltext"><img 
src
="http://cache.www.gametracker.com/server_info/178.19.110.101:27087/b_350_20_FFAD41_E98100_000000_591F11.png"></span></td>
 

<
td class="trow1" style="text-align:center;"><span 
class="smalltext"><b>178.19.110.100:27091</b></span></td>
 

<
td class="trow1" style="text-align:center;"><
href
="steam://connect/178.19.110.101:27087" class="ipsButton_secondary" 
style="font-size: 0.8em;padding: 0 5px;"><img 
src
="http://gamesign.pl/tabela_serwery/steam.png" height="16" 
width="16">&nbsp;&nbspSteam</a></td

<
td class="trow1" style="text-align:center;"><a href="#" 
class="ipsButton_secondary" style="font-size: 0.8em;padding: 0 
5px;"
><img src="http://gamesign.pl/tabela_serwery/hltv.png" 
title="" border="0" height="16" width="16">&nbsp;&nbsp
Dema</a></td

</
tr



</
tbody></table>



<
class="buttons" style="float: right;"></a>

<
class="clickedbuttons" style="float: right;"></a>

<
br class="clear" />

<
div class="sidebar" style="float: right;width: 24%;">



<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">

<
tr>

<
td class="tboczny"><strong>

Facebook

</strong></td>

</
tr>

<
tr>

<
td class="trow2">



<
div id="fb-root"></div>
<
script>(function(dsid) {
  var 
jsfjs d.getElementsByTagName(s)[0];
  if (
d.getElementById(id)) return;
  
js d.createElement(s); js.id id;
  
js.src "//connect.facebook.net/pl_PL/all.js#xfbml=1";
  
fjs.parentNode.insertBefore(jsfjs);
}(
document'script''facebook-jssdk'));</script>



</
td>

</
tr>

</
tr>

</
table>



<
br>

<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">

<
tr>

<
td class="tboczny"><strong>

Serwer De_Dust2

</strong></td>

</
tr>

<
tr>

<
td class="trow2">





<
center>

<
iframe 
src
="http://cache.www.gametracker.com/components/html0/?host=178.19.110.101:27087&bgColor=333333&fontColor=CCCCCC&titleBgColor=222222&titleColor=FF9900&borderColor=555555&linkColor=FFCC00&borderLinkColor=222222&showMap=1&currentPlayersHeight=100&showCurrPlayers=1&topPlayersHeight=100&showTopPlayers=1&showBlogs=0&width=215"></iframe>

</
center>



</
td>

</
tr>

</
tr>

</
table>

<
br>

<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">

<
br>{$topStats['LastThreads']}

<
br>{$topStats['Posters']}

<
br>{$topStats['Reputation']}

<
br>{$topStats['Timeonline']}

<
br>{$topStats['NewestUsers']}



</
tr>

</
table>



<
br>

<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">

<
tr>

<
td class="tboczny"><strong>

Panel Boczny

</strong></td>

</
tr>

<
tr>

<
td class="trow2">





Panel Boczny



</td>

</
tr>

</
tr>

</
table>

</
td>

</
tr>

</
tr>

</
table>

</
div>

<
div class="forums" style="float: left;width: 75%;">



<
div id="index_forums">

{
$dvz_shoutbox}

{
$custom_status_index}

{
$forums}



</
div>



</
div>



<
br style="clear: both" />

{
$boardstats}

{
$footer}

</
body>

</
html

Wkleiłem kod tam gdzie było miejsce i nie działa :<

kod like box (były 2):
Kod PHP:
<div id="fb-root"></div>
<
script>(function(dsid) {
  var 
jsfjs d.getElementsByTagName(s)[0];
  if (
d.getElementById(id)) return;
  
js d.createElement(s); js.id id;
  
js.src "//connect.facebook.net/pl_PL/all.js#xfbml=1";
  
fjs.parentNode.insertBefore(jsfjs);
}(
document'script''facebook-jssdk'));</script

Kod PHP:
<div class="fb-like-box" data-href="https://www.facebook.com/skillshot12345" data-colorscheme="dark" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div

Który wkleić i gdzie. Strasznie jestem zielony :P
nie html5, lecz iframe. Po kliknięciu get code masz html5, zmień na iframe. I ten kod wklej do panelu, zamiast tego.
Dziękuje serdecznie :) Dla Ciebie wielkie "Pomógł" :)