vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Playing Flash and Media Files Inline (https://vborg.vbsupport.ru/showthread.php?t=78235)

Ski-Whiz 03-08-2006 06:14 PM

Nevermind.. Not sure how the search missed it, but I see it for 3.5... :D

Floris 03-12-2006 10:05 AM

Quote:

Originally Posted by Ski-Whiz
Nevermind.. Not sure how the search missed it, but I see it for 3.5... :D

I don't link me up scotty

Lionel 05-17-2006 05:40 PM

for security concerns, in 3.07 in includes/functions_file.php i created a front end error page
nopermissionswf
you don't have permissions to upload flash files and after

PHP Code:

 if (!$attachtypes["$extension"] OR !$attachtypes["$extension"]['enabled'])
 {
  
// invalid extension
  
eval('$error = "' fetch_phrase('attachbadtype'PHRASETYPEID_ERROR) . '";');
  
$errors[] = array(
   
'filename' => $attachment_name,
   
'error' => $error
  
);
  return 
false

I placed (replace 4,1 with your userid allowed)

PHP Code:

if ($extension=='swf'){
if (!
in_array($bbuserinfo[userid], array(4,1))){
  
// invalid extension
  
eval('$error = "' fetch_phrase('nopermissionswf'PHRASETYPEID_ERROR) . '";');
  
$errors[] = array(
   
'filename' => $attachment_name,
   
'error' => $error
  
);
  return 
false;
}


That allows only certain users to upload flash files.

Thanks for a great hack. Example of usage

Andromeda2875 06-14-2006 07:31 PM

Any reason why we can not just do the same thing with html allowed using dynasrc?

konstance 07-12-2006 05:32 PM

I am only getting the thumbnail image of flash files. I am not getting any other file displayed.
Can I upload 3 video files in a single post?

darkie79 09-16-2006 12:03 PM

Has anyone confirmed this to work with 3.61?


All times are GMT. The time now is 09:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01102 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete