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)

Hornstar 11-04-2006 09:10 PM

Thanks, I'll try the above when I get home.

Lionel 11-05-2006 05:30 AM

Good news!!!!

My logo is a png file.

I installed the png fix hack and had this in headinclude

Quote:

<!--[if lt IE 7.]>
<script defer type="text/javascript" src="/forums/clientscript/pngfix.js"></script>
<![endif]-->
Then I found out that the problem was not just with your hack, but with every form that does an add/edit.

Go figure! I removed the png hack and all is fine now.

captainslater 11-06-2006 06:20 AM

For further versions the "Categories", "Import" and "Downloads"-settings in the ACP should be phrased for translations...

fosman 11-06-2006 08:32 AM

What about mirror ability... Is that in your plans? :)

RS_Jelle 11-06-2006 09:50 AM

Quote:

Originally Posted by captain slater
For further versions the "Categories", "Import" and "Downloads"-settings in the ACP should be phrased for translations...

We know they aren't phrased and we will do this when we've got the time for it (maybe we also create admin help items in the product), but that's not a major issue (normally everyone understands english and only admins are seeing this).
Quote:

Originally Posted by fosman
What about mirror ability... Is that in your plans? :)

That's our biggest plan for the future together with custom file fields (it's mentioned in the first post) :)

Hornstar 11-06-2006 10:07 AM

Quote:

Originally Posted by phill2003
The disclaimer thing is awesome thanks. :)

One thing though, to get it to work right (so the download button will not work on the file listing page you need to make a couple of changes in downloads.php

find

Code:

$filethumb = '<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=down" '.$target.'><img src="'.$dl->url.$thumb_x['thumb'].'" align="middle" title="'.$vbphrase['ecdownloads_download'].'&nbsp;'.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a>&nbsp;';
and change it too

Code:

$filethumb = '<a href="./downloads.php?do=file&amp;id='.$file['id'].'" '.$target.'><img src="'.$dl->url.$thumb_x['thumb'].'" align="middle" title="'.$vbphrase['ecdownloads_download'].'&nbsp;'.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a>&nbsp;';
Then you need to find
Code:

$download = '<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=down" '.$target.'><img src="'.$stylevar[imgdir_button].'/'.$vbphrase['ecdownloads_download_pic'].'" width="15" height="15" align="middle" title="'.$vbphrase['ecdownloads_download'].'&nbsp;'.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a>&nbsp;';
and replace it with
Code:

$download = '<a href="./downloads.php?do=file&amp;id='.$file['id'].'" '.$target.'><img src="'.$stylevar[imgdir_button].'/'.$vbphrase['ecdownloads_download_pic'].'" width="15" height="15" align="middle" title="'.$vbphrase['ecdownloads_download'].'&nbsp;'.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a>&nbsp;';
This stops the images being download links and the little giff downloading the fiel so people have now go to go into the download file page and click on the disclaimer tick box...

Hope this helps...

I have not done this yet, but everything seems to be working okay without having to do this yet.

I placed the code above this

Code:

<a href="downloads.php?do=file&amp;id={$file['id']}&amp;act=down" {$target}><img src="$stylevar[imgdir_button]/download.gif" alt="{$vbphrase['ecdownloads_download']}" title="{$vbphrase['ecdownloads_download']} {$file['name']}" border="0" /></a>
Then after I removed the above.


Can anyone else confirm if what he did should be done as well.



Also how do I get the old download button to show instead of the new one, or is that not possible with this.

thanks.

phill2003 11-06-2006 11:13 AM

You dont have to do anything! But as the code stands your users can still download using the thumbnail on the listing page thus bypassing the need to tick the disclaimer box, My code just makes both the thumbnail (if one is uploaded) and the download gif (little black on on the listing page) into links to the download page where the disclaimer link is and then the user has to click it to say they have read, Which is the whole point because if you can circumvent that then it has no meaning as you could argue that you do not accept it because you were not asked to.

phill2003 11-06-2006 12:23 PM

Oh yea and i forgot in the template downloads_file you need to delete both instances of
Code:

$download
if you want this disclaimer hack to work as intended...

jarvis 11-06-2006 12:38 PM

Quote:

Originally Posted by RS_Jelle
I will try to create this one ;)
The poster of the thread: do you want it to be a specified person or the person who placed the file?

Thanks, Jelle!! The poster could just be something as simple as a specified user ID, that way we could setup some sort of 'FileBot' or even assign an admin to be the poster.

Thanks again! :D

CyberRanger 11-06-2006 12:56 PM

Quote:

Originally Posted by jarvis
Thanks, Jelle!! The poster could just be something as simple as a specified user ID, that way we could setup some sort of 'FileBot' or even assign an admin to be the poster.

Thanks again! :D

I've created a feature like this for a different mod. Here's some of the options that I feel admins will want;
  1. Ability to decide what forum receives the new thread based on the category of the file
  2. Option to make creating a new thread required or give the person who is uploading the file an option for creating the thread
  3. Option to have the thread created by the uploader or always assigned to the same user account (pros and cons of both ways)
  4. Ability to track which threads where created via DownloadsII

I think this is a great idea that I'll probably spend some time with too.... but it does it complicated quickly!


All times are GMT. The time now is 10: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.03914 seconds
  • Memory Usage 1,755KB
  • 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
  • (6)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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