Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

A Way to Turn Colons Off for Field Titles!

  • fader8
  • fader8
  • OFFLINE
  • Posts: 28
  • Thanks: 0
  • Karma: 1
12 years 10 months ago #189912 by fader8
As the thread title says... Presently CB inserts a colon after every field title. It would be wonderful if that could be defeated.

Joomla 1.5.25, CB 1.8rc2, CBSubs 1.2.2, GroupJive 2.5rc, Kunena 1.7.2, php 5.2.5

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

  • bk6366
  • bk6366
  • OFFLINE
  • Posts: 97
  • Thanks: 22
  • Karma: 4
12 years 9 months ago - 12 years 9 months ago #193019 by bk6366
Core edits aren't advised but if you continue you do so at your own risk.
Backup your site before proceeding:

/administrator/components/com_comprofiler/plugin.class.php

Around line 1859 change this: ':' to '' //blank or '-' //hyphen, etc.
Code:
if ( trim( $translatedTitle ) != '' ) { $results .= $label . $translatedTitle . ( $field->displaytitle != -1 ? ':' : '' ) //change the colon on field name . $labelEnd ; }

CB 1.7.1: @ Line 1859
CB 1.8 @ Line 896

bk
---
J1.7.3 / CB 1.7.1 / PHP 5.2.17 (no, not upgrading yet)
Current J/CB Project

'Terse'
Guide to getting answers
Please note that pm's related to CB issues will go unanswered. That's what the forums are for.
Last edit: 12 years 9 months ago by bk6366. Reason: added v1.8 for upgraded systems
The following user(s) said Thank You: elfif

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

  • elfif
  • elfif
  • OFFLINE
  • Posts: 4
  • Thanks: 1
  • Karma: 0
12 years 2 weeks ago #216316 by elfif
In CB 1.9 @ line 931
The following user(s) said Thank You: KittyAnn

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

Moderators: beatnantkrileon
Powered by Kunena Forum