close× Call Us +49 (1805) 01 29 59

SGI Fusion
Thread Author: mormos
Thread ID: 461
Thread Info
Es gibt 3 Beiträge zu diesem Thema, und es wurde 1473 mal angesehen.
Wer ist hier? 1 Gäste
 Thema drucken
Varcade center
mormos
hallo

könnte mir vielleicht einer sagen welche codes ich weg machen muß damit auf der startseite im varcade centerpanel nur Beliebteste Spiele und Zuletzt gespielte Spiele zu sehen sind???
 
SC-Ad-Bot
 
Jacky
poste mal deinen code und vielleicht noch nen screen dabei was du behalten willst...
 
firemike
Hi,
müsste so funzen.

Einfach Code in dein varcade_center_panel.php kopieren, mach Dir aber bitte vorher ein BAckup der alten Datei.

[geshi=php]<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Author: Domi & fetloser
| www.venue.nu
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
include INFUSIONS."varcade/infusion_db.php";
echo "<script type='text/javascript' language='JavaScript' src='".INFUSIONS."varcade_center_panel/ft_boxover.js'></script>";
include INFUSIONS."varcade/functions.php";
opentable($settings['sitename']."´s ".$locale['VARC105']);
makeheader();
$antal = 6; // how many to show
$gameH = 55; // image height size
$gameW = 85; // image width size
echo '<style>
.gameIconWrapperInner {
overflow: hidden;
width: 87px;
height: 56px;
border: 1px solid #fff;
}
.gameIconWrapperInner img {
margin-top: -1px;
}
.gameIconWrapperOuter {
width: 89px;
border: 1px solid #999;
}

.gline { margin-bottom: 1px; }

.gameentry {
float: left;
width: 23%;
text-align: center;
padding: 0px 3px;
}

.margb0 { margin-bottom: 0px; }

</style>';

echo "<div id='lajv' align='center'>";

$count = dbcount("(game_id)", DB_VARCADE_ACTIVE);
if ($count > 1) {
if ($varcsettings['playingnow'] == "1") {
echo "<br /><div class='forum-caption' align='left'>".$locale['VARC716']."</div>";
echo "<table align='center' style='margin: 0 auto;'><tr>";
echo '<script type="text/javascript" src="'.INFUSIONS.'varcade_center_panel/swfobject.js"></script>';
echo '<td>
</td>';
echo "</tr></table>";
}
}

if ($varcsettings['tournaments'] == "1") {
echo "<br /><div class='forum-caption' align='left'>".$locale['TOUR001']."</div>";
include "".INFUSIONS."varcade/arcade_tournament.php";
}

echo "<div class='forum-caption' align='left'>".$locale['VARC701']."</div>";
$result =dbquery("select lid,icon,title,hi_player FROM ".$db_prefix."varcade_games WHERE ".groupaccess('access')." AND status='2' ORDER BY played DESC limit $antal");
echo "<table align='center' style='margin: 0 auto;'><tr>";
while($data = dbarray($result)) {
if ($data['hi_player'] == "0") {
$hi_player = "".$locale['VARC160']."";
} else {
$hi_player = $data['hi_player'];
}
if (file_exists(INFUSIONS."varcade/uploads/thumb/".$data['icon']."")) {
$showimg = '<img src=" '.INFUSIONS.'varcade/uploads/thumb/'.$data['icon'].'" width="'.$gameW.'" height="'.$gameH.'" border="0" />';
} else {
$showimg = '<img src=" '.INFUSIONS.'varcade/img/arcade.gif" width="'.$gameW.'" height="'.$gameH.'" border="0" />';
}
if ($varcsettings['popup']=="1") {
$gamelink = '<a href="#" onclick=window.open("'.INFUSIONS.'varcade/arcade.php?p=1&game='.$data['lid'].'","VArcpopup","scrollbars=yes,resizable=yes,width=800,height=700") title=\'header=[ '.trimlink($data['title'], 30).'] body=[ <br /><center>'.$showimg.'<br />'.$locale['VARC151'].' <br /> '.$hi_player.' </center>] delay=[0] fade=[on]\'>';
} else {
$gamelink = '<a href="'.INFUSIONS.'varcade/arcade.php?game='.$data['lid'].'" title=\'header=[ '.trimlink($data['title'], 30).'] body=[ <br /><center>'.$showimg.'<br />'.$locale['VARC151'].' <br /> '.$hi_player.' </center>] delay=[0] fade=[on]\'>';
}
echo '<td><br /><div class="gameentry margb0">';
echo '<div class="gameIconWrapperOuter"><div class="gameIconWrapperInner">';
echo $gamelink;
echo '<div class="gline">'.$showimg.'</a></div></div></div></div></td>';
}
echo "</tr></table>";

echo "<br /><div class='forum-caption' align='left'>".$locale['VARC702']."</div><br />";
$result3 =dbquery("select lid,title,icon,hi_player FROM ".DB_VARCADE_GAMES." WHERE ".groupaccess('access')." AND status='2' ORDER BY lastplayed DESC limit $antal");
echo "<table align='center' style='margin: 0 auto;'><tr>";
while($data = dbarray($result3)) {
if ($data['hi_player'] == "0") {
$hi_player = "".$locale['VARC160']."";
} else {
$hi_player = $data['hi_player'];
}
if (file_exists(INFUSIONS."varcade/uploads/thumb/".$data['icon']."")) {
$showimg = '<img src=" '.INFUSIONS.'varcade/uploads/thumb/'.$data['icon'].'" width="'.$gameW.'" height="'.$gameH.'" border="0" />';
} else {
$showimg = '<img src=" '.INFUSIONS.'varcade/img/arcade.gif" width="'.$gameW.'" height="'.$gameH.'" border="0" />';
}
if ($varcsettings['popup']=="1") {
$gamelink = '<a href="#" onclick=window.open("'.INFUSIONS.'varcade/arcade.php?p=1&game='.$data['lid'].'","VArcpopup","scrollbars=yes,resizable=yes,width=800,height=700") title=\'header=[ '.trimlink($data['title'], 30).'] body=[ <br /><center>'.$showimg.'<br />'.$locale['VARC151'].' <br /> '.$hi_player.' </center>] delay=[0] fade=[on]\'>';
} else {
$gamelink = '<a href="'.INFUSIONS.'varcade/arcade.php?game='.$data['lid'].'" title=\'header=[ '.trimlink($data['title'], 30).'] body=[ <br /><center>'.$showimg.'<br />'.$locale['VARC151'].' <br /> '.$hi_player.' </center>] delay=[0] fade=[on]\'>';
}
echo '<td><div class="gameentry margb0">';
echo '<div class="gameIconWrapperOuter"><div class="gameIconWrapperInner">';
echo $gamelink;
echo '<div class="gline">'.$showimg.'</a></div></div></div></div></td>';
}
echo "</tr></table>";



echo "</div>";
echo "<center>".$locale['VARC220']." ".dbcount("(lid)", "".DB_VARCADE_GAMES." where status='2'")." ".$locale['VARC221']." ".$locale['VARC222']." ".dbcount("(cid)", DB_VARCADE_CATS)." ".$locale['VARC223']." ".dbcount("(id)", DB_VARCADE_RATING)." ".$locale['VARC224']." ".dbcount("(comment_id)", "".DB_COMMENTS." where comment_type='G'")." ".$locale['VARC225']."</center>";

closetable();
require_once INFUSIONS."varcade/footer.php";
?>[/geshi]

Gruss Mike
 
Springe ins Forum:

 Ähnliche Themen 

TEST
Thema Forum Antworten Letzter Beitrag
VArcade Anleitungshilfe Allgemeine Support Fragen 2 01.07.2015 00000007 06:06
VArcade Spiele YetiGames GESUCHT!!!! HELP Games, Spiele & Co. 1 11.04.2014 00000004 22:14
VArcade 2.1 Administration Games, Spiele & Co. 3 03.01.2013 00000001 20:00
varcade und scoresystem Allgemeine Support Fragen 1 04.07.2012 00000007 13:21
VArcade 2.1 Games, Spiele & Co. 4 07.06.2012 00000006 19:50
Datalus