Announcement

Collapse
No announcement yet.

Add paths to templates?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Add paths to templates?

    Hey guys,

    I'm wondering if this can be done via here or if I'd have to go to vb.org?

    What I'd like to do is add two colums under the normal ones, like the avatar, location and what not. Attached is the pic.

    Any ideas on how I can do this?

    Thanks
    Jay
    Attached Files

  • #2
    Your postbit_legacy is already customized with similar boxes. If you post the contents of that template then I can point out the code for one of those boxes so you can duplicate it to make more.

    Comment


    • #3
      <!-- post #$post[postid] -->
      <if condition="$show['spacer']">
      $spacer_open
      <div style="padding:0px 0px $stylevar[cellpadding]px 0px">
      <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
      </if>

      <table border="0" align="center" cellpadding="0" cellspacing="0" width="100%" background="$stylevar[imgdir_misc]/category.gif">
      <tr>
      <td width="136">
      <img border="0" src="$stylevar[imgdir_misc]/category_left.gif" width="136" height="26"></td>
      <td valign="bottom" align="center" $scrolltothis><div class="smallfont"><img src="$stylevar[imgdir_misc]/cross.gif" width="8" height="6" border="0"><font face="verdana,arial,helvetica" size="1" color="#14213F"><b> <if condition="$show['messageicon'] OR $post['title']">
      <!-- icon and title -->
      <if condition="$show['messageicon']"><img src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
      <if condition="$post['title']"><strong>$post[title]</strong></if>
      <!-- / icon and title -->
      </if> </b></font><img src="$stylevar[imgdir_misc]/cross.gif" width="8" height="6" border="0"></div></td>
      <td width="136" align="right">
      <img border="0" src="$stylevar[imgdir_misc]/category_right.gif" width="136" height="26"></td>
      </tr>
      <tr>
      <td height="4" colspan="3" background="$stylevar[imgdir_misc]/category_stipe.gif"><img border="0" src="$stylevar[imgdir_misc]/category_stipe.gif" width="5" height="4"></td>
      </tr>
      </table>
      <table cellpadding="0" cellspacing="0" border="0" bgcolor="#14213F" width="100%" align="center"><tr><td>
      <table cellpadding="0" cellspacing="1" border="0" width="100%" class="tborder">
      <tr>
      <td background="$stylevar[imgdir_misc]/tile.gif" bgcolor="#506AA8">
      <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" >
      <tr>
      <td width="50%"><font face="verdana,arial,helvetica" size="1" color="#FFFFFF">$post[onlinestatus]
      <b> <if condition="!$show['start_until_end']">
      $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
      <else />
      <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
      </if></b></font> </td>
      <td width="50%" align="right"><if condition="$show['postcount']"><font color="#FFFFFF">#</font><a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong><font color="#FFFFFF">$post[postcount]</font></strong></a> &nbsp;</if></td>
      </tr>
      </table>
      </td>
      </tr>
      <tr>
      <td bgcolor="#EFF1F3">
      <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
      <tr>
      <td width="175" valign="top" background="$stylevar[imgdir_misc]/postbg.gif">
      <table border="0" cellpadding="4" cellspacing="0" width="100%">
      <tr>
      <td width="100%" align="center">
      <if condition="$show['avatar']"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></if>
      <br />

      <font face="verdana, arial, helvetica" size="2" ><b> <div id="postmenu_$post[postid]">
      <if condition="$show['profile']">
      <a href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
      <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
      <else />
      $post[musername]
      </if>
      </div>
      </b></font><br>
      <b>
      <if condition="$post['usertitle']"><div><font face="verdana,arial,helvetica" size="1" ><font color="#F69212">$post[usertitle]</font></font></div></if></b><br></td>
      </tr>
      <tr>
      <td width="100%" align="center">
      <table border="1" style="border-collapse: collapse" bordercolor="#14213F" width="90%" cellpadding="1" bgcolor="#FFFFFF">
      <tr>
      <td width="100%" valign="middle" background="$stylevar[imgdir_misc]/shadow.gif" bgcolor="#FFFFFF">
      <b><font size="1" face="Tahoma">&nbsp;$vbphrase[posts]:</font> <font face="Tahoma" size="1" color="#F69212">$post[posts]</font></b></td>
      </tr>
      </table>
      </td>
      </tr>
      <if condition="$post['joindate']">
      <tr>
      <td width="100%" align="center">
      <table border="1" style="border-collapse: collapse" bordercolor="#14213F" width="90%" cellpadding="1" bgcolor="#FFFFFF">
      <tr>
      <td width="100%" valign="middle" background="$stylevar[imgdir_misc]/shadow.gif" bgcolor="#FFFFFF">
      <b><font size="1" face="Tahoma">&nbsp;$vbphrase[join_date]:</font></b>&nbsp;<b>
      <font face="Tahoma" size="1" color="#F69212"> $post[joindate]</font></b></td>
      </tr>
      </table>
      </td>
      </tr>
      </if>
      <if condition="$post['field2']">
      <tr>
      <td width="100%" align="center">
      <table border="1" style="border-collapse: collapse" bordercolor="#14213F" width="90%" cellpadding="1" bgcolor="#FFFFFF">
      <tr>
      <td width="100%" valign="middle" background="$stylevar[imgdir_misc]/shadow.gif" bgcolor="#FFFFFF">
      <b><font size="1" face="Tahoma">&nbsp;$vbphrase[location_perm]:</font></b>&nbsp;<b>
      <font face="Tahoma" size="1" color="#F69212"> $post[field2]</font></b></td>
      </tr>
      </table>
      </td>
      </tr>
      </if>
      <tr>
      <td width="100%" align="center"><br>
      </td>
      </tr>
      </table>
      </td>
      <td valign="top">
      <!-- message, attachments, sig -->
      <!-- message -->
      <div>$post[message]</div>
      <!-- / message -->

      <if condition="$show['attachments']">
      <!-- attachments -->
      <div style="padding:$stylevar[cellpadding]px">

      <if condition="$show['thumbnailattachment']">
      <fieldset class="fieldset">
      <legend>$vbphrase[attached_thumbnails]</legend>
      <div style="padding:$stylevar[formspacer]px">
      $post[thumbnailattachments]
      </div>
      </fieldset>
      </if>

      <if condition="$show['imageattachment']">
      <fieldset class="fieldset">
      <legend>$vbphrase[attached_images]</legend>
      <div style="padding:$stylevar[formspacer]px">
      $post[imageattachments]
      </div>
      </fieldset>
      </if>

      <if condition="$show['imageattachmentlink']">
      <fieldset class="fieldset">
      <legend>$vbphrase[attached_images]</legend>
      <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
      $post[imageattachmentlinks]
      </table>
      </fieldset>
      </if>

      <if condition="$show['otherattachment']">
      <fieldset class="fieldset">
      <legend>$vbphrase[attached_files]</legend>
      <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
      $post[otherattachments]
      </table>
      </fieldset>
      </if>

      <if condition="$show['moderatedattachment']">
      <fieldset class="fieldset">
      <legend>$vbphrase[attachments_pending_approval]</legend>
      <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
      $post[moderatedattachments]
      </table>
      </fieldset>
      </if>

      </div>
      <!-- / attachments -->
      </if>

      <if condition="$post['signature']">
      <!-- sig -->
      <div>
      __________________<br />
      $post[signature]
      </div>
      <!-- / sig -->
      </if>

      <if condition="$show['postedited']">
      <!-- edit note -->
      <div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
      <em>
      <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
      <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
      </em>
      </div>
      <!-- / edit note -->
      </if>


      <!-- message, attachments, sig -->

      </td>
      <td width="65" align="center" valign="top">
      <div align="$stylevar[right]">
      <!-- controls -->
      <if condition="$post['editlink']">
      <a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
      </if>
      <if condition="$post['forwardlink']">
      <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
      </if>
      <if condition="$post['replylink']">
      <a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
      </if>
      <if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
      <a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
      </if>
      <!-- / controls -->
      </div>
      </td>
      </tr>
      </table>
      </td>
      </tr>
      <tr>
      <td bgcolor="#EFF1F3" background="$stylevar[imgdir_misc]/tile1.gif">
      <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
      <tr>

      <td width="20%" align="left"><font face="verdana,arial,helvetica" size="1" > $post[iplogged] <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_misc]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if></font></td>
      <td width="80%" align="right"><font face="verdana,arial,helvetica" size="1" ><if condition="$show['profile']"><a href="member.php?$session[sessionurl]userid=$post[userid]" target="_blank"><img src="$stylevar[imgdir_misc]/profile.gif" border="0" alt="$vbphrase[view_public_profile]"></a></if> <if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><img src="$stylevar[imgdir_misc]/sendpm.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>"></a></if> <if condition="$show['homepage']"><a href="$post[homepage]" target="_blank"><img src="$stylevar[imgdir_misc]/home.gif" alt="<phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase>" border="0"></a></if> <if condition="$show['search']"><a href="search.php?$session[sessionurl]do=finduser&amp;userid=$post[userid]"><img src="$stylevar[imgdir_misc]/find.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase>"></a></if> <if condition="$post['userid']"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><img src="$stylevar[imgdir_misc]/buddy.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase>"></a></if> </font></td>

      </tr>
      </table>
      </td>
      </tr>
      </table>
      </td></tr></table>
      <table border="0" align="center" cellpadding="0" cellspacing="0" width="100%" background="$stylevar[imgdir_misc]/category_bottom.gif">
      <tr>
      <td width="50%">
      <img border="0" src="$stylevar[imgdir_misc]/category_bottom_left.gif" width="53" height="30"></td>
      <td width="50%" align="right">
      <img border="0" src="$stylevar[imgdir_misc]/category_bottom_right.gif" width="53" height="30"></td>
      </tr>
      </table>
      <!-- post $post[postid] popup menu -->
      <div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
      <table cellpadding="4" cellspacing="1" border="0">
      <tr>
      <td class="thead">$post[username]</td>
      </tr>
      <if condition="$show['profile']">
      <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]userid=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
      </if>
      <if condition="$show['pmlink']">
      <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
      </if>
      <if condition="$show['emaillink']">
      <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
      </if>
      <if condition="$show['homepage']">
      <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
      </if>
      <if condition="$show['search']">
      <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
      </if>
      <if condition="$post['userid']">
      <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
      </if>
      </table>
      </div>
      <!-- / post $post[postid] popup menu -->
      <br />


      <if condition="$show['spacer']">
      </div>
      $spacer_close
      </if>
      <!-- / post #$post[postid] -->

      Comment


      • #4
        What I'd like to do is have a link already set up in this code, so have it like myfavoritenumber.com/ then have them plug in 1234 so when you click on the link, it will take you to the destination.

        Comment


        • #5
          Add the red code:

          Code:
          <if condition="$post['field2']">
          <tr>
          <td width="100%" align="center">
          <table border="1" style="border-collapse: collapse" bordercolor="#14213F" width="90%" cellpadding="1" bgcolor="#FFFFFF">
          <tr>
          <td width="100%" valign="middle" background="$stylevar[imgdir_misc]/shadow.gif" bgcolor="#FFFFFF">
          <b><font size="1" face="Tahoma">&nbsp;$vbphrase[location_perm]:</font></b>&nbsp;<b>
          <font face="Tahoma" size="1" color="#F69212"> $post[field2]</font></b></td>
          </tr>
          </table>
          </td>
          </tr>
          </if>
          
          [color=red]<tr>
          <td width="100%" align="center">
          <table border="1" style="border-collapse: collapse" bordercolor="#14213F" width="90%" cellpadding="1" bgcolor="#FFFFFF">
          <tr>
          <td width="100%" valign="middle" background="$stylevar[imgdir_misc]/shadow.gif" bgcolor="#FFFFFF">
          <b><font size="1" face="Tahoma">&nbsp;Title 1</font> <font face="Tahoma" size="1" color="#F69212">Value 1</font></b></td>
          </tr>
          </table>
          </td>
          </tr>
          
          <tr>
          <td width="100%" align="center">
          <table border="1" style="border-collapse: collapse" bordercolor="#14213F" width="90%" cellpadding="1" bgcolor="#FFFFFF">
          <tr>
          <td width="100%" valign="middle" background="$stylevar[imgdir_misc]/shadow.gif" bgcolor="#FFFFFF">
          <b><font size="1" face="Tahoma">&nbsp;Title 2:</font> <font face="Tahoma" size="1" color="#F69212">Value 2</font></b></td>
          </tr>
          </table>
          </td>
          </tr>[/color]
          
          <tr>
          <td width="100%" align="center"><br>
          </td>
          </tr>
          </table>
          </td>
          <td valign="top">
          <!-- message, attachments, sig -->
          <!-- message -->
          <div>$post[message]</div>
          <!-- / message -->
          Change the titles and values appropriately.

          Comment


          • #6
            Awesome, it worked like a charm. Now is there anyway to make it interactive? Example, I'd like to have them put numbers somewhere and have the text in the new boxes be clickable. I'm assuming it has something to do with the profile area.

            Comment


            • #7
              See this thread.

              Comment


              • #8
                Originally posted by Jake Bunce
                Dang! Do you sleep? lol.

                Not that I'm complaining! thanks

                Edit: is there some way I can make that text clickable?
                Last edited by jayk; Tue 8 Feb '05, 11:38am.

                Comment


                • #9
                  Anyone?

                  Comment


                  • #10
                    Originally posted by jayk
                    Edit: is there some way I can make that text clickable?
                    stealth edit

                    You mean "linked"? Use this code to generate a text link:

                    Code:
                    <a href="LINK HERE">TEXT HERE</a>

                    Comment

                    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                    Working...
                    X