
06-26-2012, 11:06 AM
|
|
|
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Hippy
the downloads2.css is in the css template group
not the DOWNLOADS2 template in the downloads template group
scoll in the templates in your style and look for CSS Templates this is where youll find all the .css templates
change to
Code:
@charset "UTF-8";
#pagetitle {
margin-bottom: 10px;
}
.downloads2_copyright {
padding-bottom:{vb:math {vb:stylevar padding}/2};
font:{vb:stylevar footer_copyright_font};
margin-top:{vb:stylevar padding};
text-align:center;
display:block;
}
.subcats h4 {
padding-{vb:stylevar right}: {vb:math {vb:stylevar padding}/2};
}
.subcats h4, .subcats .commalist {
float:{vb:stylevar left};
clear:{vb:stylevar right};
}
.subcats .commalist li {
display:inline-block;
}
.subcats .commalist li:after {
/* Comma + */
content:",\0000A0";
}
.subcats .commalist li:last-child:after {
content:"";
}
#above_files {
margin-bottom:{vb:stylevar padding};
}
#below_files {
margin-top:{vb:stylevar padding};
}
#below_files_2x {
margin-top:{vb:math 2 * {vb:stylevar padding}};
}
.pagenavright {
float: {vb:stylevar right};
}
.nobullets {
list-style: none;
margin: 0;
padding: 0;
}
.fly {
float: {vb:stylevar right};
display: inline;
font-size: 88%;
}
/* RATINGS */
.popupbody .rating {
display:block;
padding:{vb:stylevar popup_padding};
padding-{vb:stylevar left}:{vb:math 2 * {vb:stylevar popup_padding.paddingTop} + 75}{vb:stylevar popup_padding.units};
background:transparent url({vb:stylevar imgdir_rating}/rating-15_0.png) {vb:stylevar left} center no-repeat;
}
.popupbody .r5 { background-image:url({vb:stylevar imgdir_rating}/rating-15_5.png); }
.popupbody .r4_right { background-image:url({vb:stylevar imgdir_rating}/rating-15_4.png); }
.popupbody .r3_right { background-image:url({vb:stylevar imgdir_rating}/rating-15_3.png); }
.popupbody .r2_right { background-image:url({vb:stylevar imgdir_rating}/rating-15_2.png); }
.popupbody .r1_right { background-image:url({vb:stylevar imgdir_rating}/rating-15_1.png); }
/*RTL rating*/
.popupbody .r4_left { background-image:url({vb:stylevar imgdir_rating}/rating-15_4_left.png); }
.popupbody .r3_left { background-image:url({vb:stylevar imgdir_rating}/rating-15_3_left.png); }
.popupbody .r2_left { background-image:url({vb:stylevar imgdir_rating}/rating-15_2_left.png); }
.popupbody .r1_left { background-image:url({vb:stylevar imgdir_rating}/rating-15_1_left.png); }
/* Definition list (not used yet) */
.file_summary dl.dl2stats {
width: 400px;
margin: 5px 0 10px 0;
}
.file_summary dl.dl2stats dt {
width: 100px;
display:block;
float: {vb:stylevar left};
clear: {vb:stylevar right};
}
.file_summary dl.dl2stats dd {
float: {vb:stylevar left};
clear:{vb:stylevar right};
display:block;
width: {vb:math {vb:stylevar profile_sidebar_width}-85px-{vb:math {vb:stylevar profile_sidebar_box_border}*2}-12px-12px};
}
/* Table (temporarily) */
.file_summary table.dl2stats {
margin: 5px 0 5px 0;
}
.file_summary table.dl2stats td.dl2name {
width: 100px;
}
.file_summary table.dl2stats td.dl2name:after {
content:":";
}
#dl2images .dlpic_container {
width: {vb:math {vb:stylevar profile_sidebar_avatar_maxWidth} + 6px + {vb:math {vb:stylevar profile_sidebar_avatar_border.borderWidth}*2}+{vb:math {vb:stylevar padding}/2}};
float: {vb:stylevar left};
clear: {vb:stylevar right};
margin-bottom: {vb:math {vb:stylevar padding}/2};
display:inline-block;
min-height: {vb:math {vb:stylevar font.fontSize}*3*{vb:stylevar line_height}};
overflow:hidden;
}
#dl2images .dl_pic {
width: {vb:math {vb:stylevar profile_sidebar_avatar_maxWidth} + 6px + {vb:math {vb:stylevar profile_sidebar_avatar_border.borderWidth}*2}};
float: {vb:stylevar left};
clear: {vb:stylevar right};
margin-bottom: {vb:math {vb:stylevar padding}/2};
}
#dl2images .dl_pic img {
width: {vb:stylevar profile_sidebar_avatar_maxWidth};
height: auto;
padding: 3px;
background: {vb:stylevar profile_sidebar_avatar_background};
border: {vb:stylevar profile_sidebar_avatar_border};
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
overflow: hidden;
}
.commenthead img {
position: relative;
top: -3px;
}
.dl2info {
border-bottom:solid 1px rgb(203,209,251);
padding: 10px;
}
#dl2-menugroup {
float: {vb:stylevar right};
}
#dl2-menugroup a {
color:#4E4E4E;
}
#dl2-menugroup a.popupctrl, #dl2-menugroup a.popupctrl:hover {
color:#FFF;
}
#dl2-menugroup .popupbody {
width:236px;
}
#dl2-menugroup input.searchbox{
margin-top:1px;
margin-bottom:3px;
}
#dl2-menugroup .popupbody input.button{
float:{vb:stylevar right};
top:0;
}
then the downloads2_file template in the downloads template group
should be
Code:
<vb:if condition="$show['candelete'] OR $show['candeletecomment']">
<script type="text/javascript">
<!--
function delete_it()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
if (confirm('{vb:rawphrase dl2_delete_confirmation}'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
</vb:if>
<vb:if condition="$show['errors']">
<div class="blockbody errorblock">
<h2 class="blockhead">{vb:rawphrase dl2_errors_occured_when_submitted}:</h2>
<ul class="blockrow error">
{vb:raw errorlist}
</ul>
</div>
</vb:if>
{vb:raw template_hook.dl2_file_start}
<h2 class="blockhead">{vb:raw file.title}</h2>
<div class="blockbody">
<div class="blocksubhead">
<div class="fly">
<vb:if condition="1 == 1">
<div class="popupmenu" id="filerating">
<h6><a class="popupctrl" href="javascript://" id="filerating_current"><vb:if condition="$show['filerating']"><img class="inlineimg" src="{vb:stylevar imgdir_rating}/rating-15_{vb:raw file.rating}.png" alt="" /><vb:else />{vb:rawphrase dl2_rate_file}</vb:if></a></h6>
<form action="downloads.php?do=file&id={vb:raw file.id}" method="post" id='file_filerate_form'>
<ul class="popupbody popuphover">
<vb:if condition="$show['ratefile']">
<li><label for="r5"><span class="rating r5">
{vb:stylevar dirmark}<input type="radio" name="vote" value="5" id="r5" {vb:raw votechecked.5} tabindex="20" /> {vb:rawphrase excellent}
</span></label></li>
<li><label for="r4"><span class="rating r4_{vb:stylevar right}">
{vb:stylevar dirmark}<input type="radio" name="vote" value="4" id="r4" {vb:raw votechecked.4} tabindex="21" /> {vb:rawphrase good}
</span></label></li>
<li><label for="r3"><span class="rating r3_{vb:stylevar right}">
{vb:stylevar dirmark}<input type="radio" name="vote" value="3" id="r3" {vb:raw votechecked.3} tabindex="22" /> {vb:rawphrase average}
</span></label></li>
<li><label for="r2"><span class="rating r2_{vb:stylevar right}">
{vb:stylevar dirmark}<input type="radio" name="vote" value="2" id="r2" {vb:raw votechecked.2} tabindex="23" /> {vb:rawphrase bad}
</span></label></li>
<li><label for="r1"><span class="rating r1_{vb:stylevar right}">
{vb:stylevar dirmark}<input type="radio" name="vote" value="1" id="r1" {vb:raw votechecked.1} tabindex="24" /> {vb:rawphrase terrible}
</span></label></li>
<li class="formsubmit"><input type="submit" class="button" value="{vb:rawphrase vote_now}" tabindex="25" /></li>
<vb:else />
<li><label>{vb:rawphrase dl2_already_rated_this_file}</label></li>
</vb:if>
</ul>
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="file" />
<input type="hidden" name="id" value="{vb:raw file.id}" />
</form>
</div>
</vb:if>
</div>
<span>{vb:rawphrase dl2_uploaded_by} <a href="{vb:link member, {vb:raw file}, null, 'uploaderid', 'uploader'}">{vb:raw file.uploader}</a> - {vb:raw file.dateadded}</span>
</div>
<div class="blockrow">
<table width="100%" class="file_summary">
<tr>
<td width="75%">
<table class="dl2stats">
<tr>
<td class="dl2name"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase dl2_author}" /> {vb:rawphrase dl2_author}</td>
<td>{vb:raw _author}</td>
</tr>
<tr>
<td class="dl2name"><img src="{vb:stylevar imgdir_misc}/legend.png" alt="{vb:rawphrase dl2_file_size}" /> {vb:rawphrase dl2_file_size}</td>
<td>{vb:raw file.size}</td>
</tr>
<tr>
<td class="dl2name"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase dl2_downloads}" /> {vb:rawphrase dl2_downloads}</td>
<td>{vb:raw file.totaldownloads}</td>
</tr>
</table>
<vb:comment><dl class="dl2stats">
<dt><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase dl2_author}" /> {vb:rawphrase dl2_author}</dt><dd>{vb:raw _author}</dd>
<dt><img src="{vb:stylevar imgdir_misc}/legend.png" alt="{vb:rawphrase dl2_file_size}" /> {vb:rawphrase dl2_file_size}</dt><dd>{vb:raw file.size}</dd>
<dt><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase dl2_downloads}" /> {vb:rawphrase dl2_downloads}</dt><dd>{vb:raw file.totaldownloads}</dd>
</dl></vb:comment>
</td>
<td align="{vb:stylevar right}">
<a class="newcontent_textcontrol" href="downloads.php?{vb:raw session.sessionurl}do=file&id={vb:raw file.id}&act=down&actionhash={vb:raw bbuserinfo.securitytoken}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if> title="{vb:rawphrase dl2_download} {vb:raw file.title}" style="float:{vb:stylevar right}"><span>+</span> {vb:rawphrase dl2_download}</a>
</td>
</tr>
</table>
</div>
</div>
<div style="border-top: 1px dotted #425769; clear:both; padding-top: 5px;">
<blockquote class="restore">
{vb:raw file.description}
</blockquote>
<div class="textcontrols" align="{vb:stylevar right}">
<br />
<vb:if condition="$file['modqueue']">
<img class="inlineimg" src="{vb:stylevar imgdir_misc}/moderated_sm.png" alt="{vb:rawphrase dl2_moderated_file}" title="{vb:rawphrase dl2_moderated_file}" />
</vb:if>
<vb:if condition="$show['canedit']">
<a href="downloads.php?{vb:raw session.sessionurl}do=edit&id={vb:raw file.id}">{vb:rawphrase dl2_edit}</a>
</vb:if>
<vb:if condition="$show['candelete']">
<a href="downloads.php?{vb:raw session.sessionurl}do=manfiles&id={vb:raw file.id}&act=delete&actionhash={vb:raw bbuserinfo.securitytoken}" onclick="return delete_it()">{vb:rawphrase dl2_delete}</a>
</vb:if>
<vb:if condition="$show['canapprove']">
<vb:if condition="$file['pin'] == 0">
<a href="downloads.php?{vb:raw session.sessionurl}do=manfiles&id={vb:raw file.id}&redir=file&act=pin&actionhash={vb:raw bbuserinfo.securitytoken}">{vb:rawphrase dl2_pin}</a>
<vb:else />
<a href="downloads.php?{vb:raw session.sessionurl}do=manfiles&id={vb:raw file.id}&redir=file&act=unpin&actionhash={vb:raw bbuserinfo.securitytoken}">{vb:rawphrase dl2_unpin}</a>
</vb:if>
<vb:if condition="$file['modqueue'] == 1">
<a href="downloads.php?{vb:raw session.sessionurl}do=manfiles&id={vb:raw file.id}&redir=file&act=approve&actionhash={vb:raw bbuserinfo.securitytoken}">{vb:rawphrase dl2_approve}</a>
<vb:else />
<a href="downloads.php?{vb:raw session.sessionurl}do=manfiles&id={vb:raw file.id}&redir=file&act=unapprove&actionhash={vb:raw bbuserinfo.securitytoken}">{vb:rawphrase dl2_unapprove}</a>
</vb:if>
</vb:if>
<a href="downloads.php?{vb:raw session.sessionurl}do=report&fileid={vb:raw file.id}">{vb:rawphrase dl2_report_file}</a>
</div>
</div>
{vb:raw template_hook.dl2_file_end}
<vb:if condition="$vboptions['dl2allowimages']">
<h2 class="blockhead" id="below_files_2x">{vb:rawphrase dl2_images}</h2>
<div class="blockbody">
<div id="dl2images">
<div class="blockrow">
<vb:if condition="$dimages">
<ul>
{vb:raw dimages}
</ul>
<vb:else />
{vb:rawphrase dl2_none}
</vb:if>
</div>
</div>
<div class="cleardiv"></div>
<vb:if condition="$show['uploadimage']">
<h3 class="blocksubhead">{vb:rawphrase dl2_upload_an_image}</h3>
<div class="blockrow">
<form enctype="multipart/form-data" method="post" action="downloads.php?do=file&id={vb:raw file.id}">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<vb:comment><input type="hidden" name="MAX_FILE_SIZE" value="{vb:raw inimaxattach}" /></vb:comment>
<input type="file" class="primary textbox" name="image" />
<input type="submit" class="button" name="submit" value="{vb:rawphrase dl2_add_image}" />
</form>
</div>
</vb:if>
</div>
</vb:if>
<vb:if condition="$show['lightbox']">
<!-- lightbox scripts -->
<script type="text/javascript" src="clientscript/vbulletin_lightbox.js?v={vb:raw vboptions.simpleversion}"></script>
<script type="text/javascript">
<!--
vBulletin.register_control("vB_Lightbox_Container", "dl2images", {vb:raw vboptions.lightboxenabled});
//-->
</script>
<!-- / lightbox scripts -->
</vb:if>
{vb:raw template_hook.dl2_file_after_images}
<vb:if condition="$vboptions['dl2allowcomments']">
<br />
<vb:if condition="$pagenav">
<div id="above_files" class="floatcontainer">
<div id="pagination_top" class="pagenavright">
{vb:raw pagenav}
</div>
</div>
</vb:if>
<h2 class="blockhead">{vb:rawphrase dl2_comments}</h2>
<div class="blockbody">
<table width="100%">
<vb:if condition="$comments">
{vb:raw comments}
<vb:else />
<tr>
<td colspan="2" class="blockrow">{vb:rawphrase dl2_no_comments_yet}</td>
</tr>
</vb:if>
</table>
</div>
<vb:if condition="$show['pagenav']">
<div id="below_files">
<div id="pagination_bottom" class="pagenavright">
{vb:raw pagenav}
</div>
</div>
</vb:if>
<div class="cleardiv"></div>
<vb:if condition="$show['cancomment']">
{vb:raw vBeditTemplate.clientscript}
<script type="text/javascript" src="clientscript/vbulletin_quick_reply.js?v={vb:raw vboptions.simpleversion}"></script>
<br />
<form action="downloads.php?do=file&id={vb:raw file.id}" method="post" name="vbform" id="qrform" class="block" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(0, 0)">
<h2 class="blockhead commenthead"><img alt="{vb:rawphrase dl2_add_new_comment}" src="{vb:stylevar imgdir_misc}/comment.png" title="{vb:rawphrase dl2_add_new_comment}" /> {vb:rawphrase dl2_add_new_comment}</h2>
<div class="wysiwyg_block">
<div class="blockbody formcontrols">
<div class="blockrow">
{vb:raw messagearea}
</div>
</div>
<div class="blockfoot actionbuttons">
<div class="group">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="submit" class="button" name="submit" value="{vb:rawphrase dl2_post_comment}" />
</div>
</div>
</div>
</form>
<script type="text/javascript">
<!--
// initialize quick reply
qr_init();
//-->
</script>
</vb:if>
</vb:if>
{vb:raw template_hook.dl2_file_after_comments}
<br />
<div class="pagenavright">
<form action="downloads.php" method="get">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="do" value="cat" />
<select name="id" onchange="this.form.submit();">
{vb:raw category_jump}
</select>
{vb:raw gobutton}
</form>
</div>
|
Hippy, thank you very much, now, all ok!
|