Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How can I change the " | " character?

How can I change the " | " character? 15 years 3 weeks ago #3900

  • nyscf
  • nyscf's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I need to change this character \"|\" in the confirmation page.

right now, when people register for multiple options in one custom field, on the next page where they confirm their info the options they have selected show up all on the same line and only dived by the \"|\" symbol. I am hoping to change it so each option shows up on a separate line, as they do when selecting them, or at least have them separated by commas rather than the above symbol.

Any ideas?

Thanks

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

How can I change the " | " character? 15 years 3 weeks ago #3905

  • lswaine
  • lswaine's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
I would be interested being able to do this as well, although I\'d like to apply it to DT Register -- will be watching for the response on it!

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

How can I change the " | " character? 15 years 3 weeks ago #3906

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Hello. Open this file:

/components/com_dtregister/dtregister.php

and make the following changes:

Around line 6298 find this:
$value=implode(\'|\',$value);

CHANGE it to this:
$value=implode(\', \',$value);

Then around line 6393 find this:
if($customrows[$key2]->group_behave==1 || $customrows[$key2]->group_behave==3){

AFTER this line ADD this:
if($customrows[$key2]->type==3){
     $value2 = str_replace(\'|\',\', \',$value2);
}

That should do the trick for both individual and group registrations.

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

  • Page:
  • 1
Time to create page: 0.106 seconds