Joomla!
http://forum.joomla.org/

yvBBCode - BBCodes extension for Joomla! 1.5
http://forum.joomla.org/viewtopic.php?f=46&t=225198
Page 1 of 4

Author:  yvolk [ Sun Oct 21, 2007 8:00 am ]
Post subject:  yvBBCode - BBCodes extension for Joomla! 1.5

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.

Author:  Websmurf [ Mon Oct 22, 2007 1:00 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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.

Author:  yvolk [ Sun Dec 02, 2007 9:43 am ]
Post subject:  Re: yvBBCode - version 1.1 released

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

Author:  SineMacula [ Sun Dec 02, 2007 11:51 pm ]
Post subject:  Re: yvBBCode - version 1.1 released

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.

Author:  yvolk [ Mon Dec 03, 2007 6:54 am ]
Post subject:  Re: yvBBCode - version 1.1 released

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!  ;)

Author:  BusyNet [ Mon Jun 09, 2008 3:50 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

:( I got error message on webpage in my site
Quote:
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.

Author:  iamrobert [ Wed Jun 11, 2008 3:32 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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:
'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-code-php-application

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

Author:  yvolk [ Wed Jun 11, 2008 12:48 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

BusyNet wrote:
:( I got error message on webpage in my site
Quote:
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:
   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;
   }

Author:  BusyNet [ Thu Jun 12, 2008 1:12 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

Thank you so much. yvolk
My problem was solve.

Author:  Luckyrat [ Sat Jul 26, 2008 4:13 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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/viewtopic.php?f=9&t=434&p=3037#p3037

Author:  yvolk [ Mon Aug 04, 2008 8:53 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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/viewtopic.php?f=9&t=434&p=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 ;)

Author:  raskolnikovj [ Wed Aug 06, 2008 2:15 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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

Author:  yvolk [ Mon Aug 11, 2008 6:36 am ]
Post subject:  yvBBCode v.1.01.007 released

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:
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...

Author:  ah-a [ Sun Sep 21, 2008 3:30 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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

Author:  iamrobert [ Mon Sep 22, 2008 1:55 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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=452&t=278359#p1320986

Hope that is helpful.

Robert

Author:  ah-a [ Mon Sep 22, 2008 4:28 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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

Author:  tngx [ Sun Oct 19, 2008 4:20 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

I need to add a
Code:
<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)

Author:  yvolk [ Sun Oct 19, 2008 8:42 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

tngx wrote:
I need to add a
Code:
<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:
[sub]®[/sub]

Author:  tngx [ Sun Oct 19, 2008 2:22 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

It works great!!!! thank you!

Author:  tngx [ Mon Oct 20, 2008 3:51 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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

Author:  yvolk [ Mon Oct 20, 2008 5:44 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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...

Author:  Marked [ Thu Feb 19, 2009 6:59 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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?

Author:  evyna [ Mon Mar 09, 2009 9:57 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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?

Author:  powderburned [ Tue Mar 10, 2009 3:59 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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.

Attachment:
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...

Author:  yvolk [ Tue Mar 10, 2009 4:28 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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.

Attachment:
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...

Author:  lumoo [ Wed Mar 11, 2009 8:10 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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:
[b]bold[/b] [img]http://yurivolkov.com/Joomla/images/joomla.png[/img]


or
Code:
: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

Author:  yvolk [ Thu Mar 12, 2009 9:57 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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:
[b]bold[/b] [img]http://yurivolkov.com/Joomla/images/joomla.png[/img]


or
Code:
: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

Author:  lumoo [ Thu Mar 12, 2009 11:48 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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-live-product-search.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

Author:  evyna [ Thu Mar 12, 2009 2:12 pm ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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

Author:  yvolk [ Sun Apr 26, 2009 3:02 am ]
Post subject:  Re: yvBBCode - BBCodes extension for Joomla! 1.5

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:
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".

Page 1 of 4 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/