News:

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

Main Menu

SMF Downloads Directory Lite (Downloads System)

Started by Nibogo, June 17, 2011, 11:46:20 PM

Previous topic - Next topic

T3CHN0

Hello.
Got a problem but only with firefox 8 tested on ie and chrome as well but they work fine
downloading files only in ff8 the files download as index.php

this was happening with all the downloads on my forum until I installed this following mod. click on link
http://www.simplemachines.org/community/index.php?topic=454734.msg3214329#msg3214329

now only SMF downloads is doing it. is there somewhere in the files of this mod
I can apply the same edits to correct this problem?


T3CHN0

Sweet,

just replacing the bit of the code with this bit

Find

        // Different browsers like different standards...
        if ($context['browser']['is_firefox'])
            header('Content-Disposition: ' . $disposition . '; filename*="UTF-8\'\'' . preg_replace('~&#(\d{3,8});~e', '$fixchar(\'$1\')', $utf8name) . '"');


Replace with

// Different browsers like different standards...
    if ($context['browser']['is_firefox'])
        header('Content-Disposition: ' . $disposition . '; filename*=UTF-8\'\'' . rawurlencode(preg_replace('~&#(\d{3,8});~e', '$fixchar(\'$1\')', $utf8name)));



Now all my downloads are downloading with there correct name again in FF8
Thankyou

Texan78

This is exactly what I am looking for and looks like I will get the Pro. Just curious though does it integrate with the Core theme or does it just come with a stock theme?

Thanks

pixeleyes

Got an error while removing or approving any download.

Fatal error: require_once() [function.require]:
Failed opening required '/forum/Sources/' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/forum/Sources/DownloadsDir.php on line 94

here is 94 code:
     require_once($sourcedir . '/' . $subActions[$_REQUEST['sa']][0]);
       $subActions[$_REQUEST['sa']][1]();
       $sa = $_REQUEST['sa'];

Burke ♞ Knight

I have it set to post a topic in certain boards when downloads are added.
However, if the download gets deleted, it also deletes the topic from the forum.
Is there any way to set this so it does not delete the forum topic and all replies?
Thank you.

Nibogo

Quote from: BurkeKnight on July 23, 2012, 06:50:56 AM
I have it set to post a topic in certain boards when downloads are added.
However, if the download gets deleted, it also deletes the topic from the forum.
Is there any way to set this so it does not delete the forum topic and all replies?
Thank you.

Are you using Lite (this) or Pro version?

Burke ♞ Knight



Burke ♞ Knight

Sorry. Wrong one...
When did search through the mods, must have clicked the wrong one.
Sorry about that.


Texan78

I have it set to let guests view downloads, but I don't want them to be able to download. I want them to have to register in order to download. How can I make it where guests can't download?

-Thanks

Texan78

Quote from: Texan78 on August 13, 2012, 07:25:54 PM
I have it set to let guests view downloads, but I don't want them to be able to download. I want them to have to register in order to download. How can I make it where guests can't download?

-Thanks

Never mind I have it sorted now.

I found this...

echo '<a href="' . $scripturl . '?action=downloads;sa=downfile&id=', $context['downloads_file']['ID_FILE'], '"><img src="', $settings['default_theme_url'], '/images/buttons/download.png" border="0"></a>';

and changed it to this...

// Download button for registered members
if ($context['user']['is_logged'])
echo '<a href="' . $scripturl . '?action=downloads;sa=downfile&id=', $context['downloads_file']['ID_FILE'], '"><img src="', $settings['default_theme_url'], '/images/buttons/download.png" border="0"></a>';


               // Ask guest to login or register to download
if ($context['user']['is_guest'])

               echo ' <div class="information_fatal_error">', $txt['download_button_error'], '</div>';


Then added the text to the downloads language file.

So now I have if user is logged in....



And if user is NOT logged in it shows this.




So now that little project is done. One other thing I was liking to do was set default title to links when the thread is created. When a new download is submitted it creates a topic in a certain section of the forum I choose so there is support for that download. When it creates the link to the download in the topic it is the full URL. How would it be possible to set a default title so instead of it showing like this...



It would show like this with a default link title?



How would I go about making that happen? Where do I need to look? Should be as simple as setting the default text correct?

-Thanks


knowlsey

not sure if this is a problem or if there is maybe a 5meg limit with the lite version, I managed to download a pdf no probs that was about 3.5meg then  tried another at 6.5 meg and it uploaded, but only got to 46% then this error, not a script error ???

this happens both in google chrome and ie

just find it strange that it worked for one file but not any others

any pointers would be appreciated

This webpage is not available
The connection to whatunearth.co.uk [nofollow] was interrupted.
Here are some suggestions:
Reload this webpage later.
Check your Internet connection. Restart any router, modem, or other network devices you may be using.
Add Google Chrome as a permitted program in your firewall's or antivirus software's settings. If it is already a permitted program, try deleting it from the list of permitted programs and adding it again.
If you use a proxy server, check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server, adjust your proxy settings: Go to the wrench menu > Settings > Show advanced settings... > Change proxy settings... > LAN Settings and deselect the "Use a proxy server for your LAN" checkbox.
Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.


fouad

i am using smf 2.0.2 .and have installed this mod.but it is not showing the download section on index page.

plz help me out


thnx
Life is multi lap race


Blackburn

Gerçek mutluluk mal ve mülke sahip olmak ile değil,akıl ve erdeme sahip olmak ile mümkündür.
Slax Tr - Slax Türkiye Topluluğu adresinden usb ile bile çalışan işletim sisteminin Türkiye sitesine ulaşabilirsin.
Özgür yaşam,özgür insan.

knowlsey

Quote from: Nibogo on August 19, 2012, 12:29:37 AM
You can't upload files in Lite version, that's only possible in the pro one [nofollow]

strange, I uploaded one file, unless that was a taster LOL

Advertisement: