I used c0caine's code and it works great! Thank you kindly for everyone's hard work. Now if we could just get a button or dropdown in the BBCode toolbar to add this code in, I'd be in heaven. Thanks again.
palebluedot wrote: I used c0caine's code and it works great! Thank you kindly for everyone's hard work. Now if we could just get a button or dropdown in the BBCode toolbar to add this code in, I'd be in heaven. Thanks again.
Well thats actually easily done:
First find the fb_bb.js.php in your /sources/ folder
Once youve opened it go to line 89 where it says (IMPORTANT: I had to change the [ code] because of errors in the forums Change it back when you add it! REMOVE THE SPACES !!!!
What is important now is that you have to know that the [youtube] Tag is the 20th entry in the array! Its important because you need it for implementing a button. At the bottom of the page I added the code to add all tags at once!
Add the button:
Go to the smile.class.php in your default template folder and find the line
[code:1][/code:1]
Now simply add below
[code:1][/code:1]
Why addbbcode20 and bbstyle20? Remember the 20 I mentioned earlier. Its always the number in the array. The value="Youtube" is what it says on the button. Change it to whatever you want ^^
If you now want the helpline text to be working correctly you have to change the fb_bb.js.php again
Find the line
[code:1]b_help = "";[/code:1]
and add below
[code:1]y_help = "";[/code:1]
its y_help because when we added the support we said onmouseover="helpline('y')
Now open your german.php (in the administrator/components/com_fireboard/language folder) or whatever language you are using (obviously im German) and find the line
c0caine: Thanks! Although, I think your first replacement code should be:
[code:1]bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[ul]','[/ul]','[ol]','[/ol]','[img size=150]','[/img]','[url]','[/url]','[li]','[/li]','[youtube]','[/youtube]');[/code:1]
with the [] brackets, not the <> ones. Not sure if its different for german rev. Regardless, it worked great and I'm very happy with the results. Even learned a thing or two about how to customize my site further! I appreciate your hard work.
Hi,
I respect what you people doing, I really do.
However, I came to the point, after reinstalling fireboard several times, because of the mess that happened after inserting the code (following your directions). I really begin to think that:
"we" just pretend that code actually works
Or you are being selfish …?
Please, if code really works as you said …why couldn’t you help us “regular humans” and post a file for download? And all we have to do is replace a file instead of entering the code….
Lol of course I can do that. Just tell me what version of fireboard you use (the latest beta or the stable release) and what code you want implemented (video + buttons?)