[17/01/07] Hide empty fields in user 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.
Post Reply

Rating:

Excellent!
4
100%
Very Good
0
No votes
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes: 4

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28022
Joined: Sat Aug 16, 2003 7:36 am

[17/01/07] Hide empty fields in user profile

Post by Extensions Robot » Thu Nov 30, 2006 5:11 pm

MOD Name: Hide empty fields in user profile
Author: laisvai
MOD Description: This mod hides empty fields in users profiles.

MOD Version: 1.1.0
Tested on phpBB Version: 2.0.22

Download File: hide_empty_fields_in_user_profile_1.1.0.mod
mods overview page: View
File Size: 8414 Bytes



Support for this MOD needs to be asked within this topic. The phpBB Teams are not responsible or required to give anyone support for this MOD. By installing this MOD, the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.
Last edited by Extensions Robot on Mon Apr 30, 2007 12:28 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric » Wed Jan 17, 2007 12:20 am

MOD Validated/Released

Notes:
Hides fields on the user's profile that the user hasn't filled out to make it cleaner.
Eric

User avatar
laisvai
Registered User
Posts: 69
Joined: Sun Mar 20, 2005 7:33 pm
Location: lithuania
Contact:

Post by laisvai » Thu Jan 18, 2007 7:20 am

Thanks :D
it is my first mod here :)

screenshots:

before:

Image

after:

Image

plc
Registered User
Posts: 39
Joined: Fri Sep 01, 2006 5:09 am

Post by plc » Thu Jan 18, 2007 5:09 pm

Downloading right now :)

looks clean 8)

thanx !!

User avatar
Dogs and things
Registered User
Posts: 2114
Joined: Fri Sep 01, 2006 9:04 am
Location: Spain
Contact:

Post by Dogs and things » Thu Jan 18, 2007 5:20 pm

Very nice MOD,

Thanks a lot, you mad my board a little bit cleaner. :wink:
For phpBB2 support visit phpBB2refugees.

User avatar
bum63
Registered User
Posts: 262
Joined: Tue Oct 10, 2006 8:36 pm

Post by bum63 » Thu Jan 18, 2007 6:41 pm

this is very nice
how would I go about adding some more functions? I tried to add 2 more functions but it didn't work,
I use Gender version 1.2.8 and Birthday version 1.5.9 mods by Niels http://mods.db9.dk

Code: Select all

if ($profiledata['user_gender'] != '')
{	
	$template->assign_block_vars('switch_showgender',array());
}
if ($profiledata['user_birthday'] != '')
{	
	$template->assign_block_vars('switch_showbirthday',array());
}

<!-- BEGIN switch_showgender -->
<!-- END switch_showgender -->

<!-- BEGIN switch_showbirthday -->
<!-- END switch_showbirthday -->
Thanks in advance

User avatar
laisvai
Registered User
Posts: 69
Joined: Sun Mar 20, 2005 7:33 pm
Location: lithuania
Contact:

Post by laisvai » Thu Jan 18, 2007 7:03 pm

Hi,

Code: Select all

if ($profiledata['user_gender'] != '') 
change to:

Code: Select all

if ($profiledata['user_gender'] != 0) 
and

Code: Select all

if ($profiledata['user_birthday'] != '') 
change to:

Code: Select all

if ($profiledata['user_birthday'] != 999999) 
i'm glad you like it :)

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw » Thu Jan 18, 2007 7:37 pm

Cool MOD! :)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
bum63
Registered User
Posts: 262
Joined: Tue Oct 10, 2006 8:36 pm

Post by bum63 » Thu Jan 18, 2007 7:41 pm

Thank you very much!!
works like a charm :P

FireStorM~
Registered User
Posts: 69
Joined: Thu Jul 28, 2005 9:17 pm

Post by FireStorM~ » Sat Jan 20, 2007 1:39 pm

nice mod
hmmm

jtnatoli
Registered User
Posts: 8
Joined: Tue Nov 13, 2007 1:22 am
Contact:

Re: [17/01/07] Hide empty fields in user profile

Post by jtnatoli » Tue Dec 04, 2007 5:34 am

Great mod, thank you! I found a little error though..

Code: Select all


if ($profiledata['user_website'] != '')
{	
	$template->assign_block_vars('switch_showwebsite',array());
}

Note: showwebsite

#-----[ FIND ]------------------------------------------
#
<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>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN switch_showuserwebsite -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- END switch_showuserwebsite -->
#
#-----[ FIND ]------------------------------------------
#
<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>
#
Note: showuserwebsite

The website is always hidden unless you change showuserwebsite to showwebsite in the HTML or showwebsite to showuserwebsite in the PHP.

Hearron
Registered User
Posts: 70
Joined: Wed Feb 28, 2007 12:38 am

Re: [17/01/07] Hide empty fields in user profile

Post by Hearron » Fri Dec 07, 2007 12:24 am

GREAT MOD...Thank You...and Thank You J.tnatoli,as j.tn said there is a little error but yes easy fix, can be done 2 ways but quickest for me was to edit the includes/usercp_viewprofile.php change showwebsite to showuserwebsite. :lol: :lol:

krijo
Registered User
Posts: 77
Joined: Mon Dec 24, 2007 10:07 pm

Re: [17/01/07] Hide empty fields in user profile

Post by krijo » Mon Dec 24, 2007 10:25 pm

thx for this.. nice and clean mod :)

Post Reply

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