Signature in Profile

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
5
83%
Very Good
1
17%
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes: 6

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: Signature in Profile

Post by D¡cky »

D¡cky wrote:
aaronnn wrote:Is this only compatible with SubSilver because there are some [FIND] parts where it doesn't exist in my style :|

EDIT: i see previous posts you did it for them,

can you please try with this???
I also gave instructions on how to modify styles other than subSilver.

Here is your modified file

Code: Select all

Select all

    <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
      <tr>
       <td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">XBC Forum Home</a></span></td>
      </tr>
    </table>

    <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
      <tr>
       <td class="catForum" align="center" colspan="2" height="25" nowrap="nowrap"><b><span class="gen">{L_VIEWING_PROFILE}</span></b></td>
      </tr>
      <tr>
       <th class="thHead" width="40%" height="28" align="center"><b><span class="gen">{L_AVATAR}</span></b></th>
       <th class="thHead" width="60%"><b><span class="gen">{L_ABOUT_USER}</span></b></th>
      </tr>
      <tr>
       <td class="row1" height="6" valign="top" align="center">{AVATAR_IMG}<br /><span class="postdetails">{POSTER_RANK}</span></td>
       <td class="row1" rowspan="3" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="3">
          <tr>
            <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_JOINED}:&nbsp;</span></td>
            <td width="100%"><b><span class="gen">{JOINED}</span></b></td>
          </tr>
          <tr>
            <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_TOTAL_POSTS}:&nbsp;</span></td>
            <td valign="top"><b><span class="gen">{POSTS}</span></b><br /><span class="genmed">[{POST_PERCENT_STATS} / {POST_DAY_STATS}]</span> <br /><span class="genmed"><a href="{U_SEARCH_USER}" class="genmed">{L_SEARCH_USER_POSTS}</a></span></td>
          </tr>
          <tr>
            <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_LOCATION}:&nbsp;</span></td>
            <td><b><span class="gen">{LOCATION}</span></b></td>
          </tr>
          <tr>
            <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_WEBSITE}:&nbsp;</span></td>
            <td><span class="gen"><b>{WWW}</b></span></td>
          </tr>
          <tr>
            <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_OCCUPATION}:&nbsp;</span></td>
            <td><b><span class="gen">{OCCUPATION}</span></b></td>
          </tr>
          <tr>
            <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
            <td> <b><span class="gen">{INTERESTS}</span></b></td>
          </tr>
         </table>
       </td>
      </tr>
      <tr>
       <th class="thHead" align="center" height="28"><b><span class="gen">{L_CONTACT} {USERNAME} </span></b></th>
      </tr>
      <tr>
       <td class="row1" rowspan="3" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="3">
          <tr>
            <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_EMAIL_ADDRESS}:</span></td>
            <td class="row1" valign="middle" width="100%"><b><span class="gen">{EMAIL_IMG}</span></b></td>
          </tr>
          <tr>
            <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_PM}:</span></td>
            <td class="row1" valign="middle"><b><span class="gen">{PM_IMG}</span></b></td>
          </tr>
          <tr>
            <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_MESSENGER}:</span></td>
            <td class="row1" valign="middle"><span class="gen">{MSN}</span></td>
          </tr>
          <tr>
            <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_YAHOO}:</span></td>
            <td class="row1" valign="middle"><span class="gen">{YIM_IMG}</span></td>
          </tr>
          <tr>
            <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_AIM}:</span></td>
            <td class="row1" valign="middle"><span class="gen">{AIM_IMG}</span></td>
          </tr>
          <tr>
            <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_ICQ_NUMBER}:</span></td>
            <td class="row1">{ICQ_IMG}</td>
          </tr>
         </table>
       </td>
      </tr>
		<!-- BEGIN switch_signature -->
	<tr> 
		<td class="catRight" width="60%"><b><span class="gen">{L_SIGNATURE}</span></b></td>
	</tr>
	<tr>
		<td class="row1"> <span class="postbody">{USER_SIG}</span></td>
	</tr>
		<!-- END switch_signature -->
    </table>
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="left" valign="top"><img src="templates/Xbox360/images/table_shadow.gif"></td>
      </tr>
    </table>

    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
       <td align="right"><span class="nav"><br />{JUMPBOX}</span></td>
      </tr>
    </table>
Have you hugged someone today?

aaronnn
Registered User
Posts: 171
Joined: Sat Nov 10, 2007 4:27 am
Location: Auckland, New Zealand

Re: Signature in Profile

Post by aaronnn »

Thanks a heap man!

Aaron ;)

aaronnn
Registered User
Posts: 171
Joined: Sat Nov 10, 2007 4:27 am
Location: Auckland, New Zealand

Re: Signature in Profile

Post by aaronnn »

Code: Select all

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr> 
	<td align="left" valign="bottom" colspan="2"><br />
	  <span class="gensmall"><b>{PAGINATION}</b><br />
	  &nbsp; </span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr> 
	<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
	<td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">XBC Forum Home</a> 
	  &raquo;  <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
  </tr>
</table>

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
	<tr align="center">
		
<td class="catTopic" colspan="2" height="22"><span class="cattitle"><span class="maintitle" href="{U_VIEW_TOPIC}"><b><font style="font-size: 8pt">{TOPIC_TITLE}</font></b></span></span></td>
	</tr>
	{POLL_DISPLAY} 

</table>
	<!-- BEGIN postrow -->
<table class="forumline" width="100%"  border="0" cellspacing="1" cellpadding="3">

	<tr>
		<th class="thLeft" width="150" height="26" nowrap="nowrap"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /></th>
		<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
	</tr>

	<tr> 
		<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><p align="center">{postrow.POSTER_AVATAR}</p></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
		<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
				<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
			</tr>
			<tr> 
				<td colspan="2"></td>
			</tr>
			<tr>
				<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
			</tr>
		</table></td>
	</tr>
	<tr> 
		<td class="{postrow.ROW_CLASS}" width="150" align="center" valign="middle"><a href="{postrow.U_MINI_POST}"><span class="postdetails">{postrow.POST_DATE}</a></span></td>
		<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" align="right" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
			<tr> 
				<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}</td>
			</tr>
		</table></td>
	</tr>
	</table>

<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left" valign="top"><img src="templates/Xbox360/images/table_shadow.gif"></td>
  </tr>
</table>

	<!-- END postrow -->

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr align="right"> 
	<td width="10%" align="left" valign="middle" nowrap="NOWRAP">
	<span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
	    <td width="67%" align="left" valign="middle"><span class="nav">&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">XBC Forum Home</a> 
	  &raquo; <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
	    <td width="23%" height="28" valign="middle" nowrap>{S_TOPIC_ADMIN}
	      <table cellspacing="0" cellpadding="0" border="0">
          <tr>

              <td align="right"></td>

          </tr>
      </table></td>
	</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left" valign="top" nowrap="nowrap"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
	<span class="nav">{PAGE_NUMBER}</span>
 </td>
	<td width="100%" align="left" valign="middle" nowrap></td>
	<td align="right" valign="top" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span> 
    </td>
  </tr>
  <tr>
	<td align="left" colspan="3"></td>
  </tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center">
  <tr> 
	<td width="40%" valign="top" nowrap="nowrap" align="left"><p class="gensmall">{L_DISPLAY_POSTS}:<br />
	        <form method="post" action="{S_POST_DAYS_ACTION}">
	  {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;
        <input type="submit" value="{L_GO}" class="liteoption" name="submit" />
      </p>	  </td>            </form>
	<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
  </tr>
</table>
this error mean anything?

EDIT: fixed it :D

EDIT EDIT: I'm going to use this code box to help me install a new MOD as copying it from here fixes the layout ;)

Sakenichi
Registered User
Posts: 1
Joined: Wed Feb 06, 2008 10:31 am

Re: Signature in Profile

Post by Sakenichi »

Scratch that... fixed my problem. For some reason the formatting caused it not to work properly... I blame notepad.

wlandrum
Registered User
Posts: 59
Joined: Mon Oct 02, 2006 5:19 am

Re: Signature in Profile

Post by wlandrum »

Never mind got it fixed :-)

User avatar
Tom
Former Team Member
Posts: 2665
Joined: Tue Jun 20, 2006 2:12 am
Name: Tom Catullo
Contact:

Re: Signature in Profile

Post by Tom »

I'm sorry to bump this topic, but I came up with a small script edit to this MOD that makes it where, if a user has not made a signature, then it does not show the "Signature" title bar. It was a quick little edit I made for my own forum and I thought others might find it useful, too. Here is are the edits in MOD format:

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/profile_view_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
# 
		<!-- BEGIN switch_signature -->
	<tr> 
		<td class="catRight" width="60%"><b><span class="gen">{L_SIGNATURE}</span></b></td>
	</tr>
# 
#-----[ BEFORE, ADD ]------------------------------------
#
<?php
if ($user_sig == "&nbsp;") {
echo "";
}
else
{
?>
# 
#-----[ FIND ]------------------------------------------ 
# 
	<tr>
		<td class="row1"> <span class="postbody">{USER_SIG}</span></td>
	</tr>
		<!-- END switch_signature -->
# 
#-----[ AFTER, ADD ]------------------------------------
#
<?php
}
?>
#
#-----[ SAVE/CLOSE ALL FILES ]-------------------------- 
# 
# EoM
So, instead of it showing this if a user does not have a signature:

Image

It will not show the "Signature" titlebar with nothing under it:

Image

An example can be seen by viewing various profiles of users (profiles of users with sigs and profiles of users without sigs) on this board. It's a quick little edit but I figured that there's no point in having the "Signature" title bar there and nothing under it if that user does not have a signature at all. It keep the user profiles looking neat and tidy. :)
Tom Catullo - Former Moderator Team Member
phpBB3 Smiley Pak Generator | Legend Repositioning MOD | My GitHub | My Site

User avatar
45ish
Registered User
Posts: 81
Joined: Sun Nov 26, 2006 6:38 am
Location: usa canada uk - where ever the english language takes me!
Contact:

Re: add Signature in Profile to phpbb 3

Post by 45ish »

Hi, I am trying the phpbb3 version for the first time today. I have been using phpbb2 for a few years and I decided to use version 3 for my new forum project. I am looking to see if there is a add signature to profile mod like the one in this thread, but for phpbb3, OR a way to do it in my ADMIN CONTROL panel. Thank you for your help.

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: Signature in Profile

Post by D¡cky »

A MOD is not required for phpBB3. It is already built in to show the signature in a member's profile.
Have you hugged someone today?

Post Reply

Return to “[2.0.x] MOD Database Releases”