yvBBCode - BBCodes extension for Joomla! 1.5

Do you have an Open Source Product available for Joomla!? Let everyone know here.
forfattervaerk
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Tue Nov 03, 2009 11:04 am

Re: yvBBCode - BBCodes appear after selected text

Post by forfattervaerk » Wed Mar 16, 2011 3:44 pm

risp wrote:
I think this code does what you want. It works for Joomla 1.6. Not sure for Joomla 1.5 as I only tested on Mootool 1.3

Code: Select all

function yvBBCodeReplaceText(ControlID, tag) {
	sel = ControlID.getSelectedText();
	pos = ControlID.getSelectionEnd();
	ControlID.insertAroundCursor({before: '['+tag+']', after: '[/'+tag+']'});
	if(sel != '') {
		ControlID.setCaretPosition(pos + tag.length*2+5);
	}
}
I tried writing the code in site/plugins/system/yvbbcode/default.js - but nothing happens so I guess it doesn't work with joomla 1.5. - but thanks anyway :)

J.

miracle3736
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Thu Aug 28, 2008 9:10 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by miracle3736 » Wed Mar 23, 2011 8:57 am

I like the plugin, because I want to use [br] in my menu titles and it does that great. But, I see these [br] also back in my breadcrumbs :-( So it looks like I have the option to show [br] there or have a breadcrumb divided over two lines. Both are not an option for me, so I had to stop using this plugin. Hope there's a solution.

lechameister
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Mar 01, 2011 10:26 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by lechameister » Mon Apr 11, 2011 10:27 pm

Hello,
I have joomla version 1.5.22 and I want to install yvBBCodePlugin-2.01.000, but I always get the message "Error: Could not find XML setup file in this package!"

What am I doing wrong?

Thank you.

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 Apr 12, 2011 2:19 am

yvBBCode v.2.x is for Joomla v.1.6 only.
For Joomla v.1.5 please use
yvBBCode v.1.x
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html

lechameister
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Mar 01, 2011 10:26 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by lechameister » Tue Apr 12, 2011 9:17 am

yvolk wrote:yvBBCode v.2.x is for Joomla v.1.6 only.
For Joomla v.1.5 please use
yvBBCode v.1.x
It was my fault.
Yuri, thank you. Good job :)

User avatar
RichardPearce
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Wed Dec 24, 2008 7:31 pm
Location: Sydney, Australia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by RichardPearce » Wed Apr 20, 2011 11:29 pm

Is there a way to make an article title an anchor?

e.g. [anchor=id]My Title[/anchor]
Richard Pearce
Free Joomla video tutorials for beginners
http://www.BuildAJoomlaWebsite.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 » Thu Apr 21, 2011 6:22 am

RichardPearce wrote:Is there a way to make an article title an anchor?
e.g. [anchor=id]My Title[/anchor]
I think what you really need should be done by customizing Templates, and not by something like yvBBCode, because:
- HTML "id" attribute should be unique for the whole HTML page;
- If the same Article title appears in several places on the same page (e.g. in "Latest news", Breadcrumbs, Blog...), only You (Site designer...) know single place where it should be put.
- yvBBCode (and any other similar tool) acts at the [] element level, it doesn't analyze the whole page while making single substitution.

What yvBBCode CAN do is create links to the Articles by their IDs e.g.
[contentid=25]My article[/contentid]
will be changed to the <a> HTML element.
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html

Haati
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Tue May 10, 2011 10:07 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by Haati » Wed May 11, 2011 10:04 am

yvolk wrote:So it looks like the "1"s appear from the fact that yvBBCode plugin's code is being initialized. So the problem lies somewhere in the 'plugins\system\yvbbcode\yvbbcode.php' file.
I can not reproduce the problem, so it's up to you to debug this.

TIP: the "onContentAfterTitle" function is being called by Joomla! core for each article. (That function has local "$debug" variable for it's debugging...)
I have the same problem with "1"s in Joomla 1.6. Could you please help me to fix it since I don't understand these directions? I'm not a developer and don't know php :-[

ilker373
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed May 11, 2011 8:19 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by ilker373 » Wed May 11, 2011 10:35 am

yvBBCode is a BBCode extension for Joomla! 1.5. GPL licensed.

Haati
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Tue May 10, 2011 10:07 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by Haati » Wed May 11, 2011 10:39 am

Is this the page of this extension?
http://yurivolkov.com/Joomla/yvBBCode/index_en.html

There it says that yvBBCode is a BBCode extension for Joomla! 1.6.

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

yvBBCode - "1"s appearance fixed

Post by yvolk » Thu May 12, 2011 2:57 pm

Haati wrote:
yvolk wrote:So it looks like the "1"s appear from the fact that yvBBCode plugin's code is being initialized. So the problem lies somewhere in the 'plugins\system\yvbbcode\yvbbcode.php' file.
I can not reproduce the problem, so it's up to you to debug this.

TIP: the "onContentAfterTitle" function is being called by Joomla! core for each article. (That function has local "$debug" variable for it's debugging...)
I have the same problem with "1"s in Joomla 1.6. Could you please help me to fix it since I don't understand these directions? I'm not a developer and don't know php :-[
Hi, I've fixed this issue in yvBBCode v.2.01.001, see discussion here.
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html

ilker373
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed May 11, 2011 8:19 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by ilker373 » Fri May 13, 2011 4:54 am

thnak u very much u are so kind

User avatar
johnniek2
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 150
Joined: Thu Oct 09, 2008 4:34 pm
Location: Croatia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by johnniek2 » Mon May 16, 2011 7:43 am

Iam getting this error:
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /home/bavariad/public_html/libraries/pear/PEAR.php:773) in /usr/lib/php/PEAR.php on line 777
when trying to use extplorer, if I disable the yyBBcode plugin then it works and the message doesnt appear. I have tried to delete the content of the pear.php file inside administrator/components/com_extplorer/libriaries folder but that renders another problems...
any help on this please?
thank you in advance

ilker373
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed May 11, 2011 8:19 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by ilker373 » Mon May 16, 2011 7:46 am

thank u for answer

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 May 16, 2011 7:50 am

johnniek2 wrote:Iam getting this error:
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /home/bavariad/public_html/libraries/pear/PEAR.php:773) in /usr/lib/php/PEAR.php on line 777
when trying to use extplorer, if I disable the yyBBcode plugin then it works and the message doesnt appear. I have tried to delete the content of the pear.php file inside administrator/components/com_extplorer/libriaries folder but that renders another problems...
any help on this please?
thank you in advance
Hi,
1. This problem was discussed in this thread - please search this thread.
2. yvBBCode v.2 (for Joomla! 1.6) doesn't depend on PEAR, so it's free of this problem...
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
johnniek2
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 150
Joined: Thu Oct 09, 2008 4:34 pm
Location: Croatia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by johnniek2 » Mon May 16, 2011 7:56 am

I could found only description for virtuemart I can not find location of require_once or include_once for extplorer? could you please give me a hint?

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 May 16, 2011 8:06 am

johnniek2 wrote:I could found only description for virtuemart I can not find location of require_once or include_once for extplorer? could you please give me a hint?
I think the problem is the same, so my advice for virtuemart applies for any other app... I think :-)
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
johnniek2
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 150
Joined: Thu Oct 09, 2008 4:34 pm
Location: Croatia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by johnniek2 » Mon May 16, 2011 8:27 am

the problem is I cant find any file that contains this code?
i have tried to find the index.php file as well in the plugins/system/ folder but it isnt here?
this is a version of bamboo altered code YYBBB....

but they say its not up to them :-(

could you give me just a better direction where exactly I could find this code? that I need to change?
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 » Mon May 16, 2011 10:48 am

@johnniek2 We're lucky that we know where reference to the PEAR in yvBBCode is :)
So as a workaround you may try to comment out this line in yvbbcode.php:

Code: Select all

jimport('pear.PEAR');
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
johnniek2
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 150
Joined: Thu Oct 09, 2008 4:34 pm
Location: Croatia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by johnniek2 » Mon May 16, 2011 1:09 pm

Ok, here I have found only this one the altered bamboo code: yybbb.php,
after I have commented out the line jimport('pear.PEAR');

now I start getting errors in every area of the control panel, wherever I click I get:

Fatal error: Class 'PEAR' not found in /home/bavariad/public_html/plugins/system/jbbbcode/BBCodeParser.php on line 170

any idea whats going on? :'(

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 May 16, 2011 1:34 pm

johnniek2 wrote:Ok, here I have found only this one the altered bamboo code: yybbb.php,
after I have commented out the line jimport('pear.PEAR');

now I start getting errors in every area of the control panel, wherever I click I get:

Fatal error: Class 'PEAR' not found in /home/bavariad/public_html/plugins/system/jbbbcode/BBCodeParser.php on line 170

any idea whats going on? :'(
The problem is that PEAR is used before it is declared. It looks like yvBBCode is being initialized earlier than in other extension(s) that use PEAR...

You have another option :-)
Please see how dependency on PEAR was removed in yvBBCode v.2. and apply the same changes to yvBBCode v.1.X ... (&PEAR::getStaticProperty was replaces with some simple embedded function...)
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
johnniek2
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 150
Joined: Thu Oct 09, 2008 4:34 pm
Location: Croatia
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by johnniek2 » Mon May 16, 2011 2:46 pm

you talk to me like Iam a programer :-(
where can I see that code? by downloading and opening the plugin locally?

mrwizzard
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon May 23, 2011 6:18 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by mrwizzard » Mon May 23, 2011 6:29 pm

Hi. I now this is an old thread, but I would appreciate it if someone could provide an answer to my question: I am using Joomla 1.5 with the MilkyWay (Andy Miller) template. I am trying to have the top menu's items display on two rows, so I installed the yvbbcode plugin, as suggested on this forum. The [br] command is working, but the second line is displayed way below, outside the button's area, and slightly indented, as if it was creating a new paragraph. I believe this is not caused by yvBBCode, but rather by the template, does anyone has a workaround? I am an IT guy, but have very little experience with webpage design.

Regards;
JGCBAIZ

User avatar
cmoua
Joomla! Apprentice
Joomla! Apprentice
Posts: 46
Joined: Thu Jun 10, 2010 6:33 am

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by cmoua » Fri Dec 30, 2011 12:43 am

I use yvbbcode and reading through the threads, spent hours...

Anybody got a solution for:

Menu Items that breaks the breadcrumb.

Ie:

Home[br]Back to base[/br]

Breadcrumb: Home
Back to base

Anybody got a solution? A real solution without reading through the entire thread again.

Got the latest version of yvbbcode and joomla 1.7

mauderific
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Sun Jul 22, 2007 7:34 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by mauderific » Tue Jan 10, 2012 2:20 pm

Is yvBBCode work correctly on 1.7 and will be supported on 2.5 ? Thanks :)

jthunder
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Mon Jul 14, 2008 6:45 pm
Location: San Francisco, CA

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by jthunder » Tue Jan 24, 2012 11:40 pm

Yuri, I am writing to get some help if you can. I am installing your v1.6 on my j1.7.3 but I am getting XML error and won't install.
http://forum.joomla.org/viewtopic.php?f=628&t=690358

If you can assist, or is this version also for j1.7 ?

jthunder
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Mon Jul 14, 2008 6:45 pm
Location: San Francisco, CA

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by jthunder » Wed Jan 25, 2012 6:19 pm

mauderific wrote:Is yvBBCode work correctly on 1.7 and will be supported on 2.5 ? Thanks :)
Hi - I don't think it works on J1.7. It won't install on j1.7 and getting XML error. See my question above me. I have yet to get a response but seems mu question on this forum is falling on deaf ears..
Thank you.

Csabesz75
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Apr 12, 2010 1:19 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by Csabesz75 » Fri Jul 06, 2012 4:28 pm

Hi all,

i need to use blink function on single menu point in menu bar, it`s any possibility to include blink function? I have Joomla 2.5.
Thanks.

acatalyst
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Jul 28, 2012 6:02 pm

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by acatalyst » Sat Jul 28, 2012 6:09 pm

I am a trying my damndest to figure this plugin it does not seem to be working for me, I have gone through all the steps, I jsut don't bloody know how to get this code into an article, I am using JCE editor and running Joomla 2.5.

Here is the code I want to embed in one of my articles, what exactly do I have to do? I am sure I am missing some simple thing, Please help!

<script src="https://www-sgw-opensocial.googleuserco ... "></script>

Thanks

vovsen
Joomla! Intern
Joomla! Intern
Posts: 67
Joined: Sat Feb 27, 2010 1:05 pm
Location: Gentofte
Contact:

Re: yvBBCode - BBCodes extension for Joomla! 1.5

Post by vovsen » Thu Nov 15, 2012 7:20 pm

I use the [br] command in my horisontal menu it has a stroke line in the bottom of the menu and the menu item change color when hovered but only for the upper part ie. before [br] how do I make the hover color cover the whole menu item? not to mention keep the menu items over the linestroke.
DBH/BR
Villy


Locked

Return to “Open Source Products for Joomla!”