Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
712
??? Sitem deki Haberleri ..(25555 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16539 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(37259 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(21019 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(14160 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17936 okuma, 15 yanıt) üye aktivasyon ..(10698 okuma, 8 yanıt) Facebook tarzı altbar... ..(6301 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6576 okuma, 2 yanıt) Resimli RSS ..(23311 okuma, 25 yanıt) Onay linkini kaldirmak ..(11127 okuma, 8 yanıt) Yardım :( Site açılırken ..(6690 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8339 okuma, 4 yanıt) block genişliği ..(5740 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14492 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7344 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9473 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10549 okuma, 8 yanıt) ethai1 3 ..(13258 okuma, 10 yanıt) Yeni PEHASPESEO ..(70359 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37978 okuma, 36 yanıt) tek modul için sağ ve sol ..(11458 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10641 okuma, 8 yanıt) Phpden iyi anlayan ..(5477 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(73771 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29812 okuma, 40 yanıt) Toplu üyelik silme? ..(11177 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12464 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5995 okuma, 2 yanıt) Makale modulu ..(8624 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(86028 okuma, 121 yanıt) title değiştirme ..(10409 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(10081 okuma, 6 yanıt) Php Nuke 8.1 ..(4369 okuma, 0 yanıt) merhaba ..(10334 okuma, 9 yanıt) Anasayfa için boş modül o ..(13608 okuma, 13 yanıt) admin panelinde Access De ..(6444 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26554 okuma, 25 yanıt) Nuke Tema yapilisi ..(17186 okuma, 16 yanıt) Mavisce-net temasina bann ..(8772 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6663 okuma, 2 yanıt) coppermine hata ..(10759 okuma, 8 yanıt) içerik tanıtımı ..(6325 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7211 okuma, 3 yanıt) google keywords ..(9014 okuma, 6 yanıt) 8.0'da html sorunu ..(5524 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(54548 okuma, 76 yanıt) üye olunurken gereksiz is ..(10073 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6387 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10564 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Arcade oyunlara reklam ekleme
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
KISASLI Mesaj: 300+
Kayıt: May 19, 2007 Mesajlar: 423 Konum: Niye Bize mi Gelecen
Tarih: 2008-06-30, 17:19:51 Mesaj konusu: Arcade oyunlara reklam ekleme
yukarıda belirttigim gibi reklam eklemek istiyorum fakat tam olarak sayfadaki yeri tutturamadım alttaki resimde belirttigim yere nasıl yerleştire bilirim
buda sayfanın kodu
Kod:
<php>sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);
}
$Amount_Of_Posts = $db->sql_numrows( $result );
if($Amount_Of_Posts <posts>sql_query($sql)))
{
message_die(GENERAL_ERROR, "Could not read games table", '', __LINE__, __FILE__, $sql);
}
if (!($row = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_ERROR, "This game does not exist", '', __LINE__, __FILE__, $sql);
}
$liste_cat_auth_play = get_arcade_categories($userdata['user_id'], $userdata['user_level'],'play');
$tbauth_play = array();
$tbauth_play = explode(',',$liste_cat_auth_play);
if (!in_array($row['arcade_catid'],$tbauth_play))
{
message_die(GENERAL_MESSAGE, $lang['game_forbidden']);
}
$template->set_filenames(array(
'body' => 'games_body.tpl')
);
$sql = "DELETE FROM " . GAMEHASH_TABLE . " WHERE hash_date <time>sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not delete from game hash table", '', __LINE__, __FILE__, $sql);
}
// Type V2 Game Else Type V1
if ($row['game_type'] == 3) {
$type_v2 = true;
$template->assign_block_vars('game_type_V2',array());
$gamehash_id = md5(uniqid($user_ip));
$sql = "INSERT INTO " . GAMEHASH_TABLE . " (gamehash_id , game_id , user_id , hash_date) VALUES ('$gamehash_id' , '$gid' , '" . $userdata['user_id'] . "' , '" . time() . "')";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, "Could not delete from game hash table", '', __LINE__, __FILE__, $sql);
}
}
elseif ($row['game_type'] == 4 or $row['game_type'] == 5)
{
if ($row['game_type'] == 5)
{
$template->assign_block_vars('game_type_V5',array());
}
else
{
$template->assign_block_vars('game_type_V2',array());
}
setc o o k i e('gidstarted', '', time() - 3600);
setc o o k i e('gidstarted',$gid);
setc o o k i e('timestarted', '', time() - 3600);
setc o o k i e('timestarted', time());
$gamehash_id = md5($user_ip);
$sql = "INSERT INTO " . GAMEHASH_TABLE . " (gamehash_id , game_id , user_id , hash_date) VALUES ('$gamehash_id' , '$gid' , '" . $userdata['user_id'] . "' , '" . time() . "')";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, "Couldn't update hashtable", '', __LINE__, __FILE__, $sql);
}
}
else
{
message_die(GENERAL_ERROR, "Game Type no longer supported, please contact the admin and have him/her delete it.");
}
setc o o k i e('arcadepopup', '', time() - 3600);
setc o o k i e('arcadepopup', '0');
$sql = "SELECT arcade_cattitle FROM " . ARCADE_CATEGORIES_TABLE . " WHERE arcade_catid = " . $row['arcade_catid'];
$result = $db->sql_query($sql);
$ourrow = $db->sql_fetchrow($result);
$cat_title = $ourrow['arcade_cattitle'];
$template->assign_vars(array(
'MAXSIZE_AVATAR' => intval($arcade_config['maxsize_avatar']),
'CAT_TITLE' => '<a class="nav" href="' . append_sid(" cid=") . $row['arcade_catid'] .'">' . $cat_title . '</a> ' ,
'NAV_DESC' => '<a class="nav" href="' . append_sid(">' . $lang['arcade'] . '</a> ' ,
'SWF_GAME' => $row['game_swf'] ,
'GAME_WIDTH' => $row['game_width'] ,
'GAME_HEIGHT' => $row['game_height'] ,
'L_GAME' => $row['game_name'] ,
'GAMEHASH' => $gamehash_id,
'L_TOP' => $lang['best_scores_game'] ,
'HIGHSCORE' => number_format($row['highscore']),
'URL_ARCADE' => '<nobr><a class="cattitle" href="' . append_sid(">' . $lang['lib_arcade'] . '</a></nobr> ',
'MANAGE_COMMENTS' => '<nobr><a class="cattitle" href="' . append_sid(">' . $lang['comments'] . '</a></nobr> ',
'URL_BESTSCORES' => '<nobr><a class="cattitle" href="' . append_sid(">' . $lang['best_scores'] . '</a></nobr> ',
'URL_SCOREBOARD' => '<nobr><a class="cattitle" href="' . append_sid(">' . $lang['scoreboard'] . '</a></nobr> ')
);
$sql = "SELECT s.* , u.username, u.user_avatar_type, u.user_allowavatar, u.user_avatar FROM " . SCORES_TABLE . " s left join " . USERS_TABLE . " u on s.user_id = u.user_id WHERE game_id = $gid ORDER BY s.score_game DESC, s.score_date ASC LIMIT 0,15 ";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, "Could not read from scores table", '', __LINE__, __FILE__, $sql);
}
$sql = "SELECT comments_value FROM " . COMMENTS_TABLE . " WHERE game_id = $gid";
if( !($result_comment = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Error retrieving comment from comment table", '', __LINE__, __FILE__, $sql);
}
$row_comment = $db->sql_fetchrow($result_comment);
//
// Define censored word matches
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
if($row_comment['comments_value'] != '')
{
if ( count($orig_word) )
{
$row_comment['comments_value'] = preg_replace($orig_word, $replacement_word, $row_comment['comments_value']);
}
$comment = '<marquee>' .$row_comment['comments_value'] .'</marquee>';
}
else
{
$comment='';
}
$pos = 0;
$posreelle = 0;
$lastscore = 0;
while ($row = $db->sql_fetchrow($result)) {
$posreelle++;
if ($posreelle == 1) {
$user_avatar_type = $row['user_avatar_type'];
$user_allowavatar = $row['user_allowavatar'];
$user_avatar = $row['user_avatar'];
$best_user = $row['username'];
$best_date = create_date( $board_config['default_dateformat'] , $row['score_date'] , $board_config['board_timezone'] );
$games_played = $row['score_set'];
$best_time = sec2hms($row['score_time']);
}
if ($lastscore!=$row['score_game']) {
$pos = $posreelle;
}
$lastscore = $row['score_game'];
$template->assign_block_vars('scorerow', array(
'POS' => $pos ,
'USERNAME' => $row['username'],
'URL_STATS' => '<nobr><a class="cattitle" href="' . append_sid(" uid=" . $row['user_id']) . '">' . "<img src='modules/Forums/templates/" . $theme['template_name'] . "/images/loupe.gif' align='absmiddle' border='0' alt='" . $lang['statuser'] . " " . $row['username'] . "'>" . '</a></nobr> ',
'GAMEDESC' => $row['game_desc'],
'SCORE' => number_format($row['score_game']),
'DATEHIGH' => create_date($board_config['default_dateformat'] , $row['score_date'] , $board_config['board_timezone']))
);
}
$avatar_img = '';
if ($user_avatar_type && $user_allowavatar) {
switch($user_avatar_type) {
case USER_AVATAR_UPLOAD:
$avatar_img = ($board_config['allow_avatar_upload']) ? '<img src="' . $board_config['avatar_path'] . '/' . $user_avatar . '" alt="" border="0" hspace="20" align="center" valign="center" onload="resize_avatar(this)"/>' : '';
break;
case USER_AVATAR_REMOTE:
$avatar_img = ($board_config['allow_avatar_remote']) ? '<img src="' . $user_avatar . '" alt="" border="0" hspace="20" align="center" valign="center" onload="resize_avatar(this)"/>' : '';
break;
case USER_AVATAR_GALLERY:
$avatar_img = ($board_config['allow_avatar_local']) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $user_avatar . '" alt="" border="0" hspace="20" align="center" valign="center" onload="resize_avatar(this)"/>' : '';
break;
}
}
if ($arcade_config['display_winner_avatar']) {
if ($arcade_config['winner_avatar_position']=='right') {
$template->assign_block_vars('avatar_best_player_right',array());
} else {
$template->assign_block_vars('avatar_best_player_left',array());
}
$template->assign_vars(array(
'L_ACTUAL_WINNER' => $lang['Actual_winner'],
'BEST_USER_NAME' => $best_user,
'BEST_USER_DATE' => sprintf($lang['hi_score_on'], $best_date),
'BEST_TIME' => sprintf($lang['played_time_total'], $best_time),
'COMMENTS' => smilies_pass($comment),
'GAMES_PLAYED' => sprintf($lang['played_times'], $games_played),
'FIRST_AVATAR' => $avatar_img)
);
}
include($phpbb_root_path . 'whoisplaying.'.$phpEx);
//
// Output page header
$page_title = $lang['arcade_game'];
include('includes/page_header.'.$phpEx);
$template->pparse('body');
include('includes/page_tail.'.$phpEx);
?>
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-06-15, 11:12:29 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Bankocu Editör
Kayıt: Jun 02, 2003 Mesajlar: 1842 Konum: Istanbul
Tarih: 2008-07-01, 17:55:10 Mesaj konusu:
Şu aşağıdaki;
Kod:
include($phpbb_root_path . 'whoisplaying.'.$phpEx);
include dan önceye koyacaksın gibi geliyor.
Başa dön
Sakal Mesaj: 500+
Kayıt: Jan 09, 2006 Mesajlar: 827 Konum: Ordu/Ankara
Tarih: 2008-07-01, 18:09:55 Mesaj konusu:
arcade ye ait games_body.tpl dosyasına eklemen gerekiyor. anacak bir sorun var. arcade oyunlara üyelerden başkası giremiyordu sanırım. yani google ın göremeyeceği sayfalara adsense eklemen hesabının banlanmasına sebebiyet verir..
Başa dön
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız