Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 05:34 am EST

Geeklog Forums

Revised non-block Profile template available


Status: offline

griffman

Forum User
Junior
Registered: 04/23/02
Posts: 28
Tonight I replaced the User Profile page (the one you get when you click a username's link). The old version was built with blocks around tables, which I disliked. My new version is built with just tables, and I think it looks much nicer. You can see a screenshot of just the profile area (no surrounding blocks or header, but they are there on the real page) here (PNG format).

If you'd like this new look, you need to replace three files in your theme: profile.thtml, commentrow.thtml, and storyrow.thtml. The source for all three files is in the rest of this article...profile.thtml:
Text Formatted Code
<table border="0" cellspacing="1" cellpadding="3" width=85% bgcolor="#000033">
  <tr bgcolor=#BBC8DF>
    <td colspan=2 align=center>
      <span class="articleTitle">USER INFORMATION FOR '{username}'</span>
    </td>
  </tr>
  <tr valign="top" bgcolor=#FFFFFF>
    <td align="right">
      <span class="story"><b>{lang_username}:</b></span>
    </td>
    <td>
      <span class="story">{username} ({user_fullname})<br>{user_photo}</span>
    </td>
  </tr>
  <tr valign="top" bgcolor=#FFFFFF>
    <td align="right">
      <span class="story"><b>{lang_membersince}:</b></span>
    </td>
    <td>
      <span class="story">{user_regdate}</span>
    </td>
</tr>
<tr bgcolor="#FFFFFF">
  <td align="right">
    <span class="story"><b>{lang_number_stories}</b></span>
  </td>
  <td>
    <span class="story">{number_stories}</span>
  </td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right">
  <span class="story"><b>{lang_number_comments}</b></span>
</td>
<td>
  <span class="story">{number_comments}</span>
</td>
</tr>
<tr valign="top" bgcolor=#FFFFFF>
  <td align="right">
    <span class="story"><b>{lang_email}:</b></span>
  </td>
  <td><span class="story">
    <a href="{site_url}/profiles.php?uid={user_id}">{lang_sendemail}</a></span>
  </td>
  </tr>
  <tr valign="top" bgcolor=#FFFFFF>
    <td align="right">
      <span class="story"><b>{lang_homepage}:</b></span>
    </td>
    <td>
      <span class="story"><a href="{user_homepage}">{user_homepage}</a></span>
    </td>
  </tr>
  <tr valign="top" bgcolor=#FFFFFF>  
    <td align="right">
      <span class="story"><b>{lang_bio}:</b></span>
    </td>
    <td>
      <span class="story">{user_bio}</span>
    </td>
  </tr>
  <tr valign="top" bgcolor=#FFFFFF>
    <td align="right">
      <span class="story"><b>{lang_pgpkey}:</b>
    </td>
    <td>
      <span class="story">{user_pgp}</span>
    </td>
  </tr>
</table>
<br>
<table border="0" cellpadding="3" cellspacing="1" width="85%" bgcolor="#000033">
  <tr bgcolor=#BBC8DF>
    <td colspan=3 align=center>
      <span class="articleTitle">LAST 10 STORIES</span>
    </td>
  </tr>
  {story_row}
</table>
<br>
<table border="0" cellpadding="3" cellspacing="1" width="85%" bgcolor="#000033">
  <tr bgcolor=#BBC8DF>
    <td colspan=3 align=center>
      <span class="articleTitle">LAST 10 COMMENTS</span>
    </td>
 </tr>
 {comment_row}
</table>
<br>
<table border="0" cellpadding="3" cellspacing="1" width="85%" bgcolor="#000033">
  <tr bgcolor="#FFFFFF">
    <td align=center>
      <!-- Enter the following A HREF as one row with NO SPACES! -->
      <span class="story"><a href="{site_url}/search.php?query=&datestart=&dateend=&topic=0&type=all&author={user_id}&mode=search"><b>{lang_all_postings_by}</b></a>
      </span>
    </td>
  </tr>
</table>
 


storyrow.thtml:
Text Formatted Code
<tr bgcolor="#FFFFFF">
  <td width=5%><span class="story">{row_number}</span></td>
  <td width=55%><span class="story">{story_begin_href}{story_title}{story_end_href}</span></td>
  <td width=40%><span class="story">{story_date}</span></td>
</tr>
 
commentrow.thtml:
Text Formatted Code

<tr bgcolor="#FFFFFF">
  <td width=5%><span class="story">{row_number}</span></td>
  <td width=55%><span class="story">{comment_begin_href}{comment_title}{comment_end_href}</span></td>
  <td width=40%><span class="story">{comment_date}</span></td>
</tr>
 


Just replace these in your theme, and you should have the new look! Play around with the style sheets to get the customized view you wish to use... -rob.
 Quote

All times are EST. The time is now 05:34 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content