A Way to Turn Colons Off for Field Titles!

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

12 years 1 month ago - 12 years 1 month 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.
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.
The following user(s) said Thank You: elfif

Please Log in to join the conversation.

11 years 4 months ago #216316 by elfif
In CB 1.9 @ line 931
The following user(s) said Thank You: KittyAnn

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.155 seconds

Facebook Twitter LinkedIn