Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: [Solved] Custom bbcode doesnn't save slash [/] on close tag
Pages: [1]   Go Down
  Print  
Author Topic: [Solved] Custom bbcode doesnn't save slash [/] on close tag  (Read 2075 times)
0 Members and 1 Guest are viewing this topic.
gogetit
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« on: September 02, 2010, 16:06:02 »

Hi,
I created a new button, and I added - Open tag: [g] Close tag: [/g]
However, after I saved it, the Close tag changed to [g] -- the / was dropped.

When I click on the button on the frontend, the final result I get in the text box is: [g] ...my text...[g]

Any ideas?
Thanks.

UPDATE: Now I see that the youtube button changed, and I cannot change it back
« Last Edit: September 02, 2010, 19:19:01 by smart » Logged
smart
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« Reply #1 on: September 02, 2010, 18:10:38 »

Yes, this is known issue and seems that I've already posted the solution....

1. Open file /administrator/components/com_jcomments/admin.jcomments.custombbcodes.php
2. Find and replace code:
Code: (php)
$row->button_close_tag = trim(strip_tags($row->button_open_tag));
with
Code: (php)
$row->button_close_tag = trim(strip_tags($row->button_close_tag));
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
gogetit
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« Reply #2 on: September 02, 2010, 19:07:23 »

Thanks, it works, and I'm sorry that I missed the previous answer.
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: [Solved] Custom bbcode doesnn't save slash [/] on close tag
 
Jump to: