bu sitedeki gibi nasıl blok yapabilirim yardımcı olurmusunuz...
http://www.nextsite.org/forum/index.php?action=arcade
http://www.tinyportal.net/index.php?topic=4983.0
bu adresten istediğin arcade blokuna bak. eğer istediğin bloku yapamazsan. tekrar yardım iste.
hocam bu kodları hangi blok tipini seçerek yapcam ben
phpbox seçip yapıştırıyorum kodu böle bi hata verio yardımcı olurmusunuz :S
Parse error: syntax error, unexpected '<' in /var/www/vhosts/oyun-pazari.com/httpdocs/Sources/Load.php(1749) : eval()'d code(35) : eval()'d code on line 1
bbTURK hocam yardımcı olurmusun...
hangi bloku denedin geneli php kullanıyor.php blokta gözükmesi gerekir(tabi blok eski ise eski smf sürümleri için yapılmışsa o ayrı).
arcade olan bütün blokları denedim :S
arcade oyunları
//number of games to show
$no=16;
//number if icons accross
$icons_per_row = 8;
//----------------------------------------------------------------------------
$random_games_choice = rand(1,4);
$games_choice = 'games'.$random_games_choice;
$curr_position = 0;
$games_choice($no,$curr_position,$icons_per_row);
Function games3($no,$curr_position,$icons_per_row)
{
global $scripturl,$db_prefix,$modSettings;
//show the latest games
echo '<div align="center">Latest Games<br />
<table cellpadding="2" cellspacing="5">
<tr>';
$sql = "SELECT ID_GAME, gameName, thumbnail, gameDirectory
FROM {$db_prefix}arcade_games
ORDER BY ID_GAME DESC , gameName ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
while($game = mysql_fetch_array($result))
{
$game_thumb = !$game['gameDirectory'] ? $modSettings['gamesUrl']."/".$game['thumbnail'] : $modSettings['gamesUrl'].$game['gameDirectory']."/".$game['thumbnail'];
if($curr_position == $icons_per_row)
{
echo '</tr><tr>';
$curr_position=0;
}
echo'
<td>
<a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
<img src="'.$game_thumb.'" border="0" alt="'.$game['gameName'].'" width="60" height="60" title="Play '.$game['gameName'].'"/></a>
</td>';
$curr_position++;
}
mysql_free_result($result);
echo '
</tr>
</table></div>';
}
Function games1($no,$curr_position,$icons_per_row)
{
//show most played games (one score version only)
global $scripturl,$db_prefix,$modSettings;
echo '<div align="center">Most Played<br />
<table cellpadding="2" cellspacing="5">
<tr>';
$sql = "SELECT ID_GAME, gameName, thumbnail, gameDirectory
FROM {$db_prefix}arcade_games
ORDER BY numPlays DESC , gameName ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
while($game = mysql_fetch_array($result))
{
$game_thumb = !$game['gameDirectory'] ? $modSettings['gamesUrl']."/".$game['thumbnail'] : $modSettings['gamesUrl'].$game['gameDirectory']."/".$game['thumbnail'];
if($curr_position == $icons_per_row)
{
echo '</tr><tr>';
$curr_position=0;
}
echo'
<td>
<a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
<img src="'.$game_thumb.'" border="0" alt="'.$game['gameName'].'" width="60" height="60" title="Play '.$game['gameName'].'"/></a>
</td>';
$curr_position++;
}
mysql_free_result($result);
echo '
</tr>
</table></div>';
}
Function games4($no,$curr_position,$icons_per_row)
{
//show least played games (one score version only)
global $scripturl,$db_prefix,$modSettings;
echo '<div align="center">Least Played<br />
<table cellpadding="2" cellspacing="5">
<tr>';
$sql = "SELECT ID_GAME, gameName, thumbnail, gameDirectory
FROM {$db_prefix}arcade_games
ORDER BY numPlays ASC , gameName ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
while($game = mysql_fetch_array($result))
{
$game_thumb = !$game['gameDirectory'] ? $modSettings['gamesUrl']."/".$game['thumbnail'] : $modSettings['gamesUrl'].$game['gameDirectory']."/".$game['thumbnail'];
if($curr_position == $icons_per_row)
{
echo '</tr><tr>';
$curr_position=0;
}
echo'
<td>
<a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
<img src="'.$game_thumb.'" border="0" alt="'.$game['gameName'].'" width="60" height="60" title="Play '.$game['gameName'].'"/></a>
</td>';
$curr_position++;
}
mysql_free_result($result);
echo '
</tr>
</table></div>';
}
Function games2($no,$curr_position,$icons_per_row)
{
//show best rated games
global $scripturl,$db_prefix,$modSettings;
echo '<div align="center">Top Rated<br />
<table cellpadding="2" cellspacing="5">
<tr>';
$sql = "SELECT ID_GAME, gameName, thumbnail, gameDirectory
FROM {$db_prefix}arcade_games
ORDER BY gameRating DESC , gameName ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
while($game = mysql_fetch_array($result))
{
$game_thumb = !$game['gameDirectory'] ? $modSettings['gamesUrl']."/".$game['thumbnail'] : $modSettings['gamesUrl'].$game['gameDirectory']."/".$game['thumbnail'];
if($curr_position == $icons_per_row)
{
echo '</tr><tr>';
$curr_position=0;
}
echo'
<td>
<a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
<img src="'.$game_thumb.'" border="0" alt="'.$game['gameName'].'" width="60" height="60" title="Play '.$game['gameName'].'"/></a>
</td>';
$curr_position++;
}
mysql_free_result($result);
echo '
</tr>
</table></div>';
}
rasgele oyun
// Random game block
// For SMFArcade 2.0.x
global $sourcedir;
if (!isset($context['arcade']))
{
require_once($sourcedir . '/Arcade.php');
ArcadeLoad('include');
}
$game = ArcadeGameInfo();
if (!empty($game['thumbnail']))
echo '
<div style="text-align: center"><a href="', $game['url']['play'], '"><img src="', $game['thumbnail'], '" alt=""></a></div>';
echo '
<div style="text-align: center"><a href="', $game['url']['play'], '">', $game['name'], '</a></div>';
ÅŸampiyonlar
//-------START-------------
/*
|----------------------------------
SMF ARCADE SCROLLING CHAMPS BLOCK for SMFARCADE V2
by Eric Lawson
|----------------------------------
Made for TinyPortal and SMF forum
*/
//Upload a pic called arcade_block.gif (you can use you own gif - just name it arcade_block.gif)
//to your Themes/<themename>/images/ folder
// -- SETUP EDITS ---
$no = 10; //number of top players to show
// --LANGUAGE EDITS --
$txtplay = "En İyi Oyuncular"; // change "The Top Players" to your language
$txtwin = "Kazanma Sayısı :";// change "Number Of Wins :" to your language
$txtlate = "Son Yüksek Skor ";// change "Latest High Score set by" to your language
$txtwit = "with ";// change "with" to your language
$txton = "on ";// change "on" to your language
global $scripturl,$sourcedir,$boardurl,$db_prefix,$modSettings;
require_once($sourcedir.'/ArcadeStats.php');
//Get newest champ or die
$sql = "SELECT game.ID_GAME, game.gameName, game.thumbnail, game.gameDirectory,
IFNULL(mem.ID_MEMBER, 0) AS ID_MEMBER, IFNULL(mem.realName,'') AS realName, score.score
FROM {$db_prefix}arcade_scores AS score
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = score.ID_MEMBER)
JOIN {$db_prefix}arcade_games AS game ON (game.ID_GAME = score.ID_GAME)
ORDER BY `championFrom` DESC
LIMIT 0,1";
if(!($result = db_query($sql,__FILE__,__LINE__)))
{
die("Could not get the newest champ");
}
$row = mysql_fetch_assoc($result);
mysql_free_result($result);
if(isset($row['gameDirectory']))
{
$row['gameDirectory']=$row['gameDirectory']."/";
}
//newest champ details
$playerid = $row['ID_MEMBER'];
$player = $row['realName'];
$game_id = $row['ID_GAME'];
$game_name = $row['gameName'];
$score = $row['score'];
$game_pic = $modSettings['gamesUrl'].$row['gameDirectory'].$row['thumbnail'];
$bp=ArcadeStats_BestPlayers($no);
$score_poss=0; //players position
?>
<script type="text/javascript">
/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var delayb4scrollx=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeedx=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseitx=1 //Pause marquee onMousever (0=no. 1=yes)?
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeedx=marqueespeedx
var pausespeedx=(pauseitx==0)? copyspeedx: 0
var actualheightx=''
function scrollmarqueex(){
if (parseInt(cross_marqueex.style.top)>(actualheightx*(-1)+8))
cross_marqueex.style.top=parseInt(cross_marqueex.style.top)-copyspeedx+"px"
else
cross_marqueex.style.top=parseInt(marqueeheightx)+8+"px"
}
function initializemarqueex(){
cross_marqueex=document.getElementById("vmarqueex")
cross_marqueex.style.top=0
marqueeheightx=document.getElementById("marqueecontainerx").offsetHeight
actualheightx=cross_marqueex.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marqueex.style.height=marqueeheightx+"px"
cross_marqueex.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarqueex()",30)', delayb4scrollx)
}
if (window.addEventListener)
window.addEventListener("load", initializemarqueex, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarqueex)
else if (document.getElementById)
window.onload=initializemarqueex
</script>
<?php
echo '<table width="100%">
<tr>
<td align="center">
<br />
<a href="',$scripturl,'?action=arcade"><img src="',$settings['images_url'],'/gold.gif" border= "0" alt="Arcade" /></a>
<br /><br/>
</td>
</tr>
</table>
<div id="marqueecontainerx" style="position: relative; width: 95%; height:200px; overflow: hidden; border: 0px; padding: 2px; padding-left: 4px;" onmouseover="copyspeedx=pausespeedx" onmouseout="copyspeedx=marqueespeedx">
<div id="vmarqueex" style="position: absolute; width: 98%;">
<div align="center">
<a href="',$scripturl,'?action=arcade;sa=play;game=',$game_id,'"><img src="',$game_pic,'" border="0" alt="',$game_name,'" width="60" height="60"/></a>
<br />',$txtlate,'<br />
<a href="',$scripturl,'?action=profile;u=',$playerid,'">',$player,'</a>
<br/>',$txtwit,' ',$score,' ',$txton,'<br />',$game_name,'
<br />------------------<br />',$txtplay,'<br /><br />';
foreach ($bp as $out)
{
$score_poss++;
echo '',$score_poss,' - ',$out['link'],'<br />',$txtwin,' ',$out['champions'],'
<br /><br />';
};
echo '</div>
</div>
</div>';
//---------END--------------
bu bloklar oldu hocam çok saol başka varsa eklersen sevinirim :)