Exemple #1
0
 /**
  * Constructor
  */
 function BxFilesConfig($aModule)
 {
     parent::BxDolFilesConfig($aModule);
     $this->aFilePostfix = array('original' => '_{ext}');
     $this->aGlParams = array('auto_activation' => 'bx_files_activation', 'mode_top_index' => 'bx_files_mode_index', 'category_auto_approve' => 'category_auto_activation_bx_files', 'number_all' => 'bx_files_number_all', 'number_index' => 'bx_files_number_index', 'number_user' => 'bx_files_number_user', 'number_related' => 'bx_files_number_related', 'number_top' => 'bx_files_number_top', 'number_browse' => 'bx_files_number_browse', 'number_albums_browse' => 'bx_files_number_albums_browse', 'number_albums_home' => 'bx_files_number_albums_home', 'browse_width' => 'bx_files_thumb_width', 'allowed_exts' => 'bx_files_allowed_exts', 'profile_album_name' => 'bx_files_profile_album_name');
     $this->_aMimeTypes = array();
 }
 /**
  * Constructor
  */
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->aFilesConfig = array('original' => array('postfix' => '_{ext}'));
     $this->aGlParams = array('auto_activation' => 'bx_files_activation', 'mode_top_index' => 'bx_files_mode_index', 'category_auto_approve' => 'category_auto_activation_bx_files', 'browse_width' => 'bx_files_thumb_width');
     $this->_aMimeTypes = array();
     $this->initConfig();
 }
 /**
  * Constructor
  */
 function __construct(&$aModule)
 {
     parent::__construct($aModule);
     // only image files can added/removed here, changing list of sound files requires source code modification
     // image files support square resizing, just specify 'square' => true
     $this->aFilesConfig = array('browse' => array('postfix' => SCREENSHOT_EXT, 'fallback' => 'default.png', 'image' => true, 'w' => 240, 'h' => 240, 'square' => true), 'browse2x' => array('postfix' => '-2x' . SCREENSHOT_EXT, 'fallback' => 'default.png', 'image' => true, 'w' => 480, 'h' => 480, 'square' => true), 'file' => array('postfix' => MP3_EXTENSION));
     $this->aGlParams = array('mode_top_index' => 'bx_sounds_mode_index', 'category_auto_approve' => 'category_auto_activation_bx_sounds');
     $this->initConfig();
 }
 /**
  * Constructor
  */
 function BxSoundsConfig(&$aModule)
 {
     parent::BxDolFilesConfig($aModule);
     // only image files can added/removed here, changing list of sound files requires source code modification
     // image files support square resizing, just specify 'square' => true
     $this->aFilesConfig = array('browse' => array('postfix' => SCREENSHOT_EXT, 'fallback' => 'default.png', 'image' => true, 'w' => 240, 'h' => 240, 'square' => true), 'browse2x' => array('postfix' => '-2x' . SCREENSHOT_EXT, 'fallback' => 'default.png', 'image' => true, 'w' => 480, 'h' => 480, 'square' => true), 'file' => array('postfix' => MP3_EXTENSION));
     $this->aGlParams = array('mode_top_index' => 'bx_sounds_mode_index', 'category_auto_approve' => 'category_auto_activation_bx_sounds', 'number_all' => 'bx_sounds_number_all', 'number_index' => 'bx_sounds_number_index', 'number_user' => 'bx_sounds_number_user', 'number_related' => 'bx_sounds_number_related', 'number_top' => 'bx_sounds_number_top', 'number_browse' => 'bx_sounds_number_browse', 'number_previous_rated' => 'bx_sounds_number_previous_rated', 'number_albums_browse' => 'bx_sounds_number_albums_browse', 'number_albums_home' => 'bx_sounds_number_albums_home', 'file_width' => 'bx_sounds_file_width', 'file_height' => 'bx_sounds_file_height', 'allowed_exts' => 'bx_sounds_allowed_exts', 'profile_album_name' => 'bx_sounds_profile_album_name');
     $this->initConfig();
 }
Exemple #5
0
 /**
  * Constructor
  */
 function BxPhotosConfig(&$aModule)
 {
     parent::BxDolFilesConfig($aModule);
     $this->aFilePostfix = array('thumb' => '_rt.jpg', 'browse' => '_t.jpg', 'icon' => '_ri.jpg', 'file' => '_m.jpg', 'original' => '.{ext}');
     $this->aGlParams = array('auto_activation' => 'bx_photos_activation', 'mode_top_index' => 'bx_photos_mode_index', 'category_auto_approve' => 'category_auto_activation_bx_photos', 'number_previous_rated' => 'bx_photos_number_previous_rated');
     if (!defined("FLICKR_PHOTO_RSS")) {
         define("FLICKR_PHOTO_RSS", "http://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=#api_key#&photo_id=#photo#");
     }
     if (!defined("FLICKR_PHOTO_URL")) {
         define("FLICKR_PHOTO_URL", "http://farm#farm#.static.flickr.com/#server#/#id#_#secret##mode#.#ext#");
     }
 }
 /**
  * Constructor
  */
 function BxPhotosConfig(&$aModule)
 {
     parent::BxDolFilesConfig($aModule);
     $this->aFilePostfix = array('thumb' => '_rt.jpg', 'browse' => '_t.jpg', 'icon' => '_ri.jpg', 'file' => '_m.jpg', 'original' => '.{ext}');
     $this->aGlParams = array('auto_activation' => 'bx_photos_activation', 'mode_top_index' => 'bx_photos_mode_index', 'category_auto_approve' => 'category_auto_activation_bx_photos', 'number_all' => 'bx_photos_number_all', 'number_index' => 'bx_photos_number_index', 'number_user' => 'bx_photos_number_user', 'number_related' => 'bx_photos_number_related', 'number_top' => 'bx_photos_number_top', 'number_browse' => 'bx_photos_number_browse', 'number_previous_rated' => 'bx_photos_number_previous_rated', 'number_albums_browse' => 'bx_photos_number_albums_browse', 'number_albums_home' => 'bx_photos_number_albums_home', 'icon_width' => 'bx_photos_icon_width', 'icon_height' => 'bx_photos_icon_height', 'thumb_width' => 'bx_photos_thumb_width', 'thumb_height' => 'bx_photos_thumb_height', 'file_width' => 'bx_photos_file_width', 'file_height' => 'bx_photos_file_height', 'browse_width' => 'bx_photos_browse_width', 'browse_height' => 'bx_photos_browse_height', 'allowed_exts' => 'bx_photos_allowed_exts', 'flickr_photo_api' => 'bx_photos_flickr_photo_api', 'profile_album_name' => 'bx_photos_profile_album_name', 'album_slideshow_on' => 'bx_photos_album_slideshow_on', 'album_slideshow_height' => 'bx_photos_album_slideshow_height', 'rss_feed_on' => 'bx_photos_rss_feed_on');
     if (!defined("FLICKR_PHOTO_RSS")) {
         define("FLICKR_PHOTO_RSS", "http://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=#api_key#&photo_id=#photo#");
     }
     if (!defined("FLICKR_PHOTO_URL")) {
         define("FLICKR_PHOTO_URL", "http://farm#farm#.static.flickr.com/#server#/#id#_#secret##mode#.#ext#");
     }
 }
 /**
  * Constructor
  */
 function BxPhotosConfig(&$aModule)
 {
     parent::BxDolFilesConfig($aModule);
     $this->aFilesConfig = array('icon' => array('postfix' => '_ri.jpg', 'size_def' => 32, 'square' => true), 'thumb' => array('postfix' => '_rt.jpg', 'size_def' => 64, 'square' => true), 'browse' => array('postfix' => '_t.jpg', 'size_def' => 240, 'square' => true), 'browse2x' => array('postfix' => '_t_2x.jpg', 'size_def' => 480, 'square' => true), 'file' => array('postfix' => '_m.jpg', 'size_def' => 600), 'original' => array('postfix' => '.{ext}'));
     $this->aGlParams = array('auto_activation' => 'bx_photos_activation', 'mode_top_index' => 'bx_photos_mode_index', 'category_auto_approve' => 'category_auto_activation_bx_photos', 'number_previous_rated' => 'bx_photos_number_previous_rated');
     $this->aDefaultAlbums[] = 'profile_cover_album_name';
     if (!defined("FLICKR_PHOTO_RSS")) {
         define("FLICKR_PHOTO_RSS", "http://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=#api_key#&photo_id=#photo#");
     }
     if (!defined("FLICKR_PHOTO_URL")) {
         define("FLICKR_PHOTO_URL", "http://farm#farm#.static.flickr.com/#server#/#id#_#secret##mode#.#ext#");
     }
     $this->initConfig();
 }
 /**
  * Constructor
  */
 function BxVideosConfig(&$aModule)
 {
     parent::BxDolFilesConfig($aModule);
     $this->aFilePostfix = array('.flv', '_small.jpg', '.jpg', '.mpg', '.mp4', '.m4v');
     $this->aGlParams = array('mode_top_index' => 'bx_videos_mode_index', 'category_auto_approve' => 'category_auto_activation_bx_videos', 'number_all' => 'bx_videos_number_all', 'number_index' => 'bx_videos_number_index', 'number_user' => 'bx_videos_number_user', 'number_related' => 'bx_videos_number_related', 'number_top' => 'bx_videos_number_top', 'number_browse' => 'bx_videos_number_browse', 'number_previous_rated' => 'bx_videos_number_previous_rated', 'number_albums_browse' => 'bx_videos_number_albums_browse', 'number_albums_home' => 'bx_videos_number_albums_home', 'file_width' => 'bx_videos_file_width', 'file_height' => 'bx_videos_file_height', 'browse_width' => 'bx_videos_browse_width', 'browse_height' => 'bx_videos_browse_height', 'allowed_exts' => 'bx_videos_allowed_exts', 'profile_album_name' => 'bx_videos_profile_album_name', 'album_slideshow_on' => 'bx_videos_album_slideshow_on', 'album_slideshow_height' => 'bx_videos_album_slideshow_height');
     if (!defined("YOUTUBE_VIDEO_RSS")) {
         define("YOUTUBE_VIDEO_RSS", 'http://gdata.youtube.com/feeds/api/videos?q="#video#"');
     }
     if (!defined("YOUTUBE_VIDEO_PLAYER")) {
         define("YOUTUBE_VIDEO_PLAYER", '<object width="100%" height="344" style="display:block;"><param name="movie" value="http://www.youtube.com/v/#video#&rel=0&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1&autoplay=#autoplay#&iv_load_policy=3&showinfo=0"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="#wmode#"></param><embed src="http://www.youtube.com/v/#video#&rel=0&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1&autoplay=#autoplay#&iv_load_policy=3&showinfo=0" type="application/x-shockwave-flash" allowfullscreen="true" width="100%" height="344" wmode="#wmode#"></embed></object>');
     }
     if (!defined("YOUTUBE_VIDEO_EMBED")) {
         define("YOUTUBE_VIDEO_EMBED", '<object width="425" height="344" style="display:block;"><param name="movie" value="http://www.youtube.com/v/#video#&rel=0&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1&autoplay=#autoplay#"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="#wmode#"></param><embed src="http://www.youtube.com/v/#video#&rel=0&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1&autoplay=#autoplay#" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344" wmode="#wmode#"></embed></object>');
     }
 }
 /**
  * Constructor
  */
 function __construct(&$aModule)
 {
     parent::__construct($aModule);
     // only image files can added/removed here, changing list of video files requires source code modification
     // image files support square resizing, just specify 'square' => true
     $this->aFilesConfig = array('poster' => array('postfix' => IMAGE_EXTENSION, 'image' => true), 'browse' => array('postfix' => THUMB_FILE_NAME . IMAGE_EXTENSION, 'image' => true, 'w' => 240, 'h' => 240, 'square' => true), 'browse2x' => array('postfix' => THUMB_FILE_NAME . '_2x' . IMAGE_EXTENSION, 'image' => true, 'w' => 480, 'h' => 480, 'square' => true), 'main' => array('postfix' => FLV_EXTENSION), 'mpg' => array('postfix' => '.mpg'), 'file' => array('postfix' => MOBILE_EXTENSION), 'm4v' => array('postfix' => M4V_EXTENSION));
     $this->aGlParams = array('mode_top_index' => 'bx_videos_mode_index', 'category_auto_approve' => 'category_auto_activation_bx_videos');
     $sProto = bx_proto();
     if (!defined("YOUTUBE_VIDEO_PLAYER")) {
         define("YOUTUBE_VIDEO_PLAYER", '<iframe width="100%" height="360" src="' . $sProto . '://www.youtube-nocookie.com/embed/#video#?rel=0&amp;showinfo=0#autoplay#" frameborder="0" allowfullscreen></iframe>');
     }
     if (!defined("YOUTUBE_VIDEO_EMBED")) {
         define("YOUTUBE_VIDEO_EMBED", '<iframe width="480" height="360" src="' . $sProto . '://www.youtube-nocookie.com/embed/#video#?rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>');
     }
     $this->initConfig();
 }
Exemple #10
0
 /**
  * Constructor
  */
 function BxSoundsConfig(&$aModule)
 {
     parent::BxDolFilesConfig($aModule);
     $this->aFilePostfix = array('.mp3', '.jpg');
     $this->aGlParams = array('mode_top_index' => 'bx_sounds_mode_index', 'category_auto_approve' => 'category_auto_activation_bx_sounds', 'number_all' => 'bx_sounds_number_all', 'number_index' => 'bx_sounds_number_index', 'number_user' => 'bx_sounds_number_user', 'number_related' => 'bx_sounds_number_related', 'number_top' => 'bx_sounds_number_top', 'number_browse' => 'bx_sounds_number_browse', 'number_previous_rated' => 'bx_sounds_number_previous_rated', 'number_albums_browse' => 'bx_sounds_number_albums_browse', 'number_albums_home' => 'bx_sounds_number_albums_home', 'file_width' => 'bx_sounds_file_width', 'file_height' => 'bx_sounds_file_height', 'browse_width' => 'bx_sounds_browse_width', 'browse_height' => 'bx_sounds_browse_height', 'allowed_exts' => 'bx_sounds_allowed_exts', 'profile_album_name' => 'bx_sounds_profile_album_name');
 }