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)

Black Tiger 10-18-2007 11:48 AM

@RSJelle: Ik checked the chmods, they were both the same. Even checked the file owner, they ware both satfun.
When the rights would not be ok, it would be impossible to download, but dowload is possible, only the downloaded files will be corrupted.
I just checked with files which were imported after the servermove and they are all the same, rights are rw-r--r-- and owner is satfun:satfun on all files.

maidos 10-18-2007 11:54 AM

also when you add the llinks the file url wont be cloaked as if you wouldimportthe files!
how can i do the samefor my other directory which is where i use to add links

also fdorsome reason myentire category is gone, but not entierly since i can access a file that were located at that directory that was supposed to be deleted but it still exist!!!!

it says thefile is on main downloadpage when i cant see a single file there

beside can you make a own section for moderator to import incase its not possible to cloak the url, since it seems on /downloads/ have a protection against reveealing the true url location

Yesbut please download AOL and see for your self

TheFixx 10-18-2007 12:45 PM

Quote:

Originally Posted by RS_Jelle (Post 1362873)
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.

Thanks :D I do have one issue with it though if you wouldn't mind taking a peek, I can set up an account for you with access to it. It's just showing up as "http://www.mysite.net/forum/downloads/" instead of "http://www.hostileint.net/forum/downloads/filename.ext" though.

VBORGUSER 10-18-2007 02:26 PM

How to get rid of the stats in Downloads II 5.0.5 please ?

Want to hide everything regarding quantity of downloads and data.

Any suggestion please ?

RS_Jelle 10-18-2007 04:50 PM

Quote:

Originally Posted by Black Tiger (Post 1363005)
@RSJelle: Ik checked the chmods, they were both the same. Even checked the file owner, they ware both satfun.
When the rights would not be ok, it would be impossible to download, but dowload is possible, only the downloaded files will be corrupted.
I just checked with files which were imported after the servermove and they are all the same, rights are rw-r--r-- and owner is satfun:satfun on all files.

Hmm, that's pretty strange then :p
New files work correctly, old files are corrupted, but they aren't if you download them using FTP. So the problem has to be something with the files in the downloads folder.

The chmod and owner of the old files is the only thing I can think about, but they are the same :(
I also did some server moves and doing a chmod/chown was the only thing I did to get it back to live.

Quote:

Originally Posted by maidos (Post 1363007)
also when you add the llinks the file url wont be cloaked as if you wouldimportthe files!
how can i do the samefor my other directory which is where i use to add links

also fdorsome reason myentire category is gone, but not entierly since i can access a file that were located at that directory that was supposed to be deleted but it still exist!!!!

it says thefile is on main downloadpage when i cant see a single file there

beside can you make a own section for moderator to import incase its not possible to cloak the url, since it seems on /downloads/ have a protection against reveealing the true url location

Linking to a file is something totally different than importing it. A link is ... well a link (file isn't stored on your server) and importing it is done on your server. Changing this behaviour isn't something we can do easily, so I can't give you five lines of PHP code to change for something big like this.
We do our best to give users what they want, but we can't code everything custom.

A category, like I said, doesn't disappear suddenly. The only way they go away is when you remove them using the AdminCP. Other, external reasons can be a corrupt table in your database for example, so try running a repair command on all your database tables for example.

Quote:

Originally Posted by TheFixx (Post 1363028)
Thanks :D I do have one issue with it though if you wouldn't mind taking a peek, I can set up an account for you with access to it. It's just showing up as "http://www.mysite.net/forum/downloads/" instead of "http://www.hostileint.net/forum/downloads/filename.ext" though.

That's strange. I tested it now and it works for me :p
Are you sure you've done the downloads.php edit correct (placed the code after the second instance of the code to find)? I've attached a pre-edited downloads.php, try uploading that one to be sure.
If that's not working, you can pm me an account so I can check it out.

Note that you need to change http://www.yoursite.com/downloads/ in the template edit to match your site details, so http://www.hostileint.net/forum/downloads/ for your site.

Quote:

Originally Posted by VBORGUSER (Post 1363083)
How to get rid of the stats in Downloads II 5.0.5 please ?

Want to hide everything regarding quantity of downloads and data.

Any suggestion please ?

AdminCP -> Downloads -> Settings -> Display "Tops" on all pages? -> No
That's a beginning to remove the left panel stats (most popular files, newest files and top contributors) on most pages.
Also set "Number of "Latest Files" to Display", "Number of "Most Popular Files" to Display" and "Number of "Top Contributors" to Display" to 0.

For hiding other statistics, you need to edit the downloads templates manually. For example remove
PHP Code:

   <tr align="center">
    <
td class="thead" colspan="4">
     <
span style="float:left">{$vbphrase['ecdownloads_downloads']}: {$dl->stats['downloads']}</span>
     <
span style="float:right"><phrase 1="{$dl->stats['files']}2="{$dl->stats['categories']}">{$vbphrase['ecdownloads_x_files_in_y_categories']}</phrase>.</span>
    </
td
   </
tr

from downloads_main.

VBORGUSER 10-18-2007 05:19 PM

To get rid of statistics :

AdminCP -> Downloads -> Settings -> Display "Tops" on all pages? -> No

This was logial, and had done that already, alltough i do not care about a top 5 or something like that ; nice feature :) if it does not show how many times it was downloaded.

Anyway, this is clear.

The only thing i don't want to be public is :

- how many files are downloaded
- how many data is used

So any referal to any page concerning quanties.

How can we get rid of that :up:

(editing the downloads_main did not solve it)

Thanks for your help !

maidos 10-18-2007 05:29 PM

actually the files is stored on the same server but in different directory, my uploaders just add the url on add my links..
the reason is because i got alot of uploaders and if theyuploadfrom the browser my server just die since im running on dedicated server and my /tmp/ is only set on 500mb, and since only admins can importthe file it would be a issue right?

what im telling is the /downloads/ request on php which cloak the real url when ppl download it using download managare what i want is that the script request on php on my other directorys aswell

Black Tiger 10-18-2007 05:37 PM

Quote:

New files work correctly, old files are corrupted, but they aren't if you download them using FTP. So the problem has to be something with the files in the downloads folder.
Exactly. I've read you tested it and had no problems. Could it maybe be so, that the other linux distro had a different filesize or something and that now the actual size differs from the on in the database which corrupts files when downloading via the browser?
I don't have clue if this is possible. But that's the only thing left I can think about.
I'll guess I have to reimport all my files again or something like that.:(

TheFixx 10-18-2007 06:19 PM

Quote:

Originally Posted by RS_Jelle (Post 1363197)
That's strange. I tested it now and it works for me :p
Are you sure you've done the downloads.php edit correct (placed the code after the second instance of the code to find)? I've attached a pre-edited downloads.php, try uploading that one to be sure.
If that's not working, you can pm me an account so I can check it out.

Note that you need to change http://www.yoursite.com/downloads/ in the template edit to match your site details, so http://www.hostileint.net/forum/downloads/ for your site.

You nailed it on the head, I put it after the first instance, I did change the url I just typed it out wrong in my post lol. It works like a charm :up::up:

logofreax 10-18-2007 07:47 PM

Now, I installed newest Version 5.0.5 but no Confirmation Window if I am deleting a File.

Whats wrong?

cu
logofreax


All times are GMT. The time now is 05:50 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.05029 seconds
  • Memory Usage 1,778KB
  • 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
  • (3)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