Jump to content

How to remove last login, member since, membership,profile views in the basic info of user's profile ?

profile basic info member

7 replies to this topic

#1
OFFLINE   GEEK

    Member

  • Banned
  • 678 posts
Posted Image


You need to edit file: module\profile\include\component\block\info.class.php

Remove Last Login:

Find & Delete

if ((int) $aUser['last_login'] > 0 && ((!$aUser['is_invisible']) || (Phpfox::getUserParam('user.can_view_if_a_user_is_invisible') && $aUser['is_invisible'])))
{
$aUserDetails[Phpfox::getPhrase('profile.last_login')] = Phpfox::getLib('date')->convertTime($aUser['last_login'], 'core.profile_time_stamps');
}

Remove Member Since:
Find & Delete

if ((int) $aUser['joined'] > 0)
{
$aUserDetails[Phpfox::getPhrase('profile.member_since')] = Phpfox::getLib('date')->convertTime($aUser['joined'], 'core.profile_time_stamps');
}

Remove Membership:

Find & Delete

if (Phpfox::getUserGroupParam($aUser['user_group_id'], 'profile.display_membership_info'))
{
$aUserDetails[Phpfox::getPhrase('profile.membership')] = (empty($aUser['icon_ext']) ? '' : '' . Phpfox::getLib('locale')->convert($aUser['title']) . ' ') . $aUser['prefix'] . Phpfox::getLib('locale')->convert($aUser['title']) . $aUser['suffix'];
}

Remove Profile Views:

Find & Delete

$aUserDetails[Phpfox::getPhrase('profile.profile_views')] = $aUser['total_view'];

Remove RSS Subscribers:

Find & Delete

if (Phpfox::isModule('rss') && Phpfox::getParam('rss.display_rss_count_on_profile') && Phpfox::getService('user.privacy')->hasAccess($aUser['user_id'], 'rss.display_on_profile'))
  {
   $aUserDetails[Phpfox::getPhrase('profile.rss_subscribers')] = $aUser['rss_count'];
  }


Thanks
Himanshu Jain

#2
OFFLINE   Cheema

    Business Developer

  • Fox Fan Club
  • 151 posts
  • LocationPakistan
ahan very nice tutorial keep it up

#3
OFFLINE   GEEK

    Member

  • Banned
  • 678 posts

View PostCheema, on 15 October 2011 - 04:07 AM, said:

ahan very nice tutorial keep it up

No problem bro but if you like something plz rep me to continue making tutorials.

Thanks
Himanshu Jain

#4
OFFLINE   Cheema

    Business Developer

  • Fox Fan Club
  • 151 posts
  • LocationPakistan
GEEK i want to delete recent logins pics from home page site home page and i have delete recent logins from users home page by DnD Mode and how can i add it again in users home page and how can i delete it from site home page?

#5
OFFLINE   DarkGoth

    Moderator

  • Moderators
  • 1181 posts
  • LocationUnknown
try :

module/user/template/default/controller/register.html.php - look at line #160 just comment out the {*user.images module *} it should be ok.

CODE:
<!--{* module name='user.images' *}-->

Clear your site cache and browser cache.

#6
OFFLINE   wole5029

    Business Developer

  • Campers
  • 129 posts
hello, geek, thanks for your share, but i deleted the profile views and rss susscribe according to what you said but its still showing, am using the brillance theme, will the parameters be different?

#7
OFFLINE   SignatureBoy

    BorN_AutHenTic

  • Fox Fan Club
  • 2100 posts
  • Locationphpfoxcamp
He is banned from this forum

#8
OFFLINE   wole5029

    Business Developer

  • Campers
  • 129 posts
how sad, @ signature boy please can you help in removing profile views and rss subscribe... thanks





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users