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
Okay, thanks. If anyone needs it:

PHP Code:
<!--start:CategoryChanger-->
<style>
div.ismoderator_0 {display:none;}
div.ismoderator_1 {display:inline;}
</style>
<div class="ismoderator_{$mybb->usergroup['issupermod']}">
<form action="editpost.php?pid={$pid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<select style="width: 20em;" name="xthreads_ytvgalcat" size="1">
	<optgroup label="Current:">
		<option selected="selected" value="{$GLOBALS['threadfields']['ytvgalcat']}">{$GLOBALS['threadfields']['ytvgalcat']}</option>
	</optgroup>
	<option value="Category1">Category1</option>
	<option value="Category2">Category2</option>
</select>
<input type="submit" class="button" name="submit" value="OK" accesskey="s">
<input type="hidden" name="action" value="do_editpost" />
<input type="hidden" name="posthash" value="{$posthash}" />
</form>
</div>
<!--end:CategoryChanger-->

(You can add the CSS from <style> to an external CSS file.)

Can you put the thumbs of the videos in the profile?
I would add the thumb of the last video in the profiles

Can you? I just need the code, then I'd fix it with CSS.
Try this plugin (attached).
Edit these lines as your needs:

PHP Code:
$xt_video_fid = 14;// YouTube Video Gallery forum id
$xt_video_limit = 5;// Max num of videos to be displayed on profile

You can edit the xtlatest_videos_on_profile and/or xtlatest_videos_on_profile_video templates (in Global Templates) to style it.
Move the {$xtlatest_videos_on_profile} variable in your member_profile template if you want to put it in other area on the profile page.

(03-14-2013 02:29 AM)RateU Wrote: [ -> ]Try this plugin (attached).
Edit these lines as your needs:

PHP Code:
$xt_video_fid = 14;// YouTube Video Gallery forum id
$xt_video_limit = 5;// Max num of videos to be displayed on profile

You can edit the xtlatest_videos_on_profile and/or xtlatest_videos_on_profile_video templates (in Global Templates) to style it.
Move the {$xtlatest_videos_on_profile} variable in your member_profile template if you want to put it in other area on the profile page.


Something like that plugin but for photos gallery?

and How to do a list in posbit_first of a related videos with the images of videos? (RateU or somebody else?)
How to increase thumbnail size?

[Image: captureirg.th.png]


And

http://youtu.be/SQEbPn36m1c - this url. How to?
And why isn't the forumdisplay page good enough?
The thing is, you can't simply copy code across and hope it works (unlike say, HTML/CSS) because it needs to run in the same context.
Sounds like you could just use the portal then?  Make a copy of portal.php and point it to your specific forums.
I presume that's what you want?
Maybe the attached plugin in this post is more simple to modify for your needs:
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=292&pid=94
Thanks!
With Latest XThreads YouTube Videos On Index how to increase video number on index?

thx...xthreas is awesome
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