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)

jer2eydevil88 10-16-2007 04:21 PM

Thanks :-D that works.

I Googled it shortly after asking on here but still for those of us who are not accustomed to modding vbulletin it would be nice to have that in the readme.

maidos 10-16-2007 04:30 PM

also can u please answer my second msg

Stifmeister2 10-16-2007 07:47 PM

Quote:

Originally Posted by RS_Jelle (Post 1361657)
@Stifmeister2: Does it work for you?


Yes it does. :) Thanks! ;)

Black Tiger 10-17-2007 01:08 PM

I got a problem. I moved my site from servers and uploaded all the files which already were in Downloads II via FTP with the according numbers in the filename like: 15567-arioner.zip
There was a problem downloading via the site so my provider activated php-suexec and now downloads are possible but another error occurs.
When downloading files via the site, the zip and rar files have errors or a map in a rar file shows as a file.
When downloading via ftp however, the file comes in correctly.

So something must be wrong but I don't know what.
Files imported and uploaded either with ftp or via the web can be downloaded without problems.

So it looks as if the files which were already present before the server move, can't be downloaded without errors anymore. Is there a fix for this?
Did I forget something or did something wrong?

Edit: Just discovered another thing when clicking in the ACP on import, it says:
The absolute path to this script is /home/mydomain/domains/mydomain.org/public_html/bbs/admincp/
It should be /home/mydomain/public_html/bbs/admincp but i don't know where to change that.
Re-imported the downloads II product but that did not change anything... help?

maidos 10-17-2007 03:35 PM

also the scriptdoesnt work on the browser AOL please check it

Black Tiger 10-17-2007 04:02 PM

About my edit: No problem in the paths, I just discovered that they're both the same bot the second one is a symlink to the other one.
I would like however quick help with the download problems.

logofreax 10-17-2007 05:39 PM

Questions about Confirm on Deleting Files.

I read that at Version 5.0.4 there will be a Window which I have to confirm, when I am deleting Files. But at my Version 5.0.4 there is no one.

How can I activate it?

cu
logofreax

maidos 10-17-2007 07:17 PM

feature request: instead of restricting size limits can u instead set amount of download restrictioninstead ?

TheFixx 10-18-2007 01:30 AM

After looking through this Mod (great job btw!), I could not find the answer to my question, and did not feel like reading all 121 pages.... lol, anyway here is the question. What I would like to do is have the download section show another box, containing the actual URL. I am using this as a place for clan members to upload files and then embed them via bbcode into the actual forum.

Unfortunately I am still in the process of learning actual coding and this is beyond me for the time, so any help would be highly appreciated.

RS_Jelle 10-18-2007 05:44 AM

Quote:

Originally Posted by maidos (Post 1361672)
also can u please answer my second msg

I'm sorry, but I really don't understand the problem. I checked your downloads and I can see an Anime category. Categories can't disappear, or you should have deleted them (as that's the only existing query which can delete them).

Quote:

Originally Posted by Black Tiger (Post 1362309)
I got a problem. I moved my site from servers and uploaded all the files which already were in Downloads II via FTP with the according numbers in the filename like: 15567-arioner.zip
There was a problem downloading via the site so my provider activated php-suexec and now downloads are possible but another error occurs.
When downloading files via the site, the zip and rar files have errors or a map in a rar file shows as a file.
When downloading via ftp however, the file comes in correctly.

So something must be wrong but I don't know what.
Files imported and uploaded either with ftp or via the web can be downloaded without problems.

So it looks as if the files which were already present before the server move, can't be downloaded without errors anymore. Is there a fix for this?
Did I forget something or did something wrong?

Edit: Just discovered another thing when clicking in the ACP on import, it says:
The absolute path to this script is /home/mydomain/domains/mydomain.org/public_html/bbs/admincp/
It should be /home/mydomain/public_html/bbs/admincp but i don't know where to change that.
Re-imported the downloads II product but that did not change anything... help?

Check the chmod of newly uploaded files and compare it with the chmod of old, existing files in the downloads directory on your FTP. Possibly you didn't change the chmod of the files after moving servers.

Quote:

Originally Posted by maidos (Post 1362390)
also the scriptdoesnt work on the browser AOL please check it

I don't know if there's anyone else here using that browser to confirm this? I'm only testing with the major browsers: Firefox, Internet Explorer, Opera and Safari.
AOL Browser seems to be built upon Internet Explorer, so it should work normally. Normally all modern browsers should work with DownloadsII as we aren't using any exotic code.

Quote:

Originally Posted by logofreax (Post 1362505)
Questions about Confirm on Deleting Files.

I read that at Version 5.0.4 there will be a Window which I have to confirm, when I am deleting Files. But at my Version 5.0.4 there is no one.

How can I activate it?

cu
logofreax

That should work. Have you reverted all downloads templates to get the newest version of them (if you edited them)?

Quote:

Originally Posted by maidos (Post 1362589)
feature request: instead of restricting size limits can u instead set amount of download restrictioninstead ?

That's already an existing usergroup permission: "This is the maximum number of files that a user can download in one day. Set this to -1 for there to be NO limit."

Quote:

Originally Posted by TheFixx (Post 1362768)
After looking through this Mod (great job btw!), I could not find the answer to my question, and did not feel like reading all 121 pages.... lol, anyway here is the question. What I would like to do is have the download section show another box, containing the actual URL. I am using this as a place for clan members to upload files and then embed them via bbcode into the actual forum.

Unfortunately I am still in the process of learning actual coding and this is beyond me for the time, so any help would be highly appreciated.

You could edit the downloads_file template and add something like this:
HTML Code:

    <tr>
    <td class="alt1">Direct file link:</td>
    <td class="alt2" colspan="3" valign="middle" align="left"><input type="text" class="bginput" name="directlink" size="50" value="<if condition="$file['link']">{$directlink}<else />http://www.yoursite.com/downloads/{$directlink}</if>" /></td>
    </tr>

after:
HTML Code:

    <tr>
    <td class="alt1">{$vbphrase['ecdownloads_downloads']}:</td>
    <td class="alt2" colspan="3" valign="middle" align="left">{$file['downloads']}</td>
    </tr>

Change http://www.yoursite.com/downloads/ to your actual site/downloads folder url. Note that hotlinking can be problematic (everyone can link to the content on your server, so they are consuming your bandwidth).

Finally open downloads.php and find the second instance of:
PHP Code:

$downloads vb_number_format($file['downloads']); 

Add the following on the next line:
PHP Code:

$directlink htmlspecialchars_uni($file['url']); 

This is necessary for protection against an XSS security issue.


All times are GMT. The time now is 01:55 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.04351 seconds
  • Memory Usage 1,770KB
  • 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_html_printable
  • (2)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