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)

phaser 05-03-2007 11:32 PM

To the right of the image it says:

by UserName on Today [Delete]

How would I go about getting rid of "by UserName on Today", leaving just the delete function. I've been looking in the downloads_file template but I haven't been able to find it. Am I looking in the wrong template? Any help is much appreciated. Thanks in advance!

CyberRanger 05-04-2007 02:02 AM

Quote:

Originally Posted by BozzaJos (Post 1240761)
I'm planning on upgrading my board from 3.5 to 3.6 soon

In case you are uncertain, this version works perfectly well on vb 3.6.x too.

I'm on business travel until March 13 so my input will be limited. Please take it easy on Jelle in my absence. :)

DementedMindz 05-04-2007 02:04 AM

Quote:

Originally Posted by CyberRanger (Post 1241031)
I'm on business travel until March 13 so my input will be limited. Please take it easy on Jelle in my absence. :)

damn march 13 th ??? wow thats like another year

CyberRanger 05-04-2007 02:06 AM

Quote:

Originally Posted by DementedMindz (Post 1241032)
damn march 13 th ??? wow thats like another year

Hehe ... maybe May instead!

LBmtb 05-04-2007 03:25 AM

Any idea on when the new version will be released? I'm waiting on that till I give this a shot. Unless the update will be nice and clean?

wolfe 05-04-2007 10:23 AM

how can i make it so when i add a new download i can link to a file and link to a image all at the same time

so

New Download > Upload File / Link To File > Upload Image / Link to images.

and is it possible to make the newest added download show as a last post on the forums page where there is a forum linking to it. like LDM does

RS_Jelle 05-04-2007 07:48 PM

Quote:

Originally Posted by MotMann (Post 1240605)
OK..

Parse error: syntax error, unexpected T_ELSE in /www/htdocs/xxxxxxxx/Board/Forum/downloads.php on line 1022

:D

I tested it and it works without errors. You should be replacing it wrong or something like that. Watch out for the brackets.

Anyway, when I tested it, it didn't work correctly like I thought it would.

A new try, tested and it works nice:

Find (in downloads.php)
PHP 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 />';
                    }
                }
            } 

Replace with
PHP Code:

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

Quote:

Originally Posted by logofreax (Post 1240779)
Thank you RS_Jelle's

Now my Downloads are sortet right. But now my Categories are sortet from Z to A. How can I fix this Problem now?

cu
logofreax

Hmm, that's almost impossible. The sortfield variable is used only in the query to get the downloads from the database of the category you are viewing. It has nothing to do with any categoy query or sort option :confused:
Maybe you changed the sort option in the DownloadsII settings which affects the category sorting?

Quote:

Originally Posted by wolfe (Post 1240926)
is it possible to make the download page an index infront of the forums example

http://www.site.com/index.php (downloads.php)

That's possible as you can change the forum index script name in the vBulletin options. But you can't just rename downloads.php to index.php. Then you also need to replace all the downloads.php instances in downloads.php itself and the templates, as there is no easy option to do this. But ... it should work if you do this all, and it's not that difficult if you are familiar with PHP :)

Quote:

Originally Posted by phaser (Post 1240962)
To the right of the image it says:

by UserName on Today [Delete]


How would I go about getting rid of "by UserName on Today", leaving just the delete function. I've been looking in the downloads_file template but I haven't been able to find it. Am I looking in the wrong template? Any help is much appreciated. Thanks in advance!

That's a hardcoded piece, you have to look in downloads.php itself, but it's easy to change (look for $dimages) ;)

Quote:

Originally Posted by LBmtb (Post 1241064)
Any idea on when the new version will be released? I'm waiting on that till I give this a shot. Unless the update will be nice and clean?

It takes a lot more time than I expected. It's not all very difficult PHP code, but it's much new code (and recoding all the old) :D

Upgrade will be pretty painless. One thing: you will lose your download ratings, but I don't think many people really use this feature. This because the current system with a lot of possibilities gets replaced by a -vBulletin like- stars system. You also need to redo some settings, for example the extensions setting gets replaced by a whole new extensions management (like the vBulletin attachments).

But I would suggest you to just use the current version as it works great and the upgrade will be easy to do with a documentated upgrade wizard script.

Quote:

Originally Posted by wolfe (Post 1241223)
how can i make it so when i add a new download i can link to a file and link to a image all at the same time

so

New Download > Upload File / Link To File > Upload Image / Link to images.


and is it possible to make the newest added download show as a last post on the forums page where there is a forum linking to it. like LDM does

Those features aren't available at the moment. The first thing will be changed in v6, but the second one is more a thing for an add-on.

phaser 05-04-2007 09:04 PM

Thank so much RS_Jelle! Much appreciated :)

RS_Jelle 05-05-2007 02:52 PM

Quote:

Originally Posted by Stifmeister2 (Post 1237100)
Why don't you ask the moderators/admins to move this thread over to "vBulletin 3.6 Add-ons" section ? :)


I'm sure there are many persons like me who don't even look 3.5 mods section when they have 3.6 installed. ;)

Done :)

wolfe 05-05-2007 05:32 PM

is it possible to show the file listings as image say 3 per row and when you mouse over the image a box pops up with info also is it possible to make it require image after its added. ?


All times are GMT. The time now is 05:58 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.04045 seconds
  • Memory Usage 1,805KB
  • 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
  • (10)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