vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Missing a tag - need help (https://vborg.vbsupport.ru/showthread.php?t=111684)

melodyt 03-29-2006 11:31 PM

Missing a tag - need help
 
1 Attachment(s)
I am missing a tag or have an extra one somewhere. Can you help me figure it out?


HTML Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
</head>
<body>
$header
$navbar

<if condition="$userinfo[ushop_profilemidi]">
        <embed allowscriptaccess="never" src="$userinfo[ushop_profilemidi]" hidden="true" autostart="true"></embed>
</if>

<!-- main info - avatar, profilepic etc. -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
</tr>
<tr>
        <td class="alt2">
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                        <td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" width="100%" colspan="2">                       
                                <if condition="$userinfo['rank'] OR $userinfo['reputationdisplay']">
                                        <div style="float:$stylevar[right]; padding:4px">
                                                <if condition="$userinfo['rank']"><div align="center">$userinfo[rank]</div></if>
                                                <if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if>
                                        </div>
                                </if>                       
                                <div class="bigusername">$userinfo[musername] $userinfo[onlinestatus]</div>
                                <if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
                        </td>
                        <if condition="$show['profilepic']">
                        <td valign="top" align="$stylevar[right]" rowspan="2">
                                <img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
                        </td>
                        </if>
                </tr>
                <tr valign="top">
                        <if condition="$show['avatar']">
                                <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
                        <else />
                                <td>&nbsp;</td>
                        </if>
                        <td class="smallfont" valign="bottom" align="$stylevar[right]">

<!-- DONATIONS -->
                        <if condition="$userinfo['donor'] == '1'"><if condition="$userinfo['showdonor'] == '1'"><a href="$vboptions[bburl]/donate.php"><img src="$stylevar[imgdir_button]/donate_donor.gif" border="0"></a></if></if>
<!-- END DONATIONS -->

                                <if condition="$show['lastactivity']">
                                        <div>$vbphrase[last_activity]: $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</div>
                                </if>
                                <if condition="$show['currentlocation']">
                                        <div>$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]&nbsp;</div>
                                </if>
                        </td>
                </tr>
                </table>
        </td>
</tr>
</table>
<!-- / main info - avatar, profilepic etc. -->

<!-- button row -->
<if condition="$show['profilelinks']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
        <if condition="$userinfo['showvcard']">
                <td class="vbmenu_control"><a href="member.php?$session[sessionurl]do=vcard&amp;u=$userinfo[userid]" rel="nofollow">$vbphrase[download_vcard]</a></td>
        </if>
        <if condition="$show['member']">
        <td class="vbmenu_control">
                <if condition="$show['addbuddylist']">
                <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
                <else />
                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a>
                </if>
        </td>
        <td class="vbmenu_control">
                <if condition="$show['addignorelist']">
                <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
                <else />
                <a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a>
                </if>
        </td>
        </if>
        <if condition="can_moderate()">
                <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td>
        </if>
</tr>
</table>
</if>
<!-- / button row -->

<br />

<if condition="$userinfo[petz]">
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center">
  <tr>
    <td>
        <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
            <tr align="center">
              <td class="tcat">P3tz</td>
            </tr>
            <tr align="center">
              <td class="alt1">$userinfo[petz]</td>
        </table>
    </td>
  </tr>
</table>
<br /><br />
</if>
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center">
  <tr>
    <td>
        <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<thead>
            <tr align="center">
              <td class="tcat" colspan="5"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('inventory')"><img id="collapseimg_inventory" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_inventory}.gif" alt="" border="0" /></a>My Itemz Inventory</td>
            </tr>
</thead>
<tbody id="collapseobj_inventory" style="{$collapseobj_inventory}">
            <tr align="center">
              <td class="thead" width="2%">Item</td>
              <td class="thead" width="15%">Name</td>
              <td class="thead" width="*">Description</td>

              <td class="thead" width="15%">Effect</td>
              <td class="thead" width="2%">Steal</td>
            </tr>
              $petz_inventory_bit
</tbody>
<tfoot>
            <tr align="center">
              <td class="thead" colspan="5" align="left">
                <span style="float:right">Total Items: $totalitems</span>
              </td>
            </tr>
</tfoot>
        </table>
    </td>
  </tr>
</table>
                               
<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
        <td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" width="50%">$vbphrase[forum_info]</td>
        <td class="tcat" width="50%">$vbphrase[contact_info]</td>
</tr>
<tr valign="top">
  <table>
  <tr>

  <div class="fieldset">

        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        $vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
                                </div>
                        </div>
                       
                        <fieldset class="fieldset">
                                <legend>$vbphrase[posts]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                $vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
                                        </td>
                                </tr>
                                <if condition="$vboptions['profilelastpost']">
                                <tr>
                                        <td>
                                                        $vbphrase[last_post]:<br />
                                                        <a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br />
                                                        $userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span>
                                        </td>
                                </tr>
                                </if>
                                <tr>
                                        <td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
                                </tr>
                                <tr>
                                        <td><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$userinfo[urlusername]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
                                </tr>
                                </table>
                        </fieldset>
                       
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        $vbphrase[vbshout_shouts]: <strong>$totalshouts</strong>
                                </div>
                        <if condition="$show['ucash_memberinfo'] == true">
                        <fieldset class="fieldset">
                        <legend>$vbphrase[ucs_points]</legend>
                                <div class="fieldset">
                                        <div style="padding:$stylevar[formspacer]px">
                                                <if condition="$vbulletin->userinfo['usergroupid'] == 6"><a href="ushop.php?do=a&shortname=admindonate&userid=$userinfo[userid]" target="_blank">$vbphrase[ucs_points] on hand</a><else />$vbphrase[ucs_points] on hand</if>: <strong>$userinfo[points]</strong><br />
                                                $vbphrase[ucs_points] in the bank: <strong>$userinfo[bankamount_display]</strong><br />
                                                <a href="ushop.php?do=a&shortname=donate&userid=$userinfo[userid]" target="_blank">Donate</a><br />
                                                <a href="ushop.php?do=userhistory&u=$userinfo[userid]">User's Purcahse History</a>
                                        </div>
                                </div>
                        </fieldset>
                        <if condition="$userinfo['ushop_profilemidi']">
                        <fieldset class="fieldset">
                                <legend>Midi</legend>
                                        <div class="fieldset">
                                                <div style="padding:$stylevar[formspacer]px">
                                                <a href="$userinfo[ushop_profilemidi]">$userinfo[username]'s Midi</a>
                                                </div>
                                        </div>
                                </fieldset>
                        </if>
                        </if>
                        </div>
                        <if condition="$vboptions['usereferrer']">
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        $vbphrase[referrals]: <strong>$referrals</strong>
                                </div>
                        </div>
                        </if>
                       
                        <if condition="$show['usernotes']">
                        <div class="fieldset">
                                <div style="padding:$stylevar[formspacer]px">
                                        $vbphrase[user_notes]:
                                        <if condition="$show['usernoteview']">
                                                <strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>]
                                        </if>
                                        <if condition="$show['usernotepost']">
                                                [<a href="usernote.php?$session[sessionurl]do=newnote&amp;u=$userinfo[userid]">$vbphrase[post_user_note]</a>]
                                        </if>
                                        <if condition="$show['usernoteview']">
                                                <br />($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
                                        </if>
                                </div>
                        </div>
                        </if>
               
                </div>
        </div>
        </td>
       
        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <if condition="!$show['contactlinks']">
                                <tr>
                                        <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_has_no_contact_info]</phrase></strong></td>
                                </tr>                               
                                </if>
                                <if condition="$show['homepage']">
                                <tr>
                                        <td>
                                                $vbphrase[home_page]:<br />
                                                <a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
                                        </td>
                                </tr>
                                </if>
                                <if condition="$show['email']">
                                <tr>
                                        <td>
                                                $vbphrase[email]:<br />
                                                <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a>
                                        </td>
                                </tr>
                                </if>
                                <if condition="$show['pm']">
                                <tr>
                                        <td>
                                                $vbphrase[private_message]:<br />
                                                <a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
                                        </td>
                                </tr>
                                </if>
                                </table>
                        </div>
                       
                        <if condition="$show['hasimicons']">
                        <fieldset class="fieldset">
                                <legend>$vbphrase[instant_messaging]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <if condition="$show['textimicons']">
                                        <if condition="$userinfo['showicq']">
                                        <tr>
                                                <td>$vbphrase[icq]</td>
                                                <td>$userinfo[icq]</td>
                                        </tr>
                                        </if>
                                        <if condition="$userinfo['showaim']">
                                        <tr>
                                                <td>$vbphrase[aim]</td>
                                                <td>$userinfo[aim]</td>
                                        </tr>
                                        </if>
                                        <if condition="$userinfo['showmsn']">
                                        <tr>
                                                <td>$vbphrase[msn]</td>
                                                <td>$userinfo[msn]</td>
                                        </tr>
                                        </if>
                                        <if condition="$userinfo['showyahoo']">
                                        <tr>
                                                <td>$vbphrase[yahoo]</td>
                                                <td>$userinfo[yahoo]</td>
                                        </tr>
                                        </if>
                                        <if condition="$userinfo['skype']">
                                        <tr>
                                                <td>$vbphrase[skype]</td>
                                                <td>$userinfo[skype]</td>
                                        </tr>
                                        </if>
                                <else />
                                        <if condition="$userinfo['showicq']">
                                        <tr>
                                                <td>$userinfo[icqicon]</td>
                                                <td><a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a></td>
                                        </tr>
                                        </if>
                                        <if condition="$userinfo['showaim']">
                                        <tr>
                                                <td>$userinfo[aimicon]</td>
                                                <td><a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a></td>
                                        </tr>
                                        </if>
                                        <if condition="$userinfo['showmsn']">
                                        <tr>
                                                <td>$userinfo[msnicon]</td>
                                                <td><a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a></td>
                                        </tr>
                                        </if>
                                        <if condition="$userinfo['showyahoo']">
                                        <tr>
                                                <td>$userinfo[yahooicon]</td>
                                                <td><a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td>
                                        </tr>
                                        </if>
                                        <if condition="$userinfo['showskype']">
                                        <tr>
                                                <td>$userinfo[skypeicon]</td>
                                                <td><a href="#" dir="ltr" onclick="imwindow('skype', '$userinfo[userid]', 400, 285); return false;">$userinfo[skype]</a></td>
                                        </tr>
                                        </if>
                                </if>
                                </table>
                        </fieldset>
                        </if>
                       
               
                </div>
        </div>
        </td>
       
</tr>
<tr>
        <td class="tcat" width="50%">$vbphrase[additional_information]</td>
        <td class="tcat" width="50%">$vbphrase[group_memberships]</td>
</tr>
<tr valign="top">

        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                <div class="fieldset">
                        <if condition="$show['extrainfo']">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <if condition="$show['birthday']">
                                <tr>
                                        <td>
                                                <strong>$vbphrase[birth_date]</strong>:<br />
                                                $userinfo[birthday]
                                        </td>
                                </tr>
                                </if>
                                <if condition="$show['age']">
                                <tr>
                                        <td>
                                                <strong>$vbphrase[age]</strong>:<br />
                                                $userinfo[age]
                                        </td>
                                </tr>
                                </if>
                                $customfields
                                </table>
                        <else />
                                <em>$vbphrase[n_a]</em>
                        </if>
                </div>
  <if condition="$show[journalinfo]">
                <fieldset>
  <legend>$vbphrase[journal_information]:</legend>
  <table>
  <tr>
  <td>
  <div class="fieldset">
  <a href="journal.php?$session[sessionurl]do=showjournal&j=$journal[journal_id]"><phrase 1="$userinfo[username]">$vbphrase[visit_xs_journal]</phrase></a><br />
  $vbphrase[journal_entries]: $journal[entrycount]<br />
  $vbphrase[journal_comments]: $journal[commentcount]<br />
  $vbphrase[journal_views]: $journal[journalviews]<br />
  $vbphrase[last_entry]: <if condition="$show[journal_lastentry]"><a href="journal.php?$session[sessionurl]do=showentry&e=$journal[lastentry_id]">$journal[lastentry]</a> ($journal[lastentry_date])<br /><else />$vbphrase[private]</if>
  </div>
  </td>
  </tr>
  </table>
  </fieldset>
  </if>               
                </div>
        </div>
        </td>
       
        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <if condition="$show['membergroups']">
                                        <td></td>
                                        <else />
                                        <td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td>
                                        </if>
                                </tr>
                                $membergroupbits
                                </table>
                        </div>
               
                </div>
        </div>
        </td>

</tr>
</table>

$footer

</body>
</html>

Thank you for any help to get my problem fixed. I've also attached a picture of what it's doing wrong.

Xenon 03-30-2006 12:07 PM

your problem lies there:

HTML Code:

<tr valign="top">
  <table>
  <tr>

  <div class="fieldset">

that kind of tag combination is not valid, after a tr tag there should be a td tag, but no table or div tag!

melodyt 03-30-2006 01:01 PM

1 Attachment(s)
That did the trick for the most part. Part of it is still a little off. Here is a screenshot of what else is wrong.

And thanks so much for replying!

melodyt 03-30-2006 01:04 PM

Oh nevermind, I just got it figured out :)

Thanks again

Xenon 03-31-2006 07:16 AM

you're welcome :)


All times are GMT. The time now is 01:17 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01415 seconds
  • Memory Usage 1,955KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete