The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
DownloadsII Details »» | |||||||||||||||||||||||||||||||||||||||||
DownloadsII
DownloadsII is a download database that integrates into vBulletin. It allows you to upload files, add images to them, create categories, link to external files - and more. It is very flexible and has many options. It's also coded 100% XHTML 1.0 Transitional valid, just like vBulletin itself. Instructions & Support Requires vBulletin 4.0.4 or higher. Not fully compatible with lower vB 4 versions. It works fine with both the new editor in vB 4.1.4 or higher and the old one in previous vB versions. Read the instructions in the next two posts before installing/upgrading this mod! You can find an installation/upgrade manual in the zip package (Readme.txt). I try to answer most questions asked in this thread. Please don't send any pm's if I don't ask for them. Don't forget to click the install link, so you will receive important update notifications. Screenshots & Live demo At the bottom of this post, you can find some screenshots of the front-end and back-end (AdminCP part) of the DownloadsII software. You can find a live demo on my own site: Minatica.be Downloads (Dutch). Though keep in mind that we are running a restyled and modified version of it. Changelog (version 6.0.9) Jelle
Help!!! I can't upload large files?? This is probably the most asked question. It's mostly caused by some default PHP settings: check "PHP Max Post Size" and "PHP Maximum Upload Size" at your AdminCP home. Then have a look at this post for the solution to up these values. Also have a look at this post at vB.com (but ignore the MySQL part as DownloadsII is only using the file system). Add-ons There are currently no official add-ons. Unofficial add-ons are listed below. Download Now
Screenshots
Show Your Support
|
26 благодарности(ей) от: | ||
andro140, belbos, chatpalace24, Cruncher Pete, DEAL321, elwizard, erosolmi, gec100, Hippy, KorvinGump, Macgiber, Mopar1973Man, MusiquesElectro, mygitar, Ricsca, romaszek, sadiq6210, snooper2, spillage, SSG.D, stationar, steviewonder44, TeknoSounds, TZ. |
Comments |
#2012
|
|||
|
|||
Quote:
I go to edit templates, I search template Downloads2 and I view that, the original template is very different to your css posted, very very different, its correct? And the file downloads2_file.php, is for replace a template downloads2_file? Again, sorry for this question... Thanks! |
#2013
|
||||
|
||||
I posted two template edits.iv should of included there names , so you good. I'd something goes wrong revert it back. There was a few changes/ recoded so they are some things that will be different. But there will be some unchanged.
|
#2014
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/attachmen...5&d=1337812414 these are the 2 templates that will fix the issues and updates the code to the current version of vb |
#2015
|
|||
|
|||
the files are accessible even from the outside of the forum. i.e. users dont have to click download button, instead the can goto http://mysite.com/forums/downloads/video/
to get the file. How to avoid this? please help me.. |
#2017
|
|||
|
|||
thank you so much Hippy. problem solved.:up::up:
|
#2018
|
||||
|
||||
That only partially solves the problem in that it doesn't give them a listing of what's in the directory, but if they know the exact file name on the server they can still access it without going through the downloadII interface. The only way around it is to make the directory where the files are stored not in the your web root.
For example on the server I administer the web root is /var/www/, but the files are stored in /var/local/userfiles/downloads/, so there's no way for those files to ever be accessed except through the downloadsII interface. |
#2019
|
|||
|
|||
Hippy, you always reply with help and attention, thank you very very much!!
Ok, I go for steps: Quote:
I continue view very differences in one template, the template downloads2.css, in my list of template appears "DOWNLOADS2", well, in thie template my first code is this: Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}"> <head> {vb:raw headinclude} <title><vb:if condition="$dlcustomtitle">{vb:raw dlcustomtitle} - </vb:if>{vb:rawphrase downloads2} - {vb:raw vboptions.bbtitle}</title> <script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script> I continue with the doubt of this question, the other template, downloads2_file, all ok. Thank you very much! |
#2020
|
||||
|
||||
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; } 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> |
#2021
|
|||
|
|||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|