SMF forum indexlenmesi çok pratik.[Test edildi]

Started by Webersin, August 21, 2006, 06:31:39 PM

Previous topic - Next topic

lkrs2616

tamam arkadaşlar hatayı buldum yanlış satır atlatmışım

lkrs2616

Arkadaşlar peki bu neden oluyor




XML sayfası görüntülenemiyor

XML girişi XSL stil sayfası kullanılarak görüntülenemez. Lütfen hatayı düzeltin ve Yinele düğmesini tıklatın veya daha sonra yeniden deneyin.


--------------------------------------------------------------------------------

XML belgesinde tek bir üst düzey öğeye izin verilir. 'http://bilgisayar.net46.net/forum/google.php'; kaynağı işlenirken hata...

<script type="text/javascript" language="javascript">


kerimpc

Quote from: kerimpc on July 01, 2008, 08:34:37 AM
Arkadaşlar şöyle bir hata alıyorum nasıl çözümleyebilirim yardımcı olurmusunuz?

Veritabanı Hatası: MySQL server has gone away<br />Dosya: /home/..../public_html/Sources/Load.php<br />Satır: 2228

Forum sürümü: SMF 1.1.5
Tema: default

Şimdiden teşekkürler..

hatayı halen çözmüş değilim arkadaşlar yardımlarınızı bekliyorum..


sproraty

Fatal error: Call to undefined function phprequire_once() in /home/exsehir/public_html/forum/xxx.php on line 1

nasıl düzeltiriz?
sorularımda test olarak siteye baglanmak için ::  kullanıcı adı : deneme  şifre : deneme

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal


gmturk

Kodları aynen aldım site.php dosyası olarak kaydettim. Forum ana dizinine attım. ve http://siteismi.com/site.php olarak çalıştırdım

Karşıma şu kodlar çıktı

= " . ($modSettings['maxMsgID'] - 30) . " ORDER BY ID_MSG DESC LIMIT 10", __FILE__, __LINE__); $latest_post_times = array(time()); while ($row = mysql_fetch_assoc($request)) $latest_post_times[] = $row['posterTime']; mysql_free_result($request); $request = db_query(" SELECT ID_BOARD FROM {$db_prefix}boards", __FILE__, __LINE__); $boards = array(); while ($row = mysql_fetch_assoc($request)) { $request2 = db_query(" SELECT posterTime FROM {$db_prefix}messages WHERE ID_BOARD = $row[ID_BOARD]" . ($modSettings['totalMessages'] > 100000 ? " AND ID_MSG >= " . ($modSettings['maxMsgID'] * 0.5) : '') . " ORDER BY ID_MSG DESC LIMIT 10", __FILE__, __LINE__); $board_post_times = array(time()); while ($row2 = mysql_fetch_assoc($request2)) $board_post_times[] = $row2['posterTime']; mysql_free_result($request2); $boards[] = array( 'id' => $row['ID_BOARD'], 'times' => $board_post_times, ); } mysql_free_result($request); $request = db_query(" SELECT ID_TOPIC FROM {$db_prefix}topics ORDER BY numViews + numReplies DESC LIMIT 1425", __FILE__, __LINE__); $topics = array(); while ($row = mysql_fetch_assoc($request)) { $request2 = db_query(" SELECT posterTime FROM {$db_prefix}messages WHERE ID_TOPIC = $row[ID_TOPIC] ORDER BY ID_MSG DESC LIMIT 10", __FILE__, __LINE__); $topic_post_times = array(time()); while ($row2 = mysql_fetch_assoc($request2)) $topic_post_times[] = $row2['posterTime']; mysql_free_result($request2); $topics[] = array( 'id' => $row['ID_TOPIC'], 'times' => $topic_post_times, ); } mysql_free_result($request); $request = db_query(" SELECT ID_MEMBER FROM {$db_prefix}members ORDER BY totalTimeLoggedIn DESC LIMIT 1408", __FILE__, __LINE__); $members = array(); while ($row = mysql_fetch_assoc($request)) { $request2 = db_query(" SELECT posterTime FROM {$db_prefix}messages WHERE ID_MEMBER = $row[ID_MEMBER]" . ($modSettings['totalMessages'] > 100000 ? " AND ID_MSG >= " . ($modSettings['maxMsgID'] * 0.5) : '') . " ORDER BY ID_MSG DESC LIMIT 10", __FILE__, __LINE__); $member_post_times = array(time()); while ($row2 = mysql_fetch_assoc($request2)) $member_post_times[] = $row2['posterTime']; mysql_free_result($request2); $members[] = array( 'id' => $row['ID_MEMBER'], 'times' => $member_post_times, ); } mysql_free_result($request); // First, the forum URL. Highest priority! echo ' ', $scripturl, ' ', posts_max_time($latest_post_times), ' ', posts_to_freq($latest_post_times), ' 1.0 '; // Now the boards! foreach ($boards as $board) { echo ' ', $scripturl, '?board=', $board['id'], '.0 ', posts_max_time($board['times']), ' ', posts_to_freq($board['times']), ' ', posts_to_priority(0.8, $board['times']), ' '; } // Popular topics too... foreach ($topics as $topic) { echo ' ', $scripturl, '?topic=', $topic['id'], '.0 ', posts_max_time($topic['times']), ' ', posts_to_freq($topic['times']), ' ', posts_to_priority(0.7, $board['times']), ' '; } // Most active members? foreach ($members as $member) { echo ' ', $scripturl, '?action=profile;u=', $member['id'], ' ', posts_max_time($member['times']), ' ', posts_to_freq($member['times']), ' ', posts_to_priority(0.5, $board['times']), ' '; } echo ' '; function posts_max_time($post_times) { if (empty($post_times) || count($post_times) == 1) return gmstrftime('%Y-%m-%dT%H:%M:%S+00:00', time() - 3600 * 24 * 10); return gmstrftime('%Y-%m-%dT%H:%M:%S+00:00', max($post_times)); } function posts_to_priority($base, $post_times) { if (empty($post_times) || count($post_times) == 1) return sprintf('%1.1f', $base); $s = (max($post_times) - min($post_times)) / count($post_times); if ($s < 3600 * 24) $mod = 0.1; else $mod = 0; return sprintf('%1.1f', $base + $mod); } function posts_to_freq($post_times) { if (empty($post_times) || count($post_times) == 1) return 'yearly'; $s = (max($post_times) - min($post_times)) / count($post_times); // Changes more often than every hour. if ($s < 3600) return 'always'; elseif ($s < 3600 * 12) return 'hourly'; elseif ($s < 3600 * 24 * 4) return 'daily'; else return 'monthly'; } ?>


Yani verdiğiniz kodlar ==> site.php içerisindeki kodların karman çorban bir haldeki görüntüsü ..

Aşağıda resmini veriyorum

Özgür

Quote from: gmturk on October 08, 2008, 06:27:05 PM
Kodları aynen aldım site.php dosyası olarak kaydettim. Forum ana dizinine attım. ve http://siteismi.com/site.php olarak çalıştırdım

Karşıma şu kodlar çıktı

= " . ($modSettings['maxMsgID'] - 30) . " ORDER BY ID_MSG DESC LIMIT 10", __FILE__, __LINE__); $latest_post_times = array(time()); while ($row = mysql_fetch_assoc($request)) $latest_post_times[] = $row['posterTime']; mysql_free_result($request); $request = db_query(" SELECT ID_BOARD FROM {$db_prefix}boards", __FILE__, __LINE__); $boards = array(); while ($row = mysql_fetch_assoc($request)) { $request2 = db_query(" SELECT posterTime FROM {$db_prefix}messages WHERE ID_BOARD = $row[ID_BOARD]" . ($modSettings['totalMessages'] > 100000 ? " AND ID_MSG >= " . ($modSettings['maxMsgID'] * 0.5) : '') . " ORDER BY ID_MSG DESC LIMIT 10", __FILE__, __LINE__); $board_post_times = array(time()); while ($row2 = mysql_fetch_assoc($request2)) $board_post_times[] = $row2['posterTime']; mysql_free_result($request2); $boards[] = array( 'id' => $row['ID_BOARD'], 'times' => $board_post_times, ); } mysql_free_result($request); $request = db_query(" SELECT ID_TOPIC FROM {$db_prefix}topics ORDER BY numViews + numReplies DESC LIMIT 1425", __FILE__, __LINE__); $topics = array(); while ($row = mysql_fetch_assoc($request)) { $request2 = db_query(" SELECT posterTime FROM {$db_prefix}messages WHERE ID_TOPIC = $row[ID_TOPIC] ORDER BY ID_MSG DESC LIMIT 10", __FILE__, __LINE__); $topic_post_times = array(time()); while ($row2 = mysql_fetch_assoc($request2)) $topic_post_times[] = $row2['posterTime']; mysql_free_result($request2); $topics[] = array( 'id' => $row['ID_TOPIC'], 'times' => $topic_post_times, ); } mysql_free_result($request); $request = db_query(" SELECT ID_MEMBER FROM {$db_prefix}members ORDER BY totalTimeLoggedIn DESC LIMIT 1408", __FILE__, __LINE__); $members = array(); while ($row = mysql_fetch_assoc($request)) { $request2 = db_query(" SELECT posterTime FROM {$db_prefix}messages WHERE ID_MEMBER = $row[ID_MEMBER]" . ($modSettings['totalMessages'] > 100000 ? " AND ID_MSG >= " . ($modSettings['maxMsgID'] * 0.5) : '') . " ORDER BY ID_MSG DESC LIMIT 10", __FILE__, __LINE__); $member_post_times = array(time()); while ($row2 = mysql_fetch_assoc($request2)) $member_post_times[] = $row2['posterTime']; mysql_free_result($request2); $members[] = array( 'id' => $row['ID_MEMBER'], 'times' => $member_post_times, ); } mysql_free_result($request); // First, the forum URL. Highest priority! echo ' ', $scripturl, ' ', posts_max_time($latest_post_times), ' ', posts_to_freq($latest_post_times), ' 1.0 '; // Now the boards! foreach ($boards as $board) { echo ' ', $scripturl, '?board=', $board['id'], '.0 ', posts_max_time($board['times']), ' ', posts_to_freq($board['times']), ' ', posts_to_priority(0.8, $board['times']), ' '; } // Popular topics too... foreach ($topics as $topic) { echo ' ', $scripturl, '?topic=', $topic['id'], '.0 ', posts_max_time($topic['times']), ' ', posts_to_freq($topic['times']), ' ', posts_to_priority(0.7, $board['times']), ' '; } // Most active members? foreach ($members as $member) { echo ' ', $scripturl, '?action=profile;u=', $member['id'], ' ', posts_max_time($member['times']), ' ', posts_to_freq($member['times']), ' ', posts_to_priority(0.5, $board['times']), ' '; } echo ' '; function posts_max_time($post_times) { if (empty($post_times) || count($post_times) == 1) return gmstrftime('%Y-%m-%dT%H:%M:%S+00:00', time() - 3600 * 24 * 10); return gmstrftime('%Y-%m-%dT%H:%M:%S+00:00', max($post_times)); } function posts_to_priority($base, $post_times) { if (empty($post_times) || count($post_times) == 1) return sprintf('%1.1f', $base); $s = (max($post_times) - min($post_times)) / count($post_times); if ($s < 3600 * 24) $mod = 0.1; else $mod = 0; return sprintf('%1.1f', $base + $mod); } function posts_to_freq($post_times) { if (empty($post_times) || count($post_times) == 1) return 'yearly'; $s = (max($post_times) - min($post_times)) / count($post_times); // Changes more often than every hour. if ($s < 3600) return 'always'; elseif ($s < 3600 * 12) return 'hourly'; elseif ($s < 3600 * 24 * 4) return 'daily'; else return 'monthly'; } ?>


Yani verdiğiniz kodlar ==> site.php içerisindeki kodların karman çorban bir haldeki görüntüsü ..

Aşağıda resmini veriyorum

önce wordpad e sonra ordan site.php ye kopyalayın.
So Long

gmturk

zaten hep öyle yapıyorum. ben bir çok modülü manuel olarak gayet başarılı hatasız şekilde kurdum. Fakat buradaki kodlarda birşey var. Bunu ek dosya olarak birisi atabilirmi. içerisindeki değerleri ben kendime göre değiştireyim. Lütfen çalışan bir tanesi ek dosya olarak verilebilirmi.?

İlgilenen arkadaşlara şimdiden teşekkür ederim

Özgür

Quote from: gmturk on October 10, 2008, 09:39:55 PM
zaten hep öyle yapıyorum. ben bir çok modülü manuel olarak gayet başarılı hatasız şekilde kurdum. Fakat buradaki kodlarda birşey var. Bunu ek dosya olarak birisi atabilirmi. içerisindeki değerleri ben kendime göre değiştireyim. Lütfen çalışan bir tanesi ek dosya olarak verilebilirmi.?

İlgilenen arkadaşlara şimdiden teşekkür ederim

http://custom.simplemachines.org/mods/index.php?mod=755 bunu kullanın aynı işi görüyor.
So Long

alpay67

#391
saolun çok güzelmiş bu valla beklemek yok sitemap çıkartmak için

ama çıkarırken sonda bir hata verdi?

</urlset>Veritaban? Hatas?: MySQL server has gone away<br />Dosya: /home/public_html/youcep.org/Sources/Load.php<br />Sat?r: 2017

Pijama

Quote from: onrs on August 26, 2006, 02:13:24 PM
arkadaslar olayı cozdum daha dogrusu en sonunda anladım  :P

en başta 'http://siteadı.com/sitemap.php"  seklinde sayfayı acıyoruz.sonra sitemap olusturlmaya başalıyor ve bittiginde mouseun sağ tuşuna tıklayıp Kaynağı Görüntüle diyoruz.Sonra bu kaynağı farklı kaydet diyip Sitemap.xml şeklinde kaydediyoruz ve sitemize yukluyoruz....

Yani sakın sizde benim gibi şunu yapmayın ;

Sitemap.php yi çalıstırıp orda olusturulan sitemapı kopyala yapıştır tekinigyle başka bi belgeye yapıştırıp onuda siteye yuklemeyin sonra o bahsettigimiz hata karısımıza cıkar!!!

İşte böyleeee....  :)

aha bu adam olayı çözmüş :)
konuda baya baya eski ama canım sıkıldı bir deniyeyim dedim
oldu valla :D

allah tahsilatımızı affetsin bakalım sonuc ne olacak


LIMIT 1000", __FILE__, __LINE__);


bu kısma konu sayısını yazdım 3000 diye
ama 3000 az yaw abaca bu mesaj sayısı olmasın

aha googledeki sonuc

forum/sitemap_1.xml Sitemap   8 dakika  önce  Tamam  3455 url

ben 3000 konu yazdım 3455 url bulmus

Özgür

Konular + Üyeler var bu sitemapte. O yüzden yazdığın değerden fazlası olmuş.
So Long

Pijama

Quote from: Özgür | ЯocKayseri on June 20, 2008, 07:12:01 AM
direkt olarak olarak oluşturduğunuz php dosyasını google sitemap'e ekleyin. xml oluşturmaya gerek yok tanıyor google.



http://img516.imageshack.us/img516/8060/hariqt2.jpg

Peki bunun hikmeti nedir
bendede boyle bir sitemaps var ama benimkini kabul etmiyor


Soul_Eraser

ilk mesajda verilen örnek google index sayısı bende 0 görünüyor sizdede aynımı?

eren

Quote from: Özgür | ЯocKayseri on October 11, 2008, 08:27:35 AM
Quote from: gmturk on October 10, 2008, 09:39:55 PM
zaten hep öyle yapıyorum. ben bir çok modülü manuel olarak gayet başarılı hatasız şekilde kurdum. Fakat buradaki kodlarda birşey var. Bunu ek dosya olarak birisi atabilirmi. içerisindeki değerleri ben kendime göre değiştireyim. Lütfen çalışan bir tanesi ek dosya olarak verilebilirmi.?

İlgilenen arkadaşlara şimdiden teşekkür ederim

http://custom.simplemachines.org/mods/index.php?mod=755 bunu kullanın aynı işi görüyor.

1.1.7 elle kurulum yok mu?

recep34



mollacetiner

Çok sağol kardeş, gerçekten işe yarıyor.

Advertisement: