MERHABA;
Ben nukec bloklarini asağidaki gibi download bloklarinda odugu gibi orta blok icin yanyana gostermek istiyorum.son ilanlar ve poluper ilanlari asagidaki kodlarda nereleri degiserek yapabilirim
orjinal nukec bloklari:
son ilanlar blogu
http://www.dosyaekle.com/do2.php?x=block-NukeC30Latest
Bu module yabanci sitelerdede duzenlenmis guzel bir blok bulamadim.bu konuda blok yazmada iyi olan arkadaslar nukec kullananlara bir kiyakta bulunurlarsa sevinirim.cunku orjinal blogu cok bicimsiz :)
linkler de sorun varmis ben blok kodlarini yazayim
juglanin :
orjinal bloklar bunlar
Kod:
?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-NukeC30Latest.php", $_SERVER['script_NAME'])) {
Header("Location: index.php");
die();
}
$nowdatetmpblck = date("H i s m d Y");
$datearraytmpblck = explode (" ", $nowdatetmpblck);
$mktimeUnixblock = mktime($datearraytmpblck[0],$datearraytmpblck[1],$datearraytmpblck[2],$datearraytmpblck[3],$datearraytmpblck[4],$datearraytmpblck[5]);
$sqllatest = "select id_ads,title, ads_desc, imageads, submitter, curr, price from ".$nukecprefix."_ads_ads where active = '1' and validuntil > '".$mktimeUnixblock."' order by dateposted DESC limit 0,".$NumberAdsBlock;
$resultlatest = sql_query($sqllatest, $dbi);
if (sql_num_rows($resultlatest) > 0) {
$content = "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
while (list ($id_ads, $title, $ads_descB, $imageads, $submitter, $currencycodeB, $valuepriceB) =sql_fetch_row($resultlatest,$dbi)) {
$sqlBlock = "select username from $user_prefix"."_users where user_id='$submitter'";
$resBlock = sql_query($sqlBlock,$dbi);
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-NukeC30Most.php", $_SERVER['script_NAME'])) {
Header("Location: index.php");
die();
}
$nowdatetmpblck = date("H i s m d Y");
$datearraytmpblck = explode (" ", $nowdatetmpblck);
$mktimeUnixblock = mktime($datearraytmpblck[0],$datearraytmpblck[1],$datearraytmpblck[2],$datearraytmpblck[3],$datearraytmpblck[4],$datearraytmpblck[5]);
$sqllatest = "select id_ads,title, ads_desc, imageads, submitter, curr, price from ".$nukecprefix."_ads_ads where active = '1' and validuntil > '".$mktimeUnixblock."' order by hits DESC limit 0,".$NumberAdsBlock;
$resultlatest = sql_query($sqllatest, $dbi);
if (sql_num_rows($resultlatest) > 0) {
$content = "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
while (list ($id_ads, $title, $ads_descB, $imageads, $submitter, $currencycodeB, $valuepriceB) =sql_fetch_row($resultlatest,$dbi)) {
$sqlBlock = "select username from $user_prefix"."_users where user_id='$submitter'";
$resBlock = sql_query($sqlBlock,$dbi);
Netopsiyonda olduğum belli olsun di mi Açıklamalı olarak hazırladım. Bu arada denemedim kafama göre yazdım geçtim.... Dener sonucu yazarsın...
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-NukeC30Latest.php", $_SERVER['script_NAME'])) {
Header("Location: index.php");
die();
}
$nowdatetmpblck = date("H i s m d Y");
$datearraytmpblck = explode (" ", $nowdatetmpblck);
$mktimeUnixblock = mktime($datearraytmpblck[0],$datearraytmpblck[1],$datearraytmpblck[2],$datearraytmpblck[3],$datearraytmpblck[4],$datearraytmpblck[5]);
/////BURASI ORTAK
//////////////////////////////////////////
$sqllatest = "select id_ads,title, ads_desc, imageads, submitter, curr, price from ".$nukecprefix."_ads_ads where active = '1' and validuntil > '".$mktimeUnixblock."' order by dateposted DESC limit 0,".$NumberAdsBlock;
$content .="</td><td width=50%>";//İlk sütunu bitirelim. İkinci sutunu açalım.
$sqllatest = "select id_ads,title, ads_desc, imageads, submitter, curr, price from ".$nukecprefix."_ads_ads where active = '1' and validuntil > '".$mktimeUnixblock."' order by hits DESC limit 0,".$NumberAdsBlock;
$resultlatest = sql_query($sqllatest, $dbi);
if (sql_num_rows($resultlatest) > 0) {
// $content = "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"; //Yine aynı sorun olacak.
$content .= "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"; //Düzelttik....
while (list ($id_ads, $title, $ads_descB, $imageads, $submitter, $currencycodeB, $valuepriceB) =sql_fetch_row($resultlatest,$dbi)) {
$sqlBlock = "select username from $user_prefix"."_users where user_id='$submitter'";
$resBlock = sql_query($sqlBlock,$dbi);
Kesinlikle çalıştı ya 2 aydır aradım bulamamıştım.cok tesekkurler aliosman bey.efsane geri dondu :) sadece populer ilan ve son ilanlar resimli yazilari yok bunuda eklemek mumkunmu yani ustkisimda populer ve son ilanlar seklinde resimli yazi olsa.
buton resimleri benden buda eklenirse dosyalar bolumune ekleriz.
selam arkadaşlar teknolojide geri kalmış benim gibi arkadaşlar için *YASAK KELİME** blog YARDIMı verin lütfen şehrimizi tanıtımını yaptığımız bu site için ziyaretçilerin bir bloğu olsun istedik bir kaç yere sorduk dudak uçuklatan fiyatlar çıktı önümüze malum biz öğrenciyiz ve acemiyiz diye yaptığımız sitenin iki katı kadar para vermek istemiyoruz burası bir paylaşım platformu diye biliyoruz lütfen bilgilerinizi bizlerle paylaşın konuyu yalış bir yerde açmışsam üzür dilerim. *YASAK KELİME** mesajlarınızı bekliyoruzzz
yilakkar@hotmail.com
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