SNewman Posted January 28, 2009 Share Posted January 28, 2009 Hello This is my first time posting here. I originally posted on the SMF support boards, but they told me to post on the support boards of the people who wrote the MOD. I did so, although it has been quite a few days with no response, and it seems as though a majority of their other topics are very inactive as well. So I'm hoping you can help me with a problem I'm having with the Downloads MOD from SMF Hacks. All I'm trying to do is display an image next to the file listing in the category based upon the file type. Everytime I run it, it either returns zero or nothing at all. Why ??? File: Themes/default/Downloads2.template.php foreach ($context['downloads_files'] as $i => $file) { echo '<tr>'; $fName = $file['orginalfilename']; $ext = substr(strrchr($fName, '.'), 1); $ikon = "http://www.psplockhaven.org/Themes/default/images/docType/" . $ext . ".gif"; echo '<td><img src="' . $ikon . '"></td>'; if (!empty($modSettings['down_set_t_title'])) echo '<td><a href="' . $scripturl . '?action=downloads;sa=view;down=', $file['ID_FILE'], '">', $file['title'], '</a></td>'; I know this is an unusal request but any help would be greatly appreciated. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.