yvBBCode - BBCodes extension for Joomla! 1.5

Do you have an Open Source Product available for Joomla!? Let everyone know here.
User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

yvBBCode - BBCodes extension for Joomla! 1.5

Post by yvolk » Sun Oct 21, 2007 8:00 am

yvBBCode is a BBCode extension for Joomla! 1.5. GPL licensed.
It may replace BBCodes with HTML markup:
- on the whole page (so, you may use BBCodes everywhere, even in the places, where Joomla! natively allows plain text only),
- or only in your Articles (working as content plugin),
- or it may be used by any Joomla! extension to provide "BBCode buttons" for editor and replace BBCodes with HTML markup in text, generated by this extension (as an example, it is integrated into yvComment extension already).
The extension is customizable, so you may choose, what subset of BBCodes to use, what images are used for buttons etc.

Please, see screenshots on the yvBBCode Homepage and give it a try. The link to that Homepage is on the Joomla! Extensions Directory - yvBBCode page.
Last edited by yvolk on Fri Oct 26, 2007 6:12 am, edited 1 time in total.
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by Websmurf » Mon Oct 22, 2007 1:00 pm

please register your extension on the extension site and modify your link once it's published.
As per forum rules, only links to the extension site can be placed.
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl

User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

Re: yvBBCode - version 1.1 released

Post by yvolk » Sun Dec 02, 2007 9:43 am

Whats new in v.1.1:

Added option 'Links to Articles' ('Yes' - by default). If this option is set to 'Yes', links between Articles ('content items'...) may be created with 'special type of BBCodes' inserted into any content of the Web page and converted to Hyperlinks on the fly.
Currently yvBBCode supports one BBCode: contentid.
E.g. [contentid=3]Content management[/contentid] is replaced by the link to the Article with id=3.

For more discussion about this topic, please see Linking to content items
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html

User avatar
SineMacula
Joomla! Explorer
Joomla! Explorer
Posts: 453
Joined: Sun Aug 21, 2005 5:16 am
Location: San Jose, CA
Contact:

Re: yvBBCode - version 1.1 released

Post by SineMacula » Sun Dec 02, 2007 11:51 pm

yvolk wrote: Whats new in v.1.1:

Added option 'Links to Articles' ('Yes' - by default). If this option is set to 'Yes', links between Articles ('content items'...) may be created with 'special type of BBCodes' inserted into any content of the Web page and converted to Hyperlinks on the fly.
Currently yvBBCode supports one BBCode: contentid.
E.g. [contentid=3]Content management[/contentid] is replaced by the link to the Article with id=3.

For more discussion about this topic, please see Linking to content items
I'm very happy that you've added the "Links to Articles" functionality!!  :D This will make my life much easier!

I have discovered that it thinks the article does not exist if it is part of the "Uncategorized" section and category -- so, any uncategorized articles cannot be linked to.

User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

Re: yvBBCode - version 1.1 released

Post by yvolk » Mon Dec 03, 2007 6:54 am

SineMacula wrote: I have discovered that it thinks the article does not exist if it is part of the "Uncategorized" section and category -- so, any uncategorized articles cannot be linked to.
If you will look in the code of "plugins/system/yvbbcode/BBCodeParser/Filter/ContentLinks.php" file (or believe me  :)), you see, that the code to build link to the Article is almost exact copy of the code from the "Latest news" module (from file 'modules/mod_latestnews/helper.php'), so:
- it shows exactly how and what "Latest news" module shows, only for one Article, e.g.
- it doesn't show link, if current user doesn't have rights to see it...

...but, of cause, we may improve Joomla!  ;)
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html

BusyNet
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Tue May 15, 2007 3:47 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by BusyNet » Mon Jun 09, 2008 3:50 am

:( I got error message on webpage in my site
Notice: Undefined property: stdClass::$sectionid in /home/plunion/domains/plunion.org/public_html/th/plugins/system/yvbbcode.php on line 85
and yvbbcode.php code is:
Image


what can i do? please.

iamrobert
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sat Aug 25, 2007 8:13 am
Location: Taiwan
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by iamrobert » Wed Jun 11, 2008 3:32 am

This plugin is awesome - it finally allows me to insert line-breaks into a menu item.. or if you need bold or italic etc...

Example:
http://www.pigandwhistle.com.tw/kh/

Here's How I did it (but there's probably a smarter wayr):

1. Install the plugin
2. You need to edit the filters folder to insert your own bbcodes... as line breaks aren't currently in it

I added the br tag

Code: Select all

'br' =>array('htmlopen'  => 'br', 
                               					'htmlclose' => '', 
                               					'allowed'   => 'all', 
                               					'attributes'=> array()) 
Here's a url on how to add your own code:
http://www.sitepoint.com/article/bb-cod ... pplication

3. Edit your main menu (remember you can edit the Parameters system > Page Title to take your line break out)

Hope someone finds this helpful


Robert
iamrobert Design | Taiwan
https://www.iamrobert.com

User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by yvolk » Wed Jun 11, 2008 12:48 pm

BusyNet wrote::( I got error message on webpage in my site
Notice: Undefined property: stdClass::$sectionid in /home/plunion/domains/plunion.org/public_html/th/plugins/system/yvbbcode.php on line 85
and yvbbcode.php code is:
Image
what can i do? please.
This means, that somehow article object (that was prepared by component, that called yvBBCode) doesn't have 'sectionid' property...
Please try to change the code of yvBBCode.php to:

Code: Select all

	function onPrepareContent(& $article, & $params, $page = 0) {
		$this->_PHP4();	
		if ($this->params->get('articletext', 0)) {
			if ($this->_articleSectionEnabled($article->sectionid)) {
				$this->_replaceCode($article->text);
			}
		}
		return true;
	}

BusyNet
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Tue May 15, 2007 3:47 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by BusyNet » Thu Jun 12, 2008 1:12 pm

Thank you so much. yvolk
My problem was solve.

Luckyrat
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Oct 21, 2007 10:00 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by Luckyrat » Sat Jul 26, 2008 4:13 pm

I found a conflict between yvBBCode and JoomlaPack. An error message is displayed when trying to do a JoomlaPack backup. E.g.:

[080608 ] Last operation failed. Server response:
[080608 ] <br />\n<b>Fatal error</b>: Cannot redeclare _pear_call_destructors() (previously declared in D:\\xampp\\htdocs\\Joomla15\\libraries\\pear\\PEAR.php:765) in <b>D:\\xampp\\htdocs\\Joomla15\\libraries\\pear\\PEAR.php</b> on line <b>796</b><br />

Looks like one or the other extension is not dealing with PEAR 100% correctly. See http://www.joomlapack.net/forum/viewtop ... 3037#p3037

User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by yvolk » Mon Aug 04, 2008 8:53 am

Luckyrat wrote:I found a conflict between yvBBCode and JoomlaPack. An error message is displayed when trying to do a JoomlaPack backup. E.g.:

[080608 ] Last operation failed. Server response:
[080608 ] <br />\n<b>Fatal error</b>: Cannot redeclare _pear_call_destructors() (previously declared in D:\\xampp\\htdocs\\Joomla15\\libraries\\pear\\PEAR.php:765) in <b>D:\\xampp\\htdocs\\Joomla15\\libraries\\pear\\PEAR.php</b> on line <b>796</b><br />

Looks like one or the other extension is not dealing with PEAR 100% correctly. See http://www.joomlapack.net/forum/viewtop ... 3037#p3037
Please, try to figure out, where is the problem. You have great advantage for this: you can reproduce the problem in no time ;)

raskolnikovj
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Dec 27, 2006 9:34 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by raskolnikovj » Wed Aug 06, 2008 2:15 am

I had the same problem . . . Cannot redeclare _pear_call_destructors() . . trying to use virtuemart. Disabling yvbbcode removed the error from virtuemart.

Re-enabling the bbcode plugin brought the same errors back

User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

yvBBCode v.1.01.007 released

Post by yvolk » Mon Aug 11, 2008 6:36 am

yvBBCode v.1.01.007 released - it contains two fixes:
1. Fixed incompatibility with other extensions, that use PEAR library. (Successfully tested with JoomlaPack, thanks to Luckyrat for the report and testing). Problem was in different ways to include PEAR, used by different extensions. The right way is:

Code: Select all

jimport('pear.PEAR');

2. Updated function, that generates link to the Article for [contentid] (function ContentIDToURL).

PS: I looked into the code of VirtueMart: it uses PEAR library incorrectly, ignoring the fact, that any other extension may use the same library. In fact, VirtueMart has its own copy of PEAR library (hence - redeclaration...).
So, problem with VirtueMart and PEAR should be addressed to the VirtueMart's team...

ah-a
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Sep 21, 2008 3:17 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by ah-a » Sun Sep 21, 2008 3:30 pm

Hi

I installed your yvbbcode extension and seem to work fine with the predefined tags.
My only problem is, that I want to add a line break tag like [br] so that I can break the lines in my menu items.
I just dont where and what to add (yes Im new to this). I cant see any documentation ..

So can anybody help med out here.

Thanks

Anders

iamrobert
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sat Aug 25, 2007 8:13 am
Location: Taiwan
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by iamrobert » Mon Sep 22, 2008 1:55 am

Hi,

I wrote a post about this. You need to edit the extended.php file. Here's the post:

http://forum.joomla.org/viewtopic.php?f ... 9#p1320986

Hope that is helpful.

Robert
iamrobert Design | Taiwan
https://www.iamrobert.com

ah-a
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Sep 21, 2008 3:17 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by ah-a » Mon Sep 22, 2008 4:28 pm

Thanks

It works fine, but it doesn’t solve my problems because the “menu divider lines” isn’t affected by it the [br]..
It’s very strange that this hasn't been fixed in Joomla since it must be something of great interest for many people.

/Anders

tngx
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Jul 11, 2008 1:25 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by tngx » Sun Oct 19, 2008 4:20 am

I need to add a

Code: Select all

<sub>®</sub>
to the brand of a website that appears on lot of menu items and content items titles, can this extension be solution for this ??? ?
best 8)

User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by yvolk » Sun Oct 19, 2008 8:42 am

tngx wrote:I need to add a

Code: Select all

<sub>®</sub>
to the brand of a website that appears on lot of menu items and content items titles, can this extension be solution for this ??? ?
best 8)
Of cause, just use 'sub' BBCode and enable yvBBCode to replace BBCodes on the whole page:

Code: Select all

[sub]®[/sub]
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html

tngx
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Jul 11, 2008 1:25 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by tngx » Sun Oct 19, 2008 2:22 pm

It works great!!!! thank you!

tngx
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Jul 11, 2008 1:25 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by tngx » Mon Oct 20, 2008 3:51 am

the browsers page titles and tabs shows [sub]x[/sub], is there a miracle for this problem?
best :-[

User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by yvolk » Mon Oct 20, 2008 5:44 am

tngx wrote:the browsers page titles and tabs shows [sub]x[/sub], is there a miracle for this problem?
best :-[
yvBBCode replaces BBCodes in the body of the page... as I see your case it (or some other plugin) should (optionally) remove BBCodes markup from the title... it should be addition of some lines of code...

Marked
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Tue Feb 19, 2008 8:53 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by Marked » Thu Feb 19, 2009 6:59 am

This is a great extension.

What I would like to do with it is create an editor that replicates that of a forum. So there is no need for any html.

My question is how can I get the editor part or the buttons inside an editor for writing articles?

evyna
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Aug 22, 2008 2:54 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by evyna » Mon Mar 09, 2009 9:57 am

Hello, I have a problem with this plugin. I have Agora forum and I would like to have not this plugin in the forum because of it dont'work if the plugin is active...

How can I do?

User avatar
powderburned
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Mar 04, 2008 7:53 pm
Location: Tennessee, USA
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by powderburned » Tue Mar 10, 2009 3:59 pm

I really like your plugin, there are a lot of uses for this! However, I did notice a slight conflict with JomComment. It distorts the form a bit when your plugin is published. Attached is a screenshot.
jomcomment.png
I can resolve the issue by turning off the option "Enable BBCode replacements for the whole page (even here", which is fine for my current use, but I thought that I should let you know...
You do not have the required permissions to view the files attached to this post.

User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by yvolk » Tue Mar 10, 2009 4:28 pm

Thank you for the information. In order to "teach" yvBBCode not to screw up jomcomment, I need to have not a "picture" of the screen, but "html source" of it (better, two HTML sources: with yvBBCode turned on and off).
powderburned wrote:I really like your plugin, there are a lot of uses for this! However, I did notice a slight conflict with JomComment. It distorts the form a bit when your plugin is published. Attached is a screenshot.
jomcomment.png
I can resolve the issue by turning off the option "Enable BBCode replacements for the whole page (even here", which is fine for my current use, but I thought that I should let you know...

User avatar
lumoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Fri Nov 09, 2007 10:24 pm
Location: Germany
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by lumoo » Wed Mar 11, 2009 8:10 pm

Hi yvolk,
Thanks for your yvcomment and the 2 modules..
Everything installed fine and appears to be configured correctly, the BBCodes and yvSmileys insert but they're not converted...
e.g. when the comment is posted they appear simply as

Code: Select all

[b]bold[/b] [img]http://yurivolkov.com/Joomla/images/joomla.png[/img]
or

Code: Select all

:oops: :ugeek: :geek: :| :idea: :o
Yes same problem with yvSmileys as well.

In the preview the smilies and BB code are correct.

Joomla! 1.5.9 Production/Stable, php 5.2.6, Apache/Linux

I read above that there is a conflict with Virtuemarts PEAR implimentation, initially it gave a stop error (VirtueMart) but replacing the PEAR.php with a blank file (in the Virtuemart folder solved this)
Any ideas on what I should be checking?

Thanks

User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by yvolk » Thu Mar 12, 2009 9:57 am

I would suggest this:
1. Make sure yvBBCode plugin is enabled
2. Set "Enable BBCode replacement for the whole page" to yes.
3. Try setting "Debugging mode" to Yes and see test results...
lumoo wrote:Hi yvolk,
Thanks for your yvcomment and the 2 modules..
Everything installed fine and appears to be configured correctly, the BBCodes and yvSmileys insert but they're not converted...
e.g. when the comment is posted they appear simply as

Code: Select all

[b]bold[/b] [img]http://yurivolkov.com/Joomla/images/joomla.png[/img]
or

Code: Select all

:oops: :ugeek: :geek: :| :idea: :o
Yes same problem with yvSmileys as well.

In the preview the smilies and BB code are correct.

Joomla! 1.5.9 Production/Stable, php 5.2.6, Apache/Linux

I read above that there is a conflict with Virtuemarts PEAR implimentation, initially it gave a stop error (VirtueMart) but replacing the PEAR.php with a blank file (in the Virtuemart folder solved this)
Any ideas on what I should be checking?

Thanks
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html

User avatar
lumoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Fri Nov 09, 2007 10:24 pm
Location: Germany
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by lumoo » Thu Mar 12, 2009 11:48 am

Hi,
Thanks for the quick reply.
Yes all options were set to yes and/or enabled and every other combination I can try.. ;)
with debugging on I'm not sure what I'm supposed to see, on the plugin page the codes in the second box show correctly underneath.

Also the preview of yvcomment show correctly, it's only when the comment is posted nothing shows except the raw code.
hmmmm......
the page is here if you have time...
http://www.gjcwebdesign.com/virtuemart- ... earch.html
*********EDIT***********
Hmmm... gets stranger, some old content that has for example a ;) now shows a smiley !
And yes, the actual page with the yvcomment shows smileys as well

Worked it out - ahh , I'm so clever... :geek:

You have to select "yes" for "Execute content plugins" parameter of yvcomment...

Sorry for the trouble!

Cheers


thanks again

evyna
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Aug 22, 2008 2:54 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by evyna » Thu Mar 12, 2009 2:12 pm

for me it's not ok... if a enable debugging mode, the bbcode in comments is disable

User avatar
yvolk
Joomla! Guru
Joomla! Guru
Posts: 979
Joined: Thu Jun 01, 2006 1:52 pm
Location: Moscow, Russia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by yvolk » Sun Apr 26, 2009 3:02 am

Pixelgun wrote:yvComments is working well for me so far. You did a great job! But I haven't been able to figure out how to get images to show up withing comments.

I have the yvbbCode plugin installed and images and extended code both set as 'yes'. But when I use the image button or hand write the tags and put the URL of an image withing the tags, the image doesn't show up in the comment. Am I missing something?

Code: Select all

example: [img]http://bb.bbboy.net/ulimages/2push.gif[/img]
This means that you need:
1. to set yvBBCode option "Enable BBCode replacements for the whole page" to "Yes";
or
2. a) to set yvBBCode option "Enable BBCodes for the text of articles" to "Yes"
AND
b) to set yvComment option "Execute content plugins" to "Yes".
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html


Locked

Return to “Open Source Products for Joomla!”