الإدارة | |
| | | |
الدولة : جــ الرخاء والشده ـــده
| | | | | | |
الدولة : جــ الرخاء والشده ـــده
| | | | | | | | |
المؤهل الدراسي : طالب كلية الهندسة قسم إتصالات | | | | | | |
| المنتدى :
تطوير المنتديات هاك يوهم الزائر انه مقصود +++
+++
سلااااااااااااااااااااااااااااااااااااام
أسعدالله أوقاتكم بالخير والمسرات أعضاء ومشرفين لايف نت ~~~~~~~~~~~~~
تم التعريب بواسطه
~~~~~~~~~~~~~
نابليـــون
~~~~~~~~~~~~~ الملفات التي سيتم التعديل فيها
التعديلات: --includes/functions.php
--includes/functions_newpost.php
--archive/index.php (اختياري)
--archive/global.php (اختياري) زمن التركيب: 15 دقيقه
افتح ملف : includes/functions.php
ابحث عن : | كود | function process_replacement_vars($new****, $sendheader = 1)
{
// parses replacement vars
global $DB_site, $vboptions, $style, $stylevar, $newpmmsg, $_SERVER, $debug;
static $replacementvars;
if (connection_status())
{
exit;
}
// do vBulletin 3 replacement variables
if (!empty($style['replacements']))
{
if (!isset($replacementvars))
{
$replacementvars = unserialize($style['replacements']);
}
// this is WAY too slow!
//$new**** = strtr($new****, $replacementvars);
// using str_replace() has case-sensitivity issues...
//$new**** = str_replace(array_keys($replacementvars), $replacementvars, $new****);
// this is slower than str_replace() but is case-insensitive, so we'll use it.
$new**** = preg_replace(array_keys($replacementvars), $replacementvars, $new****);
}
return $new****;
} | استبدلها الى: | كود | function process_replacement_vars($new****, $sendheader = 1)
{
// parses replacement vars
global $DB_site, $vboptions, $style, $stylevar, $newpmmsg, $_SERVER, $debug;
static $replacementvars;
if (connection_status())
{
exit;
}
// do vBulletin 3 replacement variables
if (!isset($replacementvars))
{
$replacementvars = unserialize($style['replacements']);
}
global $bbuserinfo;
$replacementvars['/\[you\]/i'] = $bbuserinfo['username'];
// this is WAY too slow!
//$new**** = strtr($new****, $replacementvars);
// using str_replace() has case-sensitivity issues...
//$new**** = str_replace(array_keys($replacementvars), $replacementvars, $new****);
// this is slower than str_replace() but is case-insensitive, so we'll use it.
$new**** = preg_replace(array_keys($replacementvars), $replacementvars, $new****);
return $new****;
} | ننتقل الى
includes/functions_newpost.php
ابحث عن: | كود | $touser['********id'] = iif($touser['********id'] == 0, $vboptions['********id'], $touser['********id']); |
بعده مباشرة اضف: | كود |
$temp**** = $page****;
$page**** = preg_replace('/\[you\]/i', $touser['username'], $page****);
$threadinfo['title'] = preg_replace('/\[you\]/i', $touser['username'], $threadinfo['title']);
$foruminfo['title'] = preg_replace('/\[you\]/i', $touser['username'], $threadinfo['title']); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ايضا في نفس الملف ابحث عن:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | كود | vbmail($touser['email'], $subject, $message); | ثم اضف بعد ذلك: | كود | $page**** = $temp****;
$threadinfo['title'] = $temptitle; | ~~~~~~~~~~
ايضا ابحث عن:
~~~~~~~~~~ | كود | $threadinfo['title'] = unhtmlspecialchars($threadinfo['title']); | ثم اضف بعده مباشرة: | كود | $temptitle = $threadinfo['title']; | انتهى العمل في هذا الملف
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
في archive/index.php
ابحث عن: | كود | echo print_archive_navigation($foruminfo); | اضف فوقها: | كود | $foruminfo['title'] = preg_replace('/\[you\]/i', $bbuserinfo['username'], $foruminfo['title']); | ايضا ابحث عن: | كود | echo "\t<li><a href=\"t-$thread[threadid]\" d=\"$thread[lastpost]\">$thread[title]</a></li>\n"; | فوقها مباشرة اضف: | كود | $thread['title'] = preg_replace('/\[you\]/i', $bbuserinfo['username'], $thread['title']); | وابحث عن | كود | echo print_archive_navigation($foruminfo, $threadinfo); |
فوقها اضف: | كود | $threadinfo['title'] = preg_replace('/\[you\]/i', $bbuserinfo['username'], $threadinfo['title']); | وابحث عن: | كود | $post['page****'] = strip_bbcode($post['page****']); | بعده مباشرة اضف: | كود | $post['page****'] = preg_replace('/\[you\]/i', $bbuserinfo['username'], $post['page****']); | انتهى العمل في هذا الملف
في archive/global.php
ابحث عن: | كود | global $vboptions, $forumcache; |
استبدلها بــ: | كود | global $vboptions, $forumcache, $bbuserinfo; |
وابحث عن: | كود |
echo "$indent<li><a href=\"$forum[link]\">$forum[title]</a></li>\n"; |
وفوقها اضف: | كود | $forum['title'] = preg_replace('/\[you\]/i', $bbuserinfo['username'], $forum['title']); | وابحث عن: | كود | echo "$indent<li><a href=\"f-$forumid\">$forum[title]</a></li>\n"; | وفوقها اضف: | كود | $forum['title'] = preg_replace('/\[you\]/i', $bbuserinfo['username'], $forum['title']); | وابحث عن: | كود | echo "$indent<li>$forum[title]</li>\n"; | وفوقها اضف: | كود | $forum['title'] = preg_replace('/\[you\]/i', $bbuserinfo['username'], $forum['title']); | وابحث عن: | كود | $navarray[] = $forumcache["$forumid"]['title']; | وفوقها اضف: | كود | $forumcache["$forumid"]['title'] = preg_replace('/\[you\]/i', $bbuserinfo['username'], $forumcache["$forumid"]['title']); | وابحث عن | كود | $navarray[] = "<a href=\"f-$forumid\">" . $forumcache["$forumid"]['title'] . "</a>"; |
وفوقها اضف: | كود | $forumcache["$forumid"]['title'] = preg_replace('/\[you\]/i', $bbuserinfo['username'], $forumcache["$forumid"]['title']); | وابحث عن | كود | $navarray[] = $threadinfo['title']; | وفوقها اضف | كود | $threadinfo['title'] = preg_replace('/\[you\]/i', $bbuserinfo['username'], $threadinfo['title']); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
انتهـــــى ! جميــــع الحقوق محفوظه لنابليـــــــــون
أرجوا أن تتم الإستفاااده من الهاك
تحياااااااااااااااااااااااااااااااااااتي
|