vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - DownloadsII (https://vborg.vbsupport.ru/showthread.php?t=120122)

RS_Jelle 01-19-2008 07:41 AM

Quote:

Originally Posted by yahoooh (Post 1424159)
i installed v 5.0.6

there is an additional query per file show in category


if i choose to show 20 files
it add 20 query

if i choose to show 25 files it will add 25 query and so on !

any help ?

There is no additional query per file shown in a category. I don't know where you have that information from :)

There are only additional queries for generating the category tree (if you are having a lot of sub-categories), but that's only an amount. It doesn't say a thing about the weight of them and those are very light as it's a pretty small table to search in.

Quote:

Originally Posted by REVHEAD (Post 1424245)
Can this mod have set forum permissions for usergroups?

I am seriously thinking about installing this.

At the moment there are raw category permissions per usergroup: you can list the categories which should be blocked or which should be accessible for a usergroup.

REVHEAD 01-19-2008 11:50 AM

Hi

I just installed the mod ,I havnt created a button yet,but when I go to http://mysite.com/forums/downloads ,I just get a blank page,is this normal?
I have set permissions to 777 I have created some cats and user permisssions ,but I dont see a page for it .

thanks in advance.

RS_Jelle 01-19-2008 12:06 PM

Quote:

Originally Posted by REVHEAD (Post 1424377)
Hi

I just installed the mod ,I havnt created a button yet,but when I go to http://mysite.com/forums/downloads ,I just get a blank page,is this normal?
I have set permissions to 777 I have created some cats and user permisssions ,but I dont see a page for it .

thanks in advance.

The http://www.mysite.com/forums/downloads/ folder stores your downloads. The downloads section can be found at http://www.mysite.com/forums/downloads.php

REVHEAD 01-19-2008 12:23 PM

That worked thanks.

Now I will make a download button thanks.

REVHEAD 01-19-2008 12:41 PM

Ok I have a slight hiccup.

I get error uploading a small 2 meg file ,I made a .htaccess file as suggested ,but still got the problem ,when I re-checked the .htccass the server added some text ,this is what it changed it to
PHP Code:

# File modified on Sat Jan 19 07:35:37 2008 by server
# For security reasons, mod_php is not used on this server. Use a php.ini file for php directives
# php_value upload_max_filesize 30M
# For security reasons, mod_php is not used on this server. Use a php.ini file for php directives
# php_value post_max_size 30M 


RS_Jelle 01-19-2008 12:45 PM

Quote:

Originally Posted by REVHEAD (Post 1424405)
Ok I have a slight hiccup.

I get error uploading a small 2 meg file ,I made a .htaccess file as suggested ,but still got the problem ,when I re-checked the .htccass the server added some text ,this is what it changed it to
PHP Code:

# File modified on Sat Jan 19 07:35:37 2008 by server
# For security reasons, mod_php is not used on this server. Use a php.ini file for php directives
# php_value upload_max_filesize 30M
# For security reasons, mod_php is not used on this server. Use a php.ini file for php directives
# php_value post_max_size 30M 


Find the php.ini on your (virtual) server and add this code to it:
Code:

upload_max_filesize 30M
post_max_size 30M

I don't know the exact location of your php.ini (maybe you even need to create it yourself) as this depends from your host. So search their FAQ for it or ask it :)

REVHEAD 01-19-2008 10:37 PM

all fixed thanks RS Jelle, for this mod your giving top notch support,its appreciated.

Just one last thing, when I came acrosss optimizing details for my php.ini file I came across this info
Quote:

If you expect to handle a large number of concurrent file transfers on your website consider using a perl or java server side component. PHP happens to be our favourite web programming language as well but perl is just slightly ahead when it comes to file handling.
Most installations of perl as an apache module can accept upto 32 megabytes out of the box. Compare this against the 2MB default for PHP. The downside is that perl coding takes just a bit more effort than PHP but it's worth it.
Is this at all possible for me to do Or do I stick with php because of VB, forgive me I know very little about website coding and stuff .

REVHEAD 01-20-2008 03:32 AM

1 Attachment(s)
I am allso having a ever so small problem with the Download button disstorting due to my skin , Would any one be able to edit the button for me to remove the tranceparent border for me ,because I think that is what is playing up on me.

If not then thats ok ,I can live with it.

yahoooh 01-20-2008 05:39 AM

Quote:

Originally Posted by RS_Jelle (Post 1424265)
There is no additional query per file shown in a category. I don't know where you have that information from :)

There are only additional queries for generating the category tree (if you are having a lot of sub-categories), but that's only an amount. It doesn't say a thing about the weight of them and those are very light as it's a pretty small table to search in.



At the moment there are raw category permissions per usergroup: you can list the categories which should be blocked or which should be accessible for a usergroup.

i tested it
in vb 3.6.8 pl2

php:5
mysql:4.1
with xcache
and vbseo
it give me additional query per file

i disabled vbseo and vbseo plugin for download II

also it gives additional query per file

could u check plz

RS_Jelle 01-20-2008 08:35 PM

Quote:

Originally Posted by REVHEAD (Post 1424753)
all fixed thanks RS Jelle, for this mod your giving top notch support,its appreciated.

Just one last thing, when I came acrosss optimizing details for my php.ini file I came across this info

Is this at all possible for me to do Or do I stick with php because of VB, forgive me I know very little about website coding and stuff .

vBulletin is PHP coded and because of that also all the mods at vB.org. vBulletin itself is also using PHP for uploading attachments to the forum and other things.

Combining two programming languages isn't easy/very logical/... and most webhosts are only supporting PHP.

Quote:

Originally Posted by yahoooh (Post 1424921)
i tested it
in vb 3.6.8 pl2

php:5
mysql:4.1
with xcache
and vbseo
it give me additional query per file

i disabled vbseo and vbseo plugin for download II

also it gives additional query per file

could u check plz

Ok, I can confirm it now (there's a query in the while loop for getting the image thumbs). That's some old Ron1n ecDownloads code, not ours :p

This is already recoded in my v6 dev version using a table join. No ETA, I'm in the middle of my exams at the moment :)

aacircle 01-20-2008 08:35 PM

Does this mod allow you to charge members for access to downloads?

Thank you.

RS_Jelle 01-20-2008 08:47 PM

Quote:

Originally Posted by aacircle (Post 1425406)
Does this mod allow you to charge members for access to downloads?

Thank you.

It has got usergroup permissions, should be enough for that :)

You can create a usergroup for those members and combine this with the vB promotion system and paid subscriptions.

yahoooh 01-21-2008 03:47 AM

Quote:

Originally Posted by RS_Jelle (Post 1425405)
vBulletin is PHP coded and because of that also all the mods at vB.org. vBulletin itself is also using PHP for uploading attachments to the forum and other things.

Combining two programming languages isn't easy/very logical/... and most webhosts are only supporting PHP.



Ok, I can confirm it now (there's a query in the while loop for getting the image thumbs). That's some old Ron1n ecDownloads code, not ours :p

This is already recoded in my v6 dev version using a table join. No ETA, I'm in the middle of my exams at the moment :)

thanks for your confirmed
i wish that u will success in your exams :up:

booktoweb 01-22-2008 03:17 PM

hi,

i have many idea if it added to this hak it make it more efficient

  1. using custom fields:-
    you can using the same options and codes that used in profile field in vb admincp

  2. make this product more Interdependence with forum this methods:-
    • when file added, thread added to forum have all information about file ( forum that admin chosen it to category from cpanel )
    • when file edited, its post in forum edited too ( not new post )
    • comments under files Interdependence with thread too ( when member add a comment, added post to thread - when he edit his post or comment its edited in both and so on )

      like links and download product
  3. using rewrite to make urls more compatible with seo
  4. allow uploading file om external server :
    admin can choose the way of uploading file
    on the same server or external server
    when he chooses external server - there are options to take information about ftp account to upload file
  5. allow category permission:-
    in vbulletin there are permissions to each forums and permissions to each user group
    but in this product just permissions to user groups.
    i want to allow downloading from some categories to some groups
    and not allow for some
    uploading file to some categories, adding comments, adding images ... and so on
  6. allow to us to merge category with label not forum only ( in vbulletin 3.7.0 )
    when member add file, post thread in forum that admin choose it from panel
    and take label that admin define it also
  7. allow adding tags from members to files and this tags appear in files thread in forum ( in vbulletin 3.7.0 )

GiaNNi 01-22-2008 04:44 PM

Hi all..

Im using this really good mod... but i woukd want to change the page title on each download.

Now, a download page title is "Boar Title - Downloads - File_Name"...

I would want it to be with the file name in the start of the title... it would be possible? how?

Someting like "FileName - Board Downloads"

RS_Jelle 01-22-2008 05:30 PM

Quote:

Originally Posted by GiaNNi (Post 1426763)
Hi all..

Im using this really good mod... but i woukd want to change the page title on each download.

Now, a download page title is "Boar Title - Downloads - File_Name"...

I would want it to be with the file name in the start of the title... it would be possible? how?

Someting like "FileName - Board Downloads"

You can change the title in the DOWNLOADS template ;)

MiahBeSmokin420 01-23-2008 05:16 PM

I have

DownloadsII 5.0.6

installed on my site and i also have

vBCredits 1.3

installed on my site and i have a idea / question about the 2

is there a way to make it so that downloads cost a certian amount of credits and if a user dose not have the credits required then he or she can not download the file?

also making it to where after downloading the file the user would loose X amount of credits after downloading the file?

CyberRanger 01-23-2008 05:19 PM

Quote:

Originally Posted by MiahBeSmokin420 (Post 1427474)
I have

DownloadsII 5.0.6

installed on my site and i also have

vBCredits 1.3

installed on my site and i have a idea / question about the 2

is there a way to make it so that downloads cost a certian amount of credits and if a user dose not have the credits required then he or she can not download the file?

also making it to where after downloading the file the user would loose X amount of credits after downloading the file?

The hooks are available in Downloads II to make it happen. We just need someone to code it :)

MiahBeSmokin420 01-23-2008 05:32 PM

ok well im going to try to disasemble the spend credits in the arcade and see if i can code it for the downloads

if i can do it then it will be the first mod that i have ever released lol :)

CyberRanger 01-23-2008 05:45 PM

Quote:

Originally Posted by MiahBeSmokin420 (Post 1427492)
ok well im going to try to disasemble the spend credits in the arcade and see if i can code it for the downloads

if i can do it then it will be the first mod that i have ever released lol :)

Be sure to read this post about the available hooks. What you'll want to do is figure out the sql to use for increasing/decreasing credits then have that at the appropriate hook.

Good luck! I'd love to see someone finally write an add-on to hook into one of the credit systems.

stationar 01-23-2008 10:38 PM

Is it possible for users to sell their files through this hack?

CyberRanger 01-23-2008 11:14 PM

Quote:

Originally Posted by stationar (Post 1427665)
Is it possible for users to sell their files through this hack?

No, not really. There's no permission or payment system set up for that.

ntloc 01-24-2008 07:39 PM

Hi, can you help me out on this problem. I've just moved to a new dedicated server with Apache v2.2 + PHP5 + MySQL 4.1, then problem is when i tried to import files via admincp it got real slow when doing the "doimport", takes 5-10 minutes just to import 7-14 files. I've never had this problem before on my old server and i think i set the config same with myold server. It load the page "preimport" really fast but when starting actual importing work, it's taking forever eventhough the files have been copied into my download dir successfully really fast (check the files via SSH) but the page "doimport" keep loading, trying to reply back or something according to the server log file.
I check the server process log while "doimport" is running and it show POST... "W" Sending reply and hog 1/2 of my CPU usage. Please help me on this and thanks in advance.

p.s. and also when I click "Update Counters" to recount all files after imported, it take 10 minutes to finish.

CyberRanger 01-24-2008 07:57 PM

Quote:

Originally Posted by ntloc (Post 1428173)
Hi, can you help me out on this problem. I've just moved to a new dedicated server with Apache v2.2 + PHP5 + MySQL 4.1,...
p.s. and also when I click "Update Counters" to recount all files after imported, it take 10 minutes to finish.

My guess is the difference between how PHP5 and PHP4 handle memory. Ask your host what memory_limit is set to in php.ini. My guess is that it's memory_limit = 8M. Ask them to increase that to 24M. That should help.

ntloc 01-24-2008 10:16 PM

Well, i set that 500M (also try no limit -1 too) since I have about 2GB of memory for my server, that won't be a problem. Any other problem i might have you think? I've also try to downgrade to using PHP4 but didn't help either.
regards.

CyberRanger 01-24-2008 10:59 PM

Quote:

Originally Posted by ntloc (Post 1428286)
Any other problem i might have you think? I've also try to downgrade to using PHP4 but didn't help either.
regards.

I can't think of any. The script uses a simple unix copy command.

MiahBeSmokin420 01-24-2008 11:50 PM

quick question

i set the limit for file to -1 which should be unlimited

why are file above 75mb - 100mb + not uploading

it just takes you back to the add file page

CyberRanger 01-25-2008 02:51 AM

Quote:

Originally Posted by MiahBeSmokin420 (Post 1428352)
quick question

i set the limit for file to -1 which should be unlimited

why are file above 75mb - 100mb + not uploading

it just takes you back to the add file page

What is the max upload size, ie what is the value of upload_max_filesize and post_max_size?
See : https://vborg.vbsupport.ru/showthrea...31#post1411831

maidos 01-25-2008 02:46 PM

my sys admin said theres a time out issue with the script after adding this on htaccess it cant be my servers configuration, i still get blank page adfter importing files only 4 files

heres my htaccess config

php_value upload_max_filesize 1000M
php_value post_max_size 1000M
php_value memory_limit 900M
php_value max_execution_time 0
php_value max_input_time 0

edit: he changed the php.ini so the value to 0 but i still get blank page

MiahBeSmokin420 01-25-2008 10:48 PM

what dose this do in the .htaccess file

php_value max_execution_time 0
php_value max_input_time 0

?????? just wondering

cause i see it there in your post and i never had a htaccess file in my dir untill just now lol

kafi 01-26-2008 08:32 AM

I wanted to have search box on main download page.
Here is how I achieved this:

1. copy content of downloads_search template except "$dresult" at the bottom of the template.

Here it is:
HTML Code:

<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="{$stylevar['tablewidth']}" align="center">
 <tr>
  <td>
  <table cellpadding="{$stylevar['cellpadding']}" cellspacing="{$stylevar[cellspacing]}" border="0" width="100%">
    <tr align="center">
    <td class="thead" width="100%" colspan="3">{$vbphrase['ecdownloads_search']}</td>
    </tr>
    <tr>
    <td class="alt2" align="center" colspan="3">
        <form action="./downloads.php?do=search" method="post">
      <br />{$vbphrase['ecdownloads_search_instructions']}
      <br /><input type="text" name="query" maxlength="75" size="50" />&nbsp;<input type="submit" name="submit" value="{$vbphrase['ecdownloads_search']}" />
      </form>
      <br /><br />
    </td>
    </tr>
  </table>
  </td>
 </tr>
</table>

2. Paste the content at the very beginning of downloads_main template.

You done. Search box now appear under downloads navigation box and it works :)

kafi 01-26-2008 08:40 AM

How do I put files stat on forumhome? I guess I have to call
Code:

{$dl->stats['files']}
somewhere.

I want to place it into stats box (treads, posts, members, downloads_files)

Thanks!!!

WhatChaMissin 01-26-2008 10:13 AM

I'm not sure how many people are familiar with GARS.

Well I'm currently use it on my site and once I installed Gars, the upload feature stopped working on downloadsII. Now I have to disable Gars in order to upload files to my site using DownloadsII, and then enable Gars when I'm done.

I used to have a special group set with permission to upload to the site. Now they have to send me the files so I can upload it for them.

I was just wondering if anyone has DownloadsII and Gars running together and might have found a fix for it.

BTW: The only error message I get is that all fields must be completed (which they are of course), this is were it gets "stuck" and won't let anyone complete the upload process.

Thanks

dtv100 01-26-2008 10:18 AM

Quote:

Originally Posted by WhatChaMissin (Post 1429225)
I'm not sure how many people are familiar with GARS.

Well I'm currently use it on my site and once I installed Gars, the upload feature stopped working on downloadsII. Now I have to disable Gars in order to upload files to my site using DownloadsII, and then enable Gars when I'm done.

I used to have a special group set with permission to upload to the site. Now they have to send me the files so I can upload it for them.

I was just wondering if anyone has DownloadsII and Gars running together and might have found a fix for it.

BTW: The only error message I get is that all fields must be completed (which they are of course), this is were it gets "stuck" and won't let anyone complete the upload process.

Thanks

now I know is not only me if you find a answer please let me know.

Charles_1 01-26-2008 04:05 PM

Quote:

Originally Posted by dtv100 (Post 1429228)
now I know is not only me if you find a answer please let me know.

I have this problem too :-(. I was using GARS version 2.1.8c together with Downloads II (version 5.0.5, then 5.0.6) for several months and they were working fine. A few days ago I updated GARS to its new version (2.1.8m) and mentioned problem occurred. I hope that someone will find solution soon, becouse our users are unable to add new downloads right now (GARS is more important for our forum, so I can't disable it) :-(

exportforce 01-27-2008 12:48 PM

Does this Mod support pre-HTML Downloadstreaming?
So that I can put my downloads under the HTML-Path?
/var/www/webX/html/ <-- thats where www.domain.com links
/var/www/webX/downloads/ <-- here you can't access via hotlinking etc.
Thats where I wan't my downloads, so they never can be hotlinked.

Is that possible with this ?

thecool444 01-27-2008 09:24 PM

Im having trouble with downloads2. I have done every step exept the optional steps. But when i go to my forum theres no link to the download page. I have done settings categories etc. When i manually go to the download page it is just blank see here
http://www.mmorpglord.com/Forum/downloads/

Any help would be appreciated.

Thanks
Alexander

RS_Jelle 01-27-2008 09:36 PM

Quote:

Originally Posted by MiahBeSmokin420 (Post 1428987)
what dose this do in the .htaccess file

php_value max_execution_time 0
php_value max_input_time 0

?????? just wondering

cause i see it there in your post and i never had a htaccess file in my dir untill just now lol

Those are optional PHP settings, but you don't need that normally :)

Have a look at http://www.php.net/info for some more information about them.

Quote:

Originally Posted by WhatChaMissin (Post 1429225)
I'm not sure how many people are familiar with GARS.

Well I'm currently use it on my site and once I installed Gars, the upload feature stopped working on downloadsII. Now I have to disable Gars in order to upload files to my site using DownloadsII, and then enable Gars when I'm done.

I used to have a special group set with permission to upload to the site. Now they have to send me the files so I can upload it for them.

I was just wondering if anyone has DownloadsII and Gars running together and might have found a fix for it.

BTW: The only error message I get is that all fields must be completed (which they are of course), this is were it gets "stuck" and won't let anyone complete the upload process.

Thanks

That's pretty strange, but GARS isn't a free script, so I can't test it :(

Could you bring this issue to the attention of the GARS developer? DownloadsII is available for free, so he can test it out :)
He can always contact me to sort it out together.

Quote:

Originally Posted by kafi (Post 1429190)
How do I put files stat on forumhome? I guess I have to call
Code:

{$dl->stats['files']}
somewhere.

I want to place it into stats box (treads, posts, members, downloads_files)

Thanks!!!

You need to include /includes/class_downloads.php in your forum home (using a plugin) to be able to use the $dl class. Then you can put {$dl->stats['files']} (and others) everywhere you want in a forum home template.

Try adding a plugin to the forumhome_start hook location with this content:
PHP Code:

require_once('./includes/class_downloads.php');
$dl = new vB_Downloads(); 

(I didn't test it, but it should work normally.)

Quote:

Originally Posted by exportforce (Post 1430034)
Does this Mod support pre-HTML Downloadstreaming?
So that I can put my downloads under the HTML-Path?
/var/www/webX/html/ <-- thats where www.domain.com links
/var/www/webX/downloads/ <-- here you can't access via hotlinking etc.
Thats where I wan't my downloads, so they never can be hotlinked.

Is that possible with this ?

That's not possible at the moment, but users will never see the direct file link (except for the optional file images). We also add some random characters to the file name, so guessing the exact location is pretty difficult.

Finally you can add .htaccess protection to the directory if you don't trust it :)

Quote:

Originally Posted by thecool444 (Post 1430365)
Im having trouble with downloads2. I have done every step exept the optional steps. But when i go to my forum theres no link to the download page. I have done settings categories etc. When i manually go to the download page it is just blank see here
http://www.mmorpglord.com/Forum/downloads/

Any help would be appreciated.

Thanks
Alexander

That's why there is an optional step to add a link to your vB navigation bar in the navbar template :)

Try http://www.mmorpglord.com/Forum/downloads.php (you need to set usergroup permissions to access it)
(http://www.mmorpglord.com/Forum/downloads/ is just the storage directory for uploads)

thecool444 01-27-2008 11:13 PM

Ah thankyou so much. Also how do i do the optional bits (im a bit new to all this)

yahoooh 01-28-2008 01:53 AM

is there any temporary fix for : additional query per file ?
i did not use thumbnil!

also i want to show random files under most downloaded files , is there any additional code to make this random files

i suggest adding :
1. related files that show in the page of file
2. captcha for unregistered to prevent hot linking espicially when unregistered useres can download files by permission in usergroup

thanks


All times are GMT. The time now is 12:56 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.08400 seconds
  • Memory Usage 1,906KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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