×

Notice

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

TOPIC: Removing a few BBCodes

Removing a few BBCodes 14 years 1 month ago #10560

  • Renay Scott
  • Renay Scott's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hello,

Im using compojoomcomment4.1.7 with the modern template. I'd like to know if there is a way to remove certain bbcodes from showing. I'd like to keep bbcodes active but remove some of the selections from the comments area. I'd like only to keep b, i, u, s. The rest, i'd actually like to be taken off. Is it possible to do this?

I remember doing this with the older !joomlacomment by removing some of the codes from comment.class.php, but I do not see this file with the new version. Is there a problem with my install, or was the location/coding changed for the 4.1.7 version?

Removing a few BBCodes 14 years 1 month ago #10562

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I assume that you use the modern emoticons. Just go to components/com_comment/joscomment/emoticons/modern/index.php
You will see lines like this:
$GLOBALS["JOSC_emoticon"][';))'] = "Wink-2.gif";
$GLOBALS["JOSC_emoticon"][':0'] = "Wooo.gif";

Just remove the declaration that you don't want to have and they won't display in frontend.

Removing a few BBCodes 14 years 1 month ago #10563

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I wanted to put the above information in the documentation and I suddenly realized that what I wrote is not the answer to your question. With the above example you will be able to remove some of the emoticons, but not the buttons that you ask for.

You have to go to:
components/com_comment/classes/joomlacomment/josc_form.php
On line 192 you will fine the code that you was searching for:
$html = "<a href='javascript:JOSC_insertUBBTag(\"b\")'><img src='" . $ubbIconList['bold'] . "' class='buttonBB' name='bb' alt='[b]' /></a>&nbsp;";

Comment out the lines you don't want to see in frontend and you should be fine.

Removing a few BBCodes 14 years 1 month ago #10576

  • Renay Scott
  • Renay Scott's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Found it! Thanks so much. Your awesome!
  • Page:
  • 1
Time to create page: 0.125 seconds