Jump to content

Help w/ mod for SMF 2.0 beta 4


SNewman

Recommended Posts

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.