Thread Rating:
  • 7 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 YouTube Video Gallery
x-Treme Offline
Member
***
Posts: 68
Joined: May 2010
Post: #121
RE: YouTube Video Gallery
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.

Forum Freebies
(This post was last modified: 08-28-2011 12:48 AM by x-Treme.)
08-28-2011 12:39 AM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #122
RE: YouTube Video Gallery
How can I add lastest 3 videos to my index page? Erf
[Image: 83752310.jpg]
11-06-2011 11:26 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #123
RE: YouTube Video Gallery
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.

11-07-2011 02:24 AM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #124
RE: YouTube Video Gallery
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?
(This post was last modified: 11-07-2011 03:32 AM by Zenk.)
11-07-2011 03:07 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #125
RE: YouTube Video Gallery
(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.


Attached File(s)
.php  xtlatest_videos.php (Size: 2.88 KB / Downloads: 434)

(This post was last modified: 11-07-2011 03:38 AM by RateU.)
11-07-2011 03:34 AM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #126
RE: YouTube Video Gallery
Thanks. Your attachment works perfect <3
11-07-2011 03:43 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #127
RE: YouTube Video Gallery
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.

(This post was last modified: 11-07-2011 03:46 AM by RateU.)
11-07-2011 03:45 AM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #128
RE: YouTube Video Gallery
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. ^^
(This post was last modified: 11-07-2011 04:01 AM by Zenk.)
11-07-2011 04:00 AM
Find all posts by this user Quote this message in a reply
Tortoise Offline
Junior Member
**
Posts: 6
Joined: Nov 2011
Post: #129
RE: YouTube Video Gallery
(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.
11-10-2011 07:03 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #130
RE: YouTube Video Gallery
Do you want it to be displayed as ProPortal block or just like an usual plugin?

11-10-2011 08:04 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: