(06-13-2012 07:44 AM)alexsubri Wrote: [ -> ]RateU --I've edited all three templates, still not changing?
You still don't have any classes applied to the tables.
HTML Code
<table width="100%" border="0" cellspacing="1" cellpadding="4" style="clear: both;">
<tr>
<td valign="middle" colspan="2">
<a href="forumdisplay.php?fid=13"><strong>Categories</strong></a>
<table border="0" width="100%">
<tr>
<td align="center">
<a href="forumdisplay.php?fid=13&filtertf_ytvgalcat=Music"><img src="http://i28.tinypic.com/2vskbwx.jpg" alt="" /></a><br />
<a href="forumdisplay.php?fid=13&filtertf_ytvgalcat=Music"><strong>Music</strong></a>
</td>
|
Check other MyBB templates if you want to match the layout with them.
(06-13-2012 08:03 AM)wethegreenpeople Wrote: [ -> ]Also, rateu, what do I need to do in order to get the thread name to appear with the video thumbnail in the side bar?
Check the
xtlatest_videos_video template and edit where necessary.
Please,
please make back up's of any templates if you feel like using mine. It took me a while to tinker with everything to get it working and I'd feel really bad if I messed up your hard work. It just takes one extra second, cut, paste.
Anything that has a '*', is the same template without any changes, so if you already have that template you
should be able to get by without touching it.
Admin CP -> Templates & Style -> Templates -> Global Templates:
- *Template Name: ytvgal_forumdisplay_group_sep
- *Template Name: ytvgal_forumdisplay_inlinemoderation_col
HTML Code
<td align="center" width="1" style="background: #ADCBE7; border-top: 2px solid #0F5C8E; border-bottom: 2px solid #0F5C8E;"><input type="checkbox" name="allbox" onclick="inlineModeration.checkAll(this)" /></td>
|
- *Template Name: ytvgal_forumdisplay_nothreads
HTML Code
<td>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" style="border-bottom: 2px solid #8DC93E;">
<tr>
<td style="background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E;">
<strong>No Video</strong>
</td>
</tr>
<tr>
<td align="center">
{$lang->nothreads}
</td>
</tr>
</table>
</td>
|
- Template Name: ytvgal_forumdisplay_searchforum_inline
HTML Code
<br />
<table border="0" cellspacing="{$GLOBALS['theme']['borderwidth']}" cellpadding="{$GLOBALS['theme']['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$lang->search_forum}</strong></td>
</tr>
<tr>
<td class="trow1" style="text-align: center;">
<form action="forumdisplay.php" method="get">
<input type="text" class="textbox" name="search" value="{$searchval}" /> {$gobutton}
<input type="hidden" name="fid" value="{$fid}" />
<input type="hidden" name="sortby" value="{$sortby}" />
<input type="hidden" name="order" value="{$sortordernow}" />
<input type="hidden" name="datecut" value="{$datecut}" />
{$xthreads_forum_filter_form}
</form>
</td>
</tr>
</table>
|
- *Template Name: ytvgal_forumdisplay_sticky_sep
HTML Code
<td colspan="{$colspan}" style="display: none;"></td>
</tr>
<tr>
|
- Template Name: ytvgal_forumdisplay_thread
HTML Code
<tr>
<td align="center" class="{$bgcolor}" width="1">
<a href="{$thread['threadlink']}">
<img src="http://img.youtube.com/vi/{$GLOBALS['threadfields']['ytvgalid']}/default.jpg" alt="" title="{$thread['subject']}" />
</a>{$GLOBALS['threadfields']['value']}
</td>
<td class="{$bgcolor}" width="100%">
<strong>
<a href="{$thread['threadlink']}" class="{$inline_edit_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
</strong>
<div class="smalltext"><strong>{$lang->author} {$thread['profilelink']}</strong> - <em>{$thread['threaddate']} {$lang->at} {$thread['threadtime']}</em></div>
<div class="smalltext">{$thread['postpreview']}</div>
<div class="smalltext">{$thread['views']} {$lang->views} | {$thread['replies']} {$lang->replies} | {$thread['numratings']} {$lang->rating}</div>
</td>
{$modbit}
</tr>
|
- Template Name: ytvgal_forumdisplay_threadlist
HTML Code
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="clear: both; width: 100%;">
<tr>
<td valign="top" width="300">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>Categories</strong></td>
</tr>
<tr>
<td class="trow1">
<strong><a href="http://skatingwith.us/Forum-Media">All</a></strong>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$forumurl_q}filtertf_ytvgalcat=Freelines">Freelines</a></strong>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$forumurl_q}filtertf_ytvgalcat=Skateboard">Skateboards</a></strong>
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div><strong>Sorting</strong></div>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$sorturl}&sortby=views&order=desc&xtmvmost=most">Most Viewed</a></strong>
<div class="smalltext">Display {$mybb->settings['threadsperpage']} Most viewed videos</div>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$sorturl}&sortby=replies&order=desc&ytvgalmost=most">Most Commented</a></strong>
<div class="smalltext">Display {$mybb->settings['threadsperpage']} Most commented videos</div>
</td>
</tr>
<tr>
<tr>
<td class="trow1">
<strong><a href="{$sorturl}&sortby=started&order=desc&ytvgalmost=most">Last added</a></strong>
<div class="smalltext">Display {$mybb->settings['threadsperpage']} Last added</div>
</td>
</tr>
<tr>
<td class="trow1">
<strong><a href="{$sorturl}&sortby=lastpost&order=desc&ytvgalmost=most">Last commented</a></strong>
<div class="smalltext">display {$mybb->settings['threadsperpage']} Last commented</div>
</td>
</tr>
</table>
{$searchforum}
</td>
<td valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
<tr>
<td class="thead" colspan="2">
<div>
<strong><a href="{$forumurl}">{$foruminfo['name']}</a></strong>
</div>
</td>
{$inlinemodcol}
</tr>
{$threads}{$nullthreads}
</table>
<div class="float_left">
{$multipage}
</div>
<div class="float_right" style="margin-top: 4px;">
{$newthread}
</div>
</td>
</tr>
</table>
<br style="clear: both;" />
<br />
<div class="float_right" style="text-align: right;">
{$inlinemod}
{$forumjump}
</div>
<br style="clear: both" />
<div class="smalltext" align="center">
{$foruminfo['name']}<br />
Powered By <a href="http://mybbhacks.zingaburga.com/showthread.php?tid=288">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
</div>
{$inline_edit_js}
|
- Template Name: ytvgal_forumdisplay_threadlist_rating
HTML Code
<tr>
<td class="trow1">
<strong><a href="{$sorturl}&sortby=numratings&order=desc&xtldirmost=most">{$lang->ytvgal_most_rated}</a></strong>
<div class="smalltext">{$lang->ytvgal_displaying} {$mybb->settings['threadsperpage']} {$lang->ytvgal_most_rated}</div>
</td>
</tr>
|
- *Template Name: ytvgal_forumdisplay_threads_sep
HTML Code
<td colspan="{$colspan}" style="display: none;"></td>
</tr>
<tr>
|
- *Template Name: ytvgal_forumdisplay_thread_modbit
HTML Code
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap; width: 1px;"><input type="checkbox" class="checkbox" name="inlinemod_{$multitid}" id="inlinemod_{$multitid}" value="1" {$inlinecheck} /></td>
|
- Template Name: ytvgal_forumdisplay_thread_null
- *Template Name: ytvgal_forumdisplay_thread_rating
HTML Code
<div id="rating_table_{$thread['tid']}" align="center">
<ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
<li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
</ul>
<script type="text/javascript">
Rating.build_forumdisplay({$thread['tid']}, { width: '{$thread['width']}', extra_class: '{$not_rated}', current_average: '{$ratingvotesav}' });
</script>
</div>
|
- Template Name: ytvgal_postbit
HTML Code
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}" class="tborder">
<tbody>
<tr>
<td class="trow1 {$unapproved_shade}">
<div class="float_left smalltext">
{$lang->author} <a href="{$post['profilelink_plain']}" id="profile_{$post['pid']}">{$post['username_formatted']}</a>
<br />{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
</div>
{$post['posturl']}
<div class="post_body clear" id="pid_{$post['pid']}">{$post['message']}</div>
<div class="post_meta" id="post_meta_{$post['pid']}">{$post['iplogged']}</div>
<div id="profile_{$post['pid']}_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container">
<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1" valign="top" align="center">
<div><strong>{$post['profilelink']}</strong></div>
<div class="smalltext">{$post['useravatar']}</div>
<div class="smalltext">{$post['usertitle']}</div>
<div class="smalltext">{$post['userstars']}</div>
<div class="smalltext">{$post['groupimage']}</div>
<div class="smalltext">{$post['user_details']}</div>
</td>
</tr>
<tr>
<td class="tcat" align="center">
{$post['button_email']}
{$post['button_pm']}
{$post['button_www']}
{$post['button_find']}
{$post['button_rep']}
</td>
</tr>
</table>
</div>
</div>
<div class="post_management_buttons float_right clear">
{$post['button_edit']}
{$post['button_quickdelete']}
{$post['button_quote']}
{$post['button_multiquote']}
{$post['button_report']}
{$post['button_warn']}
</div>
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
if(use_xmlhttprequest == "1")
{
new PopupMenu("profile_{$post['pid']}");
}
</script>
|
- Template Name: ytvgal_postbit_first
HTML Code
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tbody>
<tr>
<td class="thead">
{$post['posturl']}
<div style="text-align: center;"><strong>{$post['subject']}</strong></div>
</td>
</tr>
<tr>
<td class="trow1 {$unapproved_shade}">
<div class="float_left" style="width:530px;">
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{$GLOBALS['threadfields']['ytvgalid']}" width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{$GLOBALS['threadfields']['ytvgalid']}" /><param name="FlashVars" value="playerMode=embedded" /><p>{$thread['subject']}</p></object>{$GLOBALS['threadfields']
['value']}
<div style="margin-top: 3px;">
</div></div>
<div class="float_left" style="width:530px;">
<a title="Twitter" href="http://twitter.com/share?text=<func urlencode>{$thread['subject']}</func>&url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>" target="_blank"><img src="http://in2eastafrica.net/wp-content/themes/NewsNew/images/twitter.png" alt="Twitter" /></a>
<a title="Facebook" href="http://www.facebook.com/share.php?u=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&t=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="http://www.mricons.com/store/png/114668_31303_16_facebook_icon.png" alt="Facebook" /></a>
<a href="https://plus.google.com/share?url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&t=<func urlencode>{$thread['subject']}</func>" onclick="javascript:window.open(this.href,
'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><img
src="https://www.gstatic.com/images/icons/gplus-16.png" alt="Share on Google+"/></a>
<a title="Digg" href="http://digg.com/submit?url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&t=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="http://www.dbachrach.com/showyourself/widget_images/digg.png" alt="Digg" /></a>
<a title="Reddit" href="http://reddit.com/submit?url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&t=<func urlencode>{$thread['subject']}</func>{$thread['subject']}" target="_blank"><img src="http://www.rexp.com/wp-content/themes/tribune/images/icons/small/reddit.png" alt="Reddit" /></a>
<a title="StumbleUpon" href="http://www.stumbleupon.com/submit?url=<func urlencode>{$mybb->settings['bburl']}/showthread.php?tid={$tid}</func>&t=<func urlencode>{$thread['subject']}</func>" target="_blank"><img src="http://www.davidleeparker.com/wp-content/plugins/about-me-3000/stumbleupon.png" alt="StumbleUpon" /></a>
</div>
</div><br>
<div class="float_left" style="width:530px;">
{$GLOBALS['ratethread']}
</div>
</div>
</div>
<table border="0">
<tr>
<td>
{$GLOBALS['threadfields']['xtmv_thumb']['value']}
</td>
<td>
<div>
<strong>{$post['subject']}</strong>
<div class="smalltext">
{$lang->author} <a href="{$post['profilelink_plain']}" id="profile_{$post['pid']}">{$post['username_formatted']}</a>
</div>
<em class="smalltext">{$post['postdate']}, {$post['posttime']}</em>
<div class="smalltext">
{$GLOBALS['thread']['views']} {$lang->views}, {$thread['replies']} {$lang->replies}
</div>
</div>
</td>
</tr>
</table>
<br />
<div class="post_body" id="pid_{$post['pid']}">
{$post['message']}
</div>
<div class="post_meta" id="post_meta_{$post['pid']}">{$post['iplogged']}</div>
<div id="edited_by_{$post['pid']}" class="float_right clear">{$post['editedmsg']}</div>
<br class="clear" />
<div>{$post['attachments']}{$post['signature']}</div>
<br class="clear" />
<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
<div id="profile_{$post['pid']}_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container">
<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1" valign="top" align="center">
<div><strong>{$post['profilelink']}</strong></div>
<div class="smalltext">{$post['useravatar']}</div>
<div class="smalltext">{$post['usertitle']}</div>
<div class="smalltext">{$post['userstars']}</div>
<div class="smalltext">{$post['groupimage']}</div>
<div class="smalltext">{$post['user_details']}</div>
</td>
</tr>
<tr>
<td class="tcat" align="center">
{$post['button_email']}
{$post['button_pm']}
{$post['button_www']}
{$post['button_find']}
{$post['button_rep']}
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
if(use_xmlhttprequest == "1")
{
new PopupMenu("profile_{$post['pid']}");
}
</script>
|
- Template Name: ytvgal_postbit_iplogged_hiden
HTML Code
<strong><a href="moderation.php?action=getip&pid={$post['pid']}">[IP]</a></strong>
|
- Template Name: ytvgal_showthread
HTML Code
<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1600"></script>
<script type="text/javascript" src="flowplayer/flowplayer-3.2.6.min.js"></script>
</head>
<body>
{$header}
{$pollbox}
<div id="posts">
{$first_post}
<br />
<div style="text-align: center;">
<strong>« <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> »</strong>
</div>
<br class="clear" />
<div class="float_right largetext">{$lang->replies}</div>
<br class="clear" />
{$posts}
</div>
<br class="clear" />
<div class="float_left">
{$multipage}
</div>
<div style="padding-top: 4px;" class="float_right">
{$newreply}
</div>
<br style="clear: both;" />
{$quickreply}
{$threadexbox}
{$similarthreads}
<br />
<div class="float_right" style="text-align: right;">
{$moderationoptions}
{$forumjump}
</div>
<br style="clear: both;" />
{$usersbrowsing}
<div class="smalltext" style="text-align: center;">
{$forum['name']}<br />
Powered by <a href="http://mybbhacks.zingaburga.com/showthread.php?tid=288">XThreads</a> – <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
</div>
{$footer}
</body>
</html>
|
- Template Name: ytvgal_showthread_noreplies
HTML Code
<table border="0" cellspacing="{$GLOBALS['theme']['borderwidth']}" cellpadding="{$GLOBALS['theme']['tablespace']}" id="xthreads_noreplies" class="tborder">
<tr>
<td class="trow1">
<div style="text-align: center;" class="post_body">{$GLOBALS['lang']->xtmv_no_comment}</div>
</td>
</tr>
</table>
|
- Template Name: ytvgal_showthread_ratethread
HTML Code
<div class="float_left smalltext">
<a href="./ratethread.php?tid={$thread['tid']}&rating=5&my_post_key={$mybb->post_code}"><img src="images/like.png" alt="{$lang->rate_thread}" title="{$lang->rate_thread}" /></a>
</div>
<div class="float_left smalltext" style="margin-left: 5px; margin-top: 5px;">
{$ratingvotesav}
</div>
|
- Template Name: ytvgal_showthread_search
HTML Code
<br class="clear" />
<br class="clear" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" style="border-bottom: 2px solid #0F5C8E;">
<tr>
<td style="background: #ADCBE7; border-top: 2px solid #0F5C8E; border-bottom: 2px solid #0F5C8E;">
<strong>Search Comments</strong>
</td>
</tr>
<tr>
<td align="center">
<form action="search.php" method="post">
<input type="hidden" name="action" value="thread" />
<input type="hidden" name="tid" value="{$thread['tid']}" />
<input type="text" name="keywords" value="{$lang->enter_keywords}" onfocus="if(this.value == '{$lang->enter_keywords}') { this.value = ''; }" onblur="if(this.value=='') { this.value='{$lang->enter_keywords}'; }" class="textbox" size="25" />
<input type="submit" class="button" value="Search" />
</form>
</td>
</tr>
</table>
|
- Template name: xtmv_postbit_first_inlinecheck
HTML Code
<input type="checkbox" class="checkbox" name="inlinemod_{$post['pid']}" id="inlinemod_{$post['pid']}" value="1" style="vertical-align: middle;" {$inlinecheck} />
|
- Template name: xtmv_postbit_first_posturl
HTML Code
<div style="float: right; width: auto; vertical-align: top">{$post['inlinecheck']}</div>
|
- Template name: xtmv_postbit_posturl
HTML Code
<div style="float: right; width: auto; vertical-align: top"><span class="smalltext"><strong><a href="{$post['postlink']}#pid{$post['pid']}">#{$postcounter}</a></strong>{$post['inlinecheck']}</span></div>
|
- Template name: ytvgal_most_multipage
HTML Code
<div class="pagination" style="display: none;"><span class="pages">{$lang->multipage_pages}</span>{$prevpage}{$start}{$mppage}{$end}{$nextpage}</div>
|
- Template name: ytvgal_threadfields_inputrow
HTML Code
<tr> <td class="trow2"> <strong>{$tf['title']}</strong><br /> {$inputfield}<small style="display: block;">{$tf['desc']}</small></td> </tr>
|
And those are all my templates. I hope this works for you! If you did everything right (and I didn't leave out any templates) it should end up looking like
http://skatingwith.us/Forum-Media
Haha @wethegreenpeople, this your Video Gallery not YT Gallery.
@alexsubri this is not difficult, just follow the instructions in the post #5.
Actually sir.... this IS my youtube gallery. I didnt quite like the design for the default youtibe gallery so I took the design of the video gallery and made it a youtube one.
If you follow the link in my last post, you can see that all the videos posted are youtube videos
THANK YOU SIR! I will try it out now. I will report back later anyways because I have more questions, but this is a start!
+rep
(06-13-2012 03:54 PM)wethegreenpeople Wrote: [ -> ]And those are all my templates. I hope this works for you! If you did everything right (and I didn't leave out any templates) it should end up looking like http://skatingwith.us/Forum-Media
I am going to have to start from sctrach...
I redited it with your template and I am still getting the same page I had before.
Really? Nothing changed?
At the most, one of the biggest changes is ytvgal_forumdisplay_thread , the actual thread display, that didn't even change?
Have you tried looking at it in a different browser?
I'm pretty sure it's just the regular ytvgal settings. I didn't touch it. Lemme check
....
I have two custom thread fields
YouTube Video ID / URL
Video Catagory
Do you have both of those?
(06-14-2012 04:14 AM)wethegreenpeople Wrote: [ -> ]I'm pretty sure it's just the regular ytvgal settings. I didn't touch it. Lemme check
....
I have two custom thread fields
YouTube Video ID / URL
Video Catagory
Do you have both of those?
These pics are from my previous post