mysql_query("insert into wp_posts (post_author ,post_date , post_date_gmt , post_content ,post_title ,post_category , post_status ,comment_status ,ping_status ,post_name ,post_modified ,post_modified_gmt ,post_parent , menu_order , post_type ,comment_count) VALUES('$yazi','0','publish','$time','$time','0','0','post','0')");
echo "<b>".$yazi."</b> Eklendi<br>";yapiyorum eklendi diyor ama eklenen birsey yok simdiden yardimlariniz icin tesekkur ediyorum
Wordpress icin icerik ekleme botu
16
●4.397
- 23-05-2009, 20:04:05Kimlik doğrulama veya yönetimden onay bekliyor.Forumda ucretli scriptler bolumunde parasiyla wordpress icin bot yaptiracaktim kimse ilgilenmedi is basa dustu biraz arastirdim hafif php bilgim sayesinde istedigim siteden istedigin icerigi alabiliyorum ama bunu bi turlu wp db sine yazdiramiyorum takildigim nokta bu wordpress de taxonomy nedir bu olmadan veriyi cekemezmiyim db ye?
- 23-05-2009, 21:33:23Kimlik doğrulama veya yönetimden onay bekliyor.mysql_query("insert into wp_posts (post_author ,post_date , post_date_gmt , post_content ,post_title ,post_category , post_status ,comment_status ,ping_status ,post_name ,post_modified ,post_modified_gmt ,post_parent , menu_order , post_type ,comment_count) VALUES('$yazi','0','publish','$time','$time','0',' 0','post','0')");
iyi bak sayılara
- 23-05-2009, 21:42:45Biraz daha basitlestirdim yinede eklemiyor nerde hatada vermiyor :S
kullandigim kodlarin bazilari
$sayfa="http://sitesimi/xxx.html"; $kaynak=file_get_contents($sayfa); $baslik='#<div class="post_title"><h2><a href="http://siteismi/xxx.html" rel="bookmark" title="Permanent Link to xxxx">(.*?)</a></h2></div>#si'; preg_match($baslik,$kaynak,$filmadi); $filmadi=$filmadi[1]; $yazi='#<div class="post_content"><p>(.*?)<!-- BASLA: GittiGidiyor Reklam Kodu -->#si'; preg_match($yazi,$kaynak,$filmkonusu); $filmkonusu=$filmkonusu[1]; echo "Filmin Ismi: ".$filmadi."<br />"; echo "Filmin Konusu: ".$filmkonusu; function saveData($filmadi,$filmkonusu) { $filmadi = mysql_real_escape_string($filmadi); $filmkonusu = mysql_real_escape_string($filmkonusu); $ekle = mysql_query("INSERT INTO wp_posts(post_title,post_content) VALUES ('".$filmadi."','".$filmkonusu."')"); if ($ekle !== false) { return true; } else { return false; } } ?> - 23-05-2009, 21:53:48Hatırladıgım kadarıyla into wp_post'la bitmiyor insert into wp_term_relationships de konunun id gitmesi gerekiyor diye hatırlıyorum
- 23-05-2009, 21:54:41daha bir sürüsü var bu sadece eklemeEnkahosting adlı üyeden alıntı: mesajı görüntüle
- 23-05-2009, 22:13:49
- 23-05-2009, 22:29:28gercekten cok cok faydali kodlar.. sanirim bu sefer becerecegim bu kodlarla amauysal_rockci adlı üyeden alıntı: mesajı görüntüle
Bi ørnek gøsterebilirmisin nasil baslayacagim
$baslik='post_title'#<div class="post_title"><h2><a href="http://siteismi/xxx.html" rel="bookmark" title="Permanent Link to xxxx">(.*?)</a></h2></div>#si';
bunun gibimi ?