vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom Profile? (https://vborg.vbsupport.ru/showthread.php?t=45987)

Automated 11-22-2002 02:30 PM

Custom Profile?
 
1 Attachment(s)
Hi Guys,

I have been playing around with VB for a while now and installed a few hacks i am very happy with, and i have decided i want to modify the user profile page. Problem is i have huge problems with it!

I have attached a screen shot of the page i get when i modify the template.

The HTML i am using for the template is below, could you please have a look at it and tell me what i am doing wrong.

Thanks;

Code:


{htmldoctype}
<html>
<head>
<title>$bbtitle - View Profile</title>
$headinclude
<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,width=175,height=275,resizeable=yes,status=no")
}
// -->
</script>
</head>
<body>
$header

<br>

<table width="98%" border="0" cellspacing="1" cellpadding="4">
  <tr>
    <td colspan="3" bgcolor="#AFCDFE"><b>$userinfo[username]'s Profile</b></td>
  </tr>
  <tr>
    <td width="28%">&nbsp;</td>
    <td width="7%">&nbsp;</td>
    <td width="65%">&nbsp;</td>
  </tr>
  <tr>
    <td width="28%">
      <table width="260" border="0" cellspacing="1" cellpadding="4">
        <tr bgcolor="#AFCDFE">
          <td><b>$userinfo[username]'s Avatar.</b></td>
        </tr>
        <tr>
          <td>
            <div><img src="$userinfo[avatarurl]" border="0" align="middle"></div>
          </td>
        </tr>
        <tr>
          <td>
            <div align="center"><normalfont>$userinfo[usertitle]</normalfont></div>
          </td>
        </tr>
      </table>
    </td>
    <td colspan="2">
      <table width="525%" border="0" cellspacing="1" cellpadding="4">
        <tr bgcolor="#AFCDFE">
          <td colspan="2"><b>About $userinfo[username]</b></td>
        </tr>
        <tr bgcolor="#EBF1F7">
          <td width="127">Website :</td>
          <td width="377"><normalfont><a href="$userinfo[homepage]" target="_blank">$userinfo[homepage]</a>&nbsp;</normalfont></td>
        </tr>
        <tr>
          <td width="127">Biography :</td>
          <td width="377">&nbsp;</td>
        </tr>
        <tr bgcolor="#EBF1F7">
          <td width="127">Interest's :</td>
          <td width="377">&nbsp;</td>
        </tr>
        <tr>
          <td width="127">Occupation :</td>
          <td width="377">&nbsp;</td>
        </tr>
        <tr bgcolor="#EBF1F7">
          <td width="127">Location :</td>
          <td width="377">&nbsp;</td>
        </tr>
        <tr>
          <td width="127">Birthday :</td>
          <td width="377">$birthday</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="28%">
      <table width="300" border="0" cellspacing="1" cellpadding="4">
        <tr bgcolor="#AFCDFE">
          <td colspan="2"><b>Contact $userinfo[username]</b></td>
        </tr>
        <tr bgcolor="#EBF1F7">
          <td width="109">Private Message</td>
          <td width="170"><normalfont>$userinfo[sendpm]
        </normalfont></td>
        </tr>
        <tr>
          <td width="109">eMalil </td>
          <td width="170"><normalfont> <a href="member.php?s=$session%5Bsessionhash%5D&amp;action=mailform&amp;userid=$userinfo%5Buserid%5D">
            eMail $userinfo[username]</a></normalfont></td>
        </tr>
        <tr bgcolor="#EBF1F7">
          <td width="109">ICQ</td>
          <td width="170"><normalfont>$userinfo[aim] <!-- $ userinfo[aimicon] AIM ICON - remove comments --></normalfont></td>
        </tr>
        <tr>
          <td width="109">Yahoo</td>
          <td width="170"><normalfont>$userinfo[yahoo] <!-- $ userinfo[yahooicon] YAHOO ICON - remove comments --></normalfont></td>
        </tr>
        <tr bgcolor="#EBF1F7">
          <td width="109">MSN</td>
          <td width="170">&nbsp;</td>
        </tr>
        <tr bgcolor="#ffffff">
          <td width="109">AOL</td>
          <td width="170"><normalfont>$userinfo[aim] <!-- $ userinfo[aimicon] AIM ICON - remove comments --></normalfont></td>
        </tr>
      </table>
      <br>
      <br>
    </td>
    <td colspan="2">
      <table width="525%" border="0" cellspacing="1" cellpadding="4">
        <tr bgcolor="#AFCDFE">
          <td colspan="2"><b>$userinfo[username]'s Statistics</b></td>
        </tr>
        <tr bgcolor="#EBF1F7">
          <td width="127">Total Posts :</td>
          <td width="377" bgcolor="#EBF1F7"><normalfont>$userinfo[posts] ($postsperday
            posts per day)</normalfont></td>
        </tr>
        <tr>
          <td width="127">Total Threads :</td>
          <td width="377"></td>
        </tr>
        <tr bgcolor="#EBF1F7">
          <td width="127">Refferals :</td>
          <td width="377" bgcolor="#EBF1F7">$referrals</td>
        </tr>
        <tr bgcolor="#EBF1F7">
          <td width="127">Last Post :</td>
          <td width="377" bgcolor="#EBF1F7"></td>
        </tr>
        <tr>
          <td width="127">Last Online :</td>
          <td width="377"></td>
        </tr>
      </table>
      <br>
    </td>
  </tr>
  <tr>
    <td colspan="3"> <br>
      <br>
      <table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="#AFCDFE" {tableouterextra} width="{contenttablewidth}" align="center">
        <tr>
          <td>
            <table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
              <tr id="cat">
                <td align="left" colspan="2"><normalfont color="{tableheadtextcolor}"><b>Last
                  10 Posts by $userinfo[username]</b></normalfont><a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userinfo[userid]"><smallfont color="{tableheadtextcolor}" class="thtcolor">Search
                  for all posts by $userinfo[username].</smallfont></a></td>
              </tr>
              $latestposts
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
  <tr>
    <td align="center"><smallfont><b> Administrative Options: <a href="moderator.php?s=$session[sessionhash]&action=useroptions&userid=$userinfo[userid]">User
      Options</a> </b></smallfont></td>
  </tr>



</table>
$footer







</body>
</html>

I am aware that some of these requre further hacking wihcih i will do once i have got this bit to work!

Thanks in advance guys!

Matthew

Automated 11-22-2002 02:33 PM

I forgot to say i have got a few things working like the Name where it says Matthews Profile, that changes fine and also for some reason the ICQ and Yahoo messanger fields are working but nothing else.

Hope this help's :p

Matthew


All times are GMT. The time now is 01:09 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.01450 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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