[SOLVED] remove %s has %s registered users

9 years 11 months ago #141017 by dloulis

On userlist, on top of the table which displays the registered users there is a text that says
[Website name] has %s registered users (where %s the correct number).

I would like to change that text. Either add a small text in front of [Website name] because in my language it doesn't make sense the way it is, or remove it completely.

I was able to find the appropriate text in the language file, but that doesn't help.

Any ideas?


Post edited by: krileon, at: 2010/09/01 16:35

Please Log in to join the conversation.

9 years 11 months ago #141020 by krileon
Replied by krileon on topic Re:remove %s has %s registered users
You can set the string to translate to nothing or you can edit your CB template PHP file and remove the count (or edit and add extra text). Please search as has been answered numerous times already, thank you.

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 to join the conversation.

9 years 11 months ago #141075 by dloulis
Replied by dloulis on topic Re:remove %s has %s registered users
Found it, thanks.
I couldn't edit the string in the language file to translate to nothing because then that would display:
[website] %s (f.e. "mydomain 2") and it doesn't make sense.

I had to edit the default template file, exactly as you suggested, in order to display correctly that information.

In case someone else needs this, it is in
root/components/com_comprofiler/plugin/templates/[template name, usually "default"]/default.php
around line 370.

Ευχαριστώ krileon :)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.409 seconds

Facebook Twitter LinkedIn