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)

coolgus 05-17-2007 05:37 AM

Quote:

Originally Posted by RS_Jelle
Not at this moment as there's no database field which stores the last edit time.

Could this be done if you use date field so when editing a file, date changes and have the file appear on " latest files " column

Thanks

Hornstar 05-17-2007 05:47 AM

anyone updated to 3.6.6 or 3.6.7 with no problems?

trynksssj2 05-17-2007 06:47 AM

me ;)

Zia 05-17-2007 08:41 AM

Quote:

Originally Posted by hornstar1337 (Post 1249273)
anyone updated to 3.6.6 or 3.6.7 with no problems?

We are. no problem

rickyreter 05-17-2007 05:05 PM

hi,mines missing,just wondered what the <br> code was in the default in admin?

Peter

CyberRanger 05-17-2007 05:10 PM

Quote:

Originally Posted by rickyreter (Post 1249613)
hi,mines missing,just wondered what the <br> code was in the default in admin?

Peter

What's missing??? I don't understand what <br> code you are talking about.

Naldo41 05-17-2007 08:51 PM

Hi thank you very much for this...Awsome..

Just need small help please.

My forum is /vb/forums/images/.......

How do I set up the download gfx to show and also the images that i upload.

I realise that the paths are wrong to the original template.

Just need a pointer as to what needs changing.

Thank you for your time.

Black Tiger 05-17-2007 09:04 PM

I discovered a little bug. When I'm in the Manage Files section, there are a lot of files and below i see 5 pages 1, 2, 3, 4, 5 just as on the forums when you have multiple pages in a thread.

But when I click page 2, 3, 4 or 5 to see what's there, I get an empty page with only the head (Downloads) with "search" and action etc.
But no files.

CyberRanger 05-18-2007 11:18 AM

Here's a running list of things I plan to fix next week in a minor release. Let me know if I missed any.
  1. Manage Files Multiple Page Problem:
    Quote:

    Originally Posted by Black Tiger (Post 1249738)
    I discovered a little bug. When I'm in the Manage Files section, there are a lot of files and below i see 5 pages 1, 2, 3, 4, 5 just as on the forums when you have multiple pages in a thread.

    But when I click page 2, 3, 4 or 5 to see what's there, I get an empty page with only the head (Downloads) with "search" and action etc.
    But no files.

  2. Sort order of files on import page:
    Quote:

    Originally Posted by Jay... (Post 1248225)
    sorry i just edited my last post. they are not showing up on the import page. the order seems quite random

    See https://vborg.vbsupport.ru/showpost....postcount=1310
  3. Option to change default sort order of files. See https://vborg.vbsupport.ru/showpost....postcount=1304 and
    Quote:

    Originally Posted by logofreax (Post 1250217)
    just another Problem sorting Files :(

    Now sorting by Name an Number of Downloads are working.

    But if somebody want to sort by Upload Date or last Download, it doesn?t work.

    Any idea to fix it?

    cu
    logofreax

  4. Restrict Image Upload to own files:
    Quote:

    Originally Posted by Kr0nica (Post 1245468)
    Heh... It's me again :erm: I have one more question. It's possible that 'Upload an Image' feature was available only for thread starter and site stuff? When i turn off this option for Registered Users in Usergroup Manager they can't upload images at all and when it's turn on, they can upload pics wherever they want...

  5. Update Counters:
    Quote:

    Originally Posted by pxd (Post 1250167)
    The "Update Counter" function does not work properly on Comments counters. It only resents them to "0".


pxd 05-18-2007 01:10 PM

Quote:

Originally Posted by CyberRanger (Post 1250112)
Let me know if I missed any.

The "Update Counter" function does not work properly on Comments counters. It only resents them to "0".

logofreax 05-18-2007 02:47 PM

just another Problem sorting Files :(

Now sorting by Name an Number of Downloads are working.

But if somebody want to sort by Upload Date or last Download, it doesn?t work.

Any idea to fix it?

cu
logofreax

silencerdeluxe 05-18-2007 03:09 PM

Is there any Chance to include this ideas:

1. Use an folder for downloads from an external File-Server

2. Create Subfolders in the Download-Folder for each category and subcategory to sort the Files, if an automatic system is to difficult perhaps an simple option in the acp like "use subfolders named by the categories" to mark, and the path will change to downloadfoalder/$categoryname/... So i can create subfolders in the downloads-folder with the same name of the category and subcategory?!

3. A second Rating-System for Nations who didn“t use grades from A to F, perhaps Starimages like the Thread-Rating from VB.

(sry for my bad english)

Naldo41 05-18-2007 03:13 PM

OK I got most of it working.

Just one left, were by in the script am I able to edit the path of the url for
The images that are uploaded?

As they still are not being displayed, I am getting 404 error message.

RS_Jelle 05-18-2007 03:14 PM

Quote:

Originally Posted by Black Tiger (Post 1249738)
I discovered a little bug. When I'm in the Manage Files section, there are a lot of files and below i see 5 pages 1, 2, 3, 4, 5 just as on the forums when you have multiple pages in a thread.

But when I click page 2, 3, 4 or 5 to see what's there, I get an empty page with only the head (Downloads) with "search" and action etc.
But no files.

My fault :p
I created that bug when I changed all paginations to the more secure vBulletin standard code for it. But I forgot to use those new vars to get the content for those pages. So everything in the url (in moderation queue, category id, ...) becomes 0 and so there won't be any results for that.

Black Tiger 05-18-2007 03:47 PM

No problem, I'm happy if it get's fixed in the next release.;)

However I second the suggesion of Silencerdeluxe option 2, to create subfolders in the downloadfolders for the categories if possible.

Got another problem though, when a file is too big and I import it by uploading it via ftp and them import as an url, the file won't get deleted when I delete the file in downloads II.
Logical, because this is normally used for external url's, not url's on the own server.

Problem is I can upload only to a max of 8mb, my provider won't let me upload more.
So files of 10 and 16 mb (I've got some), need to be uploaded via FTP and after that I've got to import them using the url import function.

Maybe it is possible to make someting that not onlyl import by url but also import by local server directory or something is possible? That way the real file is probably also deleted when I delete the file from Downloads II.

CyberRanger 05-18-2007 04:07 PM

Quote:

Originally Posted by Black Tiger (Post 1250247)
need to be uploaded via FTP and after that I've got to import them using the url import function.

Don't do it that way! :) FTP the file to a folder other than the downloads folder, than use the mass import feature in the admincp. That will copy the file to the downloads folder and it will be deleted if the entry is deleted.

CyberRanger 05-18-2007 04:09 PM

Quote:

Originally Posted by logofreax (Post 1250217)
just another Problem sorting Files :(

Now sorting by Name an Number of Downloads are working.

But if somebody want to sort by Upload Date or last Download, it doesn?t work.

Any idea to fix it?

cu
logofreax

I'll include that fix next week.

CyberRanger 05-18-2007 04:12 PM

Quote:

Originally Posted by silencerdeluxe (Post 1250226)
Is there any Chance to include this ideas:

1. Use an folder for downloads from an external File-Server

I don't understand what you mean. Can you explain this more?

Quote:

Originally Posted by silencerdeluxe (Post 1250226)
2. Create Subfolders in the Download-Folder for each category and subcategory to sort the Files, if an automatic system is to difficult perhaps an simple option in the acp like "use subfolders named by the categories" to mark, and the path will change to downloadfoalder/$categoryname/... So i can create subfolders in the downloads-folder with the same name of the category and subcategory?!

Unlikely to happen using category name. But, I'm going to look at using the category id. That would help not have all the files sitting in the downloads folder.

Quote:

Originally Posted by silencerdeluxe (Post 1250226)
3. A second Rating-System for Nations who didn?t use grades from A to F, perhaps Starimages like the Thread-Rating from VB.

(sry for my bad english)

That's already been recoded by Jelle to stars in ver 6

CyberRanger 05-18-2007 04:20 PM

Quote:

Originally Posted by logofreax (Post 1250217)
just another Problem sorting Files :(

Now sorting by Name an Number of Downloads are working.

But if somebody want to sort by Upload Date or last Download, it doesn?t work.

Any idea to fix it?

cu
logofreax

I'll include that fix next week.

I take that back! There's no reason the change you made so that the default sort is by name should impact the ability to sort by "Date" or "Downloads" using the link above each column. Is that what you are talking about?

Kirk Y 05-18-2007 05:03 PM

Quote:

Originally Posted by CyberRanger (Post 1250269)
That's already been recoded by Jelle to stars in ver 6

Where can we get v6? I downloaded the latest copy from here yesterday and I've got the A-F rating system.

CyberRanger 05-18-2007 05:08 PM

Quote:

Originally Posted by acidburn0520 (Post 1250307)
Where can we get v6? I downloaded the latest copy from here yesterday and I've got the A-F rating system.

It is still vaporware! :-)

pxd 05-18-2007 05:17 PM

Quote:

Originally Posted by CyberRanger (Post 1250312)
It is still vaporware! :-)

:)

Will my report be considered, too? The one about counters updater that messes comments counter (resets it to "0" instead of updating properly).

Thanks

CyberRanger 05-18-2007 06:40 PM

Quote:

Originally Posted by pxd (Post 1250314)
:)

Will my report be considered, too? The one about counters updater that messes comments counter (resets it to "0" instead of updating properly).

Thanks

already on the list: https://vborg.vbsupport.ru/showpost....postcount=1329

Kirk Y 05-19-2007 12:28 AM

Quote:

Originally Posted by CyberRanger (Post 1250312)
It is still vaporware! :-)

Ah, that explains it. Is there an ETA for it?

Black Tiger 05-19-2007 01:18 AM

Quote:

That will copy the file to the downloads folder and it will be deleted if the entry is deleted.
That's what we call "lood om oud ijzer" because I still have to delete the file via FTP which I uploaded in the temporary folder. It's easyer to find there though... that's correct.:)

CyberRanger 05-19-2007 01:46 AM

Quote:

Originally Posted by acidburn0520 (Post 1250539)
Ah, that explains it. Is there an ETA for it?

Sorry, no ETA.

Quote:

Originally Posted by Black Tiger (Post 1250555)
That's what we call "lood om oud ijzer" because I still have to delete the file via FTP which I uploaded in the temporary folder. It's easyer to find there though... that's correct.:)

True, but once you do the mass import, you can delete all the files in the upload folder in one command then know that if for some reason the downloads entry is deleted the file in the downloads folder will be deleted too. Not a perfect solution but fairly painless.

giovannicosta 05-19-2007 09:54 AM

How can I make files older than 60 days that have not been accessed delete themselves automatically?

CyberRanger 05-19-2007 12:34 PM

Quote:

Originally Posted by giovannicosta (Post 1250721)
How can I make files older than 60 days that have not been accessed delete themselves automatically?

First, you need to add a field to the dl_files table to track the last time a file was accessed. Then you need to write a vbcron file that checks that field and deletes files that meet your criteria. What you want isn't currently supported but it's a good idea.

Hornstar 05-19-2007 11:15 PM

Upgraded to 3.6.7 today got a database error

Code:

Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT * FROM vb3_ruleshack
                      WHERE (fileurl LIKE 'http://www.gamerzneeds.net/forums/downloads.php?do=cat&id=3\' AND exactmatch = 1 )
                      OR (fileurl LIKE 'http://www.gamerzneeds.net/forums/downloads.php%' AND exactmatch = 0 ) AND active = 1 ORDER BY ruleid;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'http://www.gamerzneeds.net/forums/downloads.php%' AND exactmatch = 0 ) AND activ' at line 2
Error Number : 1064
Date        : Saturday, May 19th 2007 @ 03:19:06 PM
Script      : http://www.gamerzneeds.net/forums/downloads.php?do=cat&id=3\
Referrer    :
IP Address  :
Username    :
Classname    : vb_database


CyberRanger 05-20-2007 01:01 AM

Quote:

Originally Posted by hornstar1337 (Post 1251095)
Upgraded to 3.6.7 today got a database error

Code:

Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT * FROM vb3_ruleshack
                      WHERE (fileurl LIKE 'http://www.gamerzneeds.net/forums/downloads.php?do=cat&id=3\' AND exactmatch = 1 )
                      OR (fileurl LIKE 'http://www.gamerzneeds.net/forums/downloads.php%' AND exactmatch = 0 ) AND active = 1 ORDER BY ruleid;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'http://www.gamerzneeds.net/forums/downloads.php%' AND exactmatch = 0 ) AND activ' at line 2
Error Number : 1064
Date        : Saturday, May 19th 2007 @ 03:19:06 PM
Script      : http://www.gamerzneeds.net/forums/downloads.php?do=cat&id=3\
Referrer    :
IP Address  :
Username    :
Classname    : vb_database


I don't know what you have going on here. Looks like another mod is messing with Downloads. Downloads has no reference to rulehack. I'd contact who ever made that hack.

contemptx 05-20-2007 01:49 PM

I have installed this? http://www.fortecfiles.com

but its not showing??

RS_Jelle 05-20-2007 06:44 PM

Quote:

Originally Posted by contemptx (Post 1251413)
I have installed this? http://www.fortecfiles.com

but its not showing??

http://www.fortecfiles.com/downloads.php
(If you can't access it, you have to change your DownloadsII usergroup permissions.)

Have a look at the Readme-Install.txt for the template edits to show it in your navbar ;)

cfitzarl 05-20-2007 07:22 PM

Great Mod :D !

MjrGaelic 05-20-2007 07:43 PM

Installed on my 3.6.7 no probs.

Snake 05-21-2007 12:54 PM

Yep, seems to be working just fine on v3.6.7. :)

RedGTiVR6 05-22-2007 04:08 PM

If users are reporting issues uploading larger files, where would I search first?

is this a setting of the server or their browser time out settings or what?

CyberRanger 05-22-2007 04:34 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1252747)
If users are reporting issues uploading larger files, where would I search first?

is this a setting of the server or their browser time out settings or what?

Quote:

Originally Posted by odinzu (Post 1247550)
I have this installed on my forum and I tried testing it today.. I found out that my upload doesn't work. I tried uploading a 10mb file thats format is wmv. It told me there was a upload error.

The problem is most likely related to the max file upload size in your php.ini file. Since most folks can't access that, try to below placing the .htaccess file in your forum root directory.
Quote:

Originally Posted by CyberRanger (Post 1211030)
If you want to control the max file size a user can upload, try putting this in .htaccess
PHP Code:

php_value upload_max_filesize 10M
php_value post_max_size 10M 



v12kid 05-23-2007 05:51 AM

not sure if I missed it but are you going to add a feature where we can upload the screenshot/thumb when entering a new file into the system? If this already exists please excuse me :)

great hack!

MotMann 05-23-2007 06:49 AM

1 Attachment(s)
@ RS_Jelle first, thank's for the nice support :)

ok. I found that:

Code:

while ($image = $db->fetch_array($result))
            {
                if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']) OR
                  (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditownfiles']) AND
                    (($image['uploaderid'] == $vbulletin->userinfo['userid']) AND ($file['uploaderid'] == $vbulletin->userinfo['userid']))))
                    $edit = '[<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=delimg&amp;img='.$image['id'].'" onclick="return delete_it()">'.$vbphrase['delete'].'</a>]';
                {
                    if (file_exists($dl->url.$image['thumb']))
                    {
                        $dimages .= '<a href="'.$dl->url.$image['name'].'"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a> by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'<br />';
                    }
                    else
                    {
                        $dimages .= '<a href="'.$dl->url.$image['name'].'">'.$image['name'].'</a> by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'<br />';
                    }
                }
            }

and changed with that:

Code:

$dimages .= '<table cellpadding="0" cellspacing="1" border="0"><tr>';
            $countnumber = 6;
            $count = 1;
            while ($image = $db->fetch_array($result))
            {
                if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']) OR
                  (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditownfiles']) AND
                    (($image['uploaderid'] == $vbulletin->userinfo['userid']) AND ($file['uploaderid'] == $vbulletin->userinfo['userid']))))
                {
                    $edit = '[<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=delimg&amp;img='.$image['id'].'" onclick="return delete_it()">'.$vbphrase['delete'].'</a>]';
                }

                if (file_exists($dl->url.$image['thumb']))
                {
                    if ($count == $countnumber)
                    {
                        $dimages . '<tr>';
                    }
                    $dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
                    if ($count == $countnumber)
                    {
                        $dimages . '</tr>';
                    }
                }
                else
                {
                    if ($count == $countnumber)
                    {
                        $dimages . '<tr>';
                    }
                    $dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'">'.$image['name'].'</a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
                    if ($count == $countnumber)
                    {
                        $dimages . '</tr>';
                    }
                }
                $count = $count+1;
                if ($count == $countnumber)
                {
                    $count = 1;
                }
            }

But, there are more than 6 Screens in one row and the Style is not correct right now.

RS_Jelle 05-23-2007 09:14 AM

Quote:

Originally Posted by v12kid (Post 1253123)
not sure if I missed it but are you going to add a feature where we can upload the screenshot/thumb when entering a new file into the system? If this already exists please excuse me :)

great hack!

That feature doesn't exist at the moment, you need to add them afterwards ;)

Quote:

Originally Posted by MotMann (Post 1253138)
@ RS_Jelle first, thank's for the nice support :)

But, there are more than 6 Screens in one row and the Style is not correct right now.

I wrote it a bit too quick and missed some things :p
What I did wrong: I first do the $count +1 and then there's the check. So if $count is 5, it becomes 6 and then there's the check wich resets it (so no new line for the images) :D
For the layout: I forgot the </tr></table>.

Final:
PHP Code:

$dimages .= '<table cellpadding="0" cellspacing="1" border="0"><tr>';
            
$countnumber 6
            
$count 1
            while (
$image $db->fetch_array($result)) 
            { 
                if ((
$permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']) OR 
                   ((
$permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditownfiles']) AND 
                    ((
$image['uploaderid'] == $vbulletin->userinfo['userid']) AND ($file['uploaderid'] == $vbulletin->userinfo['userid'])))) 
                { 
                    
$edit '[<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=delimg&amp;img='.$image['id'].'" onclick="return delete_it()">'.$vbphrase['delete'].'</a>]'
                } 

                if (
file_exists($dl->url.$image['thumb']))
                { 
                    if (
$count == $countnumber
                    { 
                        
$dimages '<tr>'
                    } 
                    
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>'
                    if (
$count == $countnumber
                    { 
                        
$dimages '</tr>'
                    } 
                } 
                else 
                { 
                    if (
$count == $countnumber
                    { 
                        
$dimages '<tr>'
                    } 
                    
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'">'.$image['name'].'</a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>'
                    if (
$count == $countnumber
                    { 
                        
$dimages '</tr>'
                    } 
                }
                if (
$count == $countnumber
                { 
                    
$count 1
                } 
                
$count $count+1
            }
$dimages .= '</tr></table>'



All times are GMT. The time now is 01:24 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.03495 seconds
  • Memory Usage 1,923KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (32)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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