Edit 2007-05-10_15-41: I've hacked together a bunch of the changes mentioned above into an unofficial 0.1.9 - this *still* doesn't fix the JS/IE issues, but it does make it a whole hell of a lot lighter on your pages.
you might remember helping me out by adding a youtube button to the bbinsertbar.
the only problem is,
1. it doesn't work when switched over to html. the code seems to generate <youtube></youtube> tags, when (i think) it needs to generate <video type="youtube">video id</video> (i will try test this out)
2. i would quite like to add support for google video. apparently the HTML code for this is <video type="google">docid</video> ...i assume it wouldn't be hard to add that, and the BBCode equivalent.
3. finally... how about a button that generates a link to an MP3 file? this would work wonderfully with dplayer.
i have just tried FCKeditor, but it really is too heavy and fancy. i like the simplicity of BBInsertBar, and safari users seem to have reasonably good luck with it.
So how does one go about adding a youtube button the bbinsertbar? Edit: As mentioned, grabbing the un-official 0.1.9.zip above takes care of this, now I just have to figure out how to add others such as Google, MetaCafe, etc.
So if anyone's interested I've basically completely rewritten the JS in this plugin to get it working in IE. I haven't *fully* tested it, but so far it's working in IE6, FF, Safari, Opera.
I'm going to work on it some more today. I've got most of the JS set, but I also want to re-format the markup it uses. Basically, none if it is unobtrusive, and there's a lot of overhead on it. My goal is to make it as lean as possible.
Hmm I still can't seem to get it to work in IE, when you click on the buttons in menu it just takes you to top of page and does nothing. Using BBCodeParser 1.0.2 with this. And it's damn brocken in Opera too:
Okay, 0.1.9 Works with IE if user ticks BBcode button. Anyone know how to remove text and bbcode options and just set it to BBcode by default? Thanks :)!
For the video stuff - now that JQMedia is here, we should ditch it from the insert bars IMO ;) Or perhaps even just have the video button popup a message saying "Just paste the link in and the video will be inserted as if by magic" or something equally silly ;)
Okay, 0.1.9 Works with IE if user ticks BBcode button. Anyone know how to remove text and bbcode options and just set it to BBcode by default? Thanks :)!
Um, well yes the very definition of text mode is that BBCode is disabled :P.
The buttons should be hidden when in text mode.
And... I don't think I'll support Opera. It's too niche.
stash (or someone else); can you explain in plain english how we could add support for all media using either BBInsertBar or BBInsertBar with JQMedia?
being able to add media from many sites, and add mp3s with Dplayer, would be incredibly cool.
With JQMedia enabled you should simply have to paste the URL of the media in and it should display nicely. If it doesn't, then we need to find out why.
Since JQMedia exists, I think it would make sense to put the effort into making it perfect (or as close to as possible) rather than wasting time adding the same kind of functionality to umpteen different extensions.
Yes, I seem to be having a minor difficulty with this extension.
Now its installed and showing up on the comments but when I click the buttons it will only enter the letters, no []'s or /'s.
When I press the bold button only bb shows up, not [b][/b].
Also, a few of the buttons will not work at all. Such as center, left align, right align and a few others.
EDIT:
Okay, now none of the buttons work at all, doesn't do a thing... Doh!
Any solutions?
Thanks!
Well I did that a couple times, but it still happened.
But I found one that works... The ForcedBBCode extension seems to be the only one that works for me. All the other BBCode ones would not show the []'s for some reason. It might be the Parser itself, not quite sure.
But since I have this one working now I'm fine. I just wanted a nice bar for people to use.
Thanks... But for your curiosity I was using the latest Vanilla and Windows XP, Firefox.
If you want to use the unofficial BBInsertBar 0.2, I think I've figured out why it doesn't work for some people. I think it's conflicting with the JQuery extension, and if it's activated AFTER JQuery, it stops working. If it's activated BEFORE JQuery (and other JQ extensions) it works just fine thanks ;)
I think there is a bug in BBInsertBar in default.php on line 48.
$result = mysql_query("SELECT DefaultFormatType FROM LUM_User WHERE UserID = '".$this->Context->Session->UserID."'");
AFAIK this should be
$result = mysql_query("SELECT DefaultFormatType FROM ".$this->Context->Configuration['DATABASE_TABLE_PREFIX']."User WHERE UserID = '".$this->Context->Session->UserID."'");
if database table prefix is not 'LUM_' it causes mysql_fetch_row(): supplied argument is not a valid MySQL result resource in .../extensions/BBInsertBar/default.php on line 49
hm somehow the inofficial 2.0 doesn't work for me. when i click a button, it simply jumps back to the top of the page. does anybody know how to fix that?
okay, i disabled some extensions. now some buttons don't link to the top of the page and insert stuff like "bb" and "ii" this is really weird. i hope anybody knows how to fix that, i'd really like to use the unofficial 2.0 :/
Comments
Would be good to get this improved...
Edit 2007-05-10_15-41: I've hacked together a bunch of the changes mentioned above into an unofficial 0.1.9 - this *still* doesn't fix the JS/IE issues, but it does make it a whole hell of a lot lighter on your pages.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •you might remember helping me out by adding a youtube button to the bbinsertbar.
the only problem is,
1. it doesn't work when switched over to html. the code seems to generate
<youtube></youtube>tags, when (i think) it needs to generate<video type="youtube">video id</video>(i will try test this out)2. i would quite like to add support for google video. apparently the HTML code for this is
<video type="google">docid</video>...i assume it wouldn't be hard to add that, and the BBCode equivalent.3. finally... how about a button that generates a link to an MP3 file? this would work wonderfully with dplayer.
i have just tried FCKeditor, but it really is too heavy and fancy. i like the simplicity of BBInsertBar, and safari users seem to have reasonably good luck with it.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Edit: As mentioned, grabbing the un-official 0.1.9.zip above takes care of this, now I just have to figure out how to add others such as Google, MetaCafe, etc.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I'm going to work on it some more today. I've got most of the JS set, but I also want to re-format the markup it uses. Basically, none if it is unobtrusive, and there's a lot of overhead on it. My goal is to make it as lean as possible.
I'll keep you updated.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •BBInsertBar v0.2
New Thangs:
- Completely re-written Javascript functions
- Works in both BBEdit/HTML mode
- Confirmed working in:
- Firefox 2.x
- Camino 1.5
- Safari 2.x
- Internet Explorer 6
- Internet Explorer 7
- Now prompt-free! Replaced the annoying prompt popups with a much easier-on-the-eyes overlay
- Image button now shows you a live preview of your image before you post.
Things yet to do:- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •The buttons should be hidden when in text mode.
And... I don't think I'll support Opera. It's too niche.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Plus, the Opera bug looks like CSS, not JS.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Since JQMedia exists, I think it would make sense to put the effort into making it perfect (or as close to as possible) rather than wasting time adding the same kind of functionality to umpteen different extensions.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I'd definitely disable the extension, then delete the folder. Download a fresh copy, extract it, upload it and then enable it.
Also, which version are you using? OS? Browser? URL for us to go and take a look ourselves?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •$result = mysql_query("SELECT DefaultFormatType FROM LUM_User WHERE UserID = '".$this->Context->Session->UserID."'");
AFAIK this should be
$result = mysql_query("SELECT DefaultFormatType FROM ".$this->Context->Configuration['DATABASE_TABLE_PREFIX']."User WHERE UserID = '".$this->Context->Session->UserID."'");
if database table prefix is not 'LUM_' it causes mysql_fetch_row(): supplied argument is not a valid MySQL result resource in .../extensions/BBInsertBar/default.php on line 49
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I changed my tables to 'LUM_' to solve the issue.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •does anybody know how to fix that?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •this is really weird. i hope anybody knows how to fix that, i'd really like to use the unofficial 2.0 :/
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •