×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How to remove font Color and Size, but keep UBB?

How to remove font Color and Size, but keep UBB? 12 years 2 months ago #17522

  • Fernando Herrera
  • Fernando Herrera's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I'd like to only offer Bold, Italic, Underline, and Strike Through. I understand on the documentation how to remove Picture, Link, and Quote, but I don't see how to remove font Color and Size?

Can anyone help me with this? Thanks. :unsure:

How to remove font Color and Size, but keep UBB? 12 years 2 months ago #17525

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Fernando,
You can disable support for UBBcode and this will remove all the ubb icons in the form. Now I understand that you want to remove just color and size - this is not possible through the backend. You'll have to make some modifications to the existing code:
components\com_comment\classes\joomlacomment\JOSC_form.php line 180 to 190. Each line creates 1 button.

line 194 to 224 - creates the color and size.
You can comment out the content of the function and then you won't see the buttons.

kind regards,
Daniel

How to remove font Color and Size, but keep UBB? 12 years 2 months ago #17531

  • Fernando Herrera
  • Fernando Herrera's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Bravo! Superb. It worked perfectly. Thank you.
  • Page:
  • 1
Time to create page: 0.106 seconds