النتائج 1 إلى 4 من 4

الموضوع: شرح تركيب هاك المتواجدون الان واللي تواجدوا اليوم داخل مربعات

  1. #1

    شرح تركيب هاك المتواجدون الان واللي تواجدوا اليوم داخل مربعات



    أضف تمبلت جديد بأسم

    su-latest_posts

    وضع به التالي

    <tr>
    <td><div class="smallfont"><b><a href="showthread.php?$session[sessionurl]p=$thread[postid]#$thread[postid]">$thread[post_title]</a></b><br />$thread[username]</div></td>
    <td><div class="smallfont"><b><a href="showthread.php?$session[sessionurl]t=$thread[threadid]">$thread[thread_title]</a></b><br />$thread[tusername]</div></td>
    <td align="center"><div class="smallfont">$thread[replycount]</div></td>
    <td align="center"><div class="smallfont">$thread[views]</div></td>
    </tr>

    أضف تمبلت جديد بأسم

    su-latest_threads

    وضع به التالي

    <tr>
    <td><div class="smallfont"><b><a href="showthread.php?$session[sessionurl]t=$thread[threadid]">$thread[thread_title]</a></b><br />$thread[username]</div></td>
    <td align="center"><div class="smallfont">$thread[replycount]</div></td>
    <td align="center"><div class="smallfont">$thread[views]</div></td>
    <td><div class="smallfont">$thread[lastpost_date] بواسطة $thread[lastposter] <a href="showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]"><img src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a></div></td>
    </tr>

    أضف تمبلت جديد بأسم

    su-newest_members

    وضع به التالي

    <a href="member.php?$session[sessionurl]u=$user[userid]">$user[username]</a> (تم
    تسجيله بتاريخ : $user[join_date])


    أضف تمبلت جديد بأسم

    su-online_today

    وضع به التالي

    <a href="member.php?u=$user[userid]">{$user[opentag]}{$user[username]}{$user[closetag]}</a>,


    أضف تمبلت جديد بأسم

    su-top_posters

    وضع به التالي

    <b>$user[place].</b> <a href="member.php?$session[sessionurl]u=$user[userid]">$user[username]</a>
    بمعدل $user[posts] مشاركه<br />



    تابع





    __________________
    شبكة هلا كويت
    www.HalaQ8.com

    آيتيات ITYAT مدونة تهتم بتقنية المعلومات ..


  2. #2

    تابع الشرح



    أفتح ملف index.php

    وأبحث عن

    // ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###

    ضع أسفله مباشرة التالي

    // ################################################## ######################
    // # START StatUltra #
    // ################################################## ######################
    $suoptions['top_posters'] = true; // Turn on top posters?
    $suoptions['latest_threads'] = true; // Turn on latest threads?
    $suoptions['latest_posts'] = true; // Turn on latest posts?
    $suoptions['newest_members'] = true; // Turn on newest members?
    $suoptions['online_today'] = true; // Turn on online today?

    $limits['top_posters'] = 5; // Number posters to show
    $limits['latest_threads'] = 5; // Number latest threads to show
    $limits['latest_posts'] = 5; // Number latest posts to show
    $limits['newest_members'] = 5; // Number newest members to show

    $exclusions['userperms'] = true; // Use user permissions when gathering threads/posts?
    $exclusions['posts'] = ''; // Forum ID's to exclude when gathering posts [overrides userperms] (ex: 1,2,3,4)
    $exclusions['threads'] = ''; // Forum ID's to exclude when gathering threads [overrides userperms] (ex: 1,2,3,4)
    $exclusions['posts_only'] = ''; // Posts to come from ONLY these forums [overrides userperms and posts] (ex: 4,9,10)
    $exclusions['threads_only'] = ''; // Threads to come from ONLY these forums [overrides userperms and threads] (ex: 19,51)

    //-------------------------------------------------------------------------
    // Init
    //-------------------------------------------------------------------------
    $su = array('top_posters' => '',
    'latest_posts' => '',
    'latest_threads' => '',
    'newest_members' => '',
    'online_today' => '');

    $sql['post_fid'] = '';
    $sql['post'] = '';
    $sql['thread_fid'] = '';
    $sql['thread'] = '';
    $fids = '';

    // Handle fids if we are to do latest_posts or latest_threads and userperms is true
    if($suoptions['latest_posts'] || $suoptions['latest_threads'])
    {
    if($exclusions['userperms'])
    {
    $forumids = array();


    foreach (array_keys($forumcache) AS $forumid)
    {
    $fp = &$bbuserinfo['forumpermissions']["$forumid"];
    if ($fp & CANVIEW AND $fp & CANVIEWOTHERS)
    {
    $forumids[] = $forumid;
    }
    }


    $fids = implode(',', $forumids);
    unset($forumids, $fp);
    }
    }



    // Handle post exclusions if we are to do latest_posts
    if($suoptions['latest_posts'])
    {
    if($exclusions['posts_only'] != '')
    {
    if(strpos($exclusions['posts_only'], ',') === false)
    $sql['post'] = "AND thread.forumid = {$exclusions['posts_only']}";
    else
    $sql['post'] = "AND thread.forumid IN({$exclusions['posts_only']}";
    }


    elseif($exclusions['posts'] != '')
    {
    if(strpos($exclusions['posts'], ',') === false)
    $sql['post'] = "AND thread.forumid <> {$exclusions['posts']}";

    else
    $sql['post'] = "AND thread.forumid NOT IN({$exclusions['posts']})";
    }


    else
    $sql['post_fid'] = "AND thread.forumid IN($fids)";
    }


    // Handle thread exclusions if we are to do latest_threads
    if($suoptions['latest_threads'])
    {
    if($exclusions['threads_only'] != '')
    {
    if(strpos($exclusions['threads_only'], ',') === false)
    $sql['thread'] = "AND thread.forumid = {$exclusions['threads_only']}";
    else
    $sql['thread'] = "AND thread.forumid IN({$exclusions['threads_only']})";
    }


    elseif($exclusions['threads'] != '')
    {
    if(strpos($exclusions['threads'], ',') === false)
    $sql['thread'] = "AND thread.forumid <> {$exclusions['threads']}";
    else
    $sql['thread'] = "AND thread.forumid NOT IN({$exclusions['threads']})";
    }


    else
    $sql['thread_fid'] = "AND thread.forumid IN($fids)";
    }

    //-------------------------------------------------------------------------
    // Top Posters
    //-------------------------------------------------------------------------
    if($suoptions['top_posters'])
    {
    $q = $DB_site->query("SELECT user.*, usergroup.opentag, usergroup.closetag FROM ".TABLE_PREFIX."user AS user, ".TABLE_PREFIX."usergroup AS usergroup WHERE usergroup.usergroupid = user.usergroupid ORDER BY posts DESC LIMIT {$limits['top_posters']}");

    $num = 0;
    while($user = $DB_site->fetch_array($q))
    {
    $num++;
    $user['place'] = $num;
    eval('$su[\'top_posters\'] .= "' . fetch_template('su-top_posters') . '";');
    }

    $DB_site->free_result($q);
    unset($q, $user);
    }

    //-------------------------------------------------------------------------
    // Latest Posts
    //-------------------------------------------------------------------------
    if($suoptions['latest_posts'])
    {
    $q = $DB_site->query("SELECT
    post.postid, post.title AS post_title, post.dateline AS post_dateline,
    thread.threadid, thread.title AS thread_title, thread.firstpostid, thread.replycount, thread.views, thread.votenum, thread.votetotal, thread.dateline AS thread_dateline, thread.lastpost,
    forum.forumid, forum.title AS forum_title,
    user.userid, user.username,
    tuser.userid AS tuserid, tuser.username AS tusername
    FROM
    ".TABLE_PREFIX."post AS post,
    ".TABLE_PREFIX."thread AS thread,
    ".TABLE_PREFIX."forum AS forum,
    ".TABLE_PREFIX."user AS user,
    ".TABLE_PREFIX."user AS tuser
    LEFT JOIN " . TABLE_PREFIX . "deletionlog AS dlog_t ON (dlog_t.primaryid = thread.threadid AND dlog_t.type = 'thread')
    LEFT JOIN " . TABLE_PREFIX . "deletionlog AS dlog_p ON (dlog_p.primaryid = post.postid AND dlog_p.type = 'post')
    WHERE
    thread.threadid = post.threadid
    AND post.postid != thread.firstpostid
    AND forum.forumid = thread.forumid
    {$sql['post_fid']}
    {$sql['post']}
    AND thread.visible = 1
    AND dlog_t.primaryid IS NULL
    AND dlog_p.primaryid IS NULL
    AND post.visible = 1
    AND thread.open <> 10
    AND user.userid = post.userid
    AND tuser.userid = thread.postuserid
    ORDER BY post.postid DESC LIMIT {$limits['latest_posts']}");

    while($thread = $DB_site->fetch_array($q))
    {
    if($thread['post_title'] == '')
    $thread['post_title'] = 'Untitled';
    $thread['lastpost'] = vbdate($vboptions['dateformat'], $thread['lastpost']);
    $thread['thread_date'] = vbdate($vboptions['dateformat'], $thread['thread_dateline']);
    $thread['post_date'] = vbdate($vboptions['dateformat'], $thread['post_dateline']);
    eval('$su[\'latest_posts\'] .= "' . fetch_template('su-latest_posts') . '";');
    }

    $DB_site->free_result($q);
    unset($q, $thread);
    }

    //-------------------------------------------------------------------------
    // Latest Threads
    //-------------------------------------------------------------------------
    if($suoptions['latest_threads'])
    {
    $q = $DB_site->query("SELECT
    thread.threadid, thread.title AS thread_title, thread.replycount, thread.views, thread.votenum, thread.votetotal, thread.lastpost, thread.dateline, thread.lastposter,
    forum.forumid, forum.title AS forum_title,
    user.userid, user.username
    FROM
    ".TABLE_PREFIX."thread AS thread,
    ".TABLE_PREFIX."forum AS forum,
    ".TABLE_PREFIX."user AS user
    LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON (deletionlog.primaryid = thread.threadid AND deletionlog.type = 'thread')
    WHERE
    forum.forumid = thread.forumid
    AND user.userid = thread.postuserid
    {$sql['thread_fid']}
    {$sql['thread']}
    AND thread.visible = 1
    AND open <> 10
    AND deletionlog.primaryid IS NULL
    ORDER BY thread.dateline DESC LIMIT {$limits['latest_threads']}");

    while($thread = $DB_site->fetch_array($q))
    {
    $thread['lastpost_date'] = vbdate($vboptions['dateformat'], $thread['lastpost']);
    $thread['thread_date'] = vbdate($vboptions['dateformat'], $thread['dateline']);
    eval('$su[\'latest_threads\'] .= "' . fetch_template('su-latest_threads') . '";');
    }

    $DB_site->free_result($q);
    unset($q, $thread);
    }

    //-------------------------------------------------------------------------
    // Newest Members
    //-------------------------------------------------------------------------
    if($suoptions['newest_members'])
    {
    $q = $DB_site->query("SELECT * FROM ".TABLE_PREFIX."user ORDER BY userid DESC LIMIT {$limits['newest_members']}");

    while($user = $DB_site->fetch_array($q))
    {
    $user['join_date'] = vbdate($vboptions['dateformat'], $user['joindate']);
    eval('$su[\'newest_members\'] .= "' . fetch_template('su-newest_members') . '";');
    }

    $DB_site->free_result($q);
    unset($q, $user);
    }

    //-------------------------------------------------------------------------
    // Users Online Today
    //-------------------------------------------------------------------------
    if($suoptions['online_today'])
    {
    $time = mktime(0, 0, 0);

    $q = $DB_site->query("SELECT user.*, usergroup.opentag, usergroup.closetag FROM ".TABLE_PREFIX."user AS user, ".TABLE_PREFIX."usergroup AS usergroup WHERE user.lastactivity >= {$time} AND usergroup.usergroupid = user.usergroupid");

    $count = 0;
    while($user = $DB_site->fetch_array($q))
    {
    $count++;
    eval('$su[\'online_today\'] .= "' . fetch_template('su-online_today') . '";');
    }

    $su['online_today_total'] = $count;

    $DB_site->free_result($q);
    unset($time, $q, $user);
    }

    //-------------------------------------------------------------------------
    // Finish up
    //-------------------------------------------------------------------------
    /// Make sure there aren't any variables that clutter up
    unset($limits, $exclusions, $sql, $forumids);
    // ################################################## ######################
    // # END StatUltra #
    // ################################################## ######################
    أفتح تمبلت FORUMHOME





    __________________
    شبكة هلا كويت
    www.HalaQ8.com

    آيتيات ITYAT مدونة تهتم بتقنية المعلومات ..

  3. #3


    وأبحث عن

    <!-- end logged-in users -->
    </if>

    أضف تحته التالي

    <!--*********************************************-->

    <if condition="$suoptions['online_today']">
    <!-- ONLINE TODAY STARTS -->
    <tbody>
    <tr>
    <td class="thead" colspan="2">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('online_today')"><img id="collapseimg_online_today" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
    عدد الاعضاء الذي تواجدوا اليوم&nbsp; ($su[online_today_total])
    </td>
    </tr>
    </tbody>

    <tbody id="collapseobj_online_today">
    <tr>
    <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="" border="0" /></td>
    <td class="alt1" width="100%"><div class="smallfont">$su[online_today]</div></td>
    </tr>
    </tbody>
    <!-- ONLINE TODAY ENDS -->
    </if>

    <if condition="$suoptions['latest_threads']">
    <!-- LATEST THREADS STARTS -->
    <tbody>
    <tr>
    <td class="thead" colspan="2">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latest_threads')"><img id="collapseimg_latest_threads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
    آخر 5 مشاركات
    </td>
    </tr>
    </tbody>

    <tbody id="collapseobj_latest_threads">
    <tr>
    <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="" border="0" /></td>
    <td class="alt1" width="100%">
    <table cellspacing="0" cellpadding="4" width="100%">
    <tr>
    <td><div class="smallfont"><b>الموضوع </b></div></td>
    <td width="70" align="center"><div class="smallfont"><b>
    المشاركات</b></div></td>
    <td width="70" align="center"><div class="smallfont"><b>
    المشاهدات</b></div></td>
    <td width="180"><div class="smallfont"><b>آخر مشاركه </b></div></td>
    </tr>
    $su[latest_threads]
    </table>
    </td>
    </tr>
    </tbody>
    <!-- LATEST THREADS ENDS -->
    </if>

    <if condition="$suoptions['latest_posts']">
    <!-- LATEST POSTS STARTS -->
    <tbody>
    <tr>
    <td class="thead" colspan="2">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latest_posts')"><img id="collapseimg_latest_posts" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
    Latest Posts
    </td>
    </tr>
    </tbody>

    <tbody id="collapseobj_latest_posts">
    <tr>
    <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="" border="0" /></td>
    <td class="alt1" width="100%">
    <table cellspacing="0" cellpadding="4" width="100%">
    <tr>
    <td><div class="smallfont"><b>أخر موضوع </b></div></td>
    <td><div class="smallfont"><b>الموضوع</b></div></td>
    <td width="70" align="center"><div class="smallfont"><b>
    المشاركات </b></div></td>
    <td width="70" align="center"><div class="smallfont"><b>
    المشاهدات</b></div></td>
    </tr>
    $su[latest_posts]
    </table>
    </td>
    </tr>
    </tbody>
    <!-- LATEST POSTS ENDS -->
    </if>

    <if condition="$suoptions['newest_members']">
    <!-- NEWEST MEMBERS STARTS -->
    <tbody>
    <tr>
    <td class="thead" colspan="2">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newest_members')"><img id="collapseimg_newest_members" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
    آخر عضو تم تسجيله <div class="smallfont">$su[newest_members]</a></td>
    </tr>
    </tbody>
    <!-- NEWEST MEMBERS ENDS -->
    </if>

    <if condition="$suoptions['top_posters']">
    <!-- TOP POSTERS STARTS -->
    <tbody>
    <tr>
    <td class="thead" colspan="2">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('top_posters')"><img id="collapseimg_top_posters" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>أفضل
    عضو مشارك
    </td>
    </tr>
    </tbody>

    <tbody id="collapseobj_top_posters">
    <tr>
    <td class="alt2"> </td>
    <td class="alt1" width="100%">$su[top_posters]</td>
    </tr>
    </tbody>
    <!-- TOP POSTERS ENDS -->
    </if>

    </div>

    <!--*********************************************-->


    أنتهى

    www.3aloosh.com/vb





    __________________
    شبكة هلا كويت
    www.HalaQ8.com

    آيتيات ITYAT مدونة تهتم بتقنية المعلومات ..

  4. #4
    عضو فعال جدا
    تاريخ التسجيل
    Oct 2003
    المشاركات
    2,775


    اشكرك هاك رااائع و جميل










ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض