Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

link veriyorum ama açılmıyor ?

Aloittaja apolettin6, toukokuu 20, 2009, 01:41:56 IP

« edellinen - seuraava »

apolettin6

merhaba arkadaşlar  http://xxx.com/forum/fenerhaber.php  diye bir php oluşturdum rss haberlerini ekliyor siteye bu linki foruma ekliyorum herşey normal ama linke tıklayınca admin
http://www.xxx.com/forum/index.php?www;erhaber_php=
diye açılıyor ve verdiğim link açılmıyor.
linki kopyala yapıştır yapıyorum.
http://xxx.com/forum/fenerhaber.php şeklinde yapıyorum kopyala yapıştır yapın diyorum.kopyalayıp yapıştırıyorlar ve yine üstteki o linke giriyor site

ancak elle www. diye yazmaları gerekiyor bu neden olabilir acaba bir bilginiz varmı?

grafitus

xxx yerine gelecek ifadeyi söylerseniz bakabilirim.



turanordusu.tc



apolettin6

böyle burdan tıkladığımızda açılıyor.ama forumdan verdiğimde bu linki üstte verdiğim şekilde oluyor.

turanordusu.tc

Arşivi yada sitemap ı oluştururken galiba bi yerde dosya yolunu yanlış yapmışsın. Belki de index.php de bilmiyorum ama bilen biri yardımcı olur inşallah..

apolettin6

hocam  http://www.sanlikanarya.com/forum/index.php?topic=618.0  konudaki linke tıkladığınızda bir sorun oluyormu.yoksa benim tarayıcımdanmı kaynaklanıyor problem.

grafitus

Simple Pie'yi yanlış kurmuşsun kardeşim.

apolettin6

yok kardeşim ben bişey kurmadım bak istersen ben hiç mod kurulmadan yapılan birşey yaptım burada buldum bunuda.

gayet iyi çalışıyor. bunu php olarak dosya yaptım bunu çalıştırınca haber belirttiğim kategoriye geliyor bunlarda sorun yok.
normal olarak linki yazıncada giriyor.ama foruma konu açıp bu linke tıkla dediğimde o linke değil de  http://www.xxx.com/forum/index.php?www;erhaber_php= bu linke filan gidiyor. çakışıyormu acaba ne oluyor onu çözemedim.

<?php
error_reporting
(E_ALL);

require(
"simplepie/simplepie.inc");
// these need the full path to your SMF files
require_once('/home/sanlikan/public_html/forum/SSI.php');
require_once(
'/home/sanlikan/public_html/forum/Sources/Subs-Post.php');

/** DATABASE Configuration */
define("DB_HOSTNAME","localhost"); //Insert your DB server name here
define("DB_USERNAME","xxxx"); //DB Kullanıcı adı
define("DB_PASSWD","xxxxx"); // DB Şifre
define("DB_DATABASE","xxx"); //DB İsmi

// initialize variables ** Don't touch these.
$sSql  "";
$aryMsgOptions = Array();
$aryTopicOptions = Array();
$aryPosterOptions = Array();
$encoding "iso-8859-9";

// set variables ** Modify these to match your board
$iUserId  63 // Haber botunuzun Üye ID si
$iBoardId  1; // Haberin eklenecegi kategori ID si
$sRealName  "Haberci"; // Haber botunuzun üye adı
$sEmailAddr  "[email protected]"; // Haber botunuzun mail adresi
$iMarkAsRead TRUE// Set this either true or false This defines whether the injected posts are marked as read.
$iUpdatePostCount TRUE;// Set this to either true or false.  This defines whether to include the injected items in your post counts.
$sFeedUrl  "http://feeds.feedburner.com/ligtv-Fenerbahce?format=xml"// Bu Kısımlar rss yada xml haber cekilicek adres satırları
$iMaxItemsToRetrieve 50// Kaç Haber eklenicekse Haber sayısını belirtin..
// Instantiate SimplePie object
$feed = new SimplePie($sFeedUrl);

$feed->init();

$feed->handle_content_type();

$obj_db mysql_connect(DB_HOSTNAME,DB_USERNAME,DB_PASSWD) or die (mysql_error());
mysql_select_db(DB_DATABASE,$obj_db) or die (mysql_error());


if (
$feed->data
{    
$max $feed->get_item_quantity($iMaxItemsToRetrieve);
for ($x 0$x $max$x++) 
    {

    
$item $feed->get_item($x);
        
$hoppa $item->get_title();
$hoppa1 iconv("UTF-8""ISO-8859-9"$hoppa);
$tekrakibimmicrosoft addslashes($hoppa1);

// This is a simple check to make sure that the item doesn't already exist in your SMF.
    
$sSql "SELECT
                COUNT(ID_MSG) AS ENTRY_EXISTS
             FROM smf_messages 
             WHERE subject = '
$tekrakibimmicrosoft'";
        
    
$obj_query mysql_query($sSql$obj_db) or die(mysql_error());

        
$int_count mysql_fetch_assoc($obj_query) or die(mysql_error());

        
mysql_free_result($obj_query);
        
        
// If it's a new item, insert it!
        
if ($int_count['ENTRY_EXISTS'] == 0
        { 
$sItemTitle $tekrakibimmicrosoft;
//$sItemTitle = smart_trim(addslashes($item->get_title()), 50, false, "...");

$hoppa2 $item->get_description();
                  
$hoppa3 iconv("UTF-8""ISO-8859-9"$hoppa2);
                  
$phpninustasigozlerininhastasiyim addslashes($hoppa3);
$sItemBody "<p>" $item->get_date('j M Y') . "</p><p>$phpninustasigozlerininhastasiyim</p><p><a target=\"_blank\" href=\"" $item->get_permalink() . "\">Devamini Oku</a></p>";
 
        
// Setup the variables for creatPost()
$aryTopicOptions = array
(
        'id' => 0,
        'board' => $iBoardId,
        'mark_as_read' => $iMarkAsRead,
);

$aryPosterOptions = array
(
        'id' => $iUserId,
        'name' => $sRealName,
        'email' => $sEmailAddr,
        'ip' => '127.0.0.1',
        'update_post_count' => $iUpdatePostCount,
);

$aryMsgOptions = array
(
        'id' => 0,
        'subject' => $sItemTitle,
        'body' => $sItemBody,
);  
      
        
echo("*******************************************************************<br />\r\n");
echo("title: " $sItemTitle "<br />\r\n");
        
echo("*******************************************************************<br />\r\n");
        

        
createPost($aryMsgOptions$aryTopicOptions$aryPosterOptions);
        }
        else 
        {
        
echo("There is already a match<br />\r\n");
        } 
    }
}

if (
$obj_db) {
    @
mysql_close($obj_db);
}
?>

apolettin6

şimdi bir metin belgesi oluşturdum.

<a href="http://sanlikanarya.com/forum/dunyahaber.php"target="_blank">Dünyadan haberleri ekle</a>
<p><a href="http://sanlikanarya.com/forum/iddaa.php">İddaa Haberleri ekle</a>
<p><a href="http://sanlikanarya.com/forum/motohaber.php">Motor sporları haberlerini ekle</a>
<p><a href="http://sanlikanarya.com/forum/sampiyonlarligi.php">Şampiyonlar ligi haberlerini ekle</a>
<p><a href="http://sanlikanarya.com/forum/superlighaber.php">Süperlig haberlerini ekle</a>
<p><a href="http://sanlikanarya.com/forum/turkmillihaber.php">Türkiye Milli Takım Haberlerini ekle</a>
<p><a href="http://sanlikanarya.com/forum/fbhaber.php">Fenerbahçe Haberleri Ekle</a>

yazdım.

mesela en süttekine tıklıyorum sayfanın gittiği yer
http://www.sanlikanarya.com/forum/index.php?www;yahaber_php=
bura oluyor bunu bir türlü düzeltemedim ne yapmalıyım yaa

Advertisement: