The Joomla! Forum ™



Forum rules


Global Rules
Additional Rules for this forum <------- Please read before posting



Post new topic Reply to topic  [ 180 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
PostPosted: Sun Oct 21, 2007 8:00 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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.

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


Last edited by yvolk on Fri Oct 26, 2007 6:12 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Oct 22, 2007 1:00 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2230
Location: The Netherlands
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


Top
 Profile  
 
PostPosted: Sun Dec 02, 2007 9:43 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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


Top
 Profile  
 
PostPosted: Sun Dec 02, 2007 11:51 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Sun Aug 21, 2005 5:16 am
Posts: 453
Location: San Jose, CA
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.

_________________
http://www.tapintu.com ~ http://www.jogyourrightbrain.com


Top
 Profile  
 
PostPosted: Mon Dec 03, 2007 6:54 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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


Top
 Profile  
 
PostPosted: Mon Jun 09, 2008 3:50 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue May 15, 2007 3:47 am
Posts: 35
:( 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.


Top
 Profile  
 
PostPosted: Wed Jun 11, 2008 3:32 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Aug 25, 2007 8:13 am
Posts: 159
Location: Taiwan
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

_________________
Web Design | Graphic Design | Taiwan
http://www.iamrobert.com


Top
 Profile  
 
PostPosted: Wed Jun 11, 2008 12:48 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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;
   }


Top
 Profile  
 
PostPosted: Thu Jun 12, 2008 1:12 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue May 15, 2007 3:47 am
Posts: 35
Thank you so much. yvolk
My problem was solve.


Top
 Profile  
 
PostPosted: Sat Jul 26, 2008 4:13 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Oct 21, 2007 10:00 am
Posts: 1
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 ] &lt;br /&gt;\n&lt;b&gt;Fatal error&lt;/b&gt;: Cannot redeclare _pear_call_destructors() (previously declared in D:\\xampp\\htdocs\\Joomla15\\libraries\\pear\\PEAR.php:765) in &lt;b&gt;D:\\xampp\\htdocs\\Joomla15\\libraries\\pear\\PEAR.php&lt;/b&gt; on line &lt;b&gt;796&lt;/b&gt;&lt;br /&gt;

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


Top
 Profile  
 
PostPosted: Mon Aug 04, 2008 8:53 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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 ] &lt;br /&gt;\n&lt;b&gt;Fatal error&lt;/b&gt;: Cannot redeclare _pear_call_destructors() (previously declared in D:\\xampp\\htdocs\\Joomla15\\libraries\\pear\\PEAR.php:765) in &lt;b&gt;D:\\xampp\\htdocs\\Joomla15\\libraries\\pear\\PEAR.php&lt;/b&gt; on line &lt;b&gt;796&lt;/b&gt;&lt;br /&gt;

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


Top
 Profile  
 
PostPosted: Wed Aug 06, 2008 2:15 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Dec 27, 2006 9:34 pm
Posts: 8
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


Top
 Profile  
 
PostPosted: Mon Aug 11, 2008 6:36 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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...


Top
 Profile  
 
PostPosted: Sun Sep 21, 2008 3:30 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Sep 21, 2008 3:17 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Mon Sep 22, 2008 1:55 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Aug 25, 2007 8:13 am
Posts: 159
Location: Taiwan
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

_________________
Web Design | Graphic Design | Taiwan
http://www.iamrobert.com


Top
 Profile  
 
PostPosted: Mon Sep 22, 2008 4:28 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Sep 21, 2008 3:17 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Sun Oct 19, 2008 4:20 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jul 11, 2008 1:25 pm
Posts: 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)


Top
 Profile  
 
PostPosted: Sun Oct 19, 2008 8:42 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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]

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


Top
 Profile  
 
PostPosted: Sun Oct 19, 2008 2:22 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jul 11, 2008 1:25 pm
Posts: 5
It works great!!!! thank you!


Top
 Profile  
 
PostPosted: Mon Oct 20, 2008 3:51 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jul 11, 2008 1:25 pm
Posts: 5
the browsers page titles and tabs shows [sub]x[/sub], is there a miracle for this problem?
best :-[


Top
 Profile  
 
PostPosted: Mon Oct 20, 2008 5:44 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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...


Top
 Profile  
 
PostPosted: Thu Feb 19, 2009 6:59 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 19, 2008 8:53 am
Posts: 36
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?


Top
 Profile  
 
PostPosted: Mon Mar 09, 2009 9:57 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Aug 22, 2008 2:54 pm
Posts: 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?


Top
 Profile  
 
PostPosted: Tue Mar 10, 2009 3:59 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Mar 04, 2008 7:53 pm
Posts: 6
Location: Tennessee, USA
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...


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Tue Mar 10, 2009 4:28 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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...


Top
 Profile  
 
PostPosted: Wed Mar 11, 2009 8:10 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 09, 2007 10:24 pm
Posts: 17
Location: Germany
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


Top
 Profile  
 
PostPosted: Thu Mar 12, 2009 9:57 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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

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


Top
 Profile  
 
PostPosted: Thu Mar 12, 2009 11:48 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 09, 2007 10:24 pm
Posts: 17
Location: Germany
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

_________________
[see forum rules for signature]


Top
 Profile  
 
PostPosted: Thu Mar 12, 2009 2:12 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Aug 22, 2008 2:54 pm
Posts: 5
for me it's not ok... if a enable debugging mode, the bbcode in comments is disable


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 3:02 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Jun 01, 2006 1:52 pm
Posts: 979
Location: Moscow, Russia
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".

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 180 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next



Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group