News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Download System

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

Previous topic - Next topic

promonkey

i no stupid question but where the hell is downloads.template.php
Checkout My Forum: www.TalkAppliance.Co.Uk

vbgamer45

Community Suite for SMF - Grow your forum with 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

promonkey

i have a downloads2.template.php file is that the same thing and if so i cant find the line to edit to add image for download.

Thanks
Checkout My Forum: www.TalkAppliance.Co.Uk

vbgamer45

Yes that is the same thing try searching for similiar code if you can
Community Suite for SMF - Grow your forum with 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

promonkey

could i be realy cheeky and ask u if you can find the code ? cos i cnt :/ also if i buy pro download system can i easly move files over?

Thanks
Checkout My Forum: www.TalkAppliance.Co.Uk

vbgamer45

Your issue for seperate permissions wouldn't be in that file it would be Sources/Downloads2.php the only think I could do right now would be move the viewdownload permission from the download page to the downloadfile function. So anyone could view a download page but depending on your permissions would only be able to download that file if part of right group.

Downloads Pro is instant upgrade and transfers all files/settings from the lite edition.
Community Suite for SMF - Grow your forum with 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

promonkey

thanks i will get the pro next week once ive been paid, sorry i was meaning i wonted to add a download button instead of text

http://talkappliance.co.uk/imgup/image_files/download-now.gif

is tht possible in the file?


Thanks
Checkout My Forum: www.TalkAppliance.Co.Uk

vbgamer45

Updated file attached
Community Suite for SMF - Grow your forum with 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

promonkey

herrm i upload this file to themes/core/ and it doesnt add the image :S im i putting it in the correct place? sorry im a complete noob :)
Checkout My Forum: www.TalkAppliance.Co.Uk

vbgamer45

Community Suite for SMF - Grow your forum with 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

Inti31

Quote from: vbgamer45 on April 16, 2012, 04:02:26 PM
Have it build in Downloads Pro
But here is similiar code

THX very much
if you want to make it more professional for us "Non-Pro-Users"...

echo '<br /><br /><a href="' . $scripturl . '?action=downloads;sa=downfile&id=', $context['downloads_file']['ID_FILE'], ';t=' . time() .'" target="_blank"><img src="' . $settings['images_url'] . '/download.png" alt="' .   $txt['txt_missingdlpic'] . '" title="' .   $txt['txt_dlnow'] . '" width="150" /></a>';


so you just need this in Modifications.<language(-utf8).php>

$txt['txt_dlnow'] = download now!';
$txt['txt_missingdlpic'] = DOWNLOAD NOW!';


the width="150"- parameter  is just for me to resize my download.png which is located in "Themes\default\images"

When done it looks like this (see att'ed file)

cheers Inti31
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

MESWEB

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

vbgamer45

It depends requires a server extension in order for it to work properly.
Community Suite for SMF - Grow your forum with 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

MESWEB

How to set default icon in posts? When I upload file i have new post with link and "standard" icon. I would like to select the icon for the board.

vbgamer45

Quote from: MESWEB on April 23, 2012, 06:27:53 AM
How to set default icon in posts? When I upload file i have new post with link and "standard" icon. I would like to select the icon for the board.
There is a function called in Sources/Downloads.php search for createpost and you can edit the icon used to make the posts.
Community Suite for SMF - Grow your forum with 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

Abhay Trivedi

i am stuck
i added this mod but now i want to remove this mod but its not showing up in installed packages list :(
Scubix Tech Forum [nofollow] for Windows Phone 7 , Windows 8 and Windows for PC Stuff.

MESWEB

I have upload mp3 - how to make preview file in download?

vbgamer45

Community Suite for SMF - Grow your forum with 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

MESWEB

I mean preview of the file. When I upload any file the file name is changed like this: 1_16_04_12_1_05_50 etc. This files are mp3 that would be better if any can listen file before download it.

vbgamer45

Community Suite for SMF - Grow your forum with 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

Advertisement: