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)
-   -   BB Code Enhancements - Embed XHTML valid YouTube and Google Video into your posts (https://vborg.vbsupport.ru/showthread.php?t=130868)

Viper007Bond 11-12-2006 11:26 PM

Quote:

Originally Posted by UK Jimbo (Post 1115516)
I wonder if there's a way of preventing that from happening?

Yeah, I'll just check for the right $_POST value to see if it's a preview or not. :)

And thanks for the regex. I may be quite good at PHP/MySQL, but I'm still a noob at regex. :(

exilera 11-13-2006 02:20 AM

I added the custom BB code for just YouTube per the instructions, but it doesn't seem to be working. Here's a link to a post on my forum using the code.

http://www.jabber-box.com/jabber/showthread.php?t=27

Any idea why it's not displaying the video?

Viper007Bond 11-13-2006 05:08 AM

Quote:

Originally Posted by exilera (Post 1115972)
Any idea why it's not displaying the video?

You have HTML in your URL...

Code:

http://www.youtube.com/v/<font color="#555143">wfWfX3GdDUo</font>

UK Jimbo 11-13-2006 07:59 AM

Quote:

Originally Posted by Viper007Bond (Post 1115827)
And thanks for the regex. I may be quite good at PHP/MySQL, but I'm still a noob at regex. :(

No worries. My perl background helps me out with that. Really powerful and useful to learn.

Viper007Bond 11-13-2006 08:12 AM

Quote:

Originally Posted by UK Jimbo (Post 1115516)
I spotted that if you preview a post the text in the editor window gets edited too which isn't ideal I guess. I wonder if there's a way of preventing that from happening?

Only happens with the WYSIWYG editor since that apparently uses the BBCode parser to make it's output. :confused:

delmarva 11-13-2006 05:59 PM

One problem I see with this mod: If you click anywhere but the https://vborg.vbsupport.ru/
image, it takes you to the YouTube.com home page. Any way around this?

Otherwise, the members get stuck spending hours on Youtube instead of continuing to browse my site. :)

Mecho 11-13-2006 07:48 PM

Quote:

Originally Posted by delmarva (Post 1116468)
One problem I see with this mod: If you click anywhere but the https://vborg.vbsupport.ru/
image, it takes you to the YouTube.com home page. Any way around this?

Otherwise, the members get stuck spending hours on Youtube instead of continuing to browse my site. :)

I need it too .

Viper007Bond 11-14-2006 03:47 AM

Nothing I can do about any of that kinda stuff. It's their Flash file being loaded off their server.

delmarva 11-14-2006 04:24 AM

THat's cool, man. Great job on the mod. Excellent stuff.

Adult SEO 11-14-2006 07:44 AM

Hi!

The plugin itself contains a bug, the code is sometimes already parsed and available in $parsedtext instead of $text.

This code will fix it.

One other bug, Google video is available on multiple domains also on video.google.nl or co.uk etc. Also fixed with this code.

I didn't test YouTube however.

PHP Code:

$viper_patterns = array(
    
'#\[youtube\]http://(www.youtube|youtube).[^/]+/watch\?v=(.*?)&(.*?)\[/youtube\]#si',
    
'#\[youtube\]http://(www.youtube|youtube).[^/]+/watch\?v=(.*?)\[/youtube\]#si',
    
'#docid=http://video.google.[^/
]+/videoplay\?docid=(\d+)[^"]+?"#si'
,
);

$viper_patterns2 = array(
    
'#\[youtube\]http://(www.youtube|youtube).[^/]+/watch\?v=(.*?)&(.*?)\[/youtube\]#si',
    
'#\[youtube\]http://(www.youtube|youtube).[^/]+/watch\?v=(.*?)\[/youtube\]#si',
    
'#\[googlevideo\]http://video.google.[^/
]+/videoplay\?docid=(\d+)[^\]]+?\[/googlevideo\]#si'
,
);

$viper_replacements = array(
    
'[YOUTUBE]$2[/YOUTUBE]',
    
'[YOUTUBE]$2[/YOUTUBE]',
    
'docid=$1"',
);

$viper_replacements2 = array(
    
'[YOUTUBE]$2[/YOUTUBE]',
    
'[YOUTUBE]$2[/YOUTUBE]',
    
'[GOOGLEVIDEO]$1[/GOOGLEVIDEO]',
);

if (!empty(
$parsedtext)) {
$parsedtext preg_replace($viper_patterns$viper_replacements$parsedtext);
} else {
$text preg_replace($viper_patterns2$viper_replacements2$text);



Adult SEO 11-14-2006 07:55 AM

Hi!

Is it ok that I write an SEO extension for this mod and publish it?

Best Regards,
Jan Jaap

Viper007Bond 11-14-2006 09:15 AM

Quote:

Originally Posted by Adult SEO (Post 1116913)
The plugin itself contains a bug, the code is sometimes already parsed and available in $parsedtext instead of $text.

This code will fix it.

Forgive me, but what's $parsedtext set to? I'm new to vB.

Quote:

Originally Posted by Adult SEO (Post 1116913)
One other bug, Google video is available on multiple domains also on video.google.nl or co.uk etc. Also fixed with this code.

Already mentioned and addressed. ;) I just haven't released an update yet and I'm completely overhauling the plugin right now to be much better. :)

Quote:

Originally Posted by Adult SEO (Post 1116918)
Is it ok that I write an SEO extension for this mod and publish it?

I'm totally open to any reasonable suggestions for this plugin, so if you think there's anything wrong with it, I'm all ears. :)

delmarva 11-14-2006 02:01 PM

Thanks for your efforts! Can I see a working version of this fix?

Tolas 11-14-2006 02:40 PM

Installed

Thanks for this. You Rock!

Adult SEO 11-14-2006 06:32 PM

Quote:

Originally Posted by delmarva (Post 1117112)
Thanks for your efforts! Can I see a working version of this fix?

Hi!

I've developped a new mod inspired by this mod. It will enable you to manage all from the admin!

https://vborg.vbsupport.ru/showthread.php?p=1117273

Have Fun!
Jan Jaap

emmanuel132 11-14-2006 06:37 PM

good job using it on my forum :-D

Adult SEO 11-14-2006 08:56 PM

Hi!

Would you be interested to work with me together on the ultimate Video mod for vB (for free)?

I made a start: https://vborg.vbsupport.ru/showthread.php?p=1117273

Best Regards,
Jan Jaap

redlabour 11-15-2006 10:41 AM

Quote:

Originally Posted by delmarva (Post 1116468)
One problem I see with this mod: If you click anywhere but the http://www.atlanticanglers.com/forum...be/youtube.jpg
image, it takes you to the YouTube.com home page. Any way around this?

Otherwise, the members get stuck spending hours on Youtube instead of continuing to browse my site. :)

No - this is default by youtube.com.

Quote:

Originally Posted by Adult SEO (Post 1117288)
Hi!

I've developped a new mod inspired by this mod. It will enable you to manage all from the admin!

https://vborg.vbsupport.ru/showthread.php?p=1117273

Have Fun!
Jan Jaap

Warning - his Mod is not Stable yet. SQL Errors and broken Links.

delmarva 11-15-2006 02:37 PM

Quote:

Originally Posted by redlabour (Post 1117845)
No - this is default by youtube.com.

I don't mean it is a problem... It would just be better if members click on the play button. It took me a while to figure out that if you click anywhere else on the inserted video, it opens up a whole new youtube.com screen. Then, your members get stuck on one of the biggest sites on the Internet instead of yours... Price you pay for using their video, I fear.

delmarva 11-15-2006 02:38 PM

I nominated it for mod of the month considering the recent google purchase. Great work, Viper.

Adult SEO 11-15-2006 05:22 PM

Quote:

Originally Posted by redlabour (Post 1117845)
No - this is default by youtube.com.



Warning - his Mod is not Stable yet. SQL Errors and broken Links.

Yes, it's being worked on verry hard.

The demo of the video index is available on http://www.papegaaienforum.com/videos.html

Viper007Bond 11-16-2006 12:31 AM

Complete recode coming soon. It'll have some light error checking (so people can't do like [youtube]http://www.yahoo.com/[/youtube] and make a bunch of broken HTML) as well as the ability to set custom titles (I've had that feature on my forums since I first made this, but I never bothered to release the code). :)

Quote:

Originally Posted by delmarva (Post 1117968)
I nominated it for mod of the month considering the recent google purchase. Great work, Viper.

Thanks! :cool:

redlabour 11-16-2006 07:49 AM

Quote:

Originally Posted by Viper007Bond (Post 1118300)
Complete recode coming soon. It'll have some light error checking (so people can't do like [youtube]http://www.yahoo.com/[/youtube] and make a bunch of broken HTML) as well as the ability to set custom titles (I've had that feature on my forums since I first made this, but I never bothered to release the code). :)



Thanks! :cool:

Can you fix the displaying of YouTube Videos on vBAdvanced CMPS then ?

Viper007Bond 11-16-2006 07:57 AM

I haven't a clue what that is and really all this thing is is some custom BBCode with a helper plugin that makes it so you can have full URLs. Nothing more. ;)

redlabour 11-16-2006 08:09 AM

Quote:

Originally Posted by Viper007Bond (Post 1118465)
I haven't a clue what that is and really all this thing is is some custom BBCode with a helper plugin that makes it so you can have full URLs. Nothing more. ;)

You forget a [GLOBAL] Variant or something like this. On a vBadvanced (you do not know what this is ???? :surprised: ) there is only the Box for the Video and the Content stays "grey".

http://www.vbadvanced.com/

At Showthread everything is still fine.

Viper007Bond 11-16-2006 11:16 AM

Quote:

Originally Posted by redlabour (Post 1118468)
you do not know what this is ???? :surprised:

No, I've only had vB for a couple weeks and I use WordPress for my CMS stuff (with the amount of traffic I get, I can't afford to run stuff that can't run in a static mode). ;)

redlabour 11-16-2006 12:01 PM

Quote:

Originally Posted by Viper007Bond (Post 1118527)
No, I've only had vB for a couple weeks and I use WordPress for my CMS stuff (with the amount of traffic I get, I can't afford to run stuff that can't run in a static mode). ;)

vBa doent uses much more Traffic. It depends which Modules you activate and which not.

Anyway - can you fix it ? The Problem happens on every other Page then Showthread (not only vBa) where your BB Code is used. Look around for the Way you can use [GLOBAL] Commands to show modifications on every vBulletin Page/Template and you would have fixed it for vBa and every other Portal. ;)

delmarva 11-16-2006 12:39 PM

Quote:

Originally Posted by Adult SEO (Post 1118060)
Yes, it's being worked on verry hard.

The demo of the video index is available on http://www.papegaaienforum.com/videos.html

Man, you are really on to something there! Great work. ;)


Let us know when we can do it as easy as Vipers mod.

Adult SEO 11-16-2006 12:47 PM

Quote:

Originally Posted by delmarva (Post 1118566)
Man, you are really on to something there! Great work. ;)


Let us know when we can do it as easy as Vipers mod.

Hi!

It's actualy 10 times more easy, you just install the product and you will be able to configure all from the adminpanel and original vBulletin features like Phrases (multi-lingual support) and Templates (for the videos).

Next to the ability to offer your users the ability to publish videos on your forum, it will also generate extra traffic from Search Engines (as it's an SEO solution) and you will have the ability to put a videobar on any page on your forum with the latest published videos and you could use an SEO video index wich will enable your users to view all published videos and navigate through them.

I've offered Viper to work together on this mod, so we could make it perfect but he wasn't interested. So it will remain as is, just for Google and YouTube.

Best Regards,
Jan Jaap

delmarva 11-16-2006 01:37 PM

Are you going to start your own thread on this? Looking forward to testing it out.

redlabour 11-16-2006 03:37 PM

Quote:

Originally Posted by Adult SEO (Post 1118575)

I've offered Viper to work together on this mod, so we could make it perfect but he wasn't interested. So it will remain as is, just for Google and YouTube.

Best Regards,
Jan Jaap


Chris has give the Permission to use his AnyMedia 3.5 Code. His code is the best. Why did you not use his ?

transitbus 11-16-2006 04:03 PM

edit nm wrong mod im thinking of

redlabour 11-16-2006 04:37 PM

No it was not AnyMedia 3.5 is very stable. The only Things that have to be done :

More Features (and here comes the SEO Part)
Google and YouTube Player Update

So - it was less work as code a new one.

Adult SEO 11-16-2006 05:28 PM

Quote:

Originally Posted by redlabour (Post 1118740)
No it was not AnyMedia 3.5 is very stable. The only Things that have to be done :

More Features (and here comes the SEO Part)
Google and YouTube Player Update

So - it was less work as code a new one.

Hi!

I'm willing to spend a few days fulltime (17+ hours per day) on it to implement SEO features etc. and make it better but will it then be ok to require a returnlink?

The returnlink could be a small icon on the video template, like 16x16 with a link to information on how to obtain the mod for free on my site www.publiceren.net. Ofcourse no spamming etc, just information on how to obtain the mod and extra SE value to my domain wich is what I want.

Best Regards,
Jan Jaap

redlabour 11-16-2006 07:17 PM

Quote:

Originally Posted by Adult SEO (Post 1118783)
Hi!

I'm willing to spend a few days fulltime (17+ hours per day) on it to implement SEO features etc. and make it better but will it then be ok to require a returnlink?

The returnlink could be a small icon on the video template, like 16x16 with a link to information on how to obtain the mod for free on my site www.publiceren.net. Ofcourse no spamming etc, just information on how to obtain the mod and extra SE value to my domain wich is what I want.

Best Regards,
Jan Jaap

You misunderstand me - you can release it as your Own Hack "AnyMedia 3.6.x" .... ;)

Cris wont do it and gave permission to anyone who will.

Viper007Bond 11-17-2006 12:52 AM

Can you guys please stop hijacking my thread? :|

Quote:

Originally Posted by redlabour (Post 1118542)
vBa doent uses much more Traffic. It depends which Modules you activate and which not.

Anyway - can you fix it ? The Problem happens on every other Page then Showthread (not only vBa) where your BB Code is used. Look around for the Way you can use [GLOBAL] Commands to show modifications on every vBulletin Page/Template and you would have fixed it for vBa and every other Portal. ;)

My plugin just uses the built in BBCode parser. If that parser isn't applied to certain pages, there's not much I can do about that unfortanetly.

transitbus 11-17-2006 06:04 PM

Few quick questions or suggestions:

1) Is it possible to add a time out function?
2) Any chance to get the title of the video in the "header bar"?

The Wedge 11-18-2006 12:40 PM

Quote:

Originally Posted by Viper007Bond (Post 1118465)
I haven't a clue what that is and really all this thing is is some custom BBCode with a helper plugin that makes it so you can have full URLs. Nothing more. ;)

I can't figure out why helper plugin is not workin on my site. It just give a black box and no video. If I use the partial url it works fine. And I have installed this on another site and it worked fine. The only other thing I have running on my site different from that one is photopost. But I dont know how that could interfere with it. I've also removed all my google adsense and analytics in case that was the problem. But nothing is working.

here is a link to an example

http://sicktracks.com/forums/showthr...45#post1060945

p0ng0 11-18-2006 01:36 PM

Installed - thanks very much!

smoknz28 11-18-2006 07:48 PM

Installed on v3.6.3 with ease. ;)

Thank you for sharing your work with the rest of us.

Gonzo


All times are GMT. The time now is 04:50 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.02130 seconds
  • Memory Usage 1,853KB
  • 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
  • (1)bbcode_php_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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