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)

Panzer Max 03-27-2009 06:10 PM

Quote:

Originally Posted by RS_Jelle (Post 1301008)
Have a look at this post and try that version of downloads.php.
I created it for someone who wanted more images per row. There's a $countnumber variable in it to control the amount.
Here you can find a screenshot of how the modified version looks like (without the numbers in front of the image, that was a debugging thing).



That's currently hardcoded in downloads.php. Open it and have a search for $dlinks. It's pretty easy to edit yourself (even without knowing PHP).

Search was my friend! Thanks for that tip.

RS_Jelle 03-27-2009 07:05 PM

Quote:

Originally Posted by Kolbi (Post 1778177)
It doesn?t work?
Still: Downloads: 4294967295

Run this query using phpMyAdmin or so:
[sql]UPDATE dl_main SET `downloads` = 0[/sql]
(You need to add a table prefix if necessary.)

Quote:

Originally Posted by Stifmeister2 (Post 1778171)
Click "Update Counters". ;) It's in the navigation bar in downloads.php page (with Main | Category Tree | Stats | Search | Add etc...)

Update Counters isn't resetting the downloads count.

Kolbi 03-27-2009 07:39 PM

That was what i was searching for. Thank you!

EeeZee 03-28-2009 11:37 PM

I need some advice. First, DownloadsII is an excellent mod. No doubt about it. Been using it for perhaps a year without incident, problem, or frustration.

Backgound: Just updated to vB 3.8.1 PL1, and DownloadsII 5.1.0.

Situation: The vB board is a subscription service and "unregistered subscribers" are allowed but their access is quite limited. There are a number of downloads accessible to paid subscribers and they getting them without any problem. There is one forum that offers "free downloads" to "registered guests" (meaning unpaid) and that is all they are supposed have access to.

I belive that before the upgrades/updates everying was working OK in terms of the paid people were permitted to download everything -- while the unpaid ones (registered guests) had access to only two files in a separate forum. But, and importantly, I have responsibility for keeping the vB running with others have access with administrator privileges (not a good thing but an unfortunate fact of life).

Right now, I can not limit the "registered guests" to downloading just those two files set aside in a separate forum. Access to only those files is what they should have -- no downloads in other forums and no attachment downloads. I have tried all combinations of rights for downloading attachments and/or persmissions to downloading files (in the DownloadsII section of the user group permissions) but can not get it set as needed.

I also humbly admit that I am at the point of not being able to see for forest for the trees.

If you are willing to help lead this poor soul out of the gloom of darkness I would be glad to (privately) provide you your own administrator UN and PW. My bet is I am doing something really stoooopid!

Thanks for your understanding and assistance.

I need help!

Randy

To possibly clarify my earlier question posted three days ago and thus far unanswered: As far as I can see, the "allow downloads" permission is defaulted to ALL forums. Is there a way to override the default group download permissions to allow a certain user group download privileges in one or more particular forum?

ChicagoCoin 03-29-2009 06:52 PM

I think I discovered a bug with the renaming of certain files, I have the Rename Files option turned off and searched this thread, found this (#3410):
Quote:

2.) I had an issue today that I cannot seem to find an explanation for. I do allow files for our members with the extension of .exe If the file name is CoDWaW-1.2-1.3-PatchSetup it does not show the file to be downloaded with the correct name. If I rename it to say c153.exe it works fine. Is this caused by the length of the file name?
Quote:

2.) For your 2nd question I'm not sure. Is the name CoDWaW-1.2.-1.3-PatchSetup or CoDWaW-1.2.-1.3-PatchSetup.exe? In the first case the extension is too long I guess.
It is possible to use longer filenames, but I think there will be a limit to the length.
I imported a bunch of files that begin with "16-9" and when they are downloaded the files are renamed without the "16-", ie: a file in the downloads folder was imported properly as 82502-16-9 Black Knight.zip (real file name is 16-9 Black Knight.zip) and gets downloaded as 9 Black Knight.zip.
Sample

I think the referenced post above is due to having a "-" in the file name and not related to the length of the file name, all of the other downloads imported without a "-" work fine. I was wondering if this could be a server setting and if it can be fixed?

Thanks in advance.

cash7c3 03-30-2009 05:00 AM

Quote:

Originally Posted by Lyte (Post 1769989)
Hey RS Jelle,

Any thoughts on BullDog148th, Redzzand, popowich and my posts? We're all having problems loading files over 10MB.

I hope you'll help us too. This seems like a great hack that I'd like to get it working on PC101. :cool:

Thanks!

Lyte

UPDATE: Okay, I just noticed your update to the Download Details...

"Help!!! I can't upload large files?? This is probably the second most asked question. Have a look at this post for the solution."

I will give that a shot. Thanks!

I'm having the same issue and that post linked is not the solution :(

WhatChaMissin 03-30-2009 11:44 AM

after updating from 3.7 to 3.8 I can no longer upload any file of any size...

Quote:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

jGas 03-30-2009 04:42 PM

Quote:

Originally Posted by HappyPike (Post 1040856)
I managed to show forum style rating stars on the category file listing page using template conditions. If anyone is interested, here is the code to use:

Code:

<!-- Star Rating -->
<if condition="$file['rating'] >= 9.5">
    <span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" border="0" alt="Rating" /></span>
<else />
    <if condition="$file['rating'] >= 8.5">
        <span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" border="0" alt="Rating" /></span>
    <else />
                <if condition="$file['rating'] >= 7.5">
                        <span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" border="0" alt="Rating" /></span>
                <else />
                            <if condition="$file['rating'] >= 6.5">
                                        <span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" border="0" alt="Rating" /></span>
                                <else />
                                        <if condition="($file['rating'] >= 5) AND ($file['rating'] < 6.5)">
                                                <span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" border="0" alt="Rating" /></span>
                                        </if>
                                </if>
                </if>
    </if>
</if>
<!-- Star Rating End -->

Just edit the downloads_cat_filebit template and put the above code right before the file name link
<a href="downloads.php?do=file&amp;id={$file['id']}">{$file['name']}</a>.

You can also use the above code to put the rating stars in the file details page, replacing the A+ to F grades. The template to edit for this is downloads_file .

You can tweak the numbers in the codes to anything you want. Just remember the rating is between 5 and 10, and unrated files have 0 as default value.

thanks really useful ;)

jGas 03-31-2009 10:21 AM

hi... i'd like to ask if there is a way to add custom fields

tkans in advance

wmlvb 03-31-2009 01:17 PM

does this hack allow you to view pdf files in forum post? If not, do you know if a hack that does this?


All times are GMT. The time now is 06:13 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.03764 seconds
  • Memory Usage 1,767KB
  • 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
  • (1)bbcode_code_printable
  • (8)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