vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...) (https://vborg.vbsupport.ru/showthread.php?t=150863)

The Geek 07-03-2007 09:24 PM

Quote:

Originally Posted by Kanustep (Post 1282196)
A couple of Features that I would like to see in AME:
- Hide to groups (only show a warning to guests to register to view the media).
- Support for other formats, PNG, JPG, GIF, PDF, MOV, AVI, etc.
- Paid version with custom player ;)

Looked into usergroup viewing permissions but you cant hide the results because most of the time, newer posts are actually not parsed, they are shown a cache. :(

Not sure about the other 2... this doesnt host the file locally, it streams it from another location :)

Quote:

Originally Posted by DiesellMinded (Post 1282203)
To upgrade to the latest version Do i need to reup all the files or just the xml ? Allow Over write ?

No file uploads, just reimport the product xml and overwrite.

Quote:

Originally Posted by Jammydodger (Post 1282224)
Great mod, I cant see how to import the XML files, I have gone to admincp->AME CP but dont see an option where I can import a file?

Am I missing something?

There is a link in the AME CP that says 'import' :)

Quote:

Originally Posted by Jammydodger (Post 1282232)
Also I cant figure how to do the coding for new sites, so I would be very grateful if someone could do this 2.

http://www.dailymotion.com/
http://www.gametrailers.com/


Cheers


Jammydodger 07-03-2007 09:29 PM

Quote:

There is a link in the AME CP that says 'import'
lol I didnt see that it had its own panel on the left.

Cheers

The Geek 07-03-2007 09:37 PM

Im not 100% sure dailymotion can be done. I glanced at it and there doesnt seem to be a direct relation between the URL and the embed code. :(

DieselMinded 07-03-2007 09:44 PM

youporn ?

The Geek 07-03-2007 10:28 PM

me? :eek:

Didnt even know there was such a thing. I looked, but cant see any embed code.

Hornstar 07-04-2007 01:19 AM

Quote:

Originally Posted by The Geek (Post 1281079)
@horn - can you check the post and paste its url bbcode?

Which post?

I was doing all that through the admincp

Peter Armenti 07-04-2007 01:30 AM

WOW>. that was VERY generous of you.. I couldn't be happier.. this will really be great for my website.. now people will be able to upload videos to MY site and display them in the forums, wiki, AND classifieds which is all VB... thank you VERY much

Working like a CHARM by the way :up:

rainyleaves 07-04-2007 02:20 AM

Working great!! Thanks Geek!!

I got problem with this address.
http://www.ifilm.com/video/2799292/s...extreme-sports
Can not work.

Ren? Kunze 07-04-2007 03:36 AM

Of this Post is not correct:
https://vborg.vbsupport.ru/showpost....77&postcount=3

myvideo is clipfish and not myvideo
clipfish passed
sevenload is yahoo video and not sevenload

The Geek 07-04-2007 06:47 AM

Quote:

Originally Posted by hornstar1337 (Post 1282339)
Which post?

I was doing all that through the admincp

I was assuming it was post #582078 however I suspect I know the problem. It looks like there are ~ that are wigging out the regexp. Ill look to escape those in the next update :)

The Geek 07-04-2007 06:50 AM

Quote:

Originally Posted by rainyleaves (Post 1282362)
Working great!! Thanks Geek!!

I got problem with this address.
http://www.ifilm.com/video/2799292/s...extreme-sports
Can not work.

change the ifilm regexp to:

http://[a-z]*?[\.]?ifilm\.com/video/(\d+)[&\w;=\+_\-/]*

Zia 07-04-2007 10:18 AM

it seems to be complicated

mfyvie's one was ez..just need to import 1 xml & done..
where is the list(vdo site) this hack currently support?

Jammydodger 07-04-2007 11:29 AM

Can anyone help me out with this code, I am trying to get gametrailers.com embedded but am not sure if im doing it right.

Here's the code, not 100% its right.

PHP Code:

http://www\.gametrailers\.com/player/([\d]+) 

and here's the code from gametrailers

Quote:

<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="409"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=19236"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid=19236" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>
Any help would be fantastic

The Geek 07-04-2007 11:41 AM

Quote:

Originally Posted by Zia (Post 1282540)
it seems to be complicated

mfyvie's one was ez..just need to import 1 xml & done..
where is the list(vdo site) this hack currently support?

Thats about all there is to this one (in it's simplist form). The downside is that there are not 16 default links. The upside is that there arent 16 bbcodes that have to parse each post - therefore its much lighter and faster. The other upside is that you can add, remove or customize the entries to meet your needs, nor does it leave a bunch of bbcodes behind after uninstallation.

@Jammy, what is the URL for the above embed code?

DieselMinded 07-04-2007 11:45 AM

Quote:

Originally Posted by The Geek (Post 1282257)
me? :eek:

Didnt even know there was such a thing. I looked, but cant see any embed code.

the url to the page is

http://www.youporn.com/watch/*****

Like the others Can i just copy Your youtube Special Secret Squirrel Code for this to work?

Jammydodger 07-04-2007 12:10 PM

Quote:

@Jammy, what is the URL for the above embed code?
Here it is mate.

http://www.gametrailers.com/player/19236.html

Cheers

The Geek 07-04-2007 12:54 PM

Diesell - I need the embed code, not the URL to figure out how to display the video inline. Thye dont offer that info up :) otherwise, it is almost exactly like the youtube regexp (expect it only appears to take numbers)

@Jammy. Then the embed code is:


Quote:

<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="409"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=$p1"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid=$p1" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>
nJoy

Jammydodger 07-04-2007 04:00 PM

Thanks for your help Geek, but I cant get it it to work, here's the full XML I have imported.

PHP Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<AME>
    <item>
<id>15</id> 
  <title>GameTrailers</title> 
  <description>gametrailers vids.</description> 
  <displayorder>70</displayorder> 
- <findcode>
- <![CDATA[ http://www\.gametrailers\.com/player/([\d]+)
  ]]> 
  </findcode>
- <replacecode>
- <![CDATA[ <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="409"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=$p1"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid=$p1" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>
  ]]> 
  </replacecode>
  <status>1</status> 
  <container>1</container> 
  </item>
  </AME>

Any idea's?

hkvic 07-04-2007 04:56 PM

Quote:

Originally Posted by The Geek (Post 1282007)
THanks Tom, I have found the problem. Can you please update to 1.1.2 (you only need to update the product, no need to upload the files) and confirm its sorted at your end?

Thanks for this. I had ver 1.1.1 installed but it was deleting the post content when an infraction was given. I has to disable it and was just going to ask for help on here, when you came up with the cure.

Have updated to 1.1.2, re-enabled and it's working like a charm

Thanks again.

The Geek 07-04-2007 05:47 PM

@Jammy, you need to provide a URL as an example (make sure that it doesnt auto link URLs)

Jammydodger 07-04-2007 06:03 PM

Sorry, im a bit of a noob and dont understand this stuff, is there anyway you could post the XML for me?

thanks again.

JD

The Geek 07-04-2007 06:05 PM

post a link for me that you are using as an example, but dont use the quick editor and turn off the 'autmoatically parse urls in this [pst' option so I can read the whole url

Jammydodger 07-04-2007 06:15 PM

http://www.gametrailers.com/player/19236.html

That ok?

The Geek 07-04-2007 07:31 PM

then try:

PHP Code:

http://www\.gametrailers\.com/player/([\d]+)\.html? 


pspcrazy 07-04-2007 07:38 PM

Is there a way that this will work with inhouse video files like say something like this:

http://www.gamingcrazy.net/files/videos/forexample.mov ?

or wmv, avi, etc.

If it could make that work that would be awesome.....

Jammydodger 07-04-2007 07:59 PM

Thanks alot Geek, thats perfect.

Its people like you that make this community great.

Cheers

JD

FleaBag 07-04-2007 08:47 PM

All my old posts converted, and all working well. I'm about to try my hand at installing some extra video types, then maybe I'll try my hand at making one. :)

wcbryant 07-04-2007 09:22 PM

I've had a couple users who connect through the military tell me that Youtube has been blocked, and any thread that includes one of their videos inline won't load.

Would it be possible (and might someone confirm how -- in regards to the conditional code, not creating a usergroup) to create a secondary opt-in usergroup, and then insert conditionals before and after the Open and Close HTML settings in this mod so that anyone with this group will just see the link, and not the video?

Basically, I want everyone but those who opt out to see the inline video, and those who join that secondary group to just see the original link.

Finally, outstanding hack, Geek. Already a fan and owner of GARS and GAL, and it's great to see that sort of quality and attention to detail applied to this area as well.

The Geek 07-04-2007 10:22 PM

Quote:

Originally Posted by pspcrazy (Post 1282865)
Is there a way that this will work with inhouse video files like say something like this:

http://www.gamingcrazy.net/files/videos/forexample.mov ?

or wmv, avi, etc.

If it could make that work that would be awesome.....

Sorry, but no :(

The Geek 07-04-2007 10:24 PM

This wont really work because posts in vBulletin are usually cached. Therefore the bbcode parser doesnt always get called, not do the templates get parsed every time. In order to achieve this, you would need something to strip out the HTML generated by the embed code.

pspcrazy 07-04-2007 10:32 PM

I see is that because this needs some kind of embed code before hand? If so can't we just use the windows media player type embed code?

The Geek 07-04-2007 10:50 PM

Sure, I suppose. But how would the users upload the media (let alone know the URL to it?)

4x4 Mecca 07-05-2007 04:58 AM

Anyone have any luck getting the & sign to work? I am still trying on photobucket and get 1 of 2 errors.. Either it just shows the video link they pasted, but not as a link, just text, or it shows the embed source, but it only loads the code upto the & sign then displays what ever text was after the & sign below the player.

Here is a video link
and here is the embed code
Code:

<embed src="http://www.photobucket.com/player.swf?file=$p1" quality="high" bgcolor="#ffffff" width="531" height="416" name="ePlayer"
align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

$p1 should be the exact same link as the video, but with the ?action=view&current= removed from the link... sounds easy enough.

Subah 07-05-2007 08:18 AM

There is some thing can you fix it !
first i don`t now why i shoulde put the [ame] and [/ame] code manule , 2nd if i put the link and try thr "Preview Post" its work but the link automaiclly change to [ url] and [/url] thin i need to change the code to [ame] and [/ame] manully again ??

Subah 07-05-2007 12:38 PM

Now its work with me :D

i have you can add:
1- Windows Media Files
2- QuickTime Media Files
3- Real Media Files
4- Photobucket
5- Purevolume

by the way great jop and thanks :)

ammoskumar 07-05-2007 06:39 PM

please need Dailymotion, divX

The Geek 07-05-2007 07:44 PM

@Subha, you dont put ame code in. AME does that for you. Just put URLs in as normal.

@4x4, use (?:\&|\&amp;) for the & sign. vB normally transposes & into &amp; hence the reason you may be having problems

iogames 07-05-2007 10:40 PM

Hi... I love the hack but it does something strange:
1. When I post a Metacafe's URL, it doesn't show the player... just a link... &
2. Yahoo!'s Video always plays the same video with all possible URLs...

Anyone? :(

Subah 07-05-2007 11:05 PM

Can you make it active in the PM`s ?

4x4 Mecca 07-06-2007 01:10 AM

:)Ok, I've created one for photobucket videos! It works for me, I hope it works for all of you.
There is one for wmv files too.

PHOTOBUCKET removed because it has been updated here
https://vborg.vbsupport.ru/showpost....&postcount=254


All times are GMT. The time now is 09:40 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.02718 seconds
  • Memory Usage 1,841KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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