[مشكلة] في ال rss

sama-ad

عضو جديد
26 أغسطس 2011
9
0
0
السلام عليكم

شخبااركم عساكم مرتاحين عندي مشكلة

والمشكلة بغيت اخلي روابط rss مالي مال التغذية اخليهم بصيغة html لان حتى منهم روابط الاقسام تطلع لي بصيغة php مثلا هذا رابط قسم من الاقسام مالي http://www.sama-ad.com/vb/f72.html بصيغة هتمل

اما من هني
http://www.sama-ad.com/vb/cv_rss_feeds.php تكون روابط الاقسام php


ومشكووووووورين يا اهل الخير عالمساعدة ادري انكم ذيابة وبتساعدوني
 

عبد الله الحربي

:: متميز :: , بقسم المشاكل والحلول
10 مارس 2009
935
6
0
السعودية -مهبط الوحي
وعليكم السلام ورحمة الله وبركاته
اتفضل ياغالي
السلام عليكم اخواني الكرام تقبل الله منا و منكم صالح الاعمال الموضوع عبارة عن شرح تحويل الروابط من php الى html

اعمل ملف جديد تحت اسم : Htaccess.
و اذا كان موجود عدل عليه
وضع فيه الكود التالي

PHP:
$ search.php?do=getdaily [l]
rewriterule ^getdaily([0-9]+).html$ search.php?do=getdaily&f=$1 [l]
rewriterule ^unanswered.html$ search.php?do=process&replyless=1&replylimit=0&dontcache=1     [l]
rewriterule ^unanswered([0-9]+).html$ search.php?do=process&replyless=1&replylimit=0&dontcache=1&forumchoice=$1&childforums=1 [l]
rewriterule ^forum([0-9]+).html$        forumdisplay.php?f=$1         [l]
rewriterule ^forum([0-9]+)-([0-9]+)-([a-z]+)-(.*)-([0-9]+)-(.*).html$ forumdisplay.php?f=$1&page=$2&sort=$3&order=$4&pp=$5&daysprune=$6 [l]
rewriterule ^forum([0-9]+)-(.*)-([a-z]+)-([a-z]+).html$    forumdisplay.php?f=$1&daysprune=$2&order=$3&sort=$4     [l]
rewriterule ^announcement([0-9]+).html$     announcement.php?f=$1     [l]
rewriterule ^announcement([0-9]+)-([0-9]+).html$    announcement.php?f=$1&announcementid=$2 [l]
rewriterule ^thread([0-9]+).html$     showthread.php?t=$1     [l]
rewriterule ^thread([0-9]+)-([0-9]+).html$    showthread.php?t=$1&page=$2     [l]
rewriterule ^getnew.html$ search.php?do=getnew [l]
rewriterule ^getnew([0-9]+).html$ search.php?do=getnew&f=$1 [l]
rewriterule ^printthread([0-9]+).html$    printthread.php?t=$1     [l]
rewriterule ^sendthread([0-9]+).html$    sendmessage.php?do=sendtofriend&t=$1 [l]
rewriterule ^referthread([0-9]+)-([0-9]+).html$ showthread.php?t=$1&referrerid=$2    [l]
rewriterule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [l]
rewriterule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [l]
rewriterule ^nextnewesttothread([0-9]+).html$    showthread.php?t=$1&goto=nextnewest    [l]
rewriterule ^nextoldesttothread([0-9]+).html$    showthread.php?t=$1&goto=nextoldest    [l]
rewriterule ^post([0-9]+).html$     showthread.php?p=$1     [l]
rewriterule ^post([0-9]+)-([0-9]+).html$    showpost.php?p=$1&postcount=$2    [l]
rewriterule ^post([0-9]+)-([0-9]+)-([0-9]+).html$ showthread.php?p=$1&page=$2&pp=$3    [l]
rewriterule ^thread([0-9]+)-([a-z]+).html$ showthread.php?mode=$2&t=$1    [l]
rewriterule ^post([0-9]+)-([a-z]+).html$ showthread.php?p=$1&mode=$2    [l]
داخل مجلد includes ابحث عن ملف إسمه functions.php
وابحث بداخلة عن :-
PHP:
print_output($vartext, $sendheader = 1)
{
global $pagestarttime, $query_count, $querytime, $db_site, $bbuserinfo;
global $vbphrase, $vboptions, $stylevar, $_request;
اضف اسفله مباشرة
PHP:
//www.zag-eng.com+www.cr-house.com
global $session;

$search_array = array(
'#<a ([^>]*)href' . Preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . Preg_quote("&page=") . '([0-9]+)' . Preg_quote("&sort=") . '([a-z]*)' . Preg_quote("&order="). '([a-z]*)' . Preg_quote("&pp=") . '([0-9]*)' . Preg_quote("&daysprune="). '([^"]*)"#',
'#<a ([^>]*)href' . Preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . Preg_quote("&daysprune=") . '([^"]*)' . Preg_quote("&order=") . '([a-z]*)' . Preg_quote("&sort=") . '([a-z]*)' . Preg_quote("&pp=") . '([0-9]*)' . Preg_quote("&page=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . Preg_quote("&daysprune=") . '([^"^&]*)' . Preg_quote("&order=") . '([a-z]*)' . Preg_quote("&sort=") . '([a-z]*)"#',
'#<a ([^>]*)href' . Preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . Preg_quote("&daysprune="). '([^"^&]*)"#',
'#<a ([^>]*)href' . Preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . Preg_quote("&page=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)' . Preg_quote("&page=") . '([0-9]*)' . Preg_quote("&pp=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)' . Preg_quote("&page=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showthread.php?$session[sessionurl]goto=lastpost&t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showthread.php?$session[sessionurl]goto=newpost&t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"printthread.php?$session[sessionurl]t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"sendmessage.php?$session[sessionurl]do=sendtofriend&t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showthread.php?$session[sessionurl]t=") . '([0-9]+)' . Preg_quote("&goto=next"). '([a-z]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showthread.php?$session[sessionurl]p=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showthread.php?$session[sessionurl]p=") . '([0-9]+)' . Preg_quote("&page=") . '([0-9]+)' . Preg_quote("&pp=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showpost.php?$session[sessionurl]p=") . '([0-9]+)' . Preg_quote("&postcount=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showthread.php?$session[sessionurl]mode=") . '([a-z]+)' . Preg_quote("&t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"showthread.php?$session[sessionurl]p=") . '([0-9]+)' . Preg_quote("&mode=") . '([a-z]+)\##',

'#<a ([^>]*)href' . Preg_quote("=\"announcement.php?$session[sessionurl]f=") . '([0-9]+)' . Preg_quote("&announcementid=") . '([0-9]+)"#',
'#<a ([^>]*)href' . Preg_quote("=\"announcement.php?$session[sessionurl]f=") . '([0-9]+)"#',

// sanitizing
'#<a ([^>]*)href

اذا اصابت فمن الله و ان اخطأت فمني و من الشيطان تقبل الله منا و منكم صالح الاعمال :shiny01:
www.zag-eng.com