View Single Post
  #6  
Old 12-14-2008, 12:12 AM
Slugsnack Slugsnack is offline
 
Join Date: Mar 2008
Location: Michigan
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And the code in my template called TEST:
PHP Code:
$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
<
title>$vboptions[bbtitle]</title>
$headinclude
</head>
<
body>
$header

$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat">Title</td>
</
tr>
<
tr>
    <
td class="alt1">Text</td>
</
tr>
</
table>

<!-- /
main -->

$ad_location[ad_TEST_afterforums]

<!-- 
what's going on box -->
<script type="text/javascript">
<!--

setup_memberlegend = function(tobj)
{
    prefix = ''
    suffix = ''

    if (tobj.getAttribute('
ital'))
    {
        prefix += '
<em>'
        suffix += '
</em>'
    }

    if (tobj.getAttribute('
undr'))
    {
        prefix += '
<u>'
        suffix += '
</u>'
    }

    if (tobj.getAttribute('
bold'))
    {
        prefix += '
<b>'
        suffix += '
</b>'
    }

    if (tobj.getAttribute('
line'))
    {
        prefix += '
<s>'
        suffix += '
</s>'
    }

    if (tobj.getAttribute('
clr'))
    {
        prefix += '
<span style="color:' + tobj.getAttribute('clr') + ';">'
        suffix += '
</span>'
    }



    fetch_object('
memberlegend').innerHTML = prefix + tobj.getAttribute('group') + suffix
}

-->
</script>

<div class="tcat_hp">
 <div class="tcat_right">
  <div class="tcat_left">
$vbphrase[whats_going_on]
  </div>
 </div>
</div>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$template_hook[TEST_wgo_pos1]
<if condition="$show['
loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
TEST_activeusers')"><img id="collapseimg_TEST_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_TEST_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php$session[sessionurl_q]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_TEST_activeusers" style="$vbcollapse[collapseobj_TEST_activeusers]">
    <tr>
        <td class="alt2"><a href="online.php$session[sessionurl_q]"><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">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
</tbody>
<!-- end logged-in users -->
<tbody> <tr> <td class="thead" colspan="2"> <a style="float: right;" href="#top" onclick="return toggle_collapse('
TEST_legend')"><img src=$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_TEST_legend].gif alt="" name="collapseimg_TEST_legend" width="16" height="16" border="0" id="collapseimg_TEST_legend"></a> <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">User Legend </a></td> 
        </tr> </tbody> <tbody id="collapseobj_TEST_legend" style=""> <tr> <td class="alt2"><a href="showgroups.php$session[sessionurl_q]" rel="nofollow"><img title="Legend" src="$stylevar[imgdir_misc]/whos_online.gif" alt="Legend" border="0"></a></td> <td class="alt1" width="100%">
        <div style="float:left;"><strong>Legend</strong>:</div>
                <div style="float:left;">&nbsp;</div>
        <div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Founder" bold="y" clr="#b76565" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('
memberlegend').innerHTML = ''">
            <div class="tborder" style="height:8px;width:8px;background:#b76565;"></div>
        </div>
        <div style="float:left;">&nbsp;</div>
        <div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Administrator" bold="y" clr="#e01919" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('
memberlegend').innerHTML = ''">
            <div class="tborder" style="height:8px;width:8px;background:#e01919;"></div>
        </div>
        <div style="float:left;">&nbsp;</div>
        <div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Super Moderator" bold="y" clr="#5b93cd" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('
memberlegend').innerHTML = ''">
            <div class="tborder" style="height:8px;width:8px;background:#5b93cd;"></div>
        </div>
        <div style="float:left;">&nbsp;</div>
        <div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Moderators" bold="y" clr="#5cc653" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('
memberlegend').innerHTML = ''">
            <div class="tborder" style="height:8px;width:8px;background:#5cc653;"></div>
        </div>
        <div style="float:left;">&nbsp;</div>
        <div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="+ Elite Member (Life Time)" bold="y" clr="#000000" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('
memberlegend').innerHTML = ''">
            <div class="tborder" style="height:8px;width:8px;background:#000000;"></div>
        </div>
            <div style="float:left;">&nbsp;</div>
        <div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Donator(Weekly)" bold="y" clr="#fcbe15" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('
memberlegend').innerHTML = ''">
            <div class="tborder" style="height:8px;width:8px;background:#fcbe15;"></div>
        </div>
            <div style="float:left;">&nbsp;</div>
        <div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Premium Member(Monthly)" bold="y" clr="#b1d226" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('
memberlegend').innerHTML = ''">
            <div class="tborder" style="height:8px;width:8px;background:#b1d226;"></div>
        </div>
        <div style="float:left;">&nbsp;</div>
        <div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Reviewed Staff" bold="y" clr="#ca6be3" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('
memberlegend').innerHTML = ''">
            <div class="tborder" style="height:8px;width:8px;background:#ca6be3;"></div>
        </div>
         <div style="float:left;">&nbsp;</div>
        <div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Validating" ital="y" clr="gray" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('
memberlegend').innerHTML = ''">
            <div class="tborder" style="height:8px;width:8px;background:#000000;"></div>
        </div>
        <div style="float:left;">&nbsp;</div>
        <div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Banned" bold="y" clr="#c2956a" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('
memberlegend').innerHTML = ''">
            <div class="tborder" style="height:8px;width:8px;background:#c2956a;"></div>
        </div>
        
        <div style="float:left;width:10px;height:1px;">&nbsp;</div>
        <div style="float:left;" id="memberlegend"></div> </td> </tr> </tbody>
        <!-- End User Legend by Digitalus -->

</if>
$template_hook[TEST_wgo_pos2]
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
TEST_stats')"><img id="collapseimg_TEST_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_TEST_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_TEST_stats" style="$vbcollapse[collapseobj_TEST_stats]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['
activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
$template_hook[TEST_wgo_stats]
        </div>
        </td>
    </tr>
</tbody>
$template_hook[TEST_wgo_pos3]
<if condition="$show['
birthdays']">
<!-- today'
s birthdays -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('TEST_birthdays')"><img id="collapseimg_TEST_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_TEST_birthdays].gif" alt="" border="0" /></a>
            
$vbphrase[todays_birthdays]
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_TEST_birthdays" style="$vbcollapse[collapseobj_TEST_birthdays]">
    <
tr>
        <
td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]border="0" /></a></td>
        <
td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
    </
tr>
</
tbody>
<!-- 
end today's birthdays -->
</if>
$template_hook[TEST_wgo_pos4]
<if condition="$show['
upcomingevents']">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
TEST_events')"><img id="collapseimg_TEST_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_TEST_events].gif" alt="" border="0" /></a>
            <if condition="$show['
todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_TEST_events" style="$vbcollapse[collapseobj_TEST_events]">
    <tr>
        <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>
$template_hook[TEST_wgo_pos5]
</table>
<br />
<!-- end what'
s going on box -->

<!-- 
icons and login code -->
<
table cellpadding="0" cellspacing="2" border="0" width="100%">
<
tr valign="bottom">
    <
td>
        <
table cellpadding="2" cellspacing="0" border="0">
        <
tr>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_contains_new_posts]</td>
        </
tr>
        <
tr>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_contains_no_new_posts]</td>
        </
tr>
        <if 
condition="$vboptions['showlocks']">
        <
tr>
            <
td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]border="0" /></td>
            <
td class="smallfont">&nbsp$vbphrase[forum_is_closed_for_posting]</td>
        </
tr>
        </if>
        </
table>
    </
td>
    <if 
condition="!$show['guest']">
        <!-- 
member logout -->
        <
td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
        <!-- 
end member logout -->
    </if>
</
tr>
</
table>
<!-- / 
icons and login code -->

$footer
</body>
</
html>
</
body>
</
html
This is what I'm seeing, it's progessing and I can see the userlegend and such as I wished, but what I circled, and put in a square(member info) still isn't working!!:



I can't get it working....
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01530 seconds
  • Memory Usage 1,940KB
  • 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