Can Anyone Help Me Modify Some Php Code?

Discussion in 'Software' started by Jesse Newell, Feb 6, 2016.

  1. Jesse Newell

    Jesse Newell MajorGeek

    I need to get this code to work so I'll be able to embed videos from Metacafe using the forum mod this code is a part of. I've already asked for help on the phpBB forum but no one's responded yet and I'm guessing I'm not gonna get a response.

    'metacafe.com' => array(
    'id' => 22,
    'image' => 'metacafe.gif',
    'example' => '',
    'match' => '#http://www.metacafe.com/watch/([0-9]+)?((/[^/]+)/?)?#si',
    // 'replace' => '<iframe src="http://www.metacafe.com/embed/$1/" width="{WIDTH}" height="{HEIGHT}" allowFullScreen frameborder=0></iframe>',
    'replace' => 'http://www.metacafe.com/fplayer/$1/metacafe.swf',
    'method' => 'flash',
    ),


    Right now, if I use this code, all I get from Metacafe is a big, white space. I didn't write the code by the way. I've been told that its author has gone bye bye so I won't be getting any help from him.

    EDIT: Uh, well, ****, that wasn't supposed to happen. Seems it embeds fine here on Xenforo. I'm trying to get it to embed on phpBB though. Is there any way I can just show the code without that video?

    EDIT: OK. Just pretend where you see the video is just the location of the video. I didn't know videos auto embedded here.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds