News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Download System

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

Previous topic - Next topic

Drover

Quote from: vbgamer45 on March 19, 2012, 12:48:53 PM
Not sure what the question is?

Sorry.  Wasn't really a question about the mod.  Was really a question for users of the mod.  Where do they post download/upload rules?

GlitchPC

vbgamer45...

I have an issue with the Downloads2.template.php file.  (See attached image)

I can't find the code to correct the issue, though....and what code to use to correct it.

Can you help, please?

vbgamer45

That's in the downloads.template.php in the template_ approvelist function or something similar to that.

That issue would be a column a style class
Community Suite for SMF - Take your forum to the next level built for 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

GlitchPC

Quote from: vbgamer45 on March 28, 2012, 04:47:07 PM
That's in the downloads.template.php in the template_ approvelist function or something similar to that.

That issue would be a column a style class

Yeah...I hear ya...just can't find the location to fix it, though...

Here's the code for that area:

function template_approvelist()
{
global $scripturl, $context, $modSettings, $txt;


echo '
<table border="0" width="80%" cellspacing="0" align="center" cellpadding="4" class="tborder">
<tr class="titlebg">
<td>', $txt['downloads_form_approvedownloads'], '</td>
</tr>
<tr class="windowbg">
<td>
<form method="post" action="', $scripturl, '?action=downloads;sa=bulkactions">
<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
<thead>
<tr class="catbg">
<td>&nbsp;</th>
<th scope="col" class="smalltext first_th">', $txt['downloads_app_download'], '</th>
<th scope="col" class="smalltext">', $txt['downloads_text_category'], '</th>
<th scope="col" class="smalltext">', $txt['downloads_app_title'], '</th>
<th scope="col" class="smalltext">', $txt['downloads_app_description'], '</th>
<th scope="col" class="smalltext">', $txt['downloads_app_date'], '</th>
<th scope="col" class="smalltext">', $txt['downloads_app_membername'], '</th>
<th scope="col" class="smalltext last_th">', $txt['downloads_text_options'], '</th>
</tr>
</thead>
';


foreach ($context['downloads_file'] as $i => $file)
{
echo '<tr class="windowbg2">';
echo '<td><input type="checkbox" name="files[]" value="',$file['ID_FILE'],'" /></td>';

echo '<td><a href="' . $scripturl . '?action=downloads;sa=view;down=' . $file['ID_FILE'] . '">',$txt['downloads_rep_viewdownload'],'</a></td>';
echo '<td>' . (empty($file['catname']) ? $file['catname2'] : $file['catname']) . '</td>';
echo '<td>', $file['title'], '</td>';
echo '<td>', $file['description'], '</td>';
echo '<td>', timeformat($file['date']), '</td>';
if ($file['real_name'] != '')
echo '<td><a href="' . $scripturl . '?action=profile;u=' . $file['id_member'] . '">'  . $file['real_name'] . '</a></td>';
else
echo '<td>',$txt['downloads_guest'],'</td>';

echo '<td><a href="' . $scripturl . '?action=downloads;sa=approve&id=' . $file['ID_FILE'] . '">' . $txt['downloads_text_approve']  . '</a><br /><a href="' . $scripturl . '?action=downloads;sa=edit&id=' . $file['ID_FILE'] . '">' . $txt['downloads_text_edit'] . '</a><br /><a href="' . $scripturl . '?action=downloads;sa=delete&id=' . $file['ID_FILE'] . '">' . $txt['downloads_text_delete'] . '</a></td>';
echo '</tr>';

}



echo '<tr class="titlebg">
<td align="left" colspan="8">
' . $txt['downloads_text_pages'];

echo $context['page_index'];

echo '<br /><br /><b>',$txt['downloads_text_withselected'],'</b>

<select name="doaction">
<option value="approve">',$txt['downloads_form_approvedownloads'],'</option>
<option value="delete">',$txt['downloads_form_deldownload'],'</option>
</select>
<input type="submit" value="',$txt['downloads_text_performaction'],'" />
</form>
';
echo '
</td>
</tr>
</table>
</td>
</tr>

</table>';

}



Edit...

This is happening in both my custom template and SMF's default curve theme.  I'm pretty sure the answer to my question is located within the above code, somewhere...but, I'm not a coder...so, I wouldn't know how, or where to make the edit.  That's why I asked the question and presented you with the code.  I was hoping you could tell me exactly what it is I have to change and how to change it.

Also...if you use in-line images within the description...they are not getting re-sized.

One last thing...I can edit categories...but, I can't edit sub-categories.  I added a couple of sub-categories...and now, I can't remove them.  Am I missing something?

Inti31

@Glitch - you are right - the only way to change the name of a subcategory is to do this direct in the database.
I had this too - I mispelled my first subcategory... *ompf*

But it is easy to change  - I use mysqld for this

click on SQL-Browser - select table "{dbprefix}down_cat", then click on edit and do this manually...
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

GlitchPC

Quote from: Inti31 on March 29, 2012, 03:24:46 AM
@Glitch - you are right - the only way to change the name of a subcategory is to do this direct in the database.
I had this too - I mispelled my first subcategory... *ompf*

But it is easy to change  - I use mysqld for this

click on SQL-Browser - select table "{dbprefix}down_cat", then click on edit and do this manually...


Actually, I feel like somewhat of a "moron"...I found if you click the main category...you can see the sub-categories and edit them from the list.

So, no...you don't have to edit the names of the sub-categories through the database via MySQL.

However...I am experiencing somewhat of an issue with other issues I have described in my previous post.  I'm just waiting for the mod developer to address them.

As far as I can tell...the issue with the header for a particular table column is a coding issue of the mod.  I'm not a coder and need to know just what I need to edit...and whether or not the developer intends to correct the code of the mod.

I'm, also, experiencing the issue with in-line images not being re-sized.  Whether or not this is a "Pro" feature...I don't know.

One last thing...

If I add a download and use the setting to have it add a post to a certain forum...in my case, a child board...the post is created.  However, the "new" button that's created for that new topic does not work correctly from the Board Index.  If I click it...I get redirected to recent unread topics...but, it's not listed there.  I find this to be strange behavior...since it is a new thread I'm creating...correct?

Anyhow...I'll wait to see what vbgamer45 has to say.

Inti31

Quote from: GlitchPC on March 29, 2012, 08:26:22 AM
Actually, I feel like somewhat of a "moron"...I found if you click the main category...you can see the sub-categories and edit them from the list.

So, no...you don't have to edit the names of the sub-categories through the database via MySQL.

arrghhh - thx for that hint - haven't seen that before....
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

GlitchPC

Bump...

Quote from: vbgamer45 on March 28, 2012, 04:47:07 PM
That's in the downloads.template.php in the template_ approvelist function or something similar to that.

That issue would be a column a style class

Could you be a little more specific, please?  Thank you...

CableTool

I scanned through some of the posts and cant find this yet-

I realized that there are links to my downloads through google in as much as you just click the link in through google search and the download starts. You never have to visit my download page to get it.

Anything I can do to avoid "direct downloads" and force them to at least go to the download page to do so?
I mean.. I put an ad on the page for  reason... :)

Any ideas?

fouad

hello everyone

i have installed download system 1.5 .i have also a  button on my forum main page.plz tell me how i can  place items in this downloads section.?

thanx
Life is multi lap race

fouad

hi everyone

i wanna add a download section to my forum.i have installed download system 1.5 mod .but on saving settings it says Warning Downloads path is not writable!..kindly help me out.

thank you
Life is multi lap race

vbgamer45

What path do you have?

Make sure your downloads folder in your forum's root folder is writable.
Community Suite for SMF - Take your forum to the next level built for 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

is it possible for guests to be able to view downloads but only be able to download once registered?

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

vbgamer45

Not at the moment is a feature of downloads pro since it has a seperate view and download permissions.
Community Suite for SMF - Take your forum to the next level built for 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 change download links to image button. Because peoples in my Country are very stupid

vbgamer45

You have edit the downloads.template.php and find the edit the view download template function in that file to add a link.
Community Suite for SMF - Take your forum to the next level built for 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

Quote from: vbgamer45 on April 16, 2012, 12:18:25 PM
You have edit the downloads.template.php and find the edit the view download template function in that file to add a link.

This I know. Which line of code? And what I am supposed to write. I'm not a programmer

vbgamer45

Have it build in Downloads Pro
But here is similiar code
Find in file

// Show the main download

In that area look for the other download link code and chagne to

echo '<br /><br /><a href="' . $scripturl . '?action=downloads;sa=downfile&id=', $context['downloads_file']['ID_FILE'], ';t=' . time() .'" target="_blank"><img src="http://ww.yourdownloadimage.com/myimage.jpg" alt="" /></a>';

Community Suite for SMF - Take your forum to the next level built for 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

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

// Show the main download

In that area look for the other download link code and chagne to

echo '<br /><br /><a href="' . $scripturl . '?action=downloads;sa=downfile&id=', $context['downloads_file']['ID_FILE'], ';t=' . time() .'" target="_blank"><img src="http://ww.yourdownloadimage.com/myimage.jpg" alt="" /></a>';



Thanx working fine. I need learn more PHP  O:)

vbgamer45

Community Suite for SMF - Take your forum to the next level built for 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: