HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Block users from seeing the Join Date

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#76124 (In Topic #15718)
Avatar

Fan in action

Is there a way to block users to not see the join date for all members?

Not only in the profile but in the members link as well.
Back to the top
 
Posted
Rating:
#76127
Avatar

It could be done in pure templates but would take a lot of explaining. It'd be easier just to edit the site/pages/modules/members.php file.
These lines would need editing:

Code

$fields_title=results_field_title(array(do_lang_tempcode('USERNAME'),do_lang_tempcode('PRIMARY_GROUP'),do_lang_tempcode('COUNT_POSTS'),do_lang_tempcode('JOIN_DATE')),$sortables,'md_sort',$sortable.' '.$sort_order);

Code

$members->attach(results_entry(array($link,$primary_group,integer_format($row['m_cache_num_posts']),escape_html(get_timezoned_date($row['m_join_time'])))));
i.e. ripping bits out.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76128
Avatar

Fan in action

Couldn't find members.php at /pages/modules/


Last edit: by stockcoon
Back to the top
 
Posted
Rating:
#76129
Avatar

Fan in action

ok found the page, tried to take out some of the information concerning join_time. I'm getting errors on the "$members->attach(results_entry(array($link,$primary_group,i
nteger_format($row['m_cache_num_posts']),escape_html(get_time
zoned_date($row['m_join_time'])))));"

Line.

Not sure what to take out without causing an error.

Back to the top
 
Posted
Rating:
#76132
Avatar

basically for every ( that comes out you need a ) removed too so remove ,escape_html(get_time
zoned_date($row['m_join_time']))


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: