عرض مشاركة واحدة
  #1  
قديم 14-12-2005, 07:58 AM
الصورة الرمزية VIP
VIP VIP متصل الآن

AdminiStrator

 





VIP كاتب مميزVIP كاتب مميزVIP كاتب مميزVIP كاتب مميز
هاك جديد لمعرفه الستايل المستخدم من قبل العضو في مشاركاته

السلام عليكم اخواني الكرم اليكم هذا الهاك :-



طريقه التركيب:-

افتح ملف includes/functions_showthread.php وابحث عن الاتي :-

كود:
require_once('./includes/functions_bbcodeparse.php');
require_once('./includes/functions_reputation.php');
اضف تحته الكود التالي :-

كود:
// ###################### Start Stylename_from_styleid #######################
function stylename_from_styleid($id)
{
    global $stylechoosercache,$vboptions;
    if($id==0) $id = $vboptions['styleid'];
    $cache = $stylechoosercache;
    
    foreach($cache as $k1=>$v1)
    {
        foreach($v1 as $k2=>$v2)
        {
            foreach($v2 as $k3=>$v3)
            {
                if($v3['styleid']==$id)
                {
                    return array($v3['styleid'],$v3['title']);
                }
            }
        }
    }
    return array('','UNKNOWN');
}
احفظ وارفع الملف .

الان افتح ملف showpost.php وابحث عن الاتي :-

كود:
$postbits = construct_postbit($post);
اضف فوقه الكود التالي :-

كود:
$useid = ($bbuserinfo['userid']==$post['userid']) ? $bbuserinfo['styleid'] : $post['styleid'];
$result = stylename_from_styleid($useid);
$post['styleid'] = $result[0];
$post['styletitle'] = $result[1];
unset($result,$useid);
اجفظ وارفع الملف .

الان افتح ملف showthread.php وابحث عن الكود التالي :-

كود:
$postbits .= construct_postbit($post, $template);

        if (!empty($parsed_postcache['text']) AND !$stopsaveparsed)
        {
            if (!empty($saveparsed))
            {
                $saveparsed .= ',';
اضف فوقه الكود التالي :-

كود:
$useid = ($bbuserinfo['userid']==$post['userid']) ? $bbuserinfo['styleid'] : $post['styleid'];
        $result = stylename_from_styleid($useid);
        $post['styleid'] = $result[0];
        $post['styletitle'] = $result[1];
        unset($result,$useid);
ايضا بنفس الملف ابحث عن :-

كود:
if ($threadedmode == 2) // hybrid display mode
        {
            $postbits .= construct_postbit($post, $template);
        }
        else // threaded display mode
        {
اضف تحته الكود التالي:-

كود:
$useid = ($bbuserinfo['userid']==$post['userid']) ? $bbuserinfo['styleid'] : $post['styleid'];
    $result = stylename_from_styleid($useid);
    $post['styleid'] = $result[0];
    $post['styletitle'] = $result[1];
    unset($result,$useid);
الان افتح تمبلت ال postbit و ال postbit_legcy وابحث عن الكود التالي :-

كود:
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
واضف هذا الكود تحته بالضبط :-

كود:
<div>$vbphrase[style]: <a href="index.php?styleid=$post[styleid]">$post[styletitle]</a></div>
احفظ عملك وارفع الملف وتحياتي لكم .

 

 

توقيع : VIP