Jump to content

SNewman

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

SNewman's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.