Download System

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

Previous topic - Next topic

Pond_Hockey

I have a simple request for my code. If someone could please read my topic.

http://www.simplemachines.org/community/index.php?topic=215009.0

It would be greatly appreciated!

murdo

You need to be more specific with what you want.....

Pond_Hockey

You know how on the post template their are all the tags above the post box i.e bold, italic, underline, image, link. Well when you go to add a file to the download system there is a title box, category, description, keywords, upload file, upload url box. I want the img and url tag buttons above the description box.



murdo

I will figure out how to add a button for the image tag, but as for the URL button, why do you need this?

URL's are automatically parsed by the download script. if you type

http://www.google.com

in the description box, it will appear as a link....

Pond_Hockey

google


Well how do I make a link like that then?

murdo

#165
ok so in that instance, you would need:

[url=http://www.google.com]Google[/url]

magitek

Has anyone modified this mod to work with allowing the upload of a photo with the file to be shown on the download page?

murdo

dont think so... you could always upload the photo for people to download it full size, and in the "Description" box, put a smaller / thumbnail size one... using BB code:

[img src=yourimage.jpg][/img]

magitek

I'd like to point something out for my fellow programmers. Earlier it was brought up that the keywords seemed to be broken, and a suggestion was made. After making that change, it still did not work. After some more hacking around, I found a block of code in the downloads.php file in the search2 function that looked like this:

if(key == '')
{
    .... Huge code block ...
}
else
{
   ... some more code ...

  $context['downloads_search_query'] = "p.keywords LIKE '$keyword'";
}

that $context line needs the same fix as the other lines suggested earlier, add % before the $ sign and after the letter d.

So afterwards, it should look like:

$context['downloads_search_query'] = "p.keywords LIKE '%$keyword%'";

Hope that helps.

ASF

mate, how do i change the download path from my site to a file host?

my site.

http://www.allsomaliforum.com

myaicons

Quote from: ASF on January 14, 2008, 02:58:50 PM
mate, how do i change the download path from my site to a file host?


is this possible??  if so... would be great!... as i myself do not have enough space to keep the downloads... if we can use a separate file hosting (i.e. the user can just input the url for his/her file from another file host) 
i scratch your back you scratch my back...
funny thing about my back is its located on my...

myaicons

#171
@vbgamer45

(or anyone who can help)


so i downloaded the mod and everything seems to have installed correctly... i am able to access the Downloads Configuration panel.. but i dont see where i can set and add categories... i cant even see my downloads page when i go to the Downloads Url (it just directs me to my forum index)... and shouldnt there be a new link on the menu bar?  i am using the default theme...

i dont even see the downloads page as admin...

please assist!   :(
i scratch your back you scratch my back...
funny thing about my back is its located on my...

myaicons

i got the above figured out and fixed....

but is it possible to make it work like smf gallery... where when an unregistered guest views the download page... he/she is shown the login box... (ive set my permissions so that guests cannot view the downloads page) instead of the hideous category bar header and stats (no links for downloads of course) ???



i scratch your back you scratch my back...
funny thing about my back is its located on my...

vbgamer45

Yup that is how the mod is it has the same feature as the gallery
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

myaicons

#174
QuoteYup that is how the mod is it has the same feature as the gallery

um... not in this case...

ive attached the screen shot of what a guest sees on the downloads page... (please look at it closely... IT IS the guest view)

shouldnt it be the login screen?
i scratch your back you scratch my back...
funny thing about my back is its located on my...

myaicons

shouldnt it look like this????

i scratch your back you scratch my back...
funny thing about my back is its located on my...

myaicons

i scratch your back you scratch my back...
funny thing about my back is its located on my...

myaicons

does the comment auto approval for this mod work?

this is in the language template for the mod:

$txt['downloads_set_commentsappr'] = 'Comments require approval?';

... but it only allows comments to be approved by the admin before getting posted

it would be nice to have the option for comments to be auto approved....

or is this some flaw in the mod that the author did not put in yet???


also... another question...

where in the files do i edit the code for... post creation after a download has been approved?

i wanted to add a few lines so that i can customize what the post is saying about the download


please assist
i scratch your back you scratch my back...
funny thing about my back is its located on my...

eXecuT

myaicons You are a very good spammer. ;)

Nobody will help you if you spam. ;)
Visit = | www.pc-kopatiz.com |

myaicons

#179
Quote from: eXecuT on January 21, 2008, 01:50:15 PM
myaicons You are a very good spammer. ;)

Nobody will help you if you spam. ;)

is it considered spam if no one has even helped?? 

(ive also waited a day after posting another question so that it is not bumped up as the board instructions says is a no no)

if you noticed ... they are different questions... im not the same question... most of which have not been answered... even by the author of the mod... ive even gone as far as asking it to the authors mod website

:(
i scratch your back you scratch my back...
funny thing about my back is its located on my...

Advertisement: