Username:
Password:
Search for Plugins: Advanced
Please Sign in, Register or Resend Activation Email

Forums

  e107 Coders.org :: Forums :: E107 Plugins :: Code Bank
 
<< Previous thread | Next thread >>  
Autogallery 2.55 & 2.61 Youtube, GoogleVideo, DivX Stage6, e.t.c video embed trick          
Author Post
zheka21
Sun Mar 04 2007, 05:14AM
Registered Member #70827
Joined: Sun Jan 07 2007, 05:16AM
Location:
Posts: 5
This is not a full embed but it saves some space and traffic for my site.
Here is what I did:1. In your e107_plugins/autogallery/def_core.php find line: define('AUTOGAL_FLVEXTS', 'flv'); change it: define('AUTOGAL_FLVEXTS', 'flv|ytb');2. In e107_plugins/autogallery/autogallery.php find block:------------------------------------------------------------------------------------------------------ # THANKS TO EMMANUAEL FOR THE FLV PLAYER else if ($selEleInfo['isflv']) {$url = urlencode($imageInfo['url']); # FF$target = AUTOGAL_FLVPLAYER.'?file='.$url.'&autoStart=false';$showHTML = '##SANITISED## width="'.AUTOGAL_FLASHWIDTH.'" height="'.AUTOGAL_FLASHHEIGHT.'">##SANITISED## src="'.AUTOGAL_FLVPLAYER.'" width="'.AUTOGAL_FLASHWIDTH.'" height="'.AUTOGAL_FLASHHEIGHT.'"name="'.$imageInfo['title'].'" type="application/x-shockwave-flash"pluginspace="http://www.macromedia.com/go/getflashplayer"flashvars="file='.$url.'&autoStart=false">##SANITISED##>##SANITISED##>
'.AUTOGAL_LANG_L37.$fileSize.'
'; }------------------------------------------------------------------------------------------------------ and change it for this one:------------------------------------------------------------------------------------------------------# THANKS TO EMMANUAEL FOR THE FLV PLAYERelse if ($selEleInfo['isflv']){ if ($imageInfo['extension'] == 'ytb') {$showHTML = file_get_contents($imageInfo['url']); } else {$url = urlencode($imageInfo['url']); # FF$target = AUTOGAL_FLVPLAYER.'?file='.$url.'&autoStart=false';$showHTML = '##SANITISED## width="'.AUTOGAL_FLASHWIDTH.'" height="'.AUTOGAL_FLASHHEIGHT.'">##SANITISED## src="'.AUTOGAL_FLVPLAYER.'" width="'.AUTOGAL_FLASHWIDTH.'" height="'.AUTOGAL_FLASHHEIGHT.'"name="'.$imageInfo['title'].'" type="application/x-shockwave-flash"pluginspace="http://www.macromedia.com/go/getflashplayer"flashvars="file='.$url.'&autoStart=false">##SANITISED##>##SANITISED##>
'.AUTOGAL_LANG_L37.$fileSize.'
'; } }------------------------------------------------------------------------------------------------------3.In your Autogallery Admin - Main Settings in line Allow Upload Extensions add |ytb4. Now you have to create file with .ytb extension( example.ytb ) and put your Youtube or Googlevideo ##SANITISED##>...bla...bla...bla...##SANITISED##> code into it (using notepad for example)This is it. Now upload your example.ytb file as usual video file to your Gallery.(you can change .ytb extension on any name you want, just dont forget to change it in both def_core.php, autogallery.php files and in autogallery admin main setting section)
!!!Important!!!All your Gallery folders and .ytb files DON'T have to have spaces in their names. Use underscore instead of spaces. (I don't know how to fix it. urlencode does not help)


[ Edited Fri Jul 23 2010, 11:05PM ]
XshadowX
Sun Apr 29 2007, 01:19AM
Registered Member #79072
Joined: Sun Apr 22 2007, 02:07PM
Location:
Posts: 3
dont work on new ver
Back to top
zheka21
Thu Jun 07 2007, 04:22AM
Registered Member #70827
Joined: Sun Jan 07 2007, 05:16AM
Location:
Posts: 5
As I say this is not a full hack. I just share an idea.Work in AutoGallery 2.61 on my site.Step 1 stays the same.For step 2 in def.php find this:------------------------------------------------------------# THANKS TO EMMANUAEL FOR THE FLV PLAYERelse if ($eleInfo['isflv']){$url = urlencode($eleInfo['url']); # FF$target = AUTOGAL_FLVPLAYER.'?file='.$url.'&autoStart=false';$pvWidth = ($eleInfo['viewwidth'] ? $eleInfo['viewwidth'] : AUTOGAL_FLASHWIDTH);$pvHeight = ($eleInfo['viewheight'] ? $eleInfo['viewheight'] : AUTOGAL_FLASHHEIGHT);if (AUTOGAL_SHOWEMBEDLINK){$embed = '##SANITISED## src="'.AUTOGAL_FLVPLAYER.'" width="'.$pvWidth.'" height="'.$pvHeight .'" name="'.$eleInfo['title'].'" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" flashvars="file='.AutoGal_ChangeToEmbed($eleInfo['url']).'&autoStart=false&lightcolor=0x996600&backcolor=0x000000&frontcolor=0xCCCCCC&repeat=true&logo='.AUTOGAL_FLVPLAYER_LOGO.'">##SANITISED##>';$inputEmbed ='##SANITISED##\'this.select();this.focus();\' ##SANITISED##\'this.select();this.focus();\'>';$inputLink ='##SANITISED##\'this.select();this.focus();\' ##SANITISED##\'this.select();this.focus();\'>';$embedHtmlCode = '
'.AUTOGAL_LANG_EMBED_L1.''.$inputEmbed.'
'.AUTOGAL_LANG_EMBED_L2.''.$inputLink.'
';}else{$embedHtmlCode = '';}$text = '##SANITISED## width="'.$pvWidth.'" height="'.$pvHeight.'">##SANITISED## src="'.AUTOGAL_FLVPLAYER.'" width="'.$pvWidth.'" height="'.$pvHeight.'"name="'.$eleInfo['title'].'" type="application/x-shockwave-flash"pluginspace="http://www.macromedia.com/go/getflashplayer"flashvars="file='.$url.'&autoStart=false">##SANITISED##>##SANITISED##>
'.AUTOGAL_LANG_L37.$fileSize.$embedHtmlCode.'
';}------------------------------------------------------------and change with this:------------------------------------------------------------# THANKS TO EMMANUAEL FOR THE FLV PLAYERelse if ($eleInfo['isflv']){if ($eleInfo['extension'] == 'ytb'){$text = file_get_contents($eleInfo['url']);}else {$url = urlencode($eleInfo['url']); # FF$target = AUTOGAL_FLVPLAYER.'?file='.$url.'&autoStart=false';$pvWidth = ($eleInfo['viewwidth'] ? $eleInfo['viewwidth'] : AUTOGAL_FLASHWIDTH);$pvHeight = ($eleInfo['viewheight'] ? $eleInfo['viewheight'] : AUTOGAL_FLASHHEIGHT);if (AUTOGAL_SHOWEMBEDLINK){$embed = '##SANITISED## src="'.AUTOGAL_FLVPLAYER.'" width="'.$pvWidth.'" height="'.$pvHeight .'" name="'.$eleInfo['title'].'" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" flashvars="file='.AutoGal_ChangeToEmbed($eleInfo['url']).'&autoStart=false&lightcolor=0x996600&backcolor=0x000000&frontcolor=0xCCCCCC&repeat=true&logo='.AUTOGAL_FLVPLAYER_LOGO.'">##SANITISED##>';$inputEmbed ='##SANITISED##\'this.select();this.focus();\' ##SANITISED##\'this.select();this.focus();\'>';$inputLink ='##SANITISED##\'this.select();this.focus();\' ##SANITISED##\'this.select();this.focus();\'>';$embedHtmlCode = '
'.AUTOGAL_LANG_EMBED_L1.''.$inputEmbed.'
'.AUTOGAL_LANG_EMBED_L2.''.$inputLink.'
';}else{$embedHtmlCode = '';}$text = '##SANITISED## width="'.$pvWidth.'" height="'.$pvHeight.'">##SANITISED## src="'.AUTOGAL_FLVPLAYER.'" width="'.$pvWidth.'" height="'.$pvHeight.'"name="'.$eleInfo['title'].'" type="application/x-shockwave-flash"pluginspace="http://www.macromedia.com/go/getflashplayer"flashvars="file='.$url.'&autoStart=false">##SANITISED##>##SANITISED##>
'.AUTOGAL_LANG_L37.$fileSize.$embedHtmlCode.'
';}}------------------------------------------------------------Step 3 and 4 stays the same

[ Edited Fri Jul 23 2010, 11:05PM ]
Back to top
marry147
Mon Jun 14 2010, 11:29AM
Registered Member #109870
Joined: Mon Jun 14 2010, 11:11AM
Location:
Posts: 4
642-533 Here are the changes I'm making so e107 thinks they are unique plugins: changing plugin folder name - Folder 1: jbroster_menu. Folder 2: jbroster_clan_menu ... 642-566Here are the changes I'm making so e107 thinks they are unique plugins: changing plugin folder name - Folder 1: jbroster_menu. Folder 2: jbroster_clan_menu ... 642-611Here are the changes I'm making so e107 thinks they are unique plugins: changing plugin folder name - Folder 1: jbroster_menu. Folder 2: jbroster_clan_menu ...642-642
Back to top
Muhammad usman
Fri Jan 07 2011, 07:20AM
Registered Member #111699
Joined: Fri Jan 07 2011, 07:11AM
Location:
Posts: 8
Of note, we have delineated a potential trend where past or existing pharma alliances with biotech companies have likely led to an outright acquisition. For example, Bristol-Myers Squibb had a four-year partnership with Medarex to co-develop ipilimumab as treatment for melanoma prior to the latter’s acquisition. Genzyme co-developed Clofarabine with Bioenvision while AstraZeneca had a licensing deal with Cambridge Antibody and Pfizer with Meridica prior to their respective acquisitions. We believe these examples serve as an acquisition barometer for a company like AUXL Of note, we have delineated a potential trend where past or existing pharma alliances with biotech companies have likely led to an outright acquisition
scdjws \ pmp \ mcse \ ccna training \ itil certification \ comptia certification \ comptia server+ \ icdl exams \ ccna certification
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
Render time: 0.3017 sec, 0.1340 of that for queries. DB queries: 37.