![]() |
Can this be done?
|
On which page?
|
More specifically, on the member profile pages in custom and normal fields which are not required and are not filled in by the user.
|
Yep, it's possible. You'll have to create templates for each that you want to show/not show and copy out the info from the getinfo template for that row and add a bit to member.php.
For example, if I don't want Location to show if it's empty, I'd do the following: 1) Create a new template called getinfo_location with the following in it: Code:
<tr> 3) In member.php find Code:
eval("\$customfields .= \"".gettemplate("getinfo_customfields")."\";"); Code:
if ($userinfo[field2]!="") { |
Seems easy enough! I'll try that out tomorrow when I'm awake. This should be a new feature for 2.1 ! No doubt...
|
That's not easy, in fact thats the most hacked-up slackjaw thing i ever saw. Isn't there a way that will work for ALL fields? :confused:
|
This is what I've put in my functions.php:
Code:
if ($post[field2]!="") { All they should contain is (example): Code:
Posts: $post[posts]<br> |
There's a hack out just for the customfields not showing up in the profile page if they are empty. It is by AFTERLAB and the hack is called "Hide Unentered Fields".
|
Thank you Boofo:)
Satan |
You're welcome there, Chris. ;)
Quote:
|
All times are GMT. The time now is 06:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|