
plz take a look at http://leaver.de/gvideo-und-youtube-bbc ... t-t71.html (some bbcode like youtube wont work ... and if u try to use the last 3bbcodes they insert the wrong tags etc ...
here my bbcode.tpl and .php files:
bbcode.tpl
bbcode.php
perldude69 wrote: Ok folks,
The last fix worked well. It had one glitch though. If more than one google video was embedded in the same post, it only displayed the first one.
The following change seems to fix this problem. It also takes into account google.video.co.uk videos for those in the UK. People using other international versions of google video, please test and let me know how things go.
Here is the new regular expression. (filter) for the file: includes/bbcode.php
note, the only change is that com from video.google.com is replaced with [A-Za-z0-9.]{2,5}Code: Select all
// [GVideo]GVideo URL[/GVideo] code.. $patterns[] = "#\[GVideo\]http://video.google.[A-Za-z0-9.]{2,5}/videoplay\?docid=([0-9A-Za-z-_]*)[^[]*\[/GVideo\]#is"; $replacements[] = $bbcode_tpl['GVideo'];
--Perldude69
bassbox wrote: yeah, the problem with the wrong tags , could i correct by myself ...
had to change the order in postingbody.tpl ..
but , the DYK + MOD + Youtube bbcodes just show up as they are posted ( but there is no videoplayer or something like that :-/
there were the same problem wit GVIDEO, but after adding youtube code, gvideo works fine ?? but youtube still doesn't ! *cry
Code: Select all
// [GVideo]GVideo URL[/GVideo] code..
$patterns[] = "#\[GVideo\]http://video.google.[A-Za-z0-9.]{2,5}/videoplay\?docid=([0-9A-Za-z-_]*)[^[]*\[/GVideo\]#is";
$replacements[] = $bbcode_tpl['GVideo'];
Code: Select all
$EMBB_widths = array('','60','60') ;
I was looking for this video,
Thank you very much.
EDIT:
====
Works great except for this step:
#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'60'
#
#-----[ FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'GVideo'
I haven't installed the above because i can't find $EMBB_values = array(" but without this the MOD still does his job.
But i don't see a new button with new reply/topic.
zjcznix wrote: in the posting.php file this peice of code does not existWHY?? is it cuz i am using phpbb 2.0.21? the code also does not exist in the bbcode.php fileCode: Select all
$EMBB_widths = array('','60','60') ;
i am trying to install the you tube video mod, but its asking me to search for certain peices of code that does not exsist![]()
perldude69 wrote: Ive looked over your code untill my eyes have crossed. I can't find anything wrong with it. As you have seen, Ive registered with your forum and tested it myself. It simply doesn't work.
I will keep looking, but maybe some others out there in the phpBB community can lend a hand too. Have you posted your situation over at the YouTube mod page?
Lets get some help here.![]()
--Perldude69