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)

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 04:57 PM.

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.04400 seconds
  • Memory Usage 1,769KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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