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!!
#4470
Re:Video enbeding!! 1 Year, 6 Months ago  
I have now implemented both hacks mentioned in this thread. The mambot/plugin hack works fine. I dont know if I will use it on a live site due to security issues, but if it could be locked down so only admins can use that function then it would be great.

As for the BBcode, it seems to work but the video never loads. The outline for the player shows up but that's it. Anyone else having that problem?

EDIT: The code didnt work because of the line breaks as someone else mentioned. I didnt even notice them because I had word wrap turned on in my editor, lol.

Post edited by: Goanna, at: 2007/05/07 00:23
Goanna (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4473
Re:Video enbeding!! 1 Year, 6 Months ago  
Hmm, no, I haven't had that issue. My videos load just fine.
Eli (User)
Junior Boarder
Posts: 56
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4589
Re:Video enbeding!! 1 Year, 6 Months ago  
florut wrote:
[quote]Well while waiting for a realease including mambot support you can just modify the "view.php" file founded in /components/com_fireboard/template/[name of your template] :

First find this at the beginning of the file :
[code:1]defined ('_VALID_MOS') or die('Direct Access to this location is not allowed.');
global $acl;[/code:1]
and paste right after that :
[code:1]//
class t{ var $text = ""; } // Déclarer une classe avec une variable "text"
//
[/code:1]

Then find :
[code:1]$msg_text =str_replace("_CRLF_", "\n", stripslashes($fb_message_txt));[/code:1]
and paste right after :
[code:1]
//
/* Activer les bots de contenu sur le message */
global $_MAMBOTS; // variables globale des Mambots
$row = new t(); // Nouvelle instance de cette classe t
$row->text = $fb_message_txt; // définir la propritét text de cet objet (corp du msg)
$_MAMBOTS->loadBotGroup( 'content' ); // charger les bots de contenu
$params =& new mosParameters( '' ); // pas de paramètre
$results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, 0 ), true ); // execute l'action des bots
$msg_text = $row->text; // remplace le corp du msg par le resultat des bots
/*Fin de l'activation des bots de contenu sur le message */
//

[/code:1]

I just adapted this method from a one for JB submitted [url=http://forum.joomlafacile.com/showthread.php?t=11628&highlight=mambots+joomlaboard]here[/url]. Some feedback already [url=http://www.tsmf.net/component/option,com_joomlaboard/Itemid,32/func,view/id,12147/catid,18/limit,6/limitstart,0/]here[/url].


PLEASE LET ME KNOW :
- If this works (for testers)
- If there is no security problems (for developers)
Thanks in advance.[/quote]

florut is this hack to get mambots to work in the posts right now??? If so i will try and if it is then all you guys just need apply the hack and the ALL VIDEOS PLUGIN 2.4 and you will be able to embed all the videos you want..
subfighter (User)
Jiu Jitsu Techniques Online
Junior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Subfighter estrada_rick@hotmail.com Location: Oceanside, California Birthdate: 1971-05-13
Logged Logged
 
Database Version: 5.0.51a-community
Database Collation: utf8_general_ci
PHP Version: 5.2.5
Web Server: Apache/2.0.63 (Unix)
Joomla! Version: Joomla! 1.5.7
 
The administrator has disabled public write access.  
#4590
Re:Video enbeding!! 1 Year, 6 Months ago  
Yes but it seems that i applied it at the wrong place. I will publish a pack of hacks which will include the fix and much more fixes and goodies...
I should pack it tonight or tomorrow evening, please feel freed to pm me if i forget to post the link in this post.

Post edited by: florut, at: 2007/05/02 19:30
florut (User)
FB Translation Team
Senior Boarder
Posts: 195
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4591
Re:Video enbeding!! 1 Year, 6 Months ago  
alright sounds good as i will keep my eye on this topic..

regards
rick
subfighter (User)
Jiu Jitsu Techniques Online
Junior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Subfighter estrada_rick@hotmail.com Location: Oceanside, California Birthdate: 1971-05-13
Logged Logged
 
Database Version: 5.0.51a-community
Database Collation: utf8_general_ci
PHP Version: 5.2.5
Web Server: Apache/2.0.63 (Unix)
Joomla! Version: Joomla! 1.5.7
 
The administrator has disabled public write access.  
#4594
Re:Video enbeding!! 1 Year, 6 Months ago  
Goanna wrote:

As for the BBcode, it seems to work but the video never loads. The outline for the player shows up but that's it. Anyone else having that problem?


Wow, you guys are brilliant, and awesome! Nice work, this is great.

It didn't work for me either though, but I found the issue, I just had to learn how to code in "joomla speak". Your embed code is a bit complicated. I think it needs to look like this:

[code:1]//youtube
$fb_message_txt = preg_replace("/[youtube](.*?)[/youtube]/si","",$fb_message_txt);
[/code:1]

This works great for me. This is how you implement:

You don't actually put in a URL, you just put in the "ID". So if you're looking at the URL:

http://youtube.com/watch?v=rHo7BHo3CJQ

You would just embed the ID part, which is "rHo7BHo3CJQ"

Like this:

[youtube]rHo7BHo3CJQ[/youtube]

BTW... how hard would it be to make this a button when you post a topic?


Post edited by: fotogeek, at: 2007/05/02 19:44

Post edited by: fotogeek, at: 2007/05/02 20:15
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.  
#4616
Re:Video enbeding!! 1 Year, 6 Months ago  
Here we are already :
You can download the pack of hacks that i included in a template package at this address :
www.aide-joomla.fr/component/option,com_...sk,cat_view/gid,106/

Please post any issue in this forum.

================================================================
HACKS INCLUDED
================================================================

- Mambots loaded in messages and announcement plugin (to include media in forum message for example)

- PMS systems Missus and Jim support included

- announcement plugin enabled and hacked to display up to 3 announcements at a time, WITH HTML SUPPORT

- "online" and "offline" logo enabled

- some bugs fixes as SEF compatibility and others.

- little tricks to add one by one as FB Fullscreen, RSS Feed, Overlib tip, Date (please read each readme.txt in each subfolder of the "astuces-tricks" folder)
florut (User)
FB Translation Team
Senior Boarder
Posts: 195
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#4823
Re:Video enbeding!! 1 Year, 6 Months ago  
For those who found painful to install the hacks, i will develop now a full installation package including the hacks. You still will have to register to download it here :

www.aide-joomla.fr/component/option,com_...ounter/ascdesc,DESC/

Post edited by: florut, at: 2007/05/03 20:15
florut (User)
FB Translation Team
Senior Boarder
Posts: 195
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#5305
Re:Video enbeding!! 1 Year, 6 Months ago  
I had some problems with c0cain's code and I edited the only youtube part and it is working alright with ie and firefox


[code:1]

//youtube

$fb_message_txt = preg_replace("/[youtube](.*?)[/youtube]/si","",$fb_message_txt);[/code:1]
tedmiller (User)
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
imzama a_11m
 
The administrator has disabled public write access.  
#5394
Re:Video enbeding!! 1 Year, 6 Months ago  
The code works fine but just as mentioned above if line breaks appear after copying into your editor, be sure to remove them or the code will not function. Thats all there is to it
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