Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Video embedding!! (1 viewing) (1) Guest
Go to bottom Favoured: 8
TOPIC: Video embedding!!
#5400
Re:Video enbeding!! 1 Year, 6 Months ago  
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 (Moderator)
FB Documentation Team
Template Documentation Project
Moderator
Posts: 622
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Minneapolis, MN US Birthdate: 1973-01-12
Logged Logged
 
 
The administrator has disabled public write access.  
#5722
Re:Video enbeding!! 1 Year, 6 Months ago  
i'm having trouble downloading the file from the link above..

it says "Le document est actuellement en cours de modification et est donc indisponible."..

Post edited by: freakshowtm, at: 2007/05/09 06:47
freakshowtm (User)
FB Quality & Testing Team
I am a LOSER
Senior Boarder
Posts: 139
graphgraph
User Offline Click here to see the profile of this user
Gender: Male nluvandhate Location: Philippines Birthdate: 1983-11-07
Logged Logged
 
..having a Brain doesn\'t mean you know how to use one..
 
The administrator has disabled public write access.  
#5992
Re:Video enbeding!! 1 Year, 6 Months ago  
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 !!!!

[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]');[/code:1]

Now you have to change it. If you have (for example) a [youtube] tag for your youtube videos change it to the following


[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]

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


[code:1]DEFINE('_BBCODE_BOLD','Fetter Text: [b]text[/b] ');[/code:1]

In your version it probably says something else (mine is german) but the _BBCODE_BOLD part is always the same.

Now add below:

[code:1]DEFINE('_BBCODE_YOUTUBE','Youtube Video: [youtube]Video-ID[/youtube] ');[/code:1]


Repeat all these steps to add support for alle the other tags as well!


Now you should be all said and done ;)

I hope its now kinda clear how to add all these things, I tried to make it as easy as possible...




edit: If you want to add them all at once, here is what I did, just find the lines mentioned earlier and add it (AGAIN I CHANGED IT TO [ code]!!!):

[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]','[ google]','[ /google]','[ clipfish]','[ /clipfish]','[ myvideo]','[ /myvideo]'));[/code:1]

[code:1]
y_help = "";

g_help = "";

z_help = "";

m_help = "";[/code:1]


[code:1]





[/code:1]


[code:1]DEFINE('_BBCODE_YOUTUBE','Youtube Video: [youtube]Video-ID[/youtube] ');

DEFINE('_BBCODE_GOOGLE','Google Video: [google]Video-ID[/google] ');

DEFINE('_BBCODE_CLIPFISH','Clipfish Video: [clipfish]Video-ID[/clipfish] ');

DEFINE('_BBCODE_MYVIDEO','Myvideo Video: [myvideo]Video-ID[/myvideo] ');[/code:1]

Post edited by: c0caine, at: 2007/05/13 00:31
c0caine (User)
Junior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#6200
Re:Video enbeding!! 1 Year, 6 Months ago  
I don't have a languages folder or an "english.php" file. Where could that DEFINE code be?

Found it...
I've been looking at code too long, I didn't notice that was under "administrator" folder.

Post edited by: fotogeek, at: 2007/05/11 20:21
fotogeek (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#6229
Re:Video enbeding!! 1 Year, 6 Months ago  
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.
palebluedot (Moderator)
FB Documentation Team
Template Documentation Project
Moderator
Posts: 622
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Minneapolis, MN US Birthdate: 1973-01-12
Logged Logged
 
 
The administrator has disabled public write access.  
#6283
Re:Video enbeding!! 1 Year, 6 Months ago  
Don't exactly know what you mean, but its early in the morning so I guess thats alright

Im glad to hear that its working for you
c0caine (User)
Junior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#6371
Re:Video enbeding!! 1 Year, 6 Months ago  
Sorry, the forum keeps changing the []&#039;s to <>'s when pasting in the code tag.

I guess I figrued out why your post changed that as well LOL.

Here is an image of the code I 'meant' to post (and I guess you did too)




Post edited by: palebluedot, at: 2007/05/12 23:38
palebluedot (Moderator)
FB Documentation Team
Template Documentation Project
Moderator
Posts: 622
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Minneapolis, MN US Birthdate: 1973-01-12
Logged Logged
 
 
The administrator has disabled public write access.  
#6381
Re:Video enbeding!! 1 Year, 6 Months ago  
of course youre right ^^ like I said it was early in the morning ^^


edit: it seems like I did do everything right, its the forum :/ if you want the correct code use the quote feature...

edit2: added spaces to the tags. must be removed before use!

Post edited by: c0caine, at: 2007/05/13 00:32
c0caine (User)
Junior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#6388
Re:Video enbeding!! 1 Year, 6 Months ago  

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….

Thank you
sag (User)
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#6395
Re:Video enbeding!! 1 Year, 6 Months ago  
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?)
c0caine (User)
Junior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top