Download System

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

Previous topic - Next topic

DJ Omnimaga

Quote from: vbgamer45 on June 11, 2010, 09:24:24 AM
Not planning to do so I don't like post count based permissions it gets really odd
I hope you eventually change your mind. I think post count permissions would be nice. In my case it would filter some of the thieves out of my music download section.

DarkflameQ

Trying to add 5 more stars to the download system to make a total of 10 (5 is not enough to get a proper rating in my opinion)

The existing code suggests that the value can be raised to 100:

"$rating =($context['downloads_file']['rating'] / ($context['downloads_file']['totalratings']* $max_num_stars) * 100);"

I've set $max_num_stars = 10 but i can't get the database to accept more than 5, if i submit more than 5, it submits a value of 3.

Any suggestions?

vbgamer45

Check Downloads.php in the sources folder that controls the rating there is a case statement of 1 to 5 you need to expand it to 10.
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

DarkflameQ

Checking.

Thanks a million!

Always a prompt and useful response! :D


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


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

DarkflameQ

Thanks!

One last thing before i go, as the admin of my site, i upload and approve every download that is not my own, unfortunately the default setting is that the owner of a upload cannot rate their own download (for obvious reasons) but this leaves me the inability to rate other peoples work

Can this limitation be removed?

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

Dave009

Thanks VbGamer i will look now maybe i missed it lol

*EDIT*

Yea i did miss it lol
Thanks Again


DarkflameQ

We have broken one thing by introducting the new rating process, we naturally had to reset the existing rankings on all the downloads since they were all 5 stars and below but since we have done that we are missing the rankings on the main download page:



Any idea what we did that would remove these completely? (we placed new votes on the downloads on that front page, they just ain't showing)

vbgamer45

There should be a GetStarsByPercent function in downloads or downloads.tmplate.php
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

DarkflameQ

Quote from: vbgamer45 on September 05, 2010, 09:11:33 AM
There should be a GetStarsByPercent function in downloads or downloads.tmplate.php

All fixed, hopefully the last thing we need to change from 5 stars to 10, cheers again! :)

Hack-King


vbgamer45

Visit the main downloads page action=downloads and click on the add category link
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

ɔɔɔɔɔɔuɥoɾ

Would it be a real pain to add a progress bar for uploading files?

Could you add one?


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

vbgamer45

Have to read up on that. I could use a javascript based upload system but not sure how well that works with large files also there is a progress bar php component but would rather avoid that.
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

ɔɔɔɔɔɔuɥoɾ

Quote from: vbgamer45 on September 06, 2010, 06:14:12 PM
Have to read up on that. I could use a javascript based upload system but not sure how well that works with large files also there is a progress bar php component but would rather avoid that.

Well after figuring out my hosts way of PHP configuration, I managed to change upload max to 120 MB, I used this mod to upload a 100MB file, for testing, it worked perfectly, but I was staring at a "appears to be doing nothing, but its actually uploading the file" page for a while, a progress bar would be superb for this part.

I don't know if this is easy or even possible, whats your opinion on a download quota for members or member groups, either daily weekly or just one solid download amount. Would that be possible?
I looked for it, but I only found an upload quota.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

DarkflameQ

An upload status bar is always good, in the mean time, i use Opera to upload files outside of FTP as it shows more information than any other browser when it comes to transferring files (it has its up transfer bar) :P

Advertisement: