Enhance vBulletin mod: Automatic Embedded Video to support VCASMO

Created on 12 October, 2007by VCASMO Learn more about paid account

Additional Info

Language: English Status: Public All rights reserved ©
Views: 8,822 | Comments: 2 | Favorited: 0 | Rating: 0 Login to rate
Add to Favorite SaveCancelSaved
Please enter the folder name:
vBulletin is one of popular community forum solution. It supports "mod" to add extra features on it. One of "mod" is Automatic Embedded Video, which allows user to embed video into post, or convert a video URL link as embed format. It support some common video sites like YouTube. To add new site, you can edit its xml to add support for VCASMO.

Add after "$vbulletin->db->query_write("$querydelete..." rows:
$vbulletin->db->query_write("$querydelete 'vcasmopid'");

Add after "$vbulletin->db->query_write("$querystart..." rows:
$vbulletin->db->query_write("$querystart ('vcasmopid', '<object width=\"850\" height=\"360\"><param name=\"movie\" value=\"http://www.vcasmo.com/swf/vcasmo.swf\"></param><param name=\"flashvars\" value=\"pid=%1\$s\"></param><param name=\"allowFullScreen\" value=\"true\"></param><embed src=\"http://www.vcasmo.com/swf/vcasmo.swf\" type=\"application/x-shockwave-flash\" width=\"850\" height=\"360\" flashvars=\"pid=%1\$s\" allowFullScreen=\"true\" wmode=\"transparent\"></embed></object>', '[vcasmopid]123[/vcasmopid]', 'Allows users to embed presentation from VCASMO', 'VCASMO Embedded Presentation')");

Add after "array_push($replace...array_push($patterns..." rows:
// VCASMO.com
array_push($replace, '[vcasmopid]$4[/vcasmopid]');
array_push($patterns, '~\[URL(.*)\]http://(www\.)?vcasmo\.com/video/([\w-]*)/(.*)[^\[]*\[/URL\]~i');

VCASMO, Chief Developer


No comment.

Post Comment

Post comment is disabled by presentation owner.

Clear Trace