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)

Jay... 05-14-2007 03:15 PM

Quote:

Originally Posted by RS_Jelle (Post 1246423)
In the past we thought about integration in the most popular one, vbBux/vbPlaza, with a plugin (there are plugin hook location inside of DownloadsII to make this possible). But vbBux/vbPlaza isn't available any more due to security issues. So at the moment there's no popular points system (or I must be missing it). In the private coders forum, there are some ideas and other coders working on their own new points system, but there's nothing available yet. So the only thing we can do is wait, as creating our own points system is impossible (that's a totally new mod).

What about icash, that seems to be the most popular points system at the moment. it is just what i need, i am waiting for a system like this before i re-open my forum. Looks like i will be waiting a while :(

Black Tiger 05-14-2007 03:45 PM

@Jay: #1286.;)

Jay... 05-14-2007 06:28 PM

Quote:

Originally Posted by Black Tiger (Post 1247442)
@Jay: #1286.;)

Cheers mate! :D

odinzu 05-14-2007 06:35 PM

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. Yes, I added the file extension in the settings. Can someone please help me. I am currently using the newest version.

Alright, I got a image to upload...now, let me try the video one more time.

coolgus 05-14-2007 09:27 PM

Great Script

One small problem though, don't know if it's a bug. When a user uploads a gif or any picture, nothing shows and I can see that the link in the program has an extra slash. For example forum.com/downloads//picture.jpg

Same time at the directory of downloads there is the filename of the picture with 0 size

CyberRanger 05-15-2007 01:24 AM

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-15-2007 04:50 AM

I have a few questions-

- will this work with icash?
- will this work with 3.6.6 ?
- can you restrict users based on post count? I onyl want users who have a certian post count or more to be able to access the downloads section. Can this be achieved with a different mod that restricst them to that forum?

thanks for the time, mod looks interesting

RS_Jelle 05-15-2007 09:47 AM

Quote:

Originally Posted by MotMann (Post 1246447)
RS_Jelle, what happened with my problem with your special code. i have now all screens in one row ;)

Here ist the post.

With this code you can choose the amount of images which fits the best (change the 4 to what you want):
PHP Code:

            $dimages .= '<table cellpadding="0" cellspacing="1" border="0"><tr>';
            
$countnumber 4;
            
$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;
                }
            } 

Quote:

Originally Posted by progaming (Post 1246566)
Im hoping someone can help me with this wonderful mod. When displaying the sub-catagoryys it doesn't display the parent cat's name like my forum does.

Any idea what I can do to fix this?

Here is a link. This should explain better what I would like to do.

THanks

http://insomniagaming.org/downloads.php?do=cat&id=2

Like wolfe says: your downloads section is private for members. Can you pm me a test account?

Normally the category tree is displayed in your navigation bar.

Quote:

Originally Posted by coolgus (Post 1247640)
Great Script

One small problem though, don't know if it's a bug. When a user uploads a gif or any picture, nothing shows and I can see that the link in the program has an extra slash. For example forum.com/downloads//picture.jpg

Same time at the directory of downloads there is the filename of the picture with 0 size

Indeed, a small bug, but normally the image url still works with this. Will be fixed in a next release.

Quote:

Originally Posted by v12kid (Post 1247842)
I have a few questions-

- will this work with icash?
- will this work with 3.6.6 ?
- can you restrict users based on post count? I onyl want users who have a certian post count or more to be able to access the downloads section. Can this be achieved with a different mod that restricst them to that forum?

thanks for the time, mod looks interesting

  • For iCash: I just discovered that mod, so we will be looking into an integration add-on in the future. Have a look at #1286.
  • It works nicely with vB 3.6.6 as I'm running it on my forum. Have a look at #1284 for more information.
  • This is possible when you use the vBulletin usergroup permissions and the promotion system. Set up a new usergroup, a copy of the normal registered users group. Create a promotion to it when they reach x amount of posts and give that group permission to access the downloads using the DownloadsII usergroup permissions.

CyberRanger 05-15-2007 11:05 AM

Quote:

Originally Posted by RS_Jelle (Post 1247939)
  • For iCash: I just discovered that mod, so we will be looking into an integration add-on in the future. Have a look at #1286.

RS_Jelle and I have commented about a "points" integration in the past but let me re-summarize what we plan to do.

A minor version or so ago, we started introducing hooks into downloads.php. With the next version, we ensure that there are hooks in all the necessary places for any programmer to write an add-on to integrate any "points" system with DownloadsII. That programmer may or may not be me or Jelle.

But, we won't be coding downloads.php itself for one specific "points" program. We will be coding it to be open for anyone who is willing to take the time to write the add-on.

trynksssj2 05-15-2007 02:34 PM

Hi there! Can I have the PSD file of the download.gif? I need it to make the button similar to my other styles.

Thanks,
George


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