Avantajları
1) Serverınızı asla kasmaz yormaz.
2) Tamamen işinizi bota degil botu sizin yönetmenizi sağlar.
3) Kullanımı çok basittir.
+
Yenilikler bitmiyor
Haber botu eklediginde 3 cümle alır haberden ve altına haber linkini adres olarak eklemez
Devamını Oku Şeklinde otomatik tanımlama yapar.
İşte bir konudan resim:
[img]http:
Kurulumuna geçelim.
1) http:
2) http:
( Sebep Hostunuzu kasan şeylerin önlemini alan kısımlardır )
3) Aşağıdaki kodları Kendinize göre düzenliyip rss.php olarak root a yada forumun kurulu olduğu klasörün içine atınız.
<?php
error_reporting
(E_ALL);
require
(
"simplepie/simplepie.inc"
);
require_once
(
'/home/siteisminiz/public_html/SSI.php'
);
require_once
(
'/home/siteisminiz/public_html/Sources/Subs-Post.php'
);
define(
"DB_HOSTNAME"
,
"localhost"
);
define(
"DB_USERNAME"
,
"*****"
);
define(
"DB_PASSWD"
,
"******"
);
define(
"DB_DATABASE"
,
"*******"
);
$sSql
=
""
;
$aryMsgOptions
= Array();
$aryTopicOptions
= Array();
$aryPosterOptions
= Array();
$encoding
=
"iso-8859-9"
;
$iUserId
= 99999;
$iBoardId
= 99999;
$sRealName
=
"Haberci"
;
$sEmailAddr
=
"haberci@xxxx.net"
;
$iMarkAsRead
= TRUE;
$iUpdatePostCount
= TRUE;
$sFeedUrl
=
"http://www.zaman.com.tr/webapp-tr/kultursanat.rss"
; // Bu Kısımlar rss yada xml haber cekilicek adres satırları
$iMaxItemsToRetrieve
= 50;
$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
);
$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
(
$int_count
[
'ENTRY_EXISTS'
] == 0)
{
$sItemTitle
=
$tekrakibimmicrosoft
;
$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 href=\""
.
$item
->get_permalink() .
"\">Devamini Oku</a></p>"
;
$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
);
}
?>
Ve en sonunda www.siteisminiz.com/rss.php dediğinizde Haberleriniz eklenecektir.
Botumuz Demo : http:
Forum'a 1 günde 654 konu ekledi :)
Konu altından gerekli yardımlar yapılacaktır.
Saygılarımla.
<coder>Coded by Squealer</coder>
squealer
admin@forumlus.com