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
I'm actually just getting around to adding this, but the forum settings are missing from post#5. I know the template prefix must be "ytvgal_", but is there anything else I need to tweak in the forum settings for that forum?

EDIT: NVM...see it now.
How can I add lastest 3 videos to my index page? Erf
[Image: 83752310.jpg]
You need a plugin for that. Maybe you can modify this (by default, it's for the most viewed videos):
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=803&pid=74

Maybe you need to change the forum id, the order method, and (optionally) the video limit from the query of the plugin.
Emmm... I don't get it Frown My forum ID is 68, so I changed the 10 to 68 and put {$xtmost_view_video_video} on my index.php template and it doesn't work. Do I need to do something else aswell?
(I should be able to make it work now.)

PS: 'ORDER BY t.views DESC' This should be changed to? :x

Changed it to: 'lastpost DESC', lastthread doesn't work :<
Any idea what should I change it to if I want last thread, not last post?
(11-07-2011 03:07 AM)Zenk Wrote: [ -> ]PS: 'ORDER BY t.views DESC' This should be changed to? :x

Changed it to: 'lastpost DESC', lastthread doesn't work :<
Should be t.dateline DESC

(11-07-2011 03:07 AM)Zenk Wrote: [ -> ]and put {$xtmost_view_video_video} on my index.php templat
Should be {$xtmost_view_video} variable.

Or maybe you can try this (attached). I've put the forum id=68 there.
Put {$xtlatest_videos} variable on your index template.

Edit: Forgot to change one function name. Please re download it.
Thanks. Your attachment works perfect <3
If you want to change the layout, you can edit the templates provided by the plugin (xtlatest_videos for table, and xtlatest_videos_video for each video thumbnail), because I use my own .tborder class there Biggrin.
Xtlatest_videos_video actually suits my forum perfectly, I just changed the border to a dotted one. The other one was nearly there, although that part is easy xD. Thanks vm. You've done the hard part for me. ^^
(11-07-2011 02:24 AM)RateU Wrote: [ -> ]You need a plugin for that. Maybe you can modify this (by default, it's for the most viewed videos):
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=803&pid=74

Maybe you need to change the forum id, the order method, and (optionally) the video limit from the query of the plugin.

Hi, congrats for this beautiful tutorial, this works with ProPortal and how? I need to show the last 4 videos in ProPortal, thanks in advance.

Best Regards.
Do you want it to be displayed as ProPortal block or just like an usual plugin?
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