Skip to Content Skip to Menu

[SOLVED] userlists view showing number of users

  • welshart
  • welshart
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
14 years 3 months ago #123615 by welshart
My members list view shows "My web Now has 5 registered users". I would like to turn off this functionality is it possible? Thanks for any suggestions.

Post edited by: krileon, at: 2010/02/08 17:04

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
14 years 3 months ago #123616 by krileon
welshart wrote:

My members list view shows "My web Now has 5 registered users". I would like to turn off this functionality is it possible? Thanks for any suggestions.


It's possible to remove this, but there is no parameter for quickly and easily turning off and on am afraid. Please navigate to components/com_comprofiler/plugin/templates/default/ followed by opening default.php.

You'll need to edit/remove the following line 336-342.
[code:1]
<div class="contentdescription cbUserListResultCount"><?php
if ( $this->totalIsAllUsers ) {
echo $_CB_framework->getCfg( 'sitename' ) . " " . _UE_HAS . " <strong>" . $this->total . "</strong> " . _UE_USERS;
} else {
echo "<strong>" . $this->total . "</strong> " . _UE_USERPENDAPPRACTION . ":";
}
?></div>
[/code:1]

Please note this will remove it from ALL userlists.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • welshart
  • welshart
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
14 years 3 months ago #123780 by welshart
Thank you Kyle, much appreciated.

Please Log in or Create an account to join the conversation.

  • wrrush
  • wrrush
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
14 years 7 hours ago #133997 by wrrush
isnt there a way to just turn off that section of code say like /* some code here*/ then we could go back and turn it back on when we wanted to use it again. just wondering i have only a limited amount of coding but do remember having to put notes everywhere and you could turn this into a note couldnt you???

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 25531
  • Thanks: 1830
  • Karma: 877
14 years 1 hour ago #134011 by nant
wrrush wrote:

isnt there a way to just turn off that section of code say like /* some code here*/ then we could go back and turn it back on when we wanted to use it again. just wondering i have only a limited amount of coding but do remember having to put notes everywhere and you could turn this into a note couldnt you???


Of course you could - kyle gave the exact code section above.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn