View Single Post
  #1  
Old 12-13-2004, 12:48 PM
chet chet is offline
 
Join Date: Feb 2004
Location: Nottingham (UK)
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default cmps who was on line....

Have post over at vbadvanced to and hoping somone will pick it up at one of the sites

If you take a look at my vbindex portal you will see at the bottom in the centre block "what's going on", some one over here modified my template to incorporate it from the forums home page, I was wondering if someone could look at the template and extract the "what's going on" and turn it into a module for cmps, may come in handy for others too

Thanks

Chet

PHP Code:
$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="Expires" content="-1" />
    <
meta http-equiv="Cache-Control" content="no-cache" />
    <!-- 
end no cache headers -->
    <
title>$vboptions[bbtitle] - $vbphrase[powered_by_vbindex]</title>
    
$headinclude
</head>
<
body>
$home[header]
$home[navbar]

<
table cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="$stylevar[tablewidth]">
    <
tr>
    <if 
condition="($vbindex['options'] & VBI_LEFT_COL) OR ($vbindex['options'] & VBI_BOTH_COLS)">
        
$home[leftside]
    </if>
        <!-- 
start main col -->
        <
td style="vertical-align:top">
            <!-- 
welcome box -->
            <
table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%" style="text-align: center">
            <
tr>
                <
td>
                <
table cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%">
                <
tr>
                    <
td class="tcat" colspan="6" style="text-align: center; vertical-align: middle">
                        <
strong>$vbphrase[vbi_welcome]</strong>
                    </
td>
                </
tr>
                <
tr>
                    <
td class="alt2" style="text-align: center; vertical-align: middle" width="100">
                        <if 
condition="$showavatar">
                            <
img src="$avatarurlalt="$vbphrase[your_avatar]title="$vbphrase[your_avatar]border="0" />
                        </if>
                    </
td>
                    <
td class="alt1" style="text-align: center">
                    <
div class="smallfont">
                    <if 
condition="$showmemberwelcome">
                        
$vbphrase[welcome_back$bbuserinfo[musername]!<br />
                        <if 
condition="$vbindex['options'] & VBI_SHOWNEWPOSTS">
                            <
br />$vbphrase[new_and_updated_threads]: <strong>$home[newthreads]</strong> | $vbphrase[new_posts]: <strong>$home[newposts]</strong>
                            <if 
condition="$vbindex['options'] & VBI_SUBNEWPOSTS">
                                <
br />$vbphrase[updated_subscribed_threads]: <strong>$home[subscribedthreads]</strong>
                            </if>
                        </if>
                        <
br />
                        <if 
condition="$permissions['forumpermissions'] & CANSEARCH">
                            <
a href="$vboptions[bburl]/search$ext?$session[sessionurl]do=getnew"><strong>$vbphrase[view_new_posts]</strong></a> | <a href="$vboptions[bburl]/search$ext?$session[sessionurl]do=getdaily"><strong>$vbphrase[todays_posts]</strong></a>
                        </if>
                    <else />
                        
$vbphrase[vbi_welcome] <strong>$vbphrase[guest]</strong>!<br />$home[welcomemessage]
                    </if>
                    </
div>
                    </
td>
                    <
td class="alt2" style="text-align: center; vertical-align: middle" width="100">
                        <
div class="smallfont">$vbphrase[members]: <strong>$home[numbermembers]</strong><br /><!--<br />Threads: <strong>$home[totalthreads]</strong><br />Posts: <strong>$home[totalposts]</strong><br />--><br /><a href="$vboptions[bburl]/showgroups$ext?$session[sessionurl]"><strong>$vbphrase[forum_leaders]</strong></a></div></td>
                </
tr>                
                </
table>
            </
td>
        </
tr>
    </
table>
    <
br />
    <!-- /
welcome box -->
    
$home[news]
    <if 
condition="($vbindex['options'] & VBI_SHOWCENTERTHREADS) AND !empty($centerthreadbits)">
        <
table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%">
            <
tr>
                <
td>
                    <
table cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%">
                        <
thead>
                        <
tr>
                            <
td class="tcat" colspan="5">
                                <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('vbindex_cthreads')"><img id="collapseimg_vbindex_cthreads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_vbindex_cthreads].gif" alt="" border="0" /></a>
                                <
strong>$vbphrase[latest_threads]</strong>
                            </
td>                            
                        </
tr>
                        </
thead>
                        <
tbody id="collapseobj_vbindex_cthreads" style="$vbcollapse[collapseobj_vbindex_cthreads]">
                        <
tr>
                            <
td class="thead" style="text-align: center; vertical-align: middle" width="20">
                                &
nbsp;
                            </
td>
                            <
td class="thead" style="text-align: center; vertical-align: middle">
                                
$vbphrase[thread] / $vbphrase[thread_starter]
                            </
td>
                            <
td class="thead" style="text-align: center; vertical-align: middle">
                                
$vbphrase[last_post]
                            </
td>    
                            <
td class="thead" style="text-align: center; vertical-align: middle">
                                
$vbphrase[replies]
                            </
td>    
                            <
td class="thead" style="text-align: center; vertical-align: middle">
                                
$vbphrase[views]
                            </
td>                                
                        </
tr>                        
                        
$centerthreadbits
                        
</tbody>
                    </
table>
                </
td>
            </
tr>
        </
table>
    <
br />
    </if>
    <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
    <
thead>
        <
tr>
            <
td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
        </
tr>
    </
thead>    
    <!-- 
logged-in users -->
    <
tbody>
        <
tr>
            <
td class="thead" colspan="2">
                <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
                <
a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: <strong>$home[onlinemembertotal]</strong$vbphrase[members] | <b>$home[onlineguesttotal]</b$vbphrase[guests]
            </
td>
        </
tr>
    </
tbody>
    <
tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
        <
tr>
            <
td class="alt2" rowspan="2" valign="middle"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]border="0" /></a></td>
            <
td class="alt1" width="100%">
                <
div class="smallfont">
                    
$home[onlineusers]
                </
div>
            </
td>
        </
tr>
        <if 
condition="$show['last24']">
        <
tr>
            <
td class="alt2">
                <
div class="smallfont">
                    <
phrase 1="$home[last24count]">$vbphrase[users_online_today]</phrase>
                </
div>
                <if 
condition="$show['last24user']">
                    <
div class="smallfont">
                        
$home[last24]
                    </
div>
                </if>
            </
td>
        </
tr>
        </if>
    </
tbody>
    <!-- / 
logged-in users -->
    </
table>
    </
td>
    <!-- 
end main col -->
    <if 
condition="($vbindex['options'] & VBI_RIGHT_COL) OR ($vbindex['options'] & VBI_BOTH_COLS)">
        
$home[rightside]
    </if>
    </
tr>
</
table>
$home[footer]
</
body>
</
html
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01422 seconds
  • Memory Usage 1,972KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete