MyBB Hacks

Full Version: Download System
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
(11-21-2012 06:00 PM)Sama34 Wrote: [ -> ]xThreads attachments can be downloaded by everyone. The following attempts to do what you are asking for, but as you can read, it is not 100% effective.
http://mybbhacks.zingaburga.com/showthread.php?tid=1376
Hiding the link and randomising it, is pretty much 100% effective.
The above is a bit different in that it allows you to actually give out a 'permalink' to a file.
thanks yumi...
Hope RateU doesn't mind me sharing this, but I have a simple modification that enables a Moderator to mark a download as "Featured". I use the term "Plugin" for "Download" in this example, and you need to change the fid in the filter.

1. Create New Thread Field.
Name: Featured
Key: featured
Applicable Forums: (Choose your Downloads forum)
Hide Thread Field: Tick both options
Input Field Type: Listbox
Editable By/Required Field: Administrators
Values List:
Quote:No
Yes
Field Input Height: 1
Display Format:

PHP Code:
<span title="This Plugin has been chosen as a featured download. This means that it is one of the best Plugins available on our site."><a href="forumdisplay.php?fid=15&filtertf_featured=Yes">(Featured Plugin)</a></span>

Remember to change the fid and the term "Plugins".
Filtering Mode: Exact Match

2. Create New Custom Moderation Tool
Name: Mark as Featured
Description: Mark this Plugin as a Featured Plugin
Available in Forums: Select Forums > (Our Download Forum)
Modify Custom Thread Fields: featured=Yes

3. Template Edits
Open up dld_forumdisplay_threadlist Add {$GLOBALS['threadfields']['featured']} to it where you want this to display. I prefer this:

PHP Code:
<div class="author smalltext">{$lang->author}: {$thread['profilelink']} {$GLOBALS['threadfields']['featured']}</div>


There you have it, you now have a functioning Featured System. If you want to be able to unmark a download as Featured, create a new Moderation Tool that sets featured to No.

Can't you stick threads?
I guess so, but the way I have my Downloads system set up, it's not very easy to tell Stuck threads apart. I guess it's just personal preference - most full fledged downloads systems I've used - and not just simple ones, but ones that took either xThreads or extensive PHP knowledge to create - have this sort of feature installed.
I had something similar to this in the early days of leefish but I took it out as I don't like the featuring concept Biggrin
Thanks bro, this is awesome just the thing i wanted. But, i dont want fupload and fscr to have upload via url functionality so how can i remove upload via url?
(02-13-2013 07:49 PM)Sohil876 Wrote: [ -> ]how can i remove upload via url?

Edit MYBB_ROOT/cache/xthreads.php file.
Find this code:

PHP Code:
define('XTHREADS_ALLOW_URL_FETCH', true);

Change it to:

PHP Code:
define('XTHREADS_ALLOW_URL_FETCH', false);

Thanks bro, that did it Smile
Could anybody update this to work with Newpoints and give it the correct security to prohibit anybody with the specified Newpoints for each download to download the file? This is very important to me for my new forum and I'm willing to donate a bit if somebody can do it. Someone made a download system for me once before but unfortunately it worked rather primitively and with attachments, which only worked for files up to a certain size, despite specifying a higher upload size in PHP.

Thanks.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Reference URL's