351

(40 replies, posted in PunBB 1.3 extensions)

Slavok wrote:
SuperMAG wrote:

hey slavok, i think you people should release 1.3.3 now, there are alot of bugs fixed.

The release of new version of pun_quote will not affect the fixing bugs and release of PunBB 1.3.3.

SuperMAG wrote:

i have a problem, after i installed the latest version, it doesnt quick quote anymore, it normal quote now, i tried reinstalling, full refresh etc. nothing works.

The latest version of the extension was installed on our forum and it works fine for me. Please, describe in a more detailed way the actions you do, when posts aren't quoted.

i wasnt talking about quote extension on my first post, sorry i posted in the wrong post. i was talking that there have been alot of bugs fixed in the trac. and 1.3.2 has alot of bugs. so it would be bitter if it is released.

------------

oh and about quote extension, its working now, the javascript wasn't loading at first. it loads now.

352

(40 replies, posted in PunBB 1.3 extensions)

i have a problem, after i installed the latest version, it doesnt quick quote anymore, it normal quote now, i tried reinstalling, full refresh etc. nothing works.

353

(29 replies, posted in PunBB 1.3 extensions)

worked, just changed name, thanks alot mate.

354

(40 replies, posted in PunBB 1.3 extensions)

hey slavok, i think you people should release 1.3.3 now, there are alot of bugs fixed.

355

(29 replies, posted in PunBB 1.3 extensions)

well after i created a link from the admin place.

well i already have an icon, placed it with others.
http://sports2all.com/forum/extensions/ … cebook.gif

And i edited the http://sports2all.com/forum/extensions/ … s/imgs.css

and added this line in it.

}
#navfacebook {
    background:transparent url(images/facebook.gif) no-repeat center left;
}

but it ditdnt work, well i am not a coder either.
so just need a tip to copy what.

356

(11 replies, posted in PunBB show off)

Lol, NICE. THANKS ALOT. i will try it in my site tomorow.

357

(29 replies, posted in PunBB 1.3 extensions)

hey Rich Pedley, is there any way i can add my own icons in menu. like i added a link to my Facebook Group in menu. its shows now home icon, is there any way i can change that.

Thanks

358

(1 replies, posted in PunBB 1.3 bug reports)

The Rss Xml, thing has bbcode in it. Bbcodes must be converted to html to be parsed correctly.

359

(11 replies, posted in PunBB show off)

its different then oxygen, so bitter call it something else. it looks very professional. smile

360

(5 replies, posted in PunBB 1.3 extensions)

OPSSSSSSS completly wrong post, i was about to post that in another topic.

well i used the HTML of my wordpress header, check my site. just copy html of source and copy the header and footer css of your style.

362

(5 replies, posted in PunBB 1.3 extensions)

mmm, text bar is already resizable with me in Google chrome, i dont know about other browsers, but thanks any way, this forum need Extensions.

363

(11 replies, posted in PunBB show off)

Nice, what theme is that. Can you post a link to it.

364

(3 replies, posted in General discussion)

Lol, i always used the Frontpage for that. Thanks this well be quicker

oh Thanks, it works now, it didnt work before because there were other tags in the sentence, to work size must be first one.

Well Thanks alot Pepak.

hey prepak, THANKS Alot for making the extension so quickly.

but i have a problem, how do you the size tag.

i mean. i used [SIZE=7][/SIZE] and it didnt worked. so what exatly are the tags.

use .php . i did that with my wordpress site.

Example Here: http://sports2all.com/forum/

mmm, just installed it. its good but i need something special like [mp3] [/mp3]

that one need to post direct mp3 urls, which is not good. it would be bitter if there is small flash mp3 player. like just play button. i recommend for developers.

The Colours are changeable too: http://beemp3.com/player/player.swf

http://www.1pixelout.net/code/audio-pla … ss-plugin/
or
http://compu.terlicio.us/code/plugins/audio/

Is there any mp3 extension for the Punbb 1.3?

It would be bitter if its small one.

370

(41 replies, posted in PunBB 1.3 extensions)

hey quaker, do u know a little bit about php.

i realy need to add these features. may be you can give me few tips by converting only one type of these videos.


SuperMAG wrote:

looks like Neck is not developing this anymore.

Can any one please help add this to the original code.

These are to be added:

<?php
foreach ($_GET as $key => $item){
if ($key!='link' and $key!='debug'){
$_GET['link'].='&'.$key.'='.$item;
}
}
If ($_GET['link']){
If ($_GET['debug']) echo '<script>';
echo "window.document.write('".preg_replace('/</script>/', '</scr'+'ipt>', addslashes(get_video($_GET['link'])))."');";
If ($_GET['debug']) echo '</script>';
}
function get_video($link){
$values = array (
//http://www.youtube.com
array('/youtube.com.*v=([^&]*)/i', '<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/{ID_VIDEO}"></param><embed src="http://www.youtube.com/v/{ID_VIDEO}" type="application/x-shockwave-flash" width="425" height="344"></embed></object>'),

//http://video.google.it
array('/video.google.*docid=([^&]*)/i', '<embed id="VideoPlayback" style="width:400px;height:326px" allowFullScreen="true" flashvars="fs=true" src="http://video.google.com/googleplayer.swf?docid={ID_VIDEO}" type="application/x-shockwave-flash"></embed>'),

//http://dailymotion.alice.it
array('/(dailymotion)/i', '{DOWNLOAD%/<textarea id="video_player_embed_code_text" class="text" onclick="this.select()" type="text">(.*?)</textarea>/ism%html_entity_decode|}'),

//http://www.metacafe.com
array('/metacafe.com/watch/(.*)//i', '<embed src="http://www.metacafe.com/fplayer/{ID_VIDEO}.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>'),

//http://www.starsclips.net
array('/starsclips.net/videos.aspx/(.*)/i', '<object width="400" height="320"><param name="movie" value="http://www.starsclips.net/emb.aspx/{ID_VIDEO}"></param><param name="wmode" value="transparent"></param><embed src="http://www.starsclips.net/emb.aspx/{ID_VIDEO}" type="application/x-shockwave-flash" wmode="transparent" width="400" height="320"></embed></object>'),

//http://vids.myspace.com
array('/vids.myspace.com.*?videoID=([^&]*)/i', '<object width="430px" height="386px"><param name="wmode" value="transparent"/><param name="allowscriptaccess" value="always"/><param name="movie" value="http://lads.myspace.com/videos/vplayer.swf"/><param name="flashvars" value="m={ID_VIDEO}"/><embed src="http://lads.myspace.com/videos/vplayer.swf" width="430" height="386" flashvars="m={ID_VIDEO}" type="application/x-shockwave-flash" allowscriptaccess="always" /></object>'),

array('/myspacetv.com.*?videoID=([^&]*)/i', '<object width="430px" height="386px"><param name="wmode" value="transparent"/><param name="allowscriptaccess" value="always"/><param name="movie" value="http://lads.myspace.com/videos/vplayer.swf"/><param name="flashvars" value="m={ID_VIDEO}"/><embed src="http://lads.myspace.com/videos/vplayer.swf" width="430" height="386" flashvars="m={ID_VIDEO}" type="application/x-shockwave-flash" allowscriptaccess="always" /></object>'),

//http://video.yahoo.com
array('/video.yahoo.*vid=([^&]*)/i','<object width="512" height="323"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.2" /><param name="allowFullScreen" value="true" /><param name="flashVars" value="id={DOWNLOAD%/so.addVariable("id", "(.*?)");/%}&vid={ID_VIDEO}&thumbUrl={DOWNLOAD%/so.addVariable("thumbUrl", "(.*?)");/%}&embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.2" type="application/x-shockwave-flash" width="512" height="323" allowFullScreen="true" flashVars="id={DOWNLOAD%/so.addVariable("id", "(.*?)");/%}&vid={ID_VIDEO}&thumbUrl={DOWNLOAD%/so.addVariable("thumbUrl", "(.*?)");/%}&embed=1" ></embed></object>'),

//http://photobucket.com
array ('/(photobucket.com)/i', '{DOWNLOAD%/<input name="txtThumbTag2" id="txtThumbTag2".*?value="(.*?)"/ism%html_entity_decode}'),

//http://files.filefront.com
array ('/(filefront.com)/i','{DOWNLOAD%/<input type"text" id="embedSrc" value='(.*?)'/ism%}'), 

//http://www.veoh.com
array ('/veoh.com/videos/([^?]*)/i', '<embed src="http://www.veoh.com/videodetails2.swf?permalinkId={ID_VIDEO}&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="540" height="438" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'),

//http://www.vidilife.com
array ('/(vidilife.com)/i','{DOWNLOAD%/<input type="text" name="url1" value="(.*?)"/%}'),

//http://www.gametrailers.com
array ('/gametrailers.com/player/(.*?).html/i', '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="392">      <param name="allowScriptAccess" value="sameDomain" />   <param name="allowFullScreen" value="true" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid={ID_VIDEO}"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid={ID_VIDEO}" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"></embed> </object>'),

//http://www.vidiac.com
array ('/vidiac.com/video/(.*?).htm/i', '<embed src="http://www.vidiac.com/vidiac.swf" FlashVars="video={ID_VIDEO}" quality="high" bgcolor="#ffffff" width="428" height="352" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'),

//http://www.gamespot.com
array ('/gamespot.com/video//i', '<embed id="mymovie" width="432" height="362" flashvars="playerMode=embedded&movieAspect=4.3&flavor=EmbeddedPlayerVersion&skin=http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/one/skins/gamespot.png&paramsURI={DOWNLOAD%/so.addVariable('paramsURI', '(.*?)');/ism%}" wmode="transparent" allowscriptaccess="always" quality="high" name="mymovie" style="" src="http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/one/proteus2.swf" type="application/x-shockwave-flash"/>'),

//http://www.megavideo.com
array ('/(megavideo.com)/i', '{DOWNLOAD%/<input type="text" value='(.*?)'/%}'),

//http://www.vimeo.com
array ('/vimeo.com/([^&]*)/i', '<object class="swf_holder" type="application/x-shockwave-flash" width="506" height="380" data="http://www.vimeo.com/moogaloop_local.swf?clip_id={ID_VIDEO}&amp;server=www.vimeo.com&amp;autoplay=0&amp;fullscreen=1&amp;show_portrait=0&amp;show_title=0&amp;show_byline=0&amp;md5=&amp;color="><param name="quality" value="high" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://www.vimeo.com/moogaloop_local.swf?clip_id={ID_VIDEO}&amp;server=www.vimeo.com&amp;autoplay=0&amp;fullscreen=1&amp;show_portrait=0&amp;show_title=0&amp;show_byline=0&amp;md5=&amp;color=" /></object>'),

//http://www.gamevideos.com
array ('/(gamevideos.com)/i', '{DOWNLOAD%/Embed: <input.*value="(.*?)"/%html_entity_decode}'),

//http://www.tu.tv
array ('/(tu.tv)/i', '{DOWNLOAD%/<input name="html".*value='(.*?)'/%}'),

//http://www.godtube.com
array ('/godtube.com.*viewkey=([^&]*)/i', '<embed src="http://godtube.com/flvplayer.swf" FlashVars="viewkey={ID_VIDEO}" wmode="transparent" quality="high" width="330" height="270" name="godtube" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>'),

//http://www.myvideo.de
array ('/myvideo.de/watch/(.*?)//i', "<object style='width:470px;height:406px;' width='470' height='406' type='application/x-shockwave-flash' data='http://www.myvideo.de/movie/{ID_VIDEO}'><param name='movie' value='http://www.myvideo.de/movie/{ID_VIDEO}'/><param name='AllowFullscreen' value='true' /><embed src='http://www.myvideo.de/movie/{ID_VIDEO}' width='470' height='406'></embed></object>"),

//http://www.collegehumor.com/
array ('/collegehumor.*video:(.*)/i', '<object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1819139&fullscreen=1" width="480" height="360" ><param name="allowfullscreen" value="true" /><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id={ID_VIDEO}&fullscreen=1" /></object>'),

//http://www.comedycentral.com
array ('/comedycentral.*videoId=([^&]*)/i', "<embed FlashVars='videoId={ID_VIDEO}' src='http://www.comedycentral.com/sitewide/video_player/view/default/swf.jhtml' quality='high' bgcolor='#cccccc' width='332' height='316' name='comedy_central_player' align='middle' allowScriptAccess='always' allownetworking='external' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>"),

//http://www.slideshare.net
array ('/(slideshare.net)/i', '{DOWNLOAD%/<input.*?id="embedded_code" value="(.*?)"/%html_entity_decode}'),

//http://www.revver.com
array ('/revver.com/video/(.*?)//i', '<script src="http://flash.revver.com/player/1.0/player.js?mediaId:{ID_VIDEO};width:480;height:392;" type="text/javascript"></script>'),

//http://de.sevenload.com
array ('/sevenload.com/videos/(.*?)-/i', '<script type="text/javascript" src="http://de.sevenload.com/pl/{ID_VIDEO}/500x408"></script>'),

//http://www.clipfish.de
array ('/clipfish.de.*?videoid=([^&]*)/i', "<object width='464' height='380'><param name='movie' value='http://www.clipfish.de/videoplayer.swf?videoid={ID_VIDEO}' /><param name='allowFullScreen' value='true' /><embed src='http://www.clipfish.de/videoplayer.swf?videoid=MTMyNzg4fDI0NTY3MzM' width='464' height='380' name='player' allowFullScreen='true' type='application/x-shockwave-flash'></embed></object>"),

);
foreach ($values as $value){
if (preg_match($value[0], $link, $matches)){
$id_video=$matches[1];
return preg_replace_callback('/{.*?}/', create_function('$matches', 'switch (true){
case preg_match("/{ID_VIDEO}/", $matches[0]):
return "'.$id_video.'";
break;
case preg_match("/{LINK}/", $matches[0]):
return "'.$link.'";
break;
case preg_match("/{DOWNLOAD(.*?)%(.*?)%(.*?)}/", $matches[0], $matches2):
if (empty($matches2[1])) $matches2[1]="'.$link.'";
preg_match($matches2[2], file_get_contents(str_replace(" ","+",$matches2[1])), $matches3);
if (empty($matches2[3])){
return $matches3[1];
}else{
$t=$matches3[1];
foreach(explode("|", $matches2[3]) as $e){
eval('$t='.$e.'($t);');
}
return $t;
}
break;
}
return $matches[0];'), $value[1]);
}
}
return 'Error, site not recognized';
}
?>

These it will produce

[video]http://youtube.com/watch?v=IiJdn6bg3fs[/video]
[video]http://video.google.it/videoplay?docid=-1807566009355608301[/video]
[video]http://dailymotion.alice.it/video/x3gvg0_baby-break-dance_fun[/video]
[video]http://www.metacafe.com/watch/976183/amazing_denver_zoo_lights_2007/[/video]
[video]http://starsclips.net/videos.aspx/video~no_break_girls_boxing_824/No_break_girls_boxing/Funny_videos/[/video]
[video]http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoID=1590276358[/video]
[video]http://video.yahoo.com/video/play?vid=1845135&fr=&cache=1[/video]
[video]http://photobucket.com/mediadetail/?media=%2Fplayer.swf%3Ffile%3Dhttp%3A%2F%2Fvid209.photobucket.com%2Falbums%2Fbb146%2Fgirlsrule619_photo%2FCIMG1214.flv&searchTerm=&pageOffset=[/video]
[video]http://files.filefront.com/Conflict+Denied+Ops+Launch+Trailer/;9506302;/fileinfo.html[/video]
[video]http://www.veoh.com/videos/v3307355BSa7tBwK?source=featured&cmpTag=featured&rank=3[/video]
[video]http://www.vidilife.com/video_play_1125851_Not_Karate.htm?hmtrk=Not_Karate[/video]
[video]http://www.gametrailers.com/player/30032.html[/video]
[video]http://www.vidiac.com/video/7fd7de8b-67e8-4ffb-a5bd-991900422e1a.htm[/video]
[video]http://www.gamespot.com/video/938343/6185167/videoplayerpop?[/video]
[video]http://www.megavideo.com/?v=QZ4O9C8P[/video]
[video]http://www.vimeo.com/173714[/video]
[video]http://www.gamevideos.com/video/id/17281[/video]
[video]http://www.tu.tv/videos/nuco-diga-no-a-una-mujer[/video]
[video]http://www.godtube.com/view_video.php?viewkey=9c72e4dcbe79c288680e[/video]
[video]http://www.myvideo.de/watch/4276644/Handys_boese[/video]
[video]http://www.collegehumor.com/video:1819139[/video]
[video]http://www.comedycentral.com/videos/index.jhtml?videoId=173093[/video]
[video]http://www.slideshare.net/ewan.mcintosh/unleasing-the-tribe/[/video]
[video]http://www.revver.com/video/129859/poker-player/[/video]
[video]http://de.sevenload.com/videos/7oREPw6-Simpsons-Intro-mit-Schauspielern[/video]
t=ft_2_unset_video&utm_campaign=cf[/video]
[video]http://www.clipfish.de/player.php?videoid=MTMyNzg4fDI0NTY3MzM%3D&tl=4712&utm_source=ft&utm_medium=ft_2&utm_term=ft_2_unset&utm_content=ft_2_unset_video&utm_campaign=cf[/video]

That Code was written for phpBB by Fraev.

This is the current manifest.xml by neck.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE extension SYSTEM "ext-1.0.dtd">

<!--
/**
 * VideoTag extension for PunBB forum
 * Offer a new BBcode tag to display embedded flash videos.
 *
 * @author Neck - http://www.eikylon.net
 * @license GPL - http://www.gnu.org/copyleft/gpl.html
 * @package ek_videotag
 */
-->

<extension engine="1.0">
    <id>ek_videotag</id>
    <title>VideoTag</title>
    <version>0.2.0</version>
    <description>New BBcode tag ([video]) to display embedded flash videos.</description>
    <author>Neck - http://www.eikylon.net</author>
    <minversion>1.3</minversion>
    <maxtestedon>1.3.2</maxtestedon>

    <hooks>
        <hook id="he_new_bbcode_link"><![CDATA[

// add our lang file
if (file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'.php')) {
    require($ext_info['path'].'/lang/'.$forum_user['language'].'.php');
} else {
    require($ext_info['path'].'/lang/English.php');
}
$lang_help = array_merge($lang_help, $lang_help_video);
?>
<div class="entry-content">
    <code>[video]<?php echo $lang_help['video_uri'] ?>[/video]</code><span><?php echo $lang_help['produces'] ?></span>
    <?php echo $lang_help['video_display'] ?>
</div><?php

        ]]></hook>
        <hook id="ps_start"><![CDATA[

// tag handling function
function handle_video_tag($videoUri) {
    global $forum_config;
    $match = array();

    // dirty trick to play arround do_clickable
    preg_match('`href="([^"]+)"`', stripslashes($videoUri), $match);
    if(!empty($match[1])) {
        $videoUri = $match[1];
    }

    // the services list
    $service = array(
        'youtube' => array(
            'match'=>'`watch?v=([-_a-z0-9]+)`i',
            'uri'=>'http://www.youtube.com/v/%s&amp;rel=0',
            'width'=>425,
            'height'=>344
        ),
        'dailymotion' => array(
            'match'=>'`video/([a-z0-9]+)_`i',
            'uri'=>'http://www.dailymotion.com/swf/%s&amp;amp;related=0&amp;amp;canvas=medium',
            'width'=>480,
            'height'=>381
        ),
        'vimeo' => array(
            'match'=>'`/([0-9]+)`',
            'uri'=>'http://www.vimeo.com/moogaloop.swf?clip_id=%s&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;fullscreen=1',
            'width'=>400,
            'height'=>302
        ),
        'google' => array(
            'match'=>'`?docid=(-?[0-9]+)`',
            'uri'=>'http://video.google.com/googleplayer.swf?docId=%s',
            'width'=>425,
            'height'=>364
        )
    );

    // extract service's name and check for support
    preg_match('`^http://(?:[^.]*.)?([^.]*).[^/]*/`i', $videoUri, $match);
    if(empty($match[1]) || !array_key_exists($match[1], $service)) {
        return '<a href="'.$videoUri.'">[video (unkown provider)]</a>';
    }
    $s = $service[$match[1]];

    // extract videoId
    preg_match($s['match'], $videoUri, $match);
    if(empty($match[1])) {
        return '<a href="'.$videoUri.'">[video (cant extract ID)]</a>';
    }
    $playerUri = sprintf($s['uri'], $match[1]);

    // display flash player
    return
        '<object type="application/x-shockwave-flash" data="'.$playerUri.'" width="'.$s['width'].'" height="'.$s['height'].'">'.
            '<param name="movie" value="'.$playerUri.'" />'.
            '<param name="wmode" value="transparent" />'.
            '<param name="allowfullscreen" value="true" />'.
            '<p><a href="'.$videoUri.'">[video (flash player not installed)]</a></p>'.
        '</object>';
}

        ]]></hook>
        <hook id="ps_preparse_tags_start"><![CDATA[

// add our tag to the list
$tags[] = 'video';
$tags_opened[] = 'video';
$tags_closed[] = 'video';
$tags_inline[] = 'video';
$tags_trim[] = 'video';
// we must allow url due to do_clickable
$tags_limit_bbcode['video'] = array('url');

        ]]></hook>

        <hook id="ps_do_bbcode_replace"><![CDATA[

// add pattern to catch [video]blahblah[/video]
$pattern[] = '`[video]([^[]+)[/video]`e';
$replace[] = 'handle_video_tag('$1')';

        ]]></hook>
    </hooks>

</extension>

I hope its easy to add those to the list.

Thanks

371

(41 replies, posted in PunBB 1.3 extensions)

replied

372

(41 replies, posted in PunBB 1.3 extensions)

mmm have no idea what you talking about, can you show me a link or something

373

(41 replies, posted in PunBB 1.3 extensions)

huh, what spam. its a download site. it was just a sentence. smile

374

(41 replies, posted in PunBB 1.3 extensions)

can any one give few tips, or convert just one type of video code, so i can do the rest my self. it would be really appreciated, thanks in advance.

pepak wrote:

If you want it, it's one line in hook ps_do_bbcode_end.

can you please it, or make extension. people including i would love that. thanks