Download System

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

Previous topic - Next topic

SoLoGHoST

Found some errors in the last AddOn, now all is fixed.  Download in the ABOVE post!  ENJOY! :)

Would really like to see how people are using this Add-On, so if you have a site with this addon installed, please post the url.

Thanks :)

SoLoGHoST

#721
Ok, here is the FINAL RELEASE for the Cool Categories Layout Add-On for the Downloads System MOD. 

If you have installed this Add-On in prior versions, and want to install it with the updated features (Fixes Sortby method for Ratings, Adds how many people rated that particular download for the Cool Layout)

For users who have installed this Add-On previously, you can download the update here - COOL RATINGS

Otherwise, download is located at the bottom of this topic.

Read "How to Install.txt" for a step by step guide for you to install this add-on!

You can view the Cool Layout Addon in Action at:  Graphics Mayhem and at the Demo/Test Site

Read Notes carefully and follow instructions exactly as defined in the .txt file included in the package.  It's fairly simple to install.

Perhaps vbgamer45 will add it in the next release of this awesome MOD  ???

Some Info:  Fixed Ratings problem that was not sorting the Ratings, but sorting by how many users rated (Only fixed this for the Cool Layout option, didn't mess with how vbgamer45 had set it up in the Normal Layout).  FYI - The rating column is flawed.  Is not a reliable source of getting the average rating, so I created a new column called, "actual_rating" which relies on the totalratings and rating columns, but holds the actual average rating from 0 - 100.

Thanks, was a ton of fun creating this Add-On!!
Solomon

P.S. - If you use this Add-On, please post the url in here.  Just interested to see it in action someplace else.  Thank You! :)

Bug Found and FIXED ->  Found an error when editing Categories to a default sortby of Rating.  Fixed this, and re-upped!

SoLoGHoST

To vbgamer45:  Will you please include this Add-On in the Next update, or better yet, this version of Download System??

Sakae

I searched this topic but couldn't find it.

Is there anyway to integrate the download system search on the SMF default search?

I mean, if I look for "msn images" on boards, I could find (with some "highlight", maybe?) the images for MSN on download system, besides the topics about it.
http://www.tigrelog.com.br
l: simple p: machines

vbgamer45

Quote from: softcore on March 18, 2009, 08:29:50 PM
I searched this topic but couldn't find it.

Is there anyway to integrate the download system search on the SMF default search?

I mean, if I look for "msn images" on boards, I could find (with some "highlight", maybe?) the images for MSN on download system, besides the topics about it.
Not at this time.
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

heinandar

Hello...
I installed your mod and work perfectly . But i have one problem
After 20 subcategories submit, category name box appear scroll bar . Why subcategory are not roll by roll . I mean
sub1 sub2 sub3 sub4
sub5 sub6 sub7 sub8


vbgamer45

Hard to find a way for subcategories per row or by screen width
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

heinandar

Quote from: vbgamer45 on March 21, 2009, 04:25:33 PM
Hard to find a way for subcategories per row or by screen width

OK.. You can see . I send my link to your pm.

hartiberlin

Hi,
I have a problem.

I want to move my domain
www.overunity.com
from SMF 1.1.8 with Tinyportal to
SMF 2.0RC1 + PortaMX Portal  with the Download System Mod.

Now how can I get my more than 200 Downloads from
the TinyPortal download  into the
Download System Mod ?

Is there any easy conversion I could do or
must I do it all manually for more than 200 files ?

Many thanks.

Regards, Stefan.

P.S: File descriptions would not be so important , but just an
easy method to upload or move all the files from the Tinyportal
download system just to a Download System Mod system.
Many thanks in advance.

heinandar


hartiberlin

Quote from: hartiberlin on March 23, 2009, 07:14:32 PM
Hi,
I have a problem.

I want to move my domain
www.overunity.com
from SMF 1.1.8 with Tinyportal to
SMF 2.0RC1 + PortaMX Portal  with the Download System Mod.

Now how can I get my more than 200 Downloads from
the TinyPortal download  into the
Download System Mod ?

Is there any easy conversion I could do or
must I do it all manually for more than 200 files ?

Many thanks.

Regards, Stefan.

P.S: File descriptions would not be so important , but just an
easy method to upload or move all the files from the Tinyportal
download system just to a Download System Mod system.
Many thanks in advance.


Anybody any idea how to do this the best and easiest way ?

Many thanks in advance.

Regards, Stefan.


vbgamer45

Quote from: hartiberlin on March 30, 2009, 10:46:55 AM
Quote from: hartiberlin on March 23, 2009, 07:14:32 PM
Hi,
I have a problem.

I want to move my domain
www.overunity.com
from SMF 1.1.8 with Tinyportal to
SMF 2.0RC1 + PortaMX Portal  with the Download System Mod.

Now how can I get my more than 200 Downloads from
the TinyPortal download  into the
Download System Mod ?

Is there any easy conversion I could do or
must I do it all manually for more than 200 files ?

Many thanks.

Regards, Stefan.

P.S: File descriptions would not be so important , but just an
easy method to upload or move all the files from the Tinyportal
download system just to a Download System Mod system.
Many thanks in advance.


Anybody any idea how to do this the best and easiest way ?

Many thanks in advance.

Regards, Stefan.
Would require a conversion script. Do not have one yet but it is planned down the road.


Quote from: <<Anadolu>> on March 31, 2009, 05:01:54 PM


http://img19.imageshack.us/img19/3741/20090331235818.jpg
To do this would require edits to the Downloads.template.php file
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

Arveles

QuoteTo do this would require edits to the Downloads.template.php file
I know, but how? This is my file..thanks..
Elveda SMF...

heinandar

SOS

Warning Downloads path is not writable! /home/xxxx/public_html/xxxx/downloads/

what happen. All files are gone.  :-X :-X :-X :-X about 10GB
I almost die.
and i can't give permisson to writabel and it always show 0000.

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

SoLoGHoST

Quote from: <<Anadolu>> on March 31, 2009, 05:01:54 PM


http://img19.imageshack.us/img19/3741/20090331235818.jpg

Go into Downloads2.template.php edit functions template_add_download and template_edit_download like so:

function template_add_download()
CUT:
 
  <tr class="windowbg2">
  <td align="right"><b>' . $txt['downloads_form_title'] . '</b>&nbsp;</td>
  <td><input type="text" name="title" size="50" /></td>
  </tr>



PASTE, AFTER:

  <tr class="windowbg2">
  <td align="right"><b>' . $txt['downloads_form_category'] . '</b>&nbsp;</td>
  <td><select name="cat">';

foreach ($context['downloads_cat'] as $i => $category)
{
echo '<option value="' . $category['ID_CAT']  . '" ' . (($cat == $category['ID_CAT']) ? ' selected="selected"' : '') .'>' . $category['title'] . '</option>';
}

echo '</select>
  </td>
  </tr>


function template_edit_download()

CUT:
 
  <tr class="windowbg2">
  <td align="right"><b>' . $txt['downloads_form_title'] . '</b>&nbsp;</td>
  <td><input type="text" name="title" size="50" value="' . $context['downloads_file']['title'] . '" /></td>
  </tr>


PASTE, AFTER:

  <tr class="windowbg2">
  <td align="right"><b>' . $txt['downloads_form_category'] . '</b>&nbsp;</td>
  <td><select name="cat">';

foreach ($context['downloads_cat'] as $i => $category)
{
echo '<option value="' . $category['ID_CAT']  . '" ' . (($context['downloads_file']['ID_CAT'] == $category['ID_CAT']) ? ' selected="selected"' : '') .'>' . $category['title'] . '</option>';
}


echo '</select>
  </td>
  </tr>


Upload files to server.  TADA!

SoLoGHoST

vbgamer45, Just noticed that you have inserted id_topic column in {db_prefix}down_file which never gets used.  I have utilized this by adding a column called id_message and finishing what you started for the Boards (when Editing/Adding a Category for instance, under Posting Options), that is calling the modifyPost() function when editing downloads, thus keeping the board up-to-date with the correct information in the downloads section.  Since, according to what you have coded, the only time the topic is updated, if a board is selected, is when a user is adding a download to that category, and that's all.  So this fixes that, by updating all posts in the topics using id_topic & id_message in {db_prefix}down_file to match with id_topic and id_msg in {db_prefix}messages table, and using the modifyPost() function to update the topic.  Also, if you delete a Category that contains downloads, and that Category is linked to a board, all topics in that board should also be deleted, which I did.  I assume you intended to use id_topic for that purpose to begin with.

Well, I have really done a ton of work to your MOD, I mean everything from fixing warnings in the SMF Error Log, adding improvements - Such as the ability to upload Screenshots for each download, redesigning the layout, etc. etc. etc.  You name it!!  Been there, done that!! ;)

Don't get me wrong, overall, this is an excellent MOD you've created.  I'll post it up for you when it is completely done as I am still working on it.  Only thing left to do is make the Adding and Viewing of Comments way cooler, like a slide-in, slide-out effect, or just a drop down effect.

Eric_WP

I completely apologize if this is the wrong section to be asking. 

How would I go about replacing the automatic file download link with a download button I have created?  I would love to know since I think that the current text display makes it hard for my visitors to find the download link (I was having a bit of hard time myself when I first installed it).  What code must I add to the downloads.template file for this to be a possibility?

heinandar

Quote from: Umani on April 03, 2009, 10:16:33 PM
I completely apologize if this is the wrong section to be asking. 

How would I go about replacing the automatic file download link with a download button I have created?  I would love to know since I think that the current text display makes it hard for my visitors to find the download link (I was having a bit of hard time myself when I first installed it).  What code must I add to the downloads.template file for this to be a possibility?
OK.. You can try it

search
// Show the main download
echo '
<tr class="windowbg2">
<td align="center">';

echo '<a href="' . $scripturl . '?action=downloads;sa=downfile;id=', $context['downloads_file']['ID_FILE'], '">', ($context['downloads_file']['fileurl'] == '' ? $context['downloads_file']['orginalfilename'] : $txt['downloads_app_download']), '</a>';


replace
// Show the main download
echo '
<tr class="windowbg2">
<td align="center">';

echo '<br/><span style="font-size: 15px; color: RED;"><strong><a href="' . $scripturl . '?action=downloads;sa=downfile;id=', $context['downloads_file']['ID_FILE'], '"><div class="smallfont" align="center">
<a href="' . $scripturl . '?action=downloads;sa=downfile;id=', $context['downloads_file']['ID_FILE'], '"><img title=" Your Title" src="Your image link" alt="Text" border="0"></a> </div></a><strong>';


You only need to change
Your Titel  (whatever)
Your image link
Text (whatever)

Advertisement: