بسم الله الرحمن الرحيم..
السلام عليكم ورحمة الله وبركاتة ..
أعتقد بأنه حان الوقت لتجديد mod_rewrite بحيث جعل صفحات الvBulletin على هئية html .
لذلك قررت تزويدكم أيها الأخوة بهذا الشرح بحيث يمكننا جعل منتديات الvBulletin على صفحات html .. هذا الشرح يمكن تطبيقة بنجاح على نسخة vBulletin3.0.7
هذه النسخة من الvBulletin 3.0.7 يوجد فيها الكثير من المميزات ..
المرفق htaccess.txt والموجود داخل ملف html المرفق في هذه المشاركة قم بتحميلة إلى مجلد منتداك . بعد أن تقوم بتغييرة إلى :-
.htaccess
وهناك مرفق xml أيضاً الذي يحتوي على كل التعديلات الخاصة بالاستايل .. ويمكنك التعديل على الاستايل كما تشاء .. حيث ان المرفق يحتوي على الاستايل الافتراضي .. فقط تم تعديل عليه التعديلات اللازمة ليتلائم مع صفحات الhtml التي ستصبح في منتداك ..
ملفات الphp الخاصة بالسكربت الشهير vBulletin من الضروري أن نقوم بالتعديل عليها ..
أخواني الكرام :-
السطر الاول سيكون ما نبحث عنه ..
والسطر الثاني سيكون ما نقوم بإستبدالة ..
فلنبدأ بدون إضاعة المزيد من الوقت ..
forumdisplay.php
search.phpكود PHP:$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
$navbits["forum$forumID.html"] = $forumTitle; // edited by Dani
$announcementidlink = iif(!$vboptions['oneannounce'] , "&announcementid=$announcement[announcementid]");
$announcementidlink = iif(!$vboptions['oneannounce'] , "-$announcement[announcementid]");
$pagenav = construct_page_nav($totalthreads, "forumdisplay.php?$session[sessionurl]f=$forumid", "&sort=$sortfield&order=$sortorder&pp=$perpage&daysprune=$daysprune");
$pagenav = construct_page_nav($totalthreads, "forum$forumid", "-$sortfield-$sortorder-$perpage-$daysprune.html");
showthread.phpكود PHP:$highlightwords = '&highlight=' . urlencode(implode(' ', $display['highlight']));
$highlightwords = '-' . urlencode(implode(' ', $display['highlight']));
$display['forums']["$key"] = "<a href=\"forumdisplay.php?$session[sessionurl]f=$forumid\"><b><u>" . $forumcache["$forumid"]['title'] . '</u></b></a>';
$display['forums']["$key"] = "<a href=\"forum$forumid.html\"><b><u>" . $forumcache["$forumid"]['title'] . '</u></b></a>';
clientscript/vbulletin_thrdpostlist.jsكود PHP:$highlightwords = iif($goto, '&', '&') . 'highlight=' . urlencode($_GET['highlight']);
$highlightwords = '-' . urlencode($_GET['highlight']);
exec_header_redirect("showthread.php?$session[sessionurl_js]p=$getlastpost[postid]$highlightwords#post$getlastpost[postid]");
exec_header_redirect("threadedpost$getlastpost[postid]$highlightwords.html#post$getlastpost[postid]");
exec_header_redirect("showthread.php?$session[sessionurl_js]p=$posts[postid]$highlightwords#post$posts[postid]");
exec_header_redirect("threadedpost$posts[postid]$highlightwords.html#post$posts[postid]");
exec_header_redirect("showthread.php?$session[sessionurl_js]t=$threadinfo[threadid]&goto=lastpost$highlightwords");
exec_header_redirect("lastpostinthread$threadinfo[threadid]$highlightwords.html");
exec_header_redirect("showthread.php?$session[sessionurl_js]t=$thread[pollid]");
exec_header_redirect("thread$thread[pollid].html");
$pagenav = construct_page_nav($totalposts, "showthread.php?$session[sessionurl]t=$threadid", "&pp=$perpage$highlightwords");
$pagenav = construct_page_nav($totalposts, "threadnav$threadid", "-$perpage$highlightwords.html");
$firstunread = 'showthread.php?' . $session['sessionurl'] . 't=' . $threadid . '&goto=newpost';
$firstunread = 'newpostinthread' . $threadid . '.html';
$pagenav = construct_page_nav($numhybrids, "showthread.php?$session[sessionurl]p=$_REQUEST[postid]", "&pp=$perpage$highlightwords");
$pagenav = construct_page_nav($numhybrids, "post$_REQUEST[postid]", "-$perpage$highlightwords.html");
$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
$navbits["forum$forumID.html"] = $forumTitle;
includes/functions_forumdisplay.phpكود PHP:window.location = "showthread.php?" + SESSIONURL + "postid=" + postid + "#poststop";
window.location = "post" + postid + ".html#poststop";
document.write('<a href="showthread.php?postid=' + postid + highlightwords + '#post' + postid + '" id="link' + postid + '"><i>' + morephrase + '</i></a></div>\n');
document.write('<a href="threadedpost' + postid + highlightwords + '.html#post' + postid + '" id="link' + postid + '"><i>' + morephrase + '</i></a></div>\n');
document.write('<a href="showthread.php?postid=' + postid + highlightwords + '#post' + postid + '" onclick="return showPost(' + postid + ')" id="link' + postid + '"' + titlestyle + '>' + title + '</a> ');
document.write('<a href="threadedpost' + postid + highlightwords + '.html#post' + postid + '" onclick="return showPost(' + postid + ')" id="link' + postid + '"' + titlestyle + '>' + title + '</a> ');
includes/functions_online.phpكود PHP:$address = "showthread.php?$session[sessionurl]t=$thread[threadid]";
$address = "threadnav$thread[threadid]";
$address2 = "$thread[highlight]";
$address2 = "-$vboptions[maxposts]$thread[highlight].html";
أيضاً في نفس الملف :-كود PHP:$userinfo['where'] = "<a href=\"showthread.php?$session[sessionurl]t=$threadid\" title=\"$threadpreview\">$threadtitle</a>";
$userinfo['where'] = "<a href=\"thread$threadid.html\" title=\"$threadpreview\">$threadtitle</a>";
$userinfo['where'] = "<a href=\"showthread.php?$session[sessionurl]p=$postid#postid=$postid\" title=\"$threadpreview\">$threadtitle</a>";
$userinfo['where'] = "<a href=\"post$postid.html#post$postid\" title=\"$threadpreview\">$threadtitle</a>";
$userinfo['where'] = "<a href=\"forumdisplay.php?$session[sessionurl]f=$forumid\">$forumtitle</a>";
$userinfo['where'] = "<a href=\"forum$forumid.html\">$forumtitle</a>";
functions_online.php
أضف بعد هذا السطر :-
أضف ما يلي :-كود PHP:$userinfo['values'] = $values;
شكراً لك أخي الكريم على إتباع الشرح .. وتطبيق الشرح في موقعك ..كود PHP:// added by dani for seo hack
if (eregi("thread([0-9]+).html$", $filename, $tmatch))
{
$filename = 'showthread.php';
$values['threadid'] = $tmatch[1];
}
if (eregi("forum([0-9]+).html$", $filename, $fmatch))
{
$filename = 'forumdisplay.php';
$values['forumid'] = $fmatch[1];
}
if (eregi("post([0-9]+).html$", $filename, $pmatch))
{
$filename = 'showthread.php';
$values['postid'] = $pmatch[1];
}
if (eregi("post([0-9]+).html#post([0-9]+)$", $filename, $pmatch))
{
$filename = 'showthread.php';
$values['postid'] = $pmatch[1];
}
// added by dani for seo hack
أتمنى أن تقوم بوضع رابط هذا الموضوع في حال نقل الشرح .. أو طباعته ..
وشكراً للجميع،،
=============
الشرح موجود في أحد المنتديات الأجنبية ..
قمت بتعريب الشرح .. وإضافة بعض الملاحظات..
=============
وخالص المودة،،


،،
رد مع اقتباس
