MyBB Hacks

Full Version: YouTube Video Gallery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
excellent.

you should add that to your main mod and you can use this attachment as a preview:
[attachment=150]
rateu,

maybe you can figure out why there's a lot of space between the  survival and miscellaneous categories:
http://www.pazrt.com/forum/forum-video-gallery

I looked through the code and it looks good...maybe I overlooked something.
Just add width value to the first <td> and the last <td> tag in your ytvgal_forumdisplay_threadlist and ytvgal_showthread template for the category. Find this code in both templates:

ytvgal_forumdisplay_threadlist template (around line #7 and #15)
ytvgal_showthread template (around line #20 and #28)

HTML Code
<td align="center">


Change to:

HTML Code
<td align="center" width="33%">


Sorry for late reply, Shemo. I couldn't active yesterday Smile Ah, for your suggestion about the category link under the by:, thanks, I've added the note in the sample Smile

(08-01-2010 03:12 AM)RateU Wrote: [ -> ]Just add width value to the first <td> and the last <td> tag in your ytvgal_forumdisplay_threadlist and ytvgal_showthread template for the category. Find this code in both templates:

ytvgal_forumdisplay_threadlist template (around line #7 and #15)
ytvgal_showthread template (around line #20 and #28)

HTML Code
<td align="center">


Change to:

HTML Code
<td align="center" width="33%">


Sorry for late reply, Shemo. I couldn't active yesterday Smile Ah, for your suggestion about the category link under the by:, thanks, I've added the note in the sample Smile


thanks..looks good now.
Update:

Trying to use Text Mask Filter and capture the video ID from "watch" URL.

Edit our YouTube Video ID custom thread field. Change this part:
  • Title: YouTube Video ID / URL
  • Maximum Text Length: 50
  • Field Input Width: 50
  • Display Format :

    Code:
    {VALUE$1}{VALUE$2}

    If user fill the field with video id, the value 1 will be used, the value 2 will be "blank".
    If user fill the field with "watch" video URL, the value 2 will be used, the value 1 will be "blank".

  • Text Mask Filter:

    Code:
    ([a-zA-Z0-9_\-+]{8,16}$)|http:\/\/www\.youtube\.com\/watch\?v=([a-zA-Z0-9_\-+]*)[&\w;=\+_\-]*

    Trying to keep the "compatibility" with the existing video (using video id). And trying to add an ability to use "watch" video URL.

I've been using something similar.
BTW, you might want to anchor the URL as XThreads doesn't do it.
Here's my suggested mask.

Code:
^(?:([a-zA-Z0-9_\-+]{8,16})$|http\://(?:[a-z]{1,4}\.)?youtube\.com/watch\?v=([a-zA-Z0-9_\-+]{8,16}))


Thanks for the update BTW RateU Smile

Yuuuhu! Yes! Now, this kinds of URL supported:

Code:
Video ID Only - Match - value 1
http://www.youtube.com/watch?v=video_id - Match - value 2
http://www.youtube.com/watch?v=video_id&feature=featured - Match - value 2
http://youtube.com/watch?v=video_id - value 2
http://youtube.com/watch?v=video_id&feature=featured - Match - value 2


Thank you very much, Yumi Smile I've updated the example Smile

add the link to your first post. just copy the 5th post link from the top right corner of 5th post [ Post: #5 ]. a little suggestion for better understanding and easy landing on 5th post
Actually, the first post had another YouTube Video Gallery layout. I have a plan to update it so it can bypass the validator, and fully "compatible" with turning off thread rating.

I'm sorry for that.
is there a way to make it to where my users can upload their own videos onto my server instead of ebbing them from youtube?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Reference URL's