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)

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 04:48 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.04306 seconds
  • Memory Usage 1,804KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (6)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