vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Automatic Embedded Video (youtube, plus many more) (https://vborg.vbsupport.ru/showthread.php?t=150472)

mfyvie 06-25-2007 08:26 PM

Quote:

Originally Posted by paldo (Post 1276387)
i installed this and it killed my hide tags .. i removed it via add remove products and my hide tags are still very dead here is what displys now

[hide]{param}[/hide]

{param} isnt supposed to be there and now every post that hide tags was used on is now dead


how do i remove this 100% ? cuz somthing is still lingering after i uninstalled the product

I don't know what hide tags are, but I can tell you that this mod does not interact or affect any tags named hide.

You can manually remove any bbcodes installed by this mod in the BBCode manager, apart from that, everything else is automatically removed when you uninstall. This mod simply installs some new BB Codes (not called hide) and fires from a single hook via a plugin (which disappears when you remove it). I suspect this issue may have been caused by something else.

paldo 06-25-2007 08:31 PM

worked b4 i installed this then it didnt after install .. so i dont know what else it would have been

paldo 06-25-2007 08:35 PM

uninstalled the extra bbcodes and now my hide tags work again .. this did effect sids hide hack for me

mfyvie 06-25-2007 08:40 PM

Quote:

Originally Posted by paldo (Post 1276401)
uninstalled the extra bbcodes and now my hide tags work again .. this did effect sids hide hack for me

OK, but I don't understand how the presence of one BB Code can affect another unrelated BB Code - they don't reference each other. But if you could tell me *which* particular BB Code it was that was causing a conflict with this other hack - that would make it a lot easier to figure out and potentially work around. But without further info I can't help.

paldo 06-25-2007 08:53 PM

i didnt look at which one all i know is my hide hack including ty hack was working .. til i installed this .. then uninstaling all the extra bbcodes this installed it worked again .. im not the coder here and wont claim to be but the 2 hacks didnt like eachother .. its all good now i wish this would have worked for me

here is the hack that quit when i installed yours

https://vborg.vbsupport.ru/showthrea...highlight=sids

mfyvie 06-25-2007 08:56 PM

Ok, but you don't need to be a coder to tell me which one conflicted. It would be helpful if you could reinstall it, uninstall it, then go through and remove the bbcodes one by one until you find the one that conflicts. Then I might be able to help you. You don't need any programming experience to perform these steps :)

katie hunter 06-25-2007 09:59 PM

Quote:

Originally Posted by mfyvie (Post 1275974)
I figured that's what it might meant, but I was also referring to her previous posts which were pretty much incomprehensible (to me at least). If she fixed it then how? Was it because of something she had messed up herself, or some kind of unusual condition which caused this mod to fail - if so, what was it so that I can fix something in the mod for the future? Etc... Nobody else seemed to suffer from the same issues as she did, so I'm guessing that her board has something unique, or she had altered the mod in some way (I suspect the later).

Sorry about the misunderstanding x3 Here was what the issue was. Don't know if I can explain it well or not but when I used the veoh tag, I put this whole url in for example:

www.veoh.com/videos/v448414RTx2kCZp

I wasn't suppose to put it like this that is why it gave me data is not valid.

All I had to do is put the last part of the url v448414RTx2kCZp
And it worked !!


So it will be [ VEOH ]v448414RTx2kCZp[ /VEOH ]

Hope this helps more ;)
Nice mod btw <3 Thanks for the effort and sorry about the misunderstanding xp.

FleaBag 06-25-2007 10:03 PM

Quote:

Added feature to both embed the video AND display the original URL above the video
Amazing, thanks!

Oh, and first download. :D

When you get around to doing the post update script, please also allow it to update existing embedded videos with the URL above. I don't know if it's working as designed, but I also get page titles retrieved for me. If this isn't design, then I can report it is working beautifully with vBSEO. :D

mfyvie 06-25-2007 10:07 PM

PRODUCT FILE UPDATED

Ok, I wanted to include more video services in this release, but decided it was better to get this out so people can take advantage of the new features in 1.1 if they want to. The most important reason for people to upgrade to 1.1 is that the URL matching is now less strict, and will therefore do a better job at matching the same video services covered in version 1.0 (youtube, etc).

More services will have to be added to a later release (maybe in a few days).

If requesting support, please confirm that you are running version 1.1. People running 1.0 will not be supported and raising issues which are fixed by 1.1 because you didn't bother to upgrade first will result in sarcastic and irritable comments from me:D

PRODUCT FILE UPDATED

Silvio 06-25-2007 11:08 PM

No way! This Hack is simply a Must!!

ty ty a lot!

Silvio 06-25-2007 11:13 PM

here is a little typo?

Included forums - enter a list of forum IDs, separated by commas, which will be excluded from automatic embedding

jasculs 06-26-2007 01:08 AM

Quote:

Quote:

Quote:
Originally Posted by jasculs View Post
The way it is with the custom bbcode permission mod that I have installed is that the user can not use the bbcode, but they are able to see the bbcode of those who can use it. For example if they try to use the bbcode and they don't have permission then it shows up like this.

[youtube]150472[youtube] and it doesn't show the video, but if they do have permission to post the bbcode then everyone can see the embedded video.

Hope that makes sense.
Ok, I understand the issue now. I've added two options which should then resolve this issue for people in your situation. To be honest, it wasn't as straight forward as I thought, and has so far taken me the entire day to test and get right (some of these regular expressions are nasty). But finally it is working. To give you a taste of what is coming, see the attached screenshot of the options.
Is this already implemented in 1.1 or is this going to be in future releases?

jasculs 06-26-2007 01:47 AM

Nevermind...I read the 1.1 features

dizzy100 06-26-2007 07:08 AM

This product is fantastic and i'm very excited. You've done an outstanding Job.

I upgraded to 1.1 and the only issue i have still that is outstanding is with a conflict between this mod and Viper's YouTube & Google Video.

https://vborg.vbsupport.ru/misc.php?..._youtubegvideo

If vipers bbcode plugin is enabled, your plugin refuses to parse youtube video. Disabled and your mod works as designed.

If i disable Viper's YouTube & Google Video plugin i can still add the tags with the editor icon for his mod, but nothing gets parsed. He has hooked in to both bbcode_parse_start and bbcode_parse_complete with his plugin and there is a conflict somewhere with names i guess ? But i can't seem to work out what.

As i said before we have many youtube videos already posted using vipers mod so this is a problem not having the option to have them co-exist.

mfyvie 06-26-2007 07:34 AM

Quote:

Originally Posted by katie hunter (Post 1276458)
Sorry about the misunderstanding x3 Here was what the issue was. Don't know if I can explain it well or not but when I used the veoh tag, I put this whole url in for example:

www.veoh.com/videos/v448414RTx2kCZp VEOH ]v448414RTx2kCZp[ /VEOH ]

Katie, this mod was never intended to be used that way. The entire point of this mod is that it automatically does these tags for you! You aren't supposed to be using the tags manually (though you could, if you did it correctly).

I strongly suggest that you go back and read the description of what it does, so that you can better understand what this is.

Quote:

Originally Posted by Silvio (Post 1276505)
here is a little typo?

Included forums - enter a list of forum IDs, separated by commas, which will be excluded from automatic embedding

Thanks for that - I've corrected it, so the change will be made in the next version. I guess people will figure it out in the meantime.:o

Quote:

Originally Posted by dizzy100 (Post 1276731)
I upgraded to 1.1 and the only issue i have still that is outstanding is with a conflict between this mod and Viper's YouTube & Google Video.

https://vborg.vbsupport.ru/misc.php?..._youtubegvideo

If vipers bbcode plugin is enabled, your plugin refuses to parse youtube video. Disabled and your mod works as designed.

Thanks for taking the extra time to figure out which situation causes the conflict. I'll add this to the list of known issues and take a look. So far there is just one other mod that is known to conflict and that's the hide hack. However, until someone tells me which BB Code is conflicting, I'm not going to look at it.

mfyvie 06-26-2007 07:57 AM

Quote:

Originally Posted by FleaBag (Post 1276464)
When you get around to doing the post update script, please also allow it to update existing embedded videos with the URL above. I don't know if it's working as designed, but I also get page titles retrieved for me. If this isn't design, then I can report it is working beautifully with vBSEO. :D

Sorry, didn't answer this one before. Yes, this is correct. The original URL it put back into the message, after this my mod doesn't touch it again (it also sniffs the message to see if it has duplicated the bbcode tags and kills the duplicates if they are present). After this vbseo gets it and alters the URL if you have configured it to do so.

Regarding the update script to update all past posts. I've been holding back on this for a couple of reasons, but the main reason is to do it properly. My idea is that the update script will tie into the mod and convert everything according to the settings you have set (whether you want the original URL copied, etc. For this reason I want to have the mod in a final state (as in feature complete) and with more services added to it before I build such a script.

The reason I haven't added any more services to the mod at this point is that I am looking at changing the internal architecture of the way this mod works, so don't want to expand the service offering until I am sure how this is going to work in future.

Thanks to everyone for the interest they have shown in this mod - the response has been amazing and over 120 installs in just a couple of days. I have more ideas in the pipeline for this mod, so I think this mod is going to turn out to be quite popular :)

nfn 06-26-2007 08:08 AM

Hi,

I don't know if anyone report this, but is not possible to check version under plugins page.

mfyvie 06-26-2007 08:13 AM

Quote:

Originally Posted by nfn (Post 1276774)
I don't know if anyone report this, but is not possible to check version under plugins page.

Just saw that last night myself. This will be corrected in the next version. But you clicked install, so you'll be notified by email by vbulletin.org when the mod is updated

nfn 06-26-2007 09:22 AM

Ok,

Nominate for MOTM

InTeNsE-HuMoR 06-26-2007 09:45 AM

Works on 3.6.5. Great mod and much easier to use than BB Codes!

One problem: It seems that if you edit a post and change the url of the video, it doesn't embed but instead just displays the url to the video.

Feel free to use my BB Codes with your mod to add more compatible video services. Links are in my signature. I'm going to nominate this for mod of the month as it is very useful for my forum.

dizzy100 06-26-2007 10:28 AM

I just wanted to say that your doing an excellent job mfyvie and its extremely appreciated that you are not only releasing such an outstanding hack but also willing to listen, upgrade and give support. Nominated for MOTM

TrIn@dOr 06-26-2007 11:03 AM

Installed, thanks.

Perhaps u can add the feature to put (admin level) the background color of the objets.

mfyvie 06-26-2007 11:15 AM

Quote:

Originally Posted by InTeNsE-HuMoR (Post 1276812)
One problem: It seems that if you edit a post and change the url of the video, it doesn't embed but instead just displays the url to the video.

Feel free to use my BB Codes with your mod to add more compatible video services. Links are in my signature. I'm going to nominate this for mod of the month as it is very useful for my forum.

That's correct - it won't embed URLs which are done in the edit mode - only new posts. You can manually use the bbcodes in this case though (see description of mod at the top of the page, this is covered). I checked the link in your signature - I just see the bbcode for livevideo (which I was about to add anyway). Have you done any other ones for any other services? The tricky part isn't the bbcode, it's extracting the right details from the URL!

Quote:

Originally Posted by TrIn@dOr (Post 1276840)
Installed, thanks.

Perhaps u can add the feature to put (admin level) the background color of the objets.

I don't really want to clutter up the admin interface with options like this - it would also make life a bit more difficult, since these colours are all set differently in each BB Code depending on the embed code. Your best option be to edit the embed code in the BB Codes you wish to change. This way you can alter the background colours as you like.

mfyvie 06-26-2007 11:19 AM

Survey - I'm thinking of changing the direction of this mod slightly to improve the performance for people running large forums.

Up until now I have always tried to develop my mods as single .xml files, because these are ultra easy to install, and no file uploads are required.

However, in order to implement what I want to do there will need to be some file uploads also The Geek has written some code for me which I'm looking at including.

So this is just a quick survey - are you the type of person who only used this mod because there were no files to upload, or would you have tried it anyway, even if you had to upload some files?

Please note that I am not talking about file edits, or template edits or anything. Simply uploading files in addition to installing the .xml file.

Mark

dizzy100 06-26-2007 11:39 AM

I think for most of us we'll use the mod because of the added functionality. If that means uploading a few files, so be it, and i for one will be happy doing so.

You've made it super easy for us so far and a few file uploads won't change that :)

InTeNsE-HuMoR 06-26-2007 11:41 AM

Quote:

Originally Posted by mfyvie (Post 1276848)
I checked the link in your signature - I just see the bbcode for livevideo (which I was about to add anyway). Have you done any other ones for any other services? The tricky part isn't the bbcode, it's extracting the right details from the URL!

I'm guessing you missed these two then?

https://vborg.vbsupport.ru/showthread.php?t=149578
https://vborg.vbsupport.ru/showthread.php?t=149696

Feel free to add them to this mod. Any credit would be appreciated.

mfyvie 06-26-2007 11:46 AM

Sorry, I thought those were BBCodes for non-video stuff, but on closer inspection you are absolutely right and I wasn't aware of those two sites and I'll include them. I can give you some credit on thread, but I don't want to clutter up the main page mentioning credit for everyone who points me to some bbcode, especially if the bbcode is quite simple.

Now if you can do me some bbcode for some of the sites I've listed under "Impossible" on the front page, I'll be really happy! (mind you, I've double checked some of them and I believe they may be possible)

InTeNsE-HuMoR 06-26-2007 11:48 AM

Quote:

Originally Posted by mfyvie (Post 1276873)
Sorry, I thought those were BBCodes for non-video stuff, but on closer inspection you are absolutely right and I wasn't aware of those two sites and I'll include them. I can give you some credit on thread, but I don't want to clutter up the main page mentioning credit for everyone who points me to some bbcode, especially if the bbcode is quite simple.

Now if you can do me some bbcode for some of the sites I've listed under "Impossible" on the front page, I'll be really happy! (mind you, I've double checked some of them and I believe they may be possible)

Ok, glad I can contribute to this great mod. I'll take a look at the other and see what I can do.

mfyvie 06-26-2007 12:09 PM

Quote:

Originally Posted by InTeNsE-HuMoR (Post 1276874)
Ok, glad I can contribute to this great mod. I'll take a look at the other and see what I can do.

I've attached my list of sites I've recorded later for following up. It includes URLs and embed code, as long as comments on whether it looks easy or not. Many of these are 5 minute jobs, but I just haven't had all of these 5 minutes yet, and also I don't want to include any new bb code until the next release, so have shifted these tasks to a lower priority.

You may find the attached text file saves you a lot of work if you want to churn out some bb code!

InTeNsE-HuMoR 06-26-2007 12:33 PM

Finally got Photobucket to work!

Tag:

[pb]

Replacement:

Code:

<embed width="430" height="389" type="application/x-shockwave-flash" wmode="transparent" src="http://vid172.photobucket.com/remix/player.swf?videoURL={param}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
Example:

[pb]http://s172.photobucket.com/albums/w11/77086dm/89fc6002.pbr[/pb]

However I have no idea of how you are going to get it to work with this mod. It was a tough one to get working. I'll work on the others.

Here is the video link: click here

Here is what I used:

http://s172.photobucket.com/albums/w...m/89fc6002.pbr

Basicly, the "share url" that is given by Photobucket but without this bit:

?action=view&current=

InTeNsE-HuMoR 06-26-2007 12:48 PM

Post edited because of new arrangement with the mod author. This code has been PM'd to the mod author to be included.

mfyvie 06-26-2007 12:58 PM

Good work, but you may not be out of the woods just yet... Did you notice the s172 and vid172? You should check a lot of different photobucket videos and see if this changes - it does! I have one that uses s178! This means two things need to be extracted...

It might be better to extract just enough info to use in the bbcode rather than the entire URL (this is what I usually do). This particular bbcode will need to use the option option in order to pass the second bit of information.

Note how I've changed things below:

Code:

<embed width="430" height="389" type="application/x-shockwave-flash" wmode="transparent" src="http://vid{option}.photobucket.com/remix/player.swf?videoURL=http://s{option}.photobucket.com/{param}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
[photobucketvid=172]albums/w11/77086dm/89fc6002.pbr[/photobucketvid]

Notice that I am using the convention with vid on the end of bbcode tags. This is to make sure there is no conflict with other tags with the same name!

I would then make a regular expression to pull out the data and feed it into the bbcode tag. This is why it is also important for each service to figure out if other domain names or host names are also possible from the same domain - for example youtube can be:

youtube.com, www.youtube.com, or in future it may even be youtube.de, youtube.co.uk, etc. This also happened with google. Youtube also uses two completely different formats, so I have to trap both of those as well.

That's why for some of these services you have a try a few different ones and see if the details change slightly!

For these codes it's probably best if you start to put them all into a text file, rather than posting them one by one. They won't be of any use to anyone in this mod until I write the regular expressions to match them. If you see post #1 I wrote some info on this - but to be honest they are a little tricky, so probably best if I do the regular expressions for the bbcode you make :-)

That way it would be better not to clutter up the thread - or maybe send me a PM with the details. When they are in a forum that others can use, the best thing is that I roll them up into a new version.

InTeNsE-HuMoR 06-26-2007 01:12 PM

Ok, just to be clear. I make the BB Code and you do the expression bit? Does the bb code have to work completely or just enough to embed? For example: the clipshack one wont work with the mod unless the Clip.aspx is changed to player.swf by your mod.

So if I am able to get it to embed, you will be able to convert it alright?

mfyvie 06-26-2007 01:14 PM

I just also wanted to mention that The Geek has been kind enough to help me out with some large chunks of code which I'll be incorporating into the new version. I just wanted to publicly acknowledge that, as a lot of the code in the new version will probably be his! Maybe you can go and visit his site and buy some of his cool mods: http://www.thevbgeek.com/

mfyvie 06-26-2007 01:51 PM

Quote:

Originally Posted by InTeNsE-HuMoR (Post 1276924)
Ok, just to be clear. I make the BB Code and you do the expression bit? Does the bb code have to work completely or just enough to embed? For example: the clipshack one wont work with the mod unless the Clip.aspx is changed to player.swf by your mod.

So if I am able to get it to embed, you will be able to convert it alright?

yep - I'll do the regular expression. In some cases I may rework your bbcode to make it more efficient, or to work better with the regular expression. The main part where you can help me out is to figure out the smallest possible embed code for use in the bbcode. To check if it is working you should be able to play the video from the example listed in the bbcode manager. Then change the example to another one and that should work too. If you can get that far, you've probably cracked it - just check that there aren't different formats of the URL out there - that often happens with some of these guys.

Please don't release those BBCODES publicly - why? Because in the next version I won't be using the same bbcodes, and I don't want to have more bbcode floating about before v1.2 is released! I'll convert those bbcodes to the new arrangement.

Saviour 06-26-2007 02:07 PM

Excellent Hack! Installed! MOTM??? It's got my vote!

InTeNsE-HuMoR 06-26-2007 02:15 PM

Quote:

Originally Posted by mfyvie (Post 1276957)
yep - I'll do the regular expression. In some cases I may rework your bbcode to make it more efficient, or to work better with the regular expression. The main part where you can help me out is to figure out the smallest possible embed code for use in the bbcode. To check if it is working you should be able to play the video from the example listed in the bbcode manager. Then change the example to another one and that should work too. If you can get that far, you've probably cracked it - just check that there aren't different formats of the URL out there - that often happens with some of these guys.

Please don't release those BBCODES publicly - why? Because in the next version I won't be using the same bbcodes, and I don't want to have more bbcode floating about before v1.2 is released! I'll convert those bbcodes to the new arrangement.

Ok. Sent you a PM with some more BB Codes. In total that is six BB Codes, including the 2 in my signature and the photobucket code.

IGN Code - in my signature.
Game Trailers Code - in my signature.
Photobucket code - posted a few posts back.
Clipshack - sent by PM.
Sharkle - sent by PM.
Current - sent by PM.

mlucek 06-26-2007 03:15 PM

Sweet !!! Installed on 2 sites now :D

Would be even sweeter to pick up old posts and convert those links to new BBCODE's automagically !!

The Geek 06-26-2007 04:31 PM

the version I submitted will.

Lizard King 06-26-2007 05:39 PM

Which version you submitted Sam ?


All times are GMT. The time now is 07:43 PM.

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.01489 seconds
  • Memory Usage 1,887KB
  • 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_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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