Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VideoMax 1.0 Details »»
VideoMax 1.0
Version: 1.00, by RagingPenguin RagingPenguin is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Portal Software - Version: 3.7.0 Rating:
Released: 05-09-2008 Last Update: Never Installs: 20
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

Thank you for looking at this. It is my first 'product' for vbulletin. I hope you find it useful. Now on to the writeup...

Short Description

Simple YouTube video display module.

Long Description

This mod uses a cron based system to scan recent posts for bbcode-posted YouTube videos. The cron has two settings which can be found in the vBuletin options menu. These settings control the bbcode used to post youtube videos to your forum and the number of data rows to cache in a custom table. Also provided is a vBadvanced module for use in displaying the collected videos.

Cron Features
- BBCode setting
- Cache Limit setting

Module Features
- Cache Limit setting (to further refine your selection per module instance)
- Display Order (Random, Descending, Ascending based on dateline of the post)
- Maximum Rows
- Maximum Columns (per row)
- Maximum Characters (for truncating overly long thread titles)
- Player Width
- Player Height
- Automatic Playback (just in case you want to display a single item as a 'feature')
- Loop Playback
- Window Mode (opaque or transparent)
- Source Forums (to refine your selection by a forumid list)
- Show Links (to display Post By and In Thread links under the video)

Installation
- Ensure you have a working bbcode to post videos with (see below)
- Download the zip file and extract it
- Upload the *.php files to their proper locations
- Use 'Manage Products' in the admincp to install the product-videomax.xml file
- Use 'Upload Module' in the vBa CMPS cp to install the module-videomax.xml file
- Run the default cron once, manually, to get initial data.

Suggested BBCode
- works in all tested browsers (ie, ff, safari - latest versions each)

<object type="application/x-shockwave-flash" width="425" height="355" data="http://www.youtube.com/v/{param}">
<param name="movie" value="http://www.youtube.com/v/{param}" />
<param name="play" value="0" />
<param name="wmode" value="transparent" />
<param name="quality" value="medium" />
<param name="loop" value="0" />
</object>

Live Demo
- StarletRealm Forums

That's all there is too it. Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-13-2008, 09:48 AM
gwerzal's Avatar
gwerzal gwerzal is offline
 
Join Date: Oct 2007
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use passivevid to display my youtube video's.

Would there be anyway to make this work with that.
Reply With Quote
  #13  
Old 05-13-2008, 10:06 AM
Defkalion Defkalion is offline
 
Join Date: Jan 2007
Location: Athens, Greece
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks RagingPenguin, I will be waiting.
Reply With Quote
  #14  
Old 05-13-2008, 10:13 AM
RagingPenguin's Avatar
RagingPenguin RagingPenguin is offline
 
Join Date: Mar 2008
Location: North Carolina
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Def, what version of the CMPS are you using? I have the 3.6.8 vbtest forum up and need to know so I can export it for you in the right format.
Reply With Quote
  #15  
Old 05-13-2008, 12:04 PM
Defkalion Defkalion is offline
 
Join Date: Jan 2007
Location: Athens, Greece
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, I'm using

CMPS v3.0.0

and

CMPS v3.0 RC2

on my two diferrent websites. I plan to use this mod in both. If I have to upgrade to a CMPS specific version just say so, don't waste any time on my account.
Reply With Quote
  #16  
Old 05-14-2008, 06:56 AM
Defkalion Defkalion is offline
 
Join Date: Jan 2007
Location: Athens, Greece
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I managed to make it work with CMPS v3.0.0.

The only problem is this:

It brings in my frontpage let's say 4 videos, but only one has a preview - the rest only have the thread title where the video was posted. So it only brings back videos that are posted like this:

Quote:
[youtube]5da9sd43[/youtube]
bbcode type and not the codes that are posted like this:

Quote:
[youtube]http://youtube.com/watch?v=-gVtWZ36_BA[/youtube]
Is this correct?

If so, is there any way to make it work with the second bbcode type also, or if that is not possible, to make it work ONLY with the second bbcode? Because all my members post the second type in the forums.

Thanks.
Reply With Quote
  #17  
Old 05-14-2008, 01:45 PM
RagingPenguin's Avatar
RagingPenguin RagingPenguin is offline
 
Join Date: Mar 2008
Location: North Carolina
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I tried it with an older CMPS as well and got the same result. The module was exported from CMPS 3.0.1 (vB 3.6 - vB 3.7) - Released 04-24-2008.

And yes! you can make it work with the second option. Go into the videomaxbit_video template and make the following change:

*DELETE TEXT IN RED - TWO INSTANCES*

Code:
<td align="center" valign="center">
	<div>
		<object type="application/x-shockwave-flash" width="$videomaxbit[width]" height="$videomaxbit[height]" data="http://www.youtube.com/v/$videomaxbit[pagetext]">
		<param name="movie" value="http://www.youtube.com/v/$videomaxbit[pagetext]" />
		<param name="play" value="$videomaxbit[play]" />
		<param name="wmode" value="$videomaxbit[wmode]" />
		<param name="quality" value="$videomaxbit[quality]" />
		<param name="loop" value="$videomaxbit[loop]" />
		</object>
	</div>
	<if condition="$videomaxbit[showlinks]">
		<div class="smallfont">$vbphrase[videomax_postedby]&nbsp;<a href="$vboptions[bburl]/member.php?u=$videomaxbit[userid]">$videomaxbit[username]</a></div>
		<div class="smallfont">$vbphrase[videomax_inthread]&nbsp;<a href="$vboptions[bburl]/showthread.php?t=$videomaxbit[threadid]#post$videomaxbit[postid]">$videomaxbit[title]</a></div>
	</if>
</td>
As long as your BB Code works you should be ok.

I'll put an option in v2 to specify full url use, or code only.
Reply With Quote
  #18  
Old 05-14-2008, 01:49 PM
RagingPenguin's Avatar
RagingPenguin RagingPenguin is offline
 
Join Date: Mar 2008
Location: North Carolina
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gwerzal View Post
I use passivevid to display my youtube video's.

Would there be anyway to make this work with that.
I am unfamiliar with that product. As such I cannot say with any certainty. Can you provide me with a link to said product?
Reply With Quote
  #19  
Old 05-14-2008, 07:26 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hiii..

plz tell me if there's a way to display those videos on a separate page, say youtube.php
as I am not willing to display them on my vbadvanced page.. thanks !!
Reply With Quote
  #20  
Old 05-14-2008, 10:51 PM
gwerzal's Avatar
gwerzal gwerzal is offline
 
Join Date: Oct 2007
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RagingPenguin View Post
I am unfamiliar with that product. As such I cannot say with any certainty. Can you provide me with a link to said product?
Hi

The link to the product is below

https://vborg.vbsupport.ru/showthrea...ght=passivevid

If this can be done with this then your mod would be an excellent addition to my forum.

Its just that there is already a lot of video's on the site and it would be very time consuming to go and change each post and edit the video's

Thanks for looking anyway

Waiting hopefuly
Ben Jones
Reply With Quote
  #21  
Old 05-15-2008, 04:35 AM
RagingPenguin's Avatar
RagingPenguin RagingPenguin is offline
 
Join Date: Mar 2008
Location: North Carolina
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
hiii..

plz tell me if there's a way to display those videos on a separate page, say youtube.php
as I am not willing to display them on my vbadvanced page.. thanks !!
I am going to write a standalone page in version 2. However, you can create a "Module" page in vBa CMPS and show just that one module. In this, you can set it to say: 8 rows and 3 columns? or more? This page would show up in the vBa Nav menu. It's a good alternative until I get a real page written.

----------

gwerzal, I'll take a look at that tomorrow. bedtime now.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05616 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete