News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Download System

Started by SMFHacks.com Team, October 31, 2007, 06:55:37 PM

Previous topic - Next topic

headkaze

First of all thanks for the great work on this mod vbgamer45!

I have a question and a request so first onto the question.

How do I upgrade from 1.1.4.1 to 1.1.5? I have replaced the files manually and that works but I'm sure that is not the correct procedure. Do I uninstall 1.1.4.1 and then install 1.1.5? Will the database be intact?

Onto my request. Say I have a category set to sort in ascending order, if you have 2 pages of downloads when you click on the second page it will actually display the first page of downloads in descending order. This confuses people into thinking there is only one page of downloads! Since the default for the category is set to ascending it would make sense that clicking on page 2 for the first time would sort it that way. I hope you find the time to fix this :)

Thanks again!

vbgamer45

Quote from: headkaze on January 16, 2009, 03:36:58 PM
First of all thanks for the great work on this mod vbgamer45!

I have a question and a request so first onto the question.

How do I upgrade from 1.1.4.1 to 1.1.5? I have replaced the files manually and that works but I'm sure that is not the correct procedure. Do I uninstall 1.1.4.1 and then install 1.1.5? Will the database be intact?

Onto my request. Say I have a category set to sort in ascending order, if you have 2 pages of downloads when you click on the second page it will actually display the first page of downloads in descending order. This confuses people into thinking there is only one page of downloads! Since the default for the category is set to ascending it would make sense that clicking on page 2 for the first time would sort it that way. I hope you find the time to fix this :)

Thanks again!
To upgrade you can uninstall then reinstall the latest version

The second issue sounds like a bug will look into it
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

NukeGaming

Hello guys i have added the download system to my forums but i dont know what must i put to show the download page .

Can anyone help  cause theme my forum is DILBER MC and i dont know and version i using is SMF 1.1.7 and download only show in default theme and i want show download page in DILBER MC please anyone help on this and i apreciate.

vbgamer45

You need to edit the index.template.php and add a link to the downloads section.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

codnerd

VBGamer. I am in the processing on modding your downloading system to add a cueing system to it, so it will only allow a certain amount of users to download at one time, and the other downloaders will see a time limit. After that, I will be allowing people to upload pictures when uploading their files.

Can I give the modifyed files to the public that I make? (I don't want any credit for this, I just want to help all the hundreds of people out there that want the screenshots to be added)

vbgamer45

I generally do not allow that since that creates a different version and harder for me to support. For your own site you can do anything you want.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

codnerd


SA™

can you help with this code


im trying to make a block to display the top downloads and latest dowbloads


this is the code i have so far


echo '<table bgcolor="" width="100%">
  <tr>
    <td>Top 10 Downloads</td>
    <td>10 New Downloads</td>   
  </tr>';

$latest = array();
$top = array();
$request = $smcFunc['db_query']('', "SELECT f.ID_FILE, f.id_member, f.date, f.ID_CAT, f.title AS ftitle, f.totaldownloads,
c.title, m.real_name, m.id_member AS mid_member
FROM {$db_prefix}down_file AS f, {$db_prefix}down_cat AS c, {$db_prefix}members AS m
WHERE f.ID_CAT = c.ID_CAT
AND f.approved = '1'
AND f.id_member = m.id_member
ORDER BY f.ID_FILE DESC
LIMIT 5");
while($row = $smcFunc['db_fetch_assoc']($request)) {
$latest[] = '<a href="'.$scripturl.'?action=view;id='.$row['ID_FILE'].'">'.$row['ftitle'].'</a> ('.timeformat($row['date']).')';
}

$request = $smcFunc['db_query']('', "SELECT f.ID_FILE, f.id_member, f.date, f.ID_CAT, f.title AS ftitle, f.totaldownloads,
c.title, m.real_name, m.id_member AS mid_member
FROM {$db_prefix}down_file AS f, {$db_prefix}down_cat AS c, {$db_prefix}members AS m
WHERE f.ID_CAT = c.ID_CAT
AND f.approved = '1'
AND f.id_member = m.id_member
ORDER BY totaldownloads DESC
LIMIT 10");
while($row = $smcFunc['db_fetch_assoc']($request)) {
$top[] = '<a href="'.$scripturl.'?action=downloads;sa=view;id='.$row['ID_FILE'].'">'.$row['ftitle'].'</a> ('.timeformat($row['date']).')';
}

$max_count = max(array(count($top), count($latest)));
for($i = 0; $i < $max_count; $i ++);
{
echo '<tr><td>',isset($top[$i]) ? $top[$i] : '','</td></tr>';
echo '<tr><td>',isset($latest[$i]) ? $latest[$i] : '','</td></tr>';
}
echo '
</table>';


problem is it isbt outputing nothing theres no errors  eaither can you point me in the right direction please thanks
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

vbgamer45

Change this to

{$db_prefix}down_file AS f, {$db_prefix}down_cat AS c, {$db_prefix}members AS m

To

({$db_prefix}down_file AS f, {$db_prefix}down_cat AS c)
LEFT JOIN {$db_prefix}members AS m ON (f.id_member = m.id_member)
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

SA™

that gives

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`sleepy`.smf_down_file AS f, `sleepy`.smf_down_cat AS c)
LEFT JOIN `sleepy`.smf_' at line 3
File: \htdocs\index.php
Line: 404

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

jayc7176

This is the Best! Such nicely Done. Many Thanks for this Great Mod.
I cannot teach anybody anything, I can only make them think -  Socrates™ 469 BC

SMF- 1.1.5

sgandtg

Is it possible to restrict people to only upload to one folder/section?


haito

www.japanesia.co.id | Portal Berita & Komunitas Untuk Kamu yang Suka Jepang

Destruction

Some1 knows how i can delete more then one Download at once? ( without deleting the whole category )

hartiberlin

#675
Hi,
nice mod,
I installed it just on my German language SMF 2.0B4 and PortaMX
www.overunity.de
forum and added the modifications into the Who.german-utf8.php and
Modifications.german-utf8.php , etc.. files

But does somebody of you have already translated the English control  texts of this Mod
to German-utf8 language ?
If yes, please post these files.

Also, where is a documentation how to use this mod ?
I don´t see right now, where I can put up a new category and
where all these files are exactly stored, also if you
enable the option
Enable multiple folders for downloads storage

Will there be multiple folders created in my overunity.de/download/

folder then ?

Would be nice to read a PDF documentation fileabout the MOD,
if that exists ?

Many thanks in advance.

Regards, Stefan.

vbgamer45

There currently is no documentation.
Categories are created at http://www.yourforum.com/index.php?action=downloads
Multiple file storage creates additional folders under downloads folder to store files
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Destruction

Quote from: Destruction on January 25, 2009, 04:33:14 PM
Some1 knows how i can delete more then one Download at once? ( without deleting the whole category )

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Destruction

Could you maybe do "Checkboxes" there so i can delete more then 1? :/ :/
Regards...

Advertisement: