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
(01-06-2011 06:32 AM)RocketFoot Wrote: [ -> ]how to get the shadow effect (mozilla) like the garage has?

The shadow effect comes from your tborder class. So, you need to use the class.
For example:

HTML Code
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">

You can do the link thing by changing the class of the div containing the link. Example:

Code:
.rocket a:link, .rocket a, .rocket a:visited {
color:#4f688f;
}

.rocket a:hover, .rocket a:active {
color:#a3181e; 
}

.rocket span {
color:#4f688f; 
}

.rocket span:hover {
color:#a3181e;  
}


if you give a second set of css classes the same name as the ones in your global.css then the last to load will be the ones you see.

Where you see span, give it the class of rocket. See what it does.

EDIT: here is an example using that css on the standard MYBB forumdisplay_thread template.

Code:
<tr>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
			<span class="rocket">{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="rocket {$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="rocket {$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="rocket lastposter smalltext">{$lastpostdate} {$lastposttime}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>

Thanks RateU and Lee...I will tackle this tomorrow, right now it is time for pizza and beer!  LOL
There!  How does it look now!  (Be nice, I have very limited CSS abilities!  Haha!)

http://www.7173mustangs.com/forum-youtube-video-gallery
Looks good rocket, though I do not care for mustangs hahaha
Looks awesome Rocketfoot. Where's that Britney Spears video with the Mustang Tongue ?
(01-07-2011 03:17 AM)Vapor Wrote: [ -> ]Looks good rocket, though I do not care for mustangs hahaha
WHAT?  Everyone likes Mustangs!  LOL
(01-07-2011 03:35 AM)leefish Wrote: [ -> ]Looks awesome Rocketfoot. Where's that Britney Spears video with the Mustang Tongue ?
No Britney, but we have Danica Patrick with nice red convertible!
Very nice Smile
Maybe you can use thead for the 'Categories' text/link, just above the category images and table. So, it will be as table header for your category table, similar as 'Welcome to 7173Mustangs.com!' table.

(01-07-2011 03:50 AM)RocketFoot Wrote: [ -> ]Everyone likes Mustangs!  LOL

Ugh... I don't have Mustang. But, I always drive it....... in NFS Biggrin
That is nice!  Biggrin
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