Thread: vBulletin CMS Widgets - vFCoders - Featured Content Slider Widget
View Single Post
  #104  
Old 08-28-2011, 06:14 AM
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Location: India
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus1 View Post
I am sorry, but I cannot use it like this. It looks terrible on the left like now when using a widescreen monitor. If there is no easy way to just center the entire widget then I cannot use it. Great idea though.
Open vbcms_widget_cmsfcs_page template

And

Replace all template code to this

Code:
<vb:if condition="$output">
<style type="text/css">
.cmsfcs_{vb:raw id} { 
	position:relative; 
	height:290px; 
        
}
.cmsfcs_{vb:raw id} ul.ui-tabs-nav{ 
        position:absolute; 
        top:0; 
        left:9px;
        list-style:none; 
	padding:0; 
        margin-top:2px; 
        width:76px;
}
.cmsfcs_{vb:raw id} ul.ui-tabs-nav li{ 
        font-size:12px; 
	color:#666; 
        margin-left:2px;
        margin-top:3px;
        }

.cmsfcs_{vb:raw id} ul.ui-tabs-nav li span{ 
	font-size:11px; font-family:Verdana; 
	line-height:14px; 
}
.cmsfcs_{vb:raw id} li.ui-tabs-nav-item a{ 
	display:block; 
	height:55px; 
	color:#333;  
	line-height:12px;
}

.cmsfcs_{vb:raw id} ul.ui-tabs-nav li img { 
	float:left;  
	}

.cmsfcs_{vb:raw id} ul.ui-tabs-nav li.ui-tabs-selected img { 
 border:3px solid #FF7400;       
}


.cmsfcs_{vb:raw id} .ui-tabs-panel{ 
	width:{vb:raw width}px; 
        height:290px; 
        margin: 0 auto; 
}

.cmsfcs_{vb:raw id} .ui-tabs-panel img { 
	width:{vb:raw width}px; 
        height:290px; 
        margin: 0 auto; 
	}

.cmsfcs_{vb:raw id} .ui-tabs-panel .info{ 
	position:absolute; 
	top:220px; 
        left:85px; 
	height:70px;
        width:{vb:math {vb:raw width}-85}px;
        opacity: .75;
        background: black; 
}
.cmsfcs_{vb:raw id} .info h2{ 
	font-size: 20px; font-family:Georgia, serif; 
	color:#fff; padding:5px; margin:0 5px;
	overflow:hidden; 
}
.cmsfcs_{vb:raw id} .info p{ 
	margin:0 10px; 
	font-family:Verdana; font-size:11px; 
	line-height:14px; color:#f0f0f0;
}
.cmsfcs_{vb:raw id} .info a{ 
	text-decoration:none; 
	color:#fff; 
}
.cmsfcs_{vb:raw id} .info a:hover{ 
	text-decoration:underline; 
}
.cmsfcs_{vb:raw id} .ui-tabs-hide{ 
	display:none; 
}
</style>


<script type="text/javascript">
$(document).ready(function(){
$(".cmsfcs_{vb:raw id}").tabs({ fx: {opacity: 'toggle', duration:1} }).tabs({event: 'mouseover'}).tabs('rotate', 3000, true);

$('.cmsfcs_{vb:raw id}').mouseover(function(){
        $(this).tabs('rotate', 0, false);
    });
    $('.cmsfcs_{vb:raw id}').mouseout(function(){
        $(this).tabs({ fx: {opacity: 'none', duration:1} }).tabs({event: 'mouseover'}).tabs('rotate', 3000);
    });
});
</script>

<div class="block">

<div class="cms_widget_content widget_content">
		  <div id="featured" class="cmsfcs_{vb:raw id}">

{vb:raw output}
</div>
</div>
</div>
</vb:if>

i don't have widescreen monitor right now.. (waiting for my laptop to come from dell)
but i think above code should fix it.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01298 seconds
  • Memory Usage 1,774KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete