vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   ecDownloads 3.2 Legacy (https://vborg.vbsupport.ru/showthread.php?t=75198)

Ron1n 08-16-2005 02:00 PM

link to files = can provide links for downloads
upload files = can upload files for downloads
avoid purgatory = their files arent placed in a moderation queue
can manage purgatory = they can moderate the file moderation queue

thephonemall 08-16-2005 02:50 PM

For those of you still having trouble with usergroups being shown properly in AdminCP here is the way the modification should look in usergroups.php:
PHP Code:

    // ###### ELITECODERS DOWNLOAD HACK ######
    
print_table_header("Download Permissions");
print_yes_no_row($vbphrase['ecdownloads_can_edit_all_files'], 'usergroup[caneditallfiles]'$ug_bitfield['caneditallfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_download_files'], 'usergroup[candownloadfiles]'$ug_bitfield['candownloadfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_rate_files'], 'usergroup[canratefiles]'$ug_bitfield['canratefiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_upload_images'], 'usergroup[canuploadimages]'$ug_bitfield['canuploadimages']);
    
print_yes_no_row($vbphrase['ecdownloads_can_link_to_files'], 'usergroup[canlinktofiles]'$ug_bitfield['canlinktofiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_upload_files'], 'usergroup[canuploadfiles]'$ug_bitfield['canuploadfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_avoid_purgatory'], 'usergroup[canavoidpurgatory]'$ug_bitfield['canavoidpurgatory']);
    
print_yes_no_row($vbphrase['ecdownloads_can_manage_purgatory'], 'usergroup[canmanagepurgatory]'$ug_bitfield['canmanagepurgatory']);
    
print_yes_no_row($vbphrase['ecdownloads_can_edit_own_files'], 'usergroup[caneditownfiles]'$ug_bitfield['caneditownfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_view_disabled'], 'usergroup[canviewdisabled]'$ug_bitfield['canviewdisabled']);
    
print_yes_no_row($vbphrase['ecdownloads_can_view_files'], 'usergroup[canviewfiles]'$ug_bitfield['canviewfiles']);
    
print_table_break();
    
// ###### ELITECODERS DOWNLOAD HACK ###### 


xtreme-mobile 08-16-2005 04:09 PM

Quote:

Originally Posted by westpointer
hmm... where did you place the download folders (full path) and what is the setting in admincp?

in .....

public_html/Forums/downloads <-------- this is the folder i created

Rids 08-16-2005 09:32 PM

My download folder is in the site root (public_html) and to get it working I had to change the setting to ../downloads/ (note the extra dot).

Also, for some strange reason all my files lost their approval status so I had to go through them all again.

Can't say it was a smooth upgrade from 2.0f as there was a lot of tweaking had to be done but its working now and I'm a happy bunny - Thanks Ron1n for this incredibly useful hack :)

JMH11788 08-17-2005 02:37 AM

Quote:

Originally Posted by Ron1n
I'm sorry to say I wont be adding new functionality to the mod for 3.0.8, just for 3.5. I will add your ideas in the future, I hope you upgrade to 3.5.

yeh I meant for the stuff to be in 3.5

No sense on doing 3.0.8!

Glad to hear my ideas helped, good luck with the new design! people that are complaining about your mod now are just asses. they should be kissing your feet. its a FREE hack for god's sake! you even said there will be very minor errors. if they dont like it, they should not install it and STFU!!!

-Jordan

Hoffi 08-17-2005 06:05 AM

Thanks Ronin for the explanation.

CyberRanger 08-17-2005 10:40 AM

Quote:

Originally Posted by Rids
My download folder is in the site root (public_html) and to get it working I had to change the setting to ../downloads/ (note the extra dot)

Yes, you would need to change that since you are making the download folder at the same level as your forums folder instead of below it.

CyberRanger 08-17-2005 12:17 PM

Quote:

Originally Posted by xtreme-mobile
in .....

public_html/Forums/downloads <-------- this is the folder i created

I don't know. If you want to send me more detailed info in a PM (site name and login info) I'll look at your setup for you.

ZombieAndy 08-17-2005 10:14 PM

Quote:

Originally Posted by westpointer
I don't know. If you want to send me more detailed info in a PM (site name and login info) I'll look at your setup for you.

i found another prob with this great hack guys, it seems to have trouble uploading large files.. about 10mb and over... it just dosn't upload them, it creates the entry in the downloads section of the forums, but when you click "download now" it just brings up a 404 and if i look in the directory by FTP the file is missing.

any idea's?

JMH11788 08-18-2005 02:24 AM

Quote:

Originally Posted by YodaTheCoda
i found another prob with this great hack guys, it seems to have trouble uploading large files.. about 10mb and over... it just dosn't upload them, it creates the entry in the downloads section of the forums, but when you click "download now" it just brings up a 404 and if i look in the directory by FTP the file is missing.

any idea's?

big files are limited because of php file limitations. what I'd suggest, upload them via ftp then link to the http file name...best way to do bigger files.

CyberRanger 08-18-2005 02:38 AM

Quote:

Originally Posted by YodaTheCoda
it creates the entry in the downloads section of the forums, but when you click "download now" it just brings up a 404 and if i look in the directory by FTP the file is missing.

The ftp idea is the way to go for such a large file. One weakness of the code is that the upload entry is written to the database without confirming the file was successfully uploaded.

Ron1n - I sent you a PM (in case you don't normally check 'em).

ZombieAndy 08-18-2005 03:15 AM

Quote:

Originally Posted by westpointer
The ftp idea is the way to go for such a large file. One weakness of the code is that the upload entry is written to the database without confirming the file was successfully uploaded.

Ron1n - I sent you a PM (in case you don't normally check 'em).

so is there a way to fix this or is it IE timing out or something

Viks 08-18-2005 03:43 AM

Hi guys, im wondering if there is a module to display latest downloads for FORUMSHOME?

Kindly let me know. thanks

JMH11788 08-18-2005 04:02 AM

Quote:

Originally Posted by Viks
Hi guys, im wondering if there is a module to display latest downloads for FORUMSHOME?

Kindly let me know. thanks

good question! ^^^^

Quote:

Originally Posted by YodaTheCoda
so is there a way to fix this or is it IE timing out or something

no, PHP is what actually 'times out' nothing you can do about it. just like how downloading large mysql databases through php wount work

BioVader 08-18-2005 08:49 AM

Quote:

Originally Posted by thephonemall
For those of you still having trouble with usergroups being shown properly in AdminCP here is the way the modification should look in usergroups.php:
PHP Code:

    // ###### ELITECODERS DOWNLOAD HACK ######
    
print_table_header("Download Permissions");
print_yes_no_row($vbphrase['ecdownloads_can_edit_all_files'], 'usergroup[caneditallfiles]'$ug_bitfield['caneditallfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_download_files'], 'usergroup[candownloadfiles]'$ug_bitfield['candownloadfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_rate_files'], 'usergroup[canratefiles]'$ug_bitfield['canratefiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_upload_images'], 'usergroup[canuploadimages]'$ug_bitfield['canuploadimages']);
    
print_yes_no_row($vbphrase['ecdownloads_can_link_to_files'], 'usergroup[canlinktofiles]'$ug_bitfield['canlinktofiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_upload_files'], 'usergroup[canuploadfiles]'$ug_bitfield['canuploadfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_avoid_purgatory'], 'usergroup[canavoidpurgatory]'$ug_bitfield['canavoidpurgatory']);
    
print_yes_no_row($vbphrase['ecdownloads_can_manage_purgatory'], 'usergroup[canmanagepurgatory]'$ug_bitfield['canmanagepurgatory']);
    
print_yes_no_row($vbphrase['ecdownloads_can_edit_own_files'], 'usergroup[caneditownfiles]'$ug_bitfield['caneditownfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_view_disabled'], 'usergroup[canviewdisabled]'$ug_bitfield['canviewdisabled']);
    
print_yes_no_row($vbphrase['ecdownloads_can_view_files'], 'usergroup[canviewfiles]'$ug_bitfield['canviewfiles']);
    
print_table_break();
    
// ###### ELITECODERS DOWNLOAD HACK ###### 


Actually I think it should be like this just like westpoiter said.

PHP Code:

        // ###### ELITECODERS DOWNLOAD HACK ######
    
print_table_header("Download Permissions");
    
print_yes_no_row($vbphrase['ecdownloads_can_view_files'], 'usergroup[canviewfiles]'

$ug_bitfield['canviewfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_download_files'], 'usergroup[candownloadfiles]'

$ug_bitfield['candownloadfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_rate_files'], 'usergroup[canratefiles]'

$ug_bitfield['canratefiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_upload_images'], 'usergroup[canuploadimages]'

$ug_bitfield['canuploadimages']);
    
print_yes_no_row($vbphrase['ecdownloads_can_link_to_files'], 'usergroup[canlinktofiles]'

$ug_bitfield['canlinktofiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_upload_files'], 'usergroup[canuploadfiles]'

$ug_bitfield['canuploadfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_avoid_purgatory'], 'usergroup[canavoidpurgatory]'

$ug_bitfield['canavoidpurgatory']);
    
print_yes_no_row($vbphrase['ecdownloads_can_manage_purgatory'], 'usergroup[canmanagepurgatory]'

$ug_bitfield['canmanagepurgatory']);
    
print_yes_no_row($vbphrase['ecdownloads_can_edit_own_files'], 'usergroup[caneditownfiles]'

$ug_bitfield['caneditownfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_can_edit_all_files'], 'usergroup[caneditallfiles]'

$ug_bitfield['caneditallfiles']);
    
print_yes_no_row($vbphrase['ecdownloads_view_disabled'], 'usergroup[canviewdisabled]'

$ug_bitfield['canviewdisabled']);
    
print_table_break();
    
// ###### ELITECODERS DOWNLOAD HACK ###### 


BioVader 08-18-2005 09:31 AM

Question: How do I disable needing to have an author? And is there a way to not change the name of the of the file when it's downloaded. It adds the author, short name and some number that end up at the end. Can this be removed and how.

CyberRanger 08-18-2005 11:50 AM

Quote:

Originally Posted by BioVader
Question: How do I disable needing to have an author? And is there a way to not change the name of the of the file when it's downloaded. It adds the author, short name and some number that end up at the end. Can this be removed and how.

All of this COULD be done but you are talking about editing downloads.php. If you know PHP, the change would be relatively simple. Look around line 511 for the text $newfilename to change how the file gets named. You'd also need to modify what happens when the author edits the entry.

As far as making the author optional, a better solution would be to change the submission form to automatically place the username in the author field. That would probably require a change in the template.

CyberRanger 08-18-2005 02:23 PM

If you edit a download, the file extension is lost when you save the edit. To fix this, look for this around line 549 in downloads.php:
PHP Code:

            elseif($_GET['do'] == 'edit')
            {

                
$result $DB_site->query("UPDATE " TABLE_PREFIX "dl_files SET `name`=".$dl->prep($_POST['name']). 

add this line before the $result:
PHP Code:

$newfilename $newfilename.strtolower(substr($file['url'], strrpos($file['url'], '.')+1)); // fix ext dropping problem 

The final result should look like:
PHP Code:

            elseif($_GET['do'] == 'edit')
            {
                
$newfilename $newfilename.strtolower(substr($file['url'], strrpos($file['url'], '.')+1)); // fix ext dropping problem
                
$result $DB_site->query("UPDATE " TABLE_PREFIX "dl_files SET `name`=".$dl->prep($_POST['name']). 


BioVader 08-19-2005 09:50 AM

Uhg.. Well as another users has stated, I'm having another problem with my uploaded files count. I have actually 1 file right now for download... I've been trying to get a video file to work. Yes I have added the extension in the setting like you supposed to but everytime I upload it and you click the download link you get a blank screen.. so I've tried uploading it about, oh 11 times and now the site says there are 12 downloads available.. How can this be fxed because it's not right.

CyberRanger 08-19-2005 11:01 AM

Quote:

Originally Posted by BioVader
Uhg.. Well as another users has stated, I'm having another problem with my uploaded files count. I have actually 1 file right now for download... I've been trying to get a video file to work. Yes I have added the extension in the setting like you supposed to but everytime I upload it and you click the download link you get a blank screen.. so I've tried uploading it about, oh 11 times and now the site says there are 12 downloads available.. How can this be fxed because it's not right.

It sounds like you have two problems 1) You upload the file but it doesn't download 2) you feel the file count is wrong.

As for #1, I'm not sure. Can you provide your site URL?

For #2, the file count is correct. Note that even if you upload the same file 12 times, the file gets renamed each time and will be counted as 12 uploads. Now, if you've deleted the file first, then uploaded it, and your count says 12 that is a problem.

Ron1n 08-21-2005 01:11 AM

To the above post:

Please post this in another thread as an "addon" and not within this thread. I think you offered great instructions, but I dont think that most people need to do this and I doubt the majority of the people can (physical + mental limitations). Many people dont even have access to non public_html or www sections of their website (except 4 tmp and ftp which I wouldnt advise using).

Thanks for your work, cant wait to speak with you on ICQ.

Also, a note about my own system: If you have an index file in the /downloads/ directory, then the direct link to the file is impossible to figure out. I might have overlooked something (i doubt I did), but users would have to know your abbreviation for the category, the way I format filenames, the name of the file, the author, and the time uploaded (which they would have to convert to an integer). Basically, its 15 minutes of work just to find the one file name - and provided that most people dont know how I create the new filename - its very, VERY unlikely. Using my system people cannot just mouse-over a link and see the file URL. Before they could, but now they cant.

CyberRanger 08-21-2005 01:17 AM

Quote:

Originally Posted by Ron1n
To the above post:

Please post this in another thread as an "addon" and not within this thread..

Understood, I removed the post. ;)

djsydeburnz 08-21-2005 01:34 AM

ronin, thanks for this update....after some time i got most of it working on my site. i was worried i fubar'ed it, but after a couple hours of searching the forums i found most of my answers. i accidentally posted a question to the post on the 3.5 release, so disregard.

my only 3 questions left . . . .

Is there a fix avail or coming for the edit file problem? whenever you edit a file, it changes the original name.

Can something be done about removing the <br /> that shows in the edit window after a file has been added?

Is there a template i can use for the adv_portal that works with 3.0.7? the 3.5 version makes my frontpage look all screwy. 100% width and the table header does not fit in with the them.

thanks in advance.

djsydeburnz 08-21-2005 01:35 AM

oh, also i cannot see the permissions table that tells members what they can or cannot do on the downloads page....i think i missed something.

djsydeburnz 08-21-2005 01:37 AM

dang, last one, i promise. the latest files block seems to have all the files stuck at 6 downloads....????

Ron1n 08-21-2005 07:52 PM

Quote:

Originally Posted by djsydeburnz
ronin, thanks for this update....after some time i got most of it working on my site. i was worried i fubar'ed it, but after a couple hours of searching the forums i found most of my answers. i accidentally posted a question to the post on the 3.5 release, so disregard.

At least you are self-aware and try to find the answers. If only the rest of the users could be like you.

Quote:

Is there a fix avail or coming for the edit file problem? whenever you edit a file, it changes the original name.
This only applies to files you added prior to the upgrade. No new files will have this problem. There is no fix for the old files.

Quote:

Can something be done about removing the <br /> that shows in the edit window after a file has been added?
I assume this is the same question as the one above - and the answer is no for old files, and for new files - this shouldnt be a problem. If this happens with new files, please provide a screenshot.

Is there a template i can use for the adv_portal that works with 3.0.7? the 3.5 version makes my frontpage look all screwy. 100% width and the table header does not fit in with the them.

thanks in advance.[/QUOTE]
Copy a template from a module for 3.0.7 and take the variables ($) from the module I provided and put them in the 3.0.7 template.

Quote:

Originally Posted by djsydeburnz
oh, also i cannot see the permissions table that tells members what they can or cannot do on the downloads page....i think i missed something.

Nope, I removed it.

Quote:

Originally Posted by djsydeburnz
dang, last one, i promise. the latest files block seems to have all the files stuck at 6 downloads....????

Not sure what you mean by this. Latest files shouldnt be orderd by # of downloads. Screenshots are helpful.

djsydeburnz 08-22-2005 12:13 AM

i have attatched a screenshot and circled the latest topics. it seems that all of them say '6' next to them.

Ron1n 08-22-2005 02:35 AM

Odd, shouldnt say anything there. I am guessing I forgot delete that variable and the 6 actually represents a file ID or user ID.

xtreme-mobile 08-23-2005 06:00 PM

this would have been a great hack if it worked :(

gonna uninstall this later :(

Ron1n 08-23-2005 06:30 PM

Quote:

Originally Posted by xtreme-mobile
this would have been a great hack if it worked :(

gonna uninstall this later :(

I think you mean it "would have been a great hack if xtreme-mobile had a brain"

xtreme-mobile 08-23-2005 06:32 PM

and the point in throwing abuse was?

just said i couldnt get it to work, it wasnt a dig, i really wanted this hack but no one could help fix it,

i appreciate the help people have given me, but unfortunatly it didnt work out so im gonna be forced to uninstall it.

so keep your school boy abuse to your self please

Ron1n 08-23-2005 06:48 PM

Quote:

Originally Posted by xtreme-mobile
and the point in throwing abuse was?

just said i couldnt get it to work, it wasnt a dig, i really wanted this hack but no one could help fix it,

i appreciate the help people have given me, but unfortunatly it didnt work out so im gonna be forced to uninstall it.

so keep your school boy abuse to your self please

I like how you changed your post from
Quote:

Originally Posted by xtreme-mobile
you small cocked homo

to something nicer after you realised how much of an idiot you looked like. To bad you cant go into our other correspondence to clean that up too.

Here is a list of hacks you have had trouble installing:

Code:

Trader Ratings v1.2.0
Shoutbox Hack 1.04b
ecDownloads 3.2 Legacy
[Adv] banners Hack
Vb3 Affiliate Hack
Download Credit System
vB Easy Archive - Search Engine Spiderable Hack!
Post Thank You Hack 1.10
Mood Hack
Article Bot
Hot Topics/Threads
Flashchat: Who is chatting
vbPopup for vB3
24h Visitors' Statistics (members and guests)
Post Thank You Hack 1.10
Warning Hack V1.5

Do you see a pattern here?

xtreme-mobile 08-23-2005 07:07 PM

so what if i had trouble installing them, who cares? i dont sit ata pc all day looking at code and stuff.if no-one had problems installing these there would be no need for this forum would there

yahoooh 08-30-2005 02:09 AM

hello i get this error when i chick the stats :

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT * FROM vb5_dl_stats ORDER BY `day` DESC LIMIT 0,
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

mysql error number: 1064

how to fix that and thanks

yahoooh 08-30-2005 02:16 AM

also : Warning: Division by zero in /includes/functions.php on line 1858

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT * FROM vb5_dl_files WHERE `purgatory` = '0' AND `category` = '1' ORDER BY `pin` DESC, `date` DESC LIMIT 0,
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

when i visit :downloads.php?do=cat&id=1

yahoooh 08-30-2005 02:42 AM

i remove this ugly ,insecure and not fully work with my sho....

ZGeek 08-31-2005 05:48 AM

Anyone know how to fix the display order for sub-catagories? I've set the "Sort by Weight" in the CP to yes, but still no love.

YOU BETTER FIX IT RON1N OR IM GONNA JOIN THE WHINGYGIRL BRIGADE AND CLICK THE UNINSTALL BUTTON AND TYPE IN CAPITALS ALL OVER THE INTERWEB!!!!!11!!

Kiddin, this hack works. Got it running on three sites with out a problem.. except this one.

tscbh 08-31-2005 12:07 PM

I installed on vb3.07 and it doesn't work!

nothing is show when click on Download->Settings;

I can add Categories though.

alruwadnet 08-31-2005 12:36 PM

hi how can i deny downloads for unreg members ? :nervous:

i denied the unreg guest from downloading files in the fourm but it does not work here

SupraT 09-04-2005 01:31 PM

First off Ronin love the hack, works great, at least my version 2.o lol.


I followed instuctions to the "T" as I thought. Howver I must of missed or done something wrong as the downloads page is basically blank. I can add a catagory, but there is no other data.

Need some help as I can't figure this out.


http://www.clanspy.net/forums/downloads.php

Thanks


All times are GMT. The time now is 07:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02501 seconds
  • Memory Usage 1,930KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete