Little Tweaks... Hiding Age and Sex

goodguyndfw posted 11th of September 2008 in Community Voice. 4 comments.

Now this may be a broader stroke than what you want to take out for Age and Sex but it works for what I'm doing. It's easy to test, just add some rem statements around a couple of lines. I've made a bunch of little tweaks here and there and didn't document them great - so I'm starting to forget what impacts what. Try this...

Go to /inc/profiles.inc.php... and rem out the following lines like I did below and then refresh any pages that had the sex and age displaying. Should be gone. I've gone through about every page to see if it broke anything but it looks like no dependencies on these variables other than displaying them on a page.


/*

$ret .= '<div class="li_word">'._t('_Sex').':</div><div class="li_value">' . $prof_sex . '</div>';


$ret .= '<div class="li_word">'._t('_DateOfBirth').':</div><div class="li_value">' . $prof_age . '</div>';

*/

 
Comments
·Oldest
·Top
Please login to post a comment.
lrepton
Hey Go,

I haven't implemented this yet...but am looking for a way to do it.

Do you know if this works for "Presence"?
goodguyndfw
I'll see if I can track down that code but I'm off/on the computer the next day or two. If I find it right off I'll see if I can make it dissapear and share how with you. Otherwise it will be a few days. If someone else tells you how and you don't mind, share? :)
RumpyBumpy
Hi!

Thanks for sharing but you're in the wrong venue .....

From Unity Rules .....
2) Forums are for discussions and collaboration. Post in Forums ONLY in case your issue needs group input.
3) Blogs are for opinions, news, ideas. Post in Blogs ONLY if you have something to tell about the topic.
4) Answers are for asking questions and answering them collaboratively. Post in Answers ONLY if you have a question to ask, or want to answer one.
.
jpencoder
hello,

how about if i want to display his/her age in profile.php instead in photo_gallery.ph?

as what i observe, i think in this part:

$oPPV = new BxDolProfilePageView($oProfile, $site, $dir);
$_page_cont[$_ni]['page_main_code'] = $oPPV -> getCode() ;

help me please, thank you.
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.068897008895874