Thread: Major Additions - DownloadsII
View Single Post
  #722  
Old 11-03-2006, 07:11 PM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337
1. I meant posting comments not files sorry. eg. close the thread. I want to close the file, so they can still download but not post comments.

2. Okay cool and to help out, this site is using DownloadsII it appears and they have implemented pretty much everything im looking for, so maybe if you take a look at this site, it will help you to implement some of the features.
Code:
http://www.mpcdownloads.com/forums/downloads/Age-of-empires/HODXP.zip/3957.html
This link above will show you the disclaimer they have integrated somehow.

**I also was wondering if you could possibly make the links either like they are and vbseo compliant as well. If you need to know more on this let me know, as a lot more people are using vbseo it would be great to have it default.** (The above link has been made like that because of vbseo)

3. That would be great. It would really help out, and when you do it, it may be wise to have it usergroup permissioned as well. eg. only mods can change the status.

4. I was trying to get a search box like the one I showed you in the pic with the drop down menu with those extra options. The one in the above link works. on my site www.gamerzneeds.net/forums/files.html the search works, but the drop down menus do not work. here is the code I used.
Code:
<!-- BEGIN TEMPLATE: searchbox -->

<table cellspacing="3" width="100%"><tbody><tr><td class="tborder"><table class="tborder" align="center" cellpadding="5" cellspacing="0" width="100%">
 <tbody><tr>
  <td class="thead" colspan="2" align="center"><span class="smallfont">Search Downloads</span></td>
 </tr>
 <tr>
  <td style="background-color: rgb(255, 255, 255); background-position: right center; background-repeat: repeat-y;" align="center" background="images/newskin/misc/rowbg3.jpg">
<form action="./downloads.php?do=search" method="post">
         <input type="text" name="query" maxlength="75" size="20" />
         <br />
	<p><select name="where"><option value="1">Title</option><option value="2">Description</option><option value="3">Author</option><option value="4" selected="selected">Search All</option></select>&nbsp;	
	<input type="submit" name="submit" value="{$vbphrase['ecdownloads_search']}" /></p></form>
</td></tr>
</tbody></table></td></tr></tbody></table>



<!-- END TEMPLATE: searchbox -->
Also What is the code you have used to create the boxes around things eg. latest files. As that is the box I would like to get around the search box.

5. Thanks

6. Thanks, although that may be a possibility for now. Once I start adding around 50 categories I think it will be a bit messy maybe.
Is there any easier way? or a possibility of it being easier in the next version?


Thanks for your reply and hope im not being to much trouble.
1. I'm sorry but this isn't possible at the moment.
2. I had a different idea of what you meant (I thought you meant a full page with a disclaimer and such a checkbox, but you mean it on the same page). Just replace the download buttons with a code like this:
Code:
<script type="text/javascript">
<!--
function checkCheckBoxes(disclaimercheck)
{
	if (disclaimercheck.disclaimer.checked == false)
	{
		alert ("You have to agree to the disclaimer if you want to download.");
		return false;
	}
	return true;
}
//-->
</script> 
<form name="disclaimercheck" method="get" action="downloads.php" onsubmit="return checkCheckBoxes(this);">
	<input type="hidden" name="do" value="file">
	<input type="hidden" name="id" value="$file['id']">
	<input type="hidden" name="act" value="down">
	<input type="checkbox" name="disclaimer"> I have read and understand the <a href="http://www.yoursite.com/index.php?page=disclaimer">Disclamer</a>.
	<br /><input type="submit" class="button" value="Download">
</form>
4. This site isn't running DownloadsII, but the older ecDownloads of Ron1n (a modified one). Such dropdowns won't work, because there is no option to do such search actions (you can only do a general search at the moment). The next big release will contain a more advanced search system, this is on our todo list.
6. The way to get around this requires modifying the DownloadsII PHP code a bit harder. Normally I've got some time this weekend, so I will try to send you a pm with some custom code to do it
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01231 seconds
  • Memory Usage 1,793KB
  • 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
  • (3)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