yvBBCode - BBCodes extension for Joomla! 1.5
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Oct 19, 2010 10:30 am
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi yvolk
I really love your plugin and I used to use it pratically everywhere, but today I found out a conflict with this new component I was testing: lyftenbloggie.
If I enable your great plugin that component gives me this error:
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /web/htdocs/www.xxxxxxxx.com/home/libraries/pear/PEAR.php:773) in /php_5.2.14/lib/php/PEAR.php on line 777
How can I solve it?
Or maybe there's a way to enable the plugin just in certain menu voices?
Thank you
I really love your plugin and I used to use it pratically everywhere, but today I found out a conflict with this new component I was testing: lyftenbloggie.
If I enable your great plugin that component gives me this error:
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /web/htdocs/www.xxxxxxxx.com/home/libraries/pear/PEAR.php:773) in /php_5.2.14/lib/php/PEAR.php on line 777
How can I solve it?
Or maybe there's a way to enable the plugin just in certain menu voices?
Thank you
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi bettyb_87,bettyb_87 wrote:Hi yvolk
I really love your plugin and I used to use it pratically everywhere, but today I found out a conflict with this new component I was testing: lyftenbloggie.
If I enable your great plugin that component gives me this error:
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /web/htdocs/www.xxxxxxxx.com/home/libraries/pear/PEAR.php:773) in /php_5.2.14/lib/php/PEAR.php on line 777
How can I solve it?
Or maybe there's a way to enable the plugin just in certain menu voices?
Thank you
we faced the same problem earlier and it looks like that "new component" needs to be fixed, see the message and above it: http://forum.joomla.org/viewtopic.php?f ... r#p1697957
If you're not a Developer, my advice is to forward this message to the developer of that "new component"
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Oct 19, 2010 10:30 am
Re: yvBBCode - BBCodes extension for Joomla! 1.5
You won't believe I've done it by myself
thanks a lot for the help!
thanks a lot for the help!
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Nov 18, 2009 11:56 am
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hello,
i installed the plugin and have - as well - the virtuemart problem.
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /homepages/30/d297025695/htdocs/ceramista/libraries/pear/PEAR.php:773) in /homepages/30/d297025695/htdocs/ceramista/administrator/components/com_virtuemart/PEAR.php on line 714
sorry for my question maybe you mentioned it before but i cant found it anywhere. Do you have a solution for the virtuemart problem which i could implement that let virtuemart AND yvBBCodes works?
thanks a lot for you help!!
greets from Spain
univer
i installed the plugin and have - as well - the virtuemart problem.
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /homepages/30/d297025695/htdocs/ceramista/libraries/pear/PEAR.php:773) in /homepages/30/d297025695/htdocs/ceramista/administrator/components/com_virtuemart/PEAR.php on line 714
sorry for my question maybe you mentioned it before but i cant found it anywhere. Do you have a solution for the virtuemart problem which i could implement that let virtuemart AND yvBBCodes works?
thanks a lot for you help!!
greets from Spain
univer
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
@univer - See my message and the link three messages above for the way to fix this
I don't have more detailed instructions about fixing the bug in virtuemart.
I don't have more detailed instructions about fixing the bug in virtuemart.
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Nov 18, 2009 11:56 am
Re: yvBBCode - BBCodes extension for Joomla! 1.5
hello yvolk,
thanks for you quick answer!!
i followed the link that you mention (i knew it before :-)) but cant see any solution for the virtuemart problem only for another component. i tried to find out the libraries within virtuemart but im not able to find it, as well nothing similar that could help me replace as you wrote in you suggestion.
i looked in the PEAR.php of virtuemart, on the line the error i get on joomla.
sorry for my -maybe- stupid question but i do not want to creat an error in VM.
where have i search to fix the problem - i mean which folder or file?
and do i have to replace in the same way you suggest on the link?
thanks again and sorry for my lack of knowledge ;-)
sunny greetings to moscow
univer
thanks for you quick answer!!
i followed the link that you mention (i knew it before :-)) but cant see any solution for the virtuemart problem only for another component. i tried to find out the libraries within virtuemart but im not able to find it, as well nothing similar that could help me replace as you wrote in you suggestion.
i looked in the PEAR.php of virtuemart, on the line the error i get on joomla.
sorry for my -maybe- stupid question but i do not want to creat an error in VM.
where have i search to fix the problem - i mean which folder or file?
and do i have to replace in the same way you suggest on the link?
thanks again and sorry for my lack of knowledge ;-)
sunny greetings to moscow
univer
-
- Joomla! Apprentice
- Posts: 10
- Joined: Sun Jul 04, 2010 12:01 pm
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi,
I need to make the menu items in my main navigation menu two tier from one menu item due to the menu being bilingual english/welsh. So I need the english on top and the welsh underneath.
I modified the code in your module in the following file:
www/plugins/system/yvbbcode/BBCodeParser/Filter/Basic.php
I added this at the end
var $_definedTags = array( 'b' => array( 'htmlopen' => 'strong',
'htmlclose' => 'strong',
'allowed' => 'all',
'attributes'=> array()),
'i' => array( 'htmlopen' => 'em',
'htmlclose' => 'em',
'allowed' => 'all',
'attributes'=> array()),
'u' => array( 'htmlopen' => 'span style="text-decoration:underline;"',
'htmlclose' => 'span',
'allowed' => 'all',
'attributes'=> array()),
's' => array( 'htmlopen' => 'del',
'htmlclose' => 'del',
'allowed' => 'all',
'attributes'=> array()),
'sub' => array( 'htmlopen' => 'sub',
'htmlclose' => 'sub',
'allowed' => 'all',
'attributes'=> array()),
'sup' => array( 'htmlopen' => 'sup',
'htmlclose' => 'sup',
'allowed' => 'all',
'attributes'=> array()),
/***************Added code*********************/
'br' =>array('htmlopen' => 'br',
'htmlclose' => '',
'allowed' => 'all',
'attributes'=> array())
/***************Added code*********************/
);
It is working in the Joomla administrator backend. When I go into menu manager the menu item is two tiered, but it is not two tiered on the webpage.
Here is a link to the webpage
http://www.cardiffhigh.cardiff.sch.uk/
Hope you can help, I've got a feeling it could be something to do with the settings, but I'm not sure.
Thanks!
I need to make the menu items in my main navigation menu two tier from one menu item due to the menu being bilingual english/welsh. So I need the english on top and the welsh underneath.
I modified the code in your module in the following file:
www/plugins/system/yvbbcode/BBCodeParser/Filter/Basic.php
I added this at the end
var $_definedTags = array( 'b' => array( 'htmlopen' => 'strong',
'htmlclose' => 'strong',
'allowed' => 'all',
'attributes'=> array()),
'i' => array( 'htmlopen' => 'em',
'htmlclose' => 'em',
'allowed' => 'all',
'attributes'=> array()),
'u' => array( 'htmlopen' => 'span style="text-decoration:underline;"',
'htmlclose' => 'span',
'allowed' => 'all',
'attributes'=> array()),
's' => array( 'htmlopen' => 'del',
'htmlclose' => 'del',
'allowed' => 'all',
'attributes'=> array()),
'sub' => array( 'htmlopen' => 'sub',
'htmlclose' => 'sub',
'allowed' => 'all',
'attributes'=> array()),
'sup' => array( 'htmlopen' => 'sup',
'htmlclose' => 'sup',
'allowed' => 'all',
'attributes'=> array()),
/***************Added code*********************/
'br' =>array('htmlopen' => 'br',
'htmlclose' => '',
'allowed' => 'all',
'attributes'=> array())
/***************Added code*********************/
);
It is working in the Joomla administrator backend. When I go into menu manager the menu item is two tiered, but it is not two tiered on the webpage.
Here is a link to the webpage
http://www.cardiffhigh.cardiff.sch.uk/
Hope you can help, I've got a feeling it could be something to do with the settings, but I'm not sure.
Thanks!
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Nov 18, 2009 11:56 am
Re: yvBBCode - BBCodes extension for Joomla! 1.5
ok, i think i got it (at least for the moment ;-))
Resume:
as mentioned above i needed to install the yvBBCode ´cause of my need to have a 2-line horizontal menue due to the word-lenght of the itemes i have. it worked!
but the virtuemart categories menue didn´t.
the only thing i did i followed the instructions in the VM forum -> here https://forum.virtuemart.net/index.php? ... #msg165915
i deleted the whole content of the PEAR.php file, saved it empty and uploaded it again to the root.
you can find the PEAR.php in your instalation root under
administrator/components/com_virtuemart/PEAR.php.
for me it works (hopefully this is the solution). maybe for you it does work as well...give it a try
greets!
Resume:
as mentioned above i needed to install the yvBBCode ´cause of my need to have a 2-line horizontal menue due to the word-lenght of the itemes i have. it worked!
but the virtuemart categories menue didn´t.
the only thing i did i followed the instructions in the VM forum -> here https://forum.virtuemart.net/index.php? ... #msg165915
i deleted the whole content of the PEAR.php file, saved it empty and uploaded it again to the root.
you can find the PEAR.php in your instalation root under
administrator/components/com_virtuemart/PEAR.php.
for me it works (hopefully this is the solution). maybe for you it does work as well...give it a try
greets!
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi fu1982!
I think this effect of square brackets dissapearance from the front-end menu is some Joomla! security feature. I mean maybe some Joomla! code "clears" ("escapes") menu item's text before putting to the HTML page.
Please see this thread that I this is related to your post: Link authors to CB Profile - Not working since upgrade
I think this effect of square brackets dissapearance from the front-end menu is some Joomla! security feature. I mean maybe some Joomla! code "clears" ("escapes") menu item's text before putting to the HTML page.
Please see this thread that I this is related to your post: Link authors to CB Profile - Not working since upgrade
fu1982 wrote:Hi,
I need to make the menu items in my main navigation menu two tier from one menu item due to the menu being bilingual english/welsh. So I need the english on top and the welsh underneath.
I modified the code in your module in the following file:
www/plugins/system/yvbbcode/BBCodeParser/Filter/Basic.php
I added this at the end
var $_definedTags = array( 'b' => array( 'htmlopen' => 'strong',
'htmlclose' => 'strong',
'allowed' => 'all',
'attributes'=> array()),
'i' => array( 'htmlopen' => 'em',
'htmlclose' => 'em',
'allowed' => 'all',
'attributes'=> array()),
'u' => array( 'htmlopen' => 'span style="text-decoration:underline;"',
'htmlclose' => 'span',
'allowed' => 'all',
'attributes'=> array()),
's' => array( 'htmlopen' => 'del',
'htmlclose' => 'del',
'allowed' => 'all',
'attributes'=> array()),
'sub' => array( 'htmlopen' => 'sub',
'htmlclose' => 'sub',
'allowed' => 'all',
'attributes'=> array()),
'sup' => array( 'htmlopen' => 'sup',
'htmlclose' => 'sup',
'allowed' => 'all',
'attributes'=> array()),
/***************Added code*********************/
'br' =>array('htmlopen' => 'br',
'htmlclose' => '',
'allowed' => 'all',
'attributes'=> array())
/***************Added code*********************/
);
It is working in the Joomla administrator backend. When I go into menu manager the menu item is two tiered, but it is not two tiered on the webpage.
Here is a link to the webpage
http://www.cardiffhigh.cardiff.sch.uk/
Hope you can help, I've got a feeling it could be something to do with the settings, but I'm not sure.
Thanks!
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Apprentice
- Posts: 10
- Joined: Sun Jul 04, 2010 12:01 pm
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi Yvolk,
I done some more testing on my website.
The plugin works with my modules, but not in the menus!
If you take a look at my website:
http://www.cardiffhigh.cardiff.sch.uk/dpws/chs/
You can see that the titles of the Latest News and Announcements break to a new line, but still with the Menu Items, it doesn't render the tags!
So I took a look at the html code it was rendering.
This is from the module, which is fine:
<div class="moduletableannouncements">
<h3>Announcements <br />Cyhoeddiadau</h3>
But the menu HTML renders like this (I'll only paste a part of it):
<div class="moduletablemain_nav">
<ul id="mainlevelmain_nav"><li class="mainlevel_currentmain_nav"><a href="/dpws/chs/index.php?option=com_content&view=frontpage&Itemid=1" class="mainlevel_currentmain_nav" id="active_menumain_nav" accesskey="br">Home brHafan</a><ul ><li class="sublevelmain_nav"><a href="/dpws/chs/index.php?option=com_content&view=frontpage&Itemid=522" class="sublevelmain_nav">Parents /Rhieni</a></li></ul>
If you look at the Home /Hafan text, it doesnt include the br tag, but there is something attached to it called accesskey="br".
Im not sure if this is just a coincidence or it has something to do with my problem.
What do you think?
Many Thanks!!
I done some more testing on my website.
The plugin works with my modules, but not in the menus!
If you take a look at my website:
http://www.cardiffhigh.cardiff.sch.uk/dpws/chs/
You can see that the titles of the Latest News and Announcements break to a new line, but still with the Menu Items, it doesn't render the tags!
So I took a look at the html code it was rendering.
This is from the module, which is fine:
<div class="moduletableannouncements">
<h3>Announcements <br />Cyhoeddiadau</h3>
But the menu HTML renders like this (I'll only paste a part of it):
<div class="moduletablemain_nav">
<ul id="mainlevelmain_nav"><li class="mainlevel_currentmain_nav"><a href="/dpws/chs/index.php?option=com_content&view=frontpage&Itemid=1" class="mainlevel_currentmain_nav" id="active_menumain_nav" accesskey="br">Home brHafan</a><ul ><li class="sublevelmain_nav"><a href="/dpws/chs/index.php?option=com_content&view=frontpage&Itemid=522" class="sublevelmain_nav">Parents /Rhieni</a></li></ul>
If you look at the Home /Hafan text, it doesnt include the br tag, but there is something attached to it called accesskey="br".
Im not sure if this is just a coincidence or it has something to do with my problem.
What do you think?
Many Thanks!!
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
I think you have to figure out which code does this replacement. Try to test on clean Joomla...
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Apprentice
- Posts: 10
- Joined: Sun Jul 04, 2010 12:01 pm
Re: yvBBCode - BBCodes extension for Joomla! 1.5
PROBLEM SOLVED!!!!!
After further testing of the problem I was having I found that the bbcode wouldn't work in my sites main menu, but would work everywhere else. This is the module mod_exmenu-j15 which is an extended menu module.
I had a look in the settings and there is a setting for Parse Access Key, so from what I found out earlier it had something to do with that, so I changed the setting from Strip Markup (duh!) to None, and now it works fine.
So I'm now going to spend the night doing what I have been wanting to do for weeks, result!!!
Thanks for your help!
After further testing of the problem I was having I found that the bbcode wouldn't work in my sites main menu, but would work everywhere else. This is the module mod_exmenu-j15 which is an extended menu module.
I had a look in the settings and there is a setting for Parse Access Key, so from what I found out earlier it had something to do with that, so I changed the setting from Strip Markup (duh!) to None, and now it works fine.
So I'm now going to spend the night doing what I have been wanting to do for weeks, result!!!
Thanks for your help!
-
- Joomla! Fledgling
- Posts: 4
- Joined: Thu Jul 22, 2010 6:32 am
- Location: South Africa
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi Shiva111, did you manage to resolve this.
I have the same problem and have contacted Azrul who inform me that it is the BBCode plugin which causes the problem. I am using Joomla Bamboo's version but it's pretty much the same.
Really need a fix for this.
I have the same problem and have contacted Azrul who inform me that it is the BBCode plugin which causes the problem. I am using Joomla Bamboo's version but it's pretty much the same.
Really need a fix for this.
shiva111 wrote:so are you sure its safe to use? One more thing i had to report, after enabling this plugin Jom comment stops working, as it does not shows any error but when trying to add any comment it does not do so. but when i disable yvbbcode it starts working again. May be you can help me to fix this. Otherwise you made a brilliant thing to use bbcodes on joomla. thanks a lot for making such wonderful plugin.
yvolk wrote:Hi shiva111,
as I understand your report, someone made the request to the "/plugins/system/yvbbcode/default.css" file on your server with parameters that where detected (by some 'ModSecurity' process...) to be an attack.
And that's all
This may mean that someone wants to hack your site,
but this doesn't mean that there is any vulnerability (hole) in your site (in yvBBCode extension or anywhere else...)
shiva111 wrote:Dear developer pls help me, i don't have any problem in uses, but last night there is an atempt of sql injection on my site using this plugin, here are the details, pls upgrade or do some thing to make it secure:
"(?:\\b(?:(?:n(?:et(?:\\b\\W+?\\blocalgroup|\\.exe)|(?:map|c)\\.exe)|t(?:racer(?:oute|t)|elnet\\.exe|clsh8?|ftp)|(?:w(?:guest|sh)|rcmd|ftp)\\.exe|echo\\b\\W*?\\by+)\\b|c(?:md(?:(?:32)?\\.exe\\b|\\b\\W*?\\/c)|d(?:\\b\\W*?[\\\\/]|\\W*?\\.\\.)|hmod.{0,40}?\\+.{0,3}x))|[\\;\\|\\`]\\W*?
..." at REQUEST_HEADERS:User-Agent. [file
"/usr/local/apache/conf/modsec2.user.conf"] [line "146"] [id "959006"]
[msg "System Command Injection"] [data "; id"] [severity "CRITICAL"] [tag
"WEB_ATTACK/COMMAND_INJECTION"] [hostname "latestdown.com"] [uri
"/plugins/system/yvbbcode/default.css"] [unique_id
"SsSc366OS6oAAGs0e0gAAAAB"]
> [Thu Oct 01 17:43:19 2009] [error] [client 125.161.54.173] ModSecurity:
Access denied with code 501 (phase 2). Pattern match
Simon Tayler
http://www.hykano.com
http://www.hykano.com
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
yvBBCode for Joomla! 1.6 released
Hi,
yvBBCode for Joomla! 1.6 released (v.2.00.001).
1.Modified by Bart Jochems ([email protected]) and yvolk to run on Joomla! 1.6
2.Parameters that mention 'SectionIDs of Articles' were renamed to 'CategoryIDs...' because there are no 'Sections' in Joomla! 1.6
3. Source code is published in the JoomlaCode SVN Repository.
yvBBCode for Joomla! 1.6 released (v.2.00.001).
1.Modified by Bart Jochems ([email protected]) and yvolk to run on Joomla! 1.6
2.Parameters that mention 'SectionIDs of Articles' were renamed to 'CategoryIDs...' because there are no 'Sections' in Joomla! 1.6
3. Source code is published in the JoomlaCode SVN Repository.
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Apprentice
- Posts: 5
- Joined: Sat Feb 12, 2011 5:25 pm
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi,
great tool, I was wating for it, thanks!
But why do I have a "1" on top of every article?
Thanks,
Christof
great tool, I was wating for it, thanks!
But why do I have a "1" on top of every article?
Thanks,
Christof
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi Christof, do these "1" disappear if the plugin is being disabled?bengel66 wrote:...But why do I have a "1" on top of every article?
I don't see anything unusial at my test site :-)
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Apprentice
- Posts: 5
- Joined: Sat Feb 12, 2011 5:25 pm
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Yes, it disappears by deactivating the plugin. Seems like some debug-code?
see here, plugin activated: http://rtv-leichtathletik.de
see here, plugin activated: http://rtv-leichtathletik.de
-
- Joomla! Apprentice
- Posts: 5
- Joined: Sat Feb 12, 2011 5:25 pm
Re: yvBBCode - BBCodes extension for Joomla! 1.5
It does not appear clicking an article on the frontpage, but all articles reached from a menu have this "1"
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
I don't remember such non-descriptive debug message .bengel66 wrote:Yes, it disappears by deactivating the plugin. Seems like some debug-code?
see here, plugin activated: http://rtv-leichtathletik.de
Please try to compare HTML markup (not visual representation!) of the same HTML page^
1. with yvBBCode on and off
2. turn yvBBCode on but set "Enable BBCode replacements for the whole page (even here)" to No
and "Enable BBCodes for the text of Articles" to On ...
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Apprentice
- Posts: 5
- Joined: Sat Feb 12, 2011 5:25 pm
Re: yvBBCode - BBCodes extension for Joomla! 1.5
to point 2. - no effect as I can see
to point 1 - switching the 1 in code on and off...
I don't use any yvBBCode in the articles, only the breaks in the menu on left side
to point 1 - switching the 1 in code on and off...
I don't use any yvBBCode in the articles, only the breaks in the menu on left side
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
So it looks like the "1"s appear from the fact that yvBBCode plugin's code is being initialized.bengel66 wrote:to point 2. - no effect as I can see
to point 1 - switching the 1 in code on and off...
I don't use any yvBBCode in the articles, only the breaks in the menu on left side
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...)
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Apprentice
- Posts: 5
- Joined: Sat Feb 12, 2011 5:25 pm
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Ok, I return a false in that function, and it works for me...
Thanks,
Christof
Thanks,
Christof
-
- Joomla! Apprentice
- Posts: 14
- Joined: Tue Nov 03, 2009 11:04 am
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi there,
I've installed the yvBBcode to use this fine tool in combination with my Ajax Shoutbox. But the tags always appear after the word I wish to display with e.g. bold letters. I double click the word and then click on e.g. the Bold-button. What I get is this:
"Text [b][/b] "
This is what shows in my typing box and when I click on "Send", the text appears in the shoutbox but not in bold letters. It's the same problem with all the buttons.
I've tried varying the settings for yvBBcode but nothing helps, not even the default settings. Do you have any idea what I can do to get yvBBcode working properly?
PS: I've searched for the answer in the forum but it seems to escape me.
J.
I've installed the yvBBcode to use this fine tool in combination with my Ajax Shoutbox. But the tags always appear after the word I wish to display with e.g. bold letters. I double click the word and then click on e.g. the Bold-button. What I get is this:
"Text [b][/b] "
This is what shows in my typing box and when I click on "Send", the text appears in the shoutbox but not in bold letters. It's the same problem with all the buttons.
I've tried varying the settings for yvBBcode but nothing helps, not even the default settings. Do you have any idea what I can do to get yvBBcode working properly?
PS: I've searched for the answer in the forum but it seems to escape me.
J.
-
- Joomla! Apprentice
- Posts: 8
- Joined: Thu Jul 30, 2009 9:26 am
- Location: Noiseau
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi !
I have installed the language pack but why don't activate it ?
Tks for your job
I have installed the language pack but why don't activate it ?
Tks for your job
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvBBCode - BBCodes appear after selected text
Hi forfattervaerk,forfattervaerk wrote:Hi there,
I've installed the yvBBcode to use this fine tool in combination with my Ajax Shoutbox. But the tags always appear after the word I wish to display with e.g. bold letters. I double click the word and then click on e.g. the Bold-button. What I get is this:
"Text "
This is what shows in my typing box and when I click on "Send", the text appears in the shoutbox but not in bold letters. It's the same problem with all the buttons.
I've tried varying the settings for yvBBcode but nothing helps, not even the default settings. Do you have any idea what I can do to get yvBBcode working properly?
PS: I've searched for the answer in the forum but it seems to escape me.
J.
Javascript that inserts BBCodes into the text field is _very_ simple. It doesn't take "selection" into account:
Code: Select all
function yvBBCodeReplaceText(ControlID, tag) {
ControlID.value = ControlID.value + ' [' + tag + '][/' + tag + ']';
}
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Because the only purpose of this "language pack plugin" is to upload Language files to your Joomla! site. Everything else is done by Joomla! / yvBBCode themselves...lordbdp wrote:Hi !
I have installed the language pack but why don't activate it ?
Tks for your job
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html
-
- Joomla! Apprentice
- Posts: 14
- Joined: Tue Nov 03, 2009 11:04 am
Re: yvBBCode - BBCodes appear after selected text
I would if I could but unfortunately I don't have these skillsyvolk wrote: Hi forfattervaerk,
Javascript that inserts BBCodes into the text field is _very_ simple. It doesn't take "selection" into account:Maybe you can try to improve it?!Code: Select all
function yvBBCodeReplaceText(ControlID, tag) { ControlID.value = ControlID.value + ' [' + tag + '][/' + tag + ']'; }
But thanks anyway for this piece of code. Maybe someone else knows what to do
J.
-
- Joomla! Enthusiast
- Posts: 115
- Joined: Tue Aug 23, 2005 12:07 pm
Re: yvBBCode - BBCodes appear after selected text
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.3yvolk wrote:Hi forfattervaerk,forfattervaerk wrote:Hi there,
I've installed the yvBBcode to use this fine tool in combination with my Ajax Shoutbox. But the tags always appear after the word I wish to display with e.g. bold letters. I double click the word and then click on e.g. the Bold-button. What I get is this:
"Text "
This is what shows in my typing box and when I click on "Send", the text appears in the shoutbox but not in bold letters. It's the same problem with all the buttons.
I've tried varying the settings for yvBBcode but nothing helps, not even the default settings. Do you have any idea what I can do to get yvBBcode working properly?
PS: I've searched for the answer in the forum but it seems to escape me.
J.
Javascript that inserts BBCodes into the text field is _very_ simple. It doesn't take "selection" into account:Maybe you can try to improve it?!Code: Select all
function yvBBCodeReplaceText(ControlID, tag) { ControlID.value = ControlID.value + ' [' + tag + '][/' + tag + ']'; }
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've been banned!
- Posts: 1
- Joined: Tue Mar 15, 2011 4:29 pm
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
The same problem...bettyb_87 wrote:Hi yvolk
I really love your plugin and I used to use it pratically everywhere, but today I found out a conflict with this new component I was testing: lyftenbloggie.
If I enable your great plugin that component gives me this error:
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /web/htdocs/www.xxxxxxxx.com/home/libraries/pear/PEAR.php:773) in /php_5.2.14/lib/php/PEAR.php on line 777
How can I solve it?
Or maybe there's a way to enable the plugin just in certain menu voices?
Thank you
- yvolk
- Joomla! Guru
- Posts: 979
- Joined: Thu Jun 01, 2006 1:52 pm
- Location: Moscow, Russia
- Contact:
Re: yvBBCode - BBCodes extension for Joomla! 1.5
Hi, the simplest way to resolve the conflict with "redeclaration" is to get rid of one declarationprojekt wrote:The same problem...bettyb_87 wrote:Hi yvolk
I really love your plugin and I used to use it pratically everywhere, but today I found out a conflict with this new component I was testing: lyftenbloggie.
If I enable your great plugin that component gives me this error:
Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /web/htdocs/www.xxxxxxxx.com/home/libraries/pear/PEAR.php:773) in /php_5.2.14/lib/php/PEAR.php on line 777
How can I solve it?
Or maybe there's a way to enable the plugin just in certain menu voices?
Thank you
Please try to comment out (delete) the line (around line 19) in the 'plugins/system/yvbbcode.php' file:
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