Gönderen Konu: bu haber blok yapmak munkunmu  (Okunma sayısı 5570 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
bu haber blok yapmak munkunmu
« : Ağustos 05, 2008, 23:13:07 ÖS »
arkdaslar bu sitede guzel bir haber blok var bunuyapmak munkunmu
http://www.webinweb.net/index.php

arkdaslar buhaberde ozellik fare ile uzrerinegelince sag tarafa haberler aciliyor exra sayfa acilmiyor deme adres de inceleyin saygilar
« Son Düzenleme: Ağustos 06, 2008, 08:37:13 ÖÖ Gönderen: isabey »
Konuyu Paylaş:
  delicious  facebook  twitter  google

Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
-bu haber blok yapmak munkunmu
« Yanıtla #1 : Ağustos 06, 2008, 11:59:03 ÖÖ »
cevap verecek arkdaslar yokmu

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7976
  • Puan: 750
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-bu haber blok yapmak munkunmu
« Yanıtla #2 : Ağustos 06, 2008, 16:47:18 ÖS »
Bu tür modüller mkportal sitesinde vardı.Oraya bakarım, bulursm eklerim.

Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
-bu haber blok yapmak munkunmu
« Yanıtla #3 : Ağustos 06, 2008, 16:54:43 ÖS »
Iste bahsetdigim blok bu sitede aldim kendi siteme de yapdim ama farkli ayri cikiyor belkit bunda calsimayabilirseniz saygilar
http://www.haber.gethost.nl ornek bakmak icin
Kod: [Seç]
<?
/*
+--------------------------------------------------------------------------
|   MkPortal
|   ========================================
|   by Meo aka Luponero <Amedeo de longis>
|
|   (c) 2004 mkportal.it
|   http://www.mkportal.it
|   Email: luponero@mclink.it
|
+---------------------------------------------------------------------------
|
|   > MKPortal
|   > Written By Amedeo de longis
|   > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/


$limit = $this->config['news_block'];
if (!$limit) {
$limit = 5;
}

$cont = "";
$content = "";
$link_user = $mklib_board->forum_link("profile");



$query = $DB->query( "SELECT n.id, n.idcategoria, n.idautore, n.titolo, n.autore, n.testo, n.data, n.totalcomm, s.id AS idcat, s.titolo AS titcat, s.icona
FROM mkp_news AS n
LEFT JOIN mkp_news_sections AS s ON(s.id = n.idcategoria)
WHERE validate = '1' ORDER BY `id` DESC LIMIT $limit");
while( $row = $DB->fetch_row($query) ) {
$idnt = $row['id'];
$totcomments = $row['totalcomm'];
$id_orig_name = $row['idautore'];
$idcategoria = $row['idcategoria'];
$titolo = stripslashes($row['titolo']);
$name = $row['autore'];
$testo = stripslashes($row['testo']);
if ($this->mkeditor == "BBCODE") {
$testo = $this->decode_bb($testo);
$testo = $mklib_board->decode_smilies($testo);
}
$sezione = $row['titcat'];
$icona = $row['icona'];
switch($icona) {
case '1':
$image = "$this->images/icona_news.gif";
    break;
case '2':
    $image = "$this->images/icona_help.gif";
    break;
case '3':
$image = "$this->images/icona_star.gif";
    break;
case '4':
$image = "$this->images/icona_pc.gif";
    break;
case '5':
$image = "$this->images/icona_world.gif";
    break;
    default:
    $image = $icona;
    break;
    }

$cdata = $this->create_date($row['data']);
$news_words= $this->config['news_words'];
if ($this->config['news_html']) {
$testo = str_replace ("<br />", " ", $testo);
$testo = strip_tags ($testo);
    }
if ($news_words) {
$testo = substr ($testo, 0, $news_words);
$testo .= " ...";
    }

$cont .= "
  <table class=\"tabnews\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">
    <tbody>
    <tr>
      <td class=\"tdblock\" align=\"center\" width=\"5%\">
      <img hspace=\"0\" src=\"$image\" align=\"bottom\" border=\"0\" alt=\"\" />
      </td>
      <td class=\"tdblock\" valign=\"top\" width=\"95%\">
      <b>$sezione<br /><a href=\"index.php?ind=news&amp;op=news_show_single&amp;ide={$row['id']}\">$titolo</a></b>
      </td>
    </tr>
    </tbody>
  </table>
";
}
$query = $DB->query( "SELECT n.id, n.idcategoria, n.idautore, n.titolo, n.autore, n.testo, n.data, n.totalcomm, s.id AS idcat, s.titolo AS titcat, s.icona
FROM mkp_news AS n
LEFT JOIN mkp_news_sections AS s ON(s.id = n.idcategoria)
WHERE validate = '1' ORDER BY `id` DESC");
$row = $DB->fetch_row($query);
$idnt = $row['id'];
$totcomments = $row['totalcomm'];
$id_orig_name = $row['idautore'];
$idcategoria = $row['idcategoria'];
$titolo = stripslashes($row['titolo']);
$name = $row['autore'];
$testo = stripslashes($row['testo']);
if ($this->mkeditor == "BBCODE") {
$testo = $this->decode_bb($testo);
$testo = $mklib_board->decode_smilies($testo);
}
$sezione = $row['titcat'];
$icona = $row['icona'];
switch($icona) {
case '1':
$image = "$this->images/icona_news.gif";
    break;
case '2':
    $image = "$this->images/icona_help.gif";
    break;
case '3':
$image = "$this->images/icona_star.gif";
    break;
case '4':
$image = "$this->images/icona_pc.gif";
    break;
case '5':
$image = "$this->images/icona_world.gif";
    break;
    default:
    $image = $icona;
    break;
    }

$cdata = $this->create_date($row['data']);

if ($news_words) {
$testo = substr ($testo, 0, $news_words);
$testo .= " ...";
    }

$cont2 = "
<table class=\"tabnews\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">
    <tbody>
    <tr>
      <td>
  <b><a href=\"index.php?ind=news&amp;op=news_show_single&amp;ide={$row['id']}\">$titolo</a></b>
  <br />
      $testo
      </td>
    </tr>
    <tr>
      <td align=\"right\">
      <br /><i>{$this->lang['from']}<b> <a href=\"$link_user=$id_orig_name\">$name</a></b>, $cdata <a href=\"index.php?ind=news&amp;op=submit_comment&amp;idnews={$row['id']}\">{$this->lang['comments']}</a>($totcomments), <a href=\"index.php?ind=news&amp;op=news_show_single&amp;ide={$row['id']}\">{$this->lang['readall']}</a></i>
      </td>
    </tr>
    </tbody>
  </table>
";

$content = "
<tr>
  <td class=\"contents\">
  <div class=\"taburlo\">
    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
      <tr>
<td width=\"50%\" class=\"taburlo\" valign=\"top\">
{$cont}
</td>
<td width=\"50%\" class=\"taburlo\" valign=\"top\">
{$cont2}
</td>
      </tr>
    </table>
  </div>
  </td>
      </tr>
  ";

unset($cont);
unset($row);
unset($idcat);
unset($categoria);
unset($idnt);
unset($query);
unset($query2);
unset($totcomments);
unset($id_orig_name);
unset($idcategoria);
unset($titolo);
unset($name);
unset($testo);
unset($sezione);
unset($icona);
unset($cdata);
unset($news_words);




?>
« Son Düzenleme: Ağustos 06, 2008, 16:56:32 ÖS Gönderen: isabey »

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7976
  • Puan: 750
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-bu haber blok yapmak munkunmu
« Yanıtla #4 : Ağustos 06, 2008, 22:09:35 ÖS »
Senin haberler fare üstüne gelince değişiyor, sitede ise tıklayınca.Belki kodlarda ya da dosyalarda eksiklik vardır.

Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
-bu haber blok yapmak munkunmu
« Yanıtla #5 : Ağustos 06, 2008, 23:03:54 ÖS »
admin kardes burayi incelersen anlarsin

http://test.kimirulez.com/ ornek sanirim yapimci site burasi

http://www.mkportal.it/index.php?ind=downloads&op=entry_view&iden=944
dosya indirmek icin

Çevrimdışı burajan

  • Web Programcısı
  • Administrator
  • *
  • İleti: 5109
  • Puan: 334
  • Cinsiyet: Bay
  • Web Programcısı
    • Burak ŞİMŞEK - Kişisel İnternet Sitesi
-bu haber blok yapmak munkunmu
« Yanıtla #6 : Ağustos 06, 2008, 23:15:06 ÖS »
Modülü denedim ve herhangi bir sorun yok. http://test.kimirulez.com adresindeki gibi çalışmakta.

Modülü indirdikten sonra dynamic_web_news.php adlı dosyayı mkportal/blocks klasörüne kopyalayın. Daha sonra mkportal/templates/kullandığınıztema/mkp.js adlı dosyayı açıp, modüldeki js_code.txt dosyasındakileri ekledikten sonra işlem tamamlanıyor. Daha sonrada bloğu aktif ediyorsun.

Not: belki js dosyasını not defteri ile açtığınızda sorunlar oluşabilir çünkü not defterinde js dosyalarını tam olarak tanımlayamıyor. Bu nedenle Notepad++ programını öneririm çünkü bu dosyayı açarken herhangi bir sorunla karşılaşmadım.
Kişisel İnternet Sitem => buraksimsek.com.tr - http://www.buraksimsek.com.tr

Lütfen özel mesaj ile destek istemeyiniz. Önce forumda arama yapınız daha sonra forumda ilgili bölüme konu açınız.

Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
-bu haber blok yapmak munkunmu
« Yanıtla #7 : Ağustos 06, 2008, 23:19:32 ÖS »
bunu nasil yacagim yardimci olurmusn

Alıntı
mkportal/templates/kullandığınıztema/mkp.js adlı dosyayı açıp, modüldeki js_code.txt dosyasındakileri ekledikten sonra işlem tamamlanıyor. Daha sonrada bloğu aktif ediyorsun.

Çevrimdışı isabey

  • Moderatör
  • *
  • İleti: 585
  • Puan: 70
  • Cinsiyet: Bay
    • isabey koyu
-bu haber blok yapmak munkunmu
« Yanıtla #8 : Ağustos 06, 2008, 23:24:07 ÖS »
duzenlermisin
Kod: [Seç]
<!--

var B_open = 0;
var I_open = 0;
var U_open = 0;
var QUOTE_open = 0;
var CODE_open = 0;
var HTML_open = 0;

var bbtags   = new Array();

var myAgent   = navigator.userAgent.toLowerCase();
var myVersion = parseInt(navigator.appVersion);

var is_opera = (myAgent.indexOf("opera") != -1);
var is_ie   = ((myAgent.indexOf("msie") != -1)  && (is_opera==false));
var is_nav  = ((myAgent.indexOf('mozilla')!=-1) && (myAgent.indexOf('spoofer')==-1)
                && (myAgent.indexOf('compatible') == -1) && (is_opera==false)
                && (myAgent.indexOf('webtv') ==-1)       && (myAgent.indexOf('hotjava')==-1));

var is_win   =  ((myAgent.indexOf("win")!=-1) || (myAgent.indexOf("16bit")!=-1));
var is_mac    = (myAgent.indexOf("mac")!=-1);



function stacksize(thearray) {
    for (i = 0 ; i < thearray.length; i++ ) {
        if ( (thearray[i] == "") || (thearray[i] == null) || (thearray == 'undefined') ) {
            return i;
        }
    }
    return thearray.length;
}

function pushstack(thearray, newval) {
    arraysize = stacksize(thearray);
    thearray[arraysize] = newval;
}

function popstack(thearray) {
    arraysize = stacksize(thearray);
    theval = thearray[arraysize - 1];
    delete thearray[arraysize - 1];
    return theval;
}

function closeall() {
    if (bbtags[0]) {
        while (bbtags[0]) {
            tagRemove = popstack(bbtags)
            document.editor.ta.value += "[/" + tagRemove + "]";
            if ( (tagRemove != 'FONT') && (tagRemove != 'SIZE') && (tagRemove != 'COLOR') ) {
                eval("document.editor." + tagRemove + ".value = ' " + tagRemove + " '");
                eval(tagRemove + "_open = 0");
            }
        }
    }
    document.editor.tagcount.value = 0;
    bbtags = new Array();
    document.editor.ta.focus();
}


function add_code(NewCode) {
    document.editor.ta.value += NewCode;
    document.editor.ta.focus();
}

function alterfont(theval, thetag) {
    if (theval == 0)
        return;
    if(doInsert("[" + thetag + "=" + theval + "]", "[/" + thetag + "]", true))
        pushstack(bbtags, thetag);
    document.editor.ffont.selectedIndex  = 0;
    document.editor.fsize.selectedIndex  = 0;
    document.editor.fcolor.selectedIndex = 0;
}

function simpletag(thetag) {
    var tagOpen = eval(thetag + "_open");

    if (tagOpen == 0) {
        if(doInsert("[" + thetag + "]", "[/" + thetag + "]", true))
        {
            eval(thetag + "_open = 1");
            eval("document.editor." + thetag + ".value += '*'");

            pushstack(bbtags, thetag);
        }
    }
    else {
        // Find the last occurance of the opened tag
        lastindex = 0;

        for (i = 0 ; i < bbtags.length; i++ )
        {
            if ( bbtags[i] == thetag )
            {
                lastindex = i;
            }
        }

        // Close all tags opened up to that tag was opened
        while (bbtags[lastindex])
        {
            tagRemove = popstack(bbtags);
            doInsert("[/" + tagRemove + "]", "", false)


            if ( (tagRemove != 'FONT') && (tagRemove != 'SIZE') && (tagRemove != 'COLOR') ) {
                eval("document.editor." + tagRemove + ".value = ' " + tagRemove + " '");
                eval(tagRemove + "_open = 0");
            }
        }
    }
}


function tag_list() {
    var listvalue = "init";
    var thelist = "";
    while ( (listvalue != "") && (listvalue != null) ) {
        listvalue = prompt(list_prompt, "");
        if ( (listvalue != "") && (listvalue != null) ) {
            thelist = thelist+"[*]"+listvalue+"\n";
        }
    }
    if ( thelist != "" ) {
        doInsert( "[LIST]\n" + thelist + "[/LIST]\n", "", false);
    }
}

function tag_url() {
    var FoundErrors = '';
    var enterURL   = prompt(text_enter_url, "http://");
    var enterTITLE = prompt(text_enter_url_name, "My Webpage");

    if (!enterURL) {
        FoundErrors += " " + error_no_url;
    }
    if (!enterTITLE) {
        FoundErrors += " " + error_no_title;
    }
    if (FoundErrors) {
        alert("Error!"+FoundErrors);
        return;
    }
    doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);
}


function tag_image() {
    var FoundErrors = '';
    var enterURL   = prompt(text_enter_image, "http://");

    if (!enterURL) {
        FoundErrors += " " + error_no_url;
    }
    if (FoundErrors) {
        alert("Error!"+FoundErrors);
        return;
    }
    doInsert("[IMG]"+enterURL+"[/IMG]", "", false);
}

function tag_email() {
    var emailAddress = prompt(text_enter_email, "");
    if (!emailAddress) {
        alert(error_no_email);
        return;
    }
    doInsert("[EMAIL]"+emailAddress+"[/EMAIL]", "", false);
}

function doInsert(ibTag, ibClsTag, isSingle) {
    var isClose = false;
    var obj_ta = document.editor.ta;
    // Ensure it works for IE4up / Win only
    if ((myVersion >= 4) && is_ie && is_win) {
        if(obj_ta.isTextEdit){ // this doesn't work for NS, but it works for IE 4+ and compatible browsers
            obj_ta.focus();
            var sel = document.selection;
            var rng = sel.createRange();
            rng.collapse;
            if((sel.type == "Text" || sel.type == "None") && rng != null){
                if(ibClsTag != "" && rng.text.length > 0)
                    ibTag += rng.text + ibClsTag;
                else if(isSingle)
                    isClose = true;
                rng.text = ibTag;
            }
        }
        else {
            if(isSingle)
                isClose = true;
            obj_ta.value += ibTag;
        }
    }
    else {
        // this should work with Mozillas
        if ( (myVersion >= 4) && is_win && !is_opera) {
            var length = obj_ta.textLength;
            var start = obj_ta.selectionStart;
            var end = obj_ta.selectionEnd;
            var head = obj_ta.value.substring(0,start);
            var rng = obj_ta.value.substring(start, end);
            var tail = obj_ta.value.substring(end, length);
            if( start != end ){
                if (ibClsTag != "" && length > 0)
                    ibTag += rng + ibClsTag;
                else if (isSingle)
                    isClose = true;
                rng = ibTag;
                obj_ta.value = head + rng + tail;
                start = start + rng.length;
            }
            else{
                if(isSingle)
                    isClose = true;
                obj_ta.value = head + ibTag + tail;
                start = start + ibTag.length;
            }
            obj_ta.selectionStart = start;
            obj_ta.selectionEnd = start;
        }
        else {
            if(isSingle)
                isClose = true;
            obj_ta.value += ibTag;
        }
    }
    obj_ta.focus();
    return isClose;
}

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

function getObj(name)
{
  if (document.getElementById)
  {
    if(document.getElementById(name))
      return document.getElementById(name);
    else
      return false;
  }
  else if (document.all)
  {
if (document.all[name])
      return document.all[name];
    else
      return false;
  }
  else if (document.layers)
  {
    if (document.layers[name])
      return document.layers[name];
    else
      return false;
  }
}

function ColumnClose(currMenu) {
Mclose = 'menucloseds';
Mcontent= 'menucontents';
if (currMenu == 'menudx') {
Mclose = 'menuclosedr';
Mcontent = 'menucontentr';
}

  holder = getObj(currMenu)
  if( holder ){

    if (typeof(window.opera) == 'undefined'
        && typeof(holder.getAttribute) != 'undefined') {
        if (holder.getAttribute("className")) {
            holder.setAttribute("className", Mclose);
        } else {
            holder.setAttribute("class", Mclose);
        }
    }
    else {
        holder.setAttribute("class", Mclose);
    }

    obj = getObj(Mcontent);
    if(obj) obj.style.display = 'none';

    obj = getObj(Mclose);
    if(obj) obj.style.display = '';
  }
}
function ColumnOpen(currMenu) {
  Mclose = 'menucloseds';
Mcontent= 'menucontents';
if (currMenu == 'menudx') {
Mclose = 'menuclosedr';
Mcontent = 'menucontentr';
}
  holder = getObj(currMenu)
  if( holder ){


    if (typeof(window.opera) == 'undefined'
        && typeof(holder.getAttribute) != 'undefined') {
        if (holder.getAttribute("className")) {
            holder.setAttribute("className", currMenu);
        } else {
            holder.setAttribute("class", currMenu);
        }
    }
    else {
        holder.setAttribute("class", currMenu);
    }


    obj = getObj(Mcontent);
    if(obj) obj.style.display = '';

    obj = getObj(Mclose);
    if(obj) obj.style.display = 'none';
  }
}


function MemoPos(name, value) {
   var expire=new Date();
   expire=new Date(expire.getTime()+7776000000);
   document.cookie=  name + "=" +value + "; expires="+expire+"; path=/";

}

function GetPos() {
var resultsx = getCookie('MKmenusx');
var resultdx = getCookie('MKmenudx');
//document.write(result);
if (resultsx == 1)
ColumnClose('menusx');
if (resultdx == 1)
ColumnClose('menudx');


}



//-->

Çevrimdışı burajan

  • Web Programcısı
  • Administrator
  • *
  • İleti: 5109
  • Puan: 334
  • Cinsiyet: Bay
  • Web Programcısı
    • Burak ŞİMŞEK - Kişisel İnternet Sitesi
-bu haber blok yapmak munkunmu
« Yanıtla #9 : Ağustos 06, 2008, 23:27:10 ÖS »
bunu nasil yacagim yardimci olurmusn

Alıntı
mkportal/templates/kullandığınıztema/mkp.js adlı dosyayı açıp, modüldeki js_code.txt dosyasındakileri ekledikten sonra işlem tamamlanıyor. Daha sonrada bloğu aktif ediyorsun.

js_code.txt dosyasının içindekileri kopyalayıp, mkp.js adlı dosyayı Notepad++ ile açarak en alt satırından sonra yapıştırarak yapabilirsin. Yada konuya sendeki mkp.js adlı dosyayı ekte gönder, ben düzenleyip tekrar göndereyim.
Kişisel İnternet Sitem => buraksimsek.com.tr - http://www.buraksimsek.com.tr

Lütfen özel mesaj ile destek istemeyiniz. Önce forumda arama yapınız daha sonra forumda ilgili bölüme konu açınız.

 

Benzer Konular

  Konu / Başlatan Yanıt Son İleti
11 Yanıt
6540 Gösterim
Son İleti Ocak 17, 2010, 15:12:51 ÖS
Gönderen: karaali42
7 Yanıt
2075 Gösterim
Son İleti Haziran 27, 2008, 22:32:03 ÖS
Gönderen: isabey
6 Yanıt
1216 Gösterim
Son İleti Nisan 04, 2009, 16:42:18 ÖS
Gönderen: isabey
4 Yanıt
1201 Gösterim
Son İleti Mayıs 18, 2009, 23:27:23 ÖS
Gönderen: mesut_
4 Yanıt
994 Gösterim
Son İleti Temmuz 02, 2009, 09:50:09 ÖÖ
Gönderen: AdmiN