vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   AnyMedia BBCode for 3.5.x (https://vborg.vbsupport.ru/showthread.php?t=106239)

phkk 08-20-2006 10:04 PM

Quote:

Originally Posted by nix
Those both seem to work for me in IE and FF. I usually just use the sites own players instead of the one that comes with AnyMedia.

For the google problems I see what people are saying now. They just stopped working recently. I played with the code and got them to work again.


how show me . i want my google video working back

MajorFm.com 08-20-2006 11:09 PM

Quote:

Originally Posted by phkk
how show me . i want my google video working back

Me aswell... please post a fix for the google one..! ;)

nix 08-20-2006 11:39 PM

I just took the proxy stuff out of class_anymedia.php and changed the link to http://video.google.com/googleplayer.swf?docid=.

It still only works when using the google player though. But I prefer it this way.

MajorFm.com 08-21-2006 12:18 AM

Quote:

Originally Posted by nix
Those both seem to work for me in IE and FF. I usually just use the sites own players instead of the one that comes with AnyMedia.

For the google problems I see what people are saying now. They just stopped working recently. I played with the code and got them to work again.

That's strange... this is what i see in IE

https://vborg.vbsupport.ru/

Any ideas...?

phkk 08-21-2006 02:26 AM

Quote:

Originally Posted by MajorFm.com
That's strange... this is what i see in IE

http://img92.imageshack.us/img92/3320/testns5.jpg

Any ideas...?


I saw it is working. You need to UPGRADE TO FLASH PLAYER Version 8.0

ZiG 08-21-2006 02:51 AM

Quote:

Originally Posted by phkk
I saw it is working. You need to UPGRADE TO FLASH PLAYER Version 8.0


what do you mean? flvplayer.php? can you link us to that?

nix 08-21-2006 03:24 AM

He is talking about your browser.

http://www.adobe.com/shockwave/downl...ShockwaveFlash

Murty 08-21-2006 07:28 AM

Hey guys, i was wandering if it is possible to make the bbcode only available in certain forums? so i can create a media forum and only in that forum, the bcode is available.

phimshopcom 08-21-2006 08:03 AM

Quote:

Originally Posted by Nzo
True ... Works again like a charm !!


may I ask what version of vbulletin & anymedia are you using? Also what is your setting???

If anyone out there that still got their google video to play...post up here what you did...that would be great.

thanks

MajorFm.com 08-21-2006 09:07 AM

Quote:

Originally Posted by nix

I went to that link and it says i already have it installed... could it be a setting on my browser?

I have just tried it on a diffrent machine and i still get the same... im confused now! I don't understand why you can see it and i can't

MajorFm.com 08-21-2006 09:13 AM

There is one more video site i want to use, is there anyone willing to help me add it for a small fee? its more or less exactly same as youtube... i just don't know how to code this...

FleaBag 08-21-2006 11:06 PM

Quote:

Originally Posted by Murty
Hey guys, i was wandering if it is possible to make the bbcode only available in certain forums? so i can create a media forum and only in that forum, the bcode is available.

I believe there's a hack for either the 3.0.x or 3.5.x series that would let you do this. I don't recall it's name or location I am afraid.

MissKalunji 08-21-2006 11:45 PM

u guys are all having problems with only the stuff like google video? or is it with ANY?

nix 08-21-2006 11:48 PM

not having any problems.

phkk 08-21-2006 11:49 PM

Quote:

Originally Posted by phimshopcom
may I ask what version of vbulletin & anymedia are you using? Also what is your setting???

If anyone out there that still got their google video to play...post up here what you did...that would be great.

thanks


some work , some not.

nix 08-22-2006 12:10 AM

I just changed my google section in class_anymedia.php to this.



PHP Code:

//    {{{    google()

    /**
     * Google Video.
     * @param    array    media info array
     */
    
function google(& $mediaArray)
    {
        if (
preg_match('/docid=([^(\&|$)]*)/i'$this->_mediaInfo['url'], $match) || preg_match('/docid\/([^(\&|$)]*)/i'$this->_mediaInfo['url'], $match) || preg_match('/video_id=([^(\&|$)]*)/i'$this->_mediaInfo['url'], $match)) {
            if(
intval($this->vbulletin->bf_misc_anymediaplayer[$mediaArray[1]]) & $this->vbulletin->options['anymediaplayer']) {
                
$this->_mediaInfo['url'] = $this->vbulletin->options['bburl'] . '/players/flvplayer.swf?file=' $match[1] . '&site=youtube&autoStart=' iif($this->_mediaInfo['autoplay'] == 'true''true''false');
                
$this->_mediaInfo['height'] += 20;
            } else {
                
$this->_mediaInfo['url'] = 'http://video.google.com/googleplayer.swf?docid=' $match[1];
            }
            
$this->player($mediaArray);
        } else {
            
$this->_mediaInfo['type'] = 'error';
        }
    }

    
//    }}} 


phimshopcom 08-22-2006 02:03 AM

Quote:

Originally Posted by phkk
some work , some not.

Hello phkk, thank you for letting me know.. Even just some work ..would be fine with me... can you post more info about your anymedia version??? like how u got it to work? thanks

MissKalunji 08-22-2006 04:43 AM

working fine!

jeremycs 08-22-2006 09:26 PM

Quote:

Originally Posted by defcon_420

if you cant see it then its not installed correctly.. read the installation instructions and start again :bunny:


Where exactly are the installation instructions?

I don't see anything that looks like install instructions.

There is an "install.htm" but it contains references to VB paths & there is no explanation on how to use this file.


Whn I unzip there are simply 3 directories:

do_not_upload
import
upload


in do_not_upload, the only thing that resembles instructions is the "install.htm" mentioned above.

Is there a readme file missing or something?

Shazz 08-22-2006 10:12 PM

Still discovering a few bugs in the 3.6
________
Ford Shelby GR-1

nix 08-22-2006 11:19 PM

Quote:

Originally Posted by jeremycs
Where exactly are the installation instructions?

I don't see anything that looks like install instructions.

There is an "install.htm" but it contains references to VB paths & there is no explanation on how to use this file.


Whn I unzip there are simply 3 directories:

do_not_upload
import
upload


in do_not_upload, the only thing that resembles instructions is the "install.htm" mentioned above.

Is there a readme file missing or something?

do the file edits in the install.htm

jeremycs 08-22-2006 11:38 PM

VERY SORRY...

.... the mozilla noscript extention was blocking the install.htm file from loading properly.

jeremycs 08-23-2006 01:35 AM

Anyone know the quickest way to disable autoplay / autostart (even if users enables it in the MEDIA tags) ?


Is it possible to hardcode a value of 0 / no / false somewhere for the autoplay value?

Maybe something around here in includes/class_anymedia.php?


PHP Code:

 var $_mediaInfo = array(
                
'width' => 0,
                
'height' => 0,
               
'autoplay' => '',
                
'extension' => '',
                
'loop' => 0,
                
'url' => '',
                
'link' => '',
                
'mime' => '',
                
'type' => '',
                
'id' => 0,
                
'layout' => 0,
                
'extra' => array()
        ); 


Or maybe it would just be easier to strip the media tag flags when they are submitted (if you're worried about getting thread-DOS'ed via autoplay)

phkk 08-23-2006 03:01 AM

Quote:

Originally Posted by nix
I just changed my google section in class_anymedia.php to this.



PHP Code:

//    {{{    google()

    /**
     * Google Video.
     * @param    array    media info array
     */
    
function google(& $mediaArray)
    {
        if (
preg_match('/docid=([^(\&|$)]*)/i'$this->_mediaInfo['url'], $match) || preg_match('/docid\/([^(\&|$)]*)/i'$this->_mediaInfo['url'], $match) || preg_match('/video_id=([^(\&|$)]*)/i'$this->_mediaInfo['url'], $match)) {
            if(
intval($this->vbulletin->bf_misc_anymediaplayer[$mediaArray[1]]) & $this->vbulletin->options['anymediaplayer']) {
                
$this->_mediaInfo['url'] = $this->vbulletin->options['bburl'] . '/players/flvplayer.swf?file=' $match[1] . '&site=youtube&autoStart=' iif($this->_mediaInfo['autoplay'] == 'true''true''false');
                
$this->_mediaInfo['height'] += 20;
            } else {
                
$this->_mediaInfo['url'] = 'http://video.google.com/googleplayer.swf?docid=' $match[1];
            }
            
$this->player($mediaArray);
        } else {
            
$this->_mediaInfo['type'] = 'error';
        }
    }

    
//    }}} 



will this code work for google using anymedia flash player ( not google flash player)

nix 08-23-2006 03:44 AM

nope.

MajorFm.com 08-23-2006 08:16 PM

Quote:

Originally Posted by MajorFm.com
Also does anyone know why this happens:

White Screen Instead Of Player - Even Though I Refreshed Again & Again
http://www.majorfm.com/forum/video-v...l-panties.html

but when you view the post on its own:
http://www.majorfm.com/forum/218984-post1.html

Seems to work fine on firefox though....

It works fine... something must be conflicting it on thread view... any suggestions?

I still cannot see em in ie... cannot work it out, on the flash dl site it says:

You have version 8,0,24,0 installed

I'm baffled... can't view it on 4 machines...

its fine in firefox...

any idea people?

thebuckeyeforum 08-26-2006 04:09 PM

I am good up until the final step. I cannot find the "Anymedia bbcode permissions."

I am looking in the usergroup permissions but do not see it.

Am I missing something?

Mysticales 08-26-2006 04:15 PM

Maybe redo your bitfield so it updates, Then try.

My concern is.. I am not secure about using this.. seems users could spam flash players all over a thread.. =/ Wonder what everyone does to secure this.

jeremycs 08-26-2006 04:41 PM

Quote:

Originally Posted by Mysticales
My concern is.. I am not secure about using this.. seems users could spam flash players all over a thread.. =/ Wonder what everyone does to secure this.



There are definitely some security issues to consider when using this module.

#1: Think strongly about allowing macromedia files to be one of the file types that are allowed to play. (ie .swf and the other 2 in that row). It's very easy for someone to construct a .swf that will redirect your member to a url of the .swf authors choosing. Perhaps the site they redirect them to looks just like YOUR sites login page? Making the user think they are logged out and they need to log in again. But instead, the flash author harvests their password & logs them in to your board as if nothing happened.

#2: As mysticales says above, and I have said, and someone else originally said in this thread... there is potential for per-thread denial of service attacks. The attacker would just need to make a few posts and autoplay 20-30 large files.

Suggested fixes:

For #1: There's no fix really, unless your server pulls the submitted .swf or flash file on submission, scans it for anything you consider malicious, and then hosts it locally. Scanning a hotlinked .swf & leaving it that way would do no good because the person could just change the .swf file to something malicious later.

Btw, I'm think the same goes for certain windows media files as well... .asf and .asx I believe.

For #2: Add options to limit things like:

- The number of media tags a user can enter per day
- The number of media tag allowed per thread

And most importantly:

Ignore user-submitted autoplay? (YES) / NO

G_Man 08-26-2006 11:16 PM

Quote:

Originally Posted by jeremycs
There are definitely some security issues to consider when using this module.

#1: Think strongly about allowing macromedia files to be one of the file types that are allowed to play. (ie .swf and the other 2 in that row). It's very easy for someone to construct a .swf that will redirect your member to a url of the .swf authors choosing. Perhaps the site they redirect them to looks just like YOUR sites login page? Making the user think they are logged out and they need to log in again. But instead, the flash author harvests their password & logs them in to your board as if nothing happened.

#2: As mysticales says above, and I have said, and someone else originally said in this thread... there is potential for per-thread denial of service attacks. The attacker would just need to make a few posts and autoplay 20-30 large files.

Suggested fixes:

For #1: There's no fix really, unless your server pulls the submitted .swf or flash file on submission, scans it for anything you consider malicious, and then hosts it locally. Scanning a hotlinked .swf & leaving it that way would do no good because the person could just change the .swf file to something malicious later.

Btw, I'm think the same goes for certain windows media files as well... .asf and .asx I believe.

For #2: Add options to limit things like:

- The number of media tags a user can enter per day
- The number of media tag allowed per thread

And most importantly:

Ignore user-submitted autoplay? (YES) / NO


Because of concerns like this only Admin/Mods are even allowed to use this on my forum. Still a wonderful addition to the forum though. :D

Mysticales 08-27-2006 01:30 AM

I grabbed a plugin in the 3.6.0 area, about bbcode permissions, author made a unannounced 3.5.4 plugin that lets you chose via each usergroup which bbcode they are allowed.

G_Man 08-27-2006 08:23 AM

Quote:

Originally Posted by Mysticales
I grabbed a plugin in the 3.6.0 area, about bbcode permissions, author made a unannounced 3.5.4 plugin that lets you chose via each usergroup which bbcode they are allowed.


Anymedia has its own selection in each UserGroup already, so that hack isn't need to limit usage by UserGroup. ;)

Ant!13 08-27-2006 05:17 PM

Sorry, but works this hack on 3.6.0?

thebuckeyeforum 08-27-2006 06:45 PM

Quote:

Originally Posted by Mysticales
Maybe redo your bitfield so it updates, Then try.

I'm sorry, I am not sure what you mean by "redo your bitfield." Any help would be appreciated.

As I mentioned earlier, I installed everything but I cannot locate the "Anymedia bbcode permissions" in order to complete the installation.

Thanks,

Jim

hotwheels 08-27-2006 07:05 PM

Hey jim, when you go to your usergroup, it should be the second box as you scroll down.....

MissKalunji 08-27-2006 08:53 PM

Quote:

Originally Posted by Ant!13
Sorry, but works this hack on 3.6.0?


yeah it does

thebuckeyeforum 08-28-2006 03:18 AM

Quote:

Originally Posted by hotwheels
Hey jim, when you go to your usergroup, it should be the second box as you scroll down.....

I doesn't seem to be showing up. I am going to "usergroup manager" and selecting "edit usergroup." I see a list of permissions but no "AnyMedia BBcode Permissions."

Again, I am trying to install but I cannot find the last step, modify "anymedia bbcode permissions."

Any help would be appreciated.

Thanks,

Jim

Basboss 08-29-2006 04:06 AM

has anyone tried attaching a real media file on a vB 3.6 with this hack installed?
Cos it does not seem to be working with real media files!

Pcparts 08-29-2006 07:30 AM

I have a little problem with "jpg" attachments.

they do show up, but not in a thumbnail format, but the whole image shows up. and if its a large image, then it messes up the whole page formating.

Someone have any idea ?

I have checked everything. It seems ok.

AdmiralSpock 08-30-2006 03:51 PM

Quote:

I DO NOT know whether I should update the hack.
I'm not a coder of vBulletin-Chinese Team now, as I left there weeks ago.
Sorry about this, and I'll tell you how the update's going if it's really on the way.
I don't understand this. Why should it matter if he's a member of the vB Chinese team or not?

So far AnyMedia has worked fine on 3.6 for me. But I'd really, really appreciate some kind of "stability" update to make certain that it works on 3.6. I really don't care about new features, it does everything it should do. This hack has really made my site work a lot better, and I really appreciate the work Crist has done. :)


All times are GMT. The time now is 07:12 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.03396 seconds
  • Memory Usage 1,883KB
  • 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
  • (3)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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