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

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Custom bbcode
Pages: [1]   Go Down
  Print  
Author Topic: Custom bbcode  (Read 971 times)
0 Members and 2 Guests are viewing this topic.
alemao59
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« on: September 22, 2010, 20:44:56 »

Hi all,

i do have a question about the custom bbcode, i have searched the forum but didnt find an answer.

I know for most of you this is  stupid question but i am not a coder so here it goes:

How can i setup a custom bbcode which shows a text instead of the complete url? Something like that:

Text

I am sure its possible I have seen this in many other bbcodes editor and help would be very much appreciated.

Thanks.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: September 22, 2010, 20:46:47 »

Could you explain me more detailed what you want? Show me text you've entered in comment (source) and text you want to see instead (result).  And I'll try to help you with it.
Logged

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

Karma: 0
Offline Offline

Posts: 3


« Reply #2 on: September 22, 2010, 20:54:56 »

Hi Karma,
thanks for your quick reply, i found out that the bbcode already supports this feature.  What i meant was, to insert a bbcode for a link who doesnt show the complete URL only the Text for the link e.g.

please click her to go the website

So my problem is solved, but i do have another question. When i insert a code like this in the comment form it opens up in a new window, is it possible to switch this off so it opens in the same window?

Thanks again for your assistance.

Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: September 22, 2010, 21:07:53 »

When i insert a code like this in the comment form it opens up in a new window, is it possible to switch this off so it opens in the same window?
Open file /components/com_jcomments/jcomments.class.php and remove code: target="_blank".

For example you need replace:
Code: (php)
$replacements[] = '<a href="\\1" target="_blank">\\1</a>';
with
Code: (php)
$replacements[] = '<a href="\\1">\\1</a>';

and with all other cases...
Logged

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

Karma: 0
Offline Offline

Posts: 3


« Reply #4 on: September 22, 2010, 21:50:58 »

Thanks Karma, works perfectly.
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Custom bbcode
 
Jump to: