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)

sunnycher 02-02-2007 01:30 AM

I like that also LOL
But I have a photography forum, we post image files and photoshop things so it would be nice to have an sample image of what's being uploaded.
Is that possible?
TIA!

Lionel 02-02-2007 01:50 AM

It's already possible to add an image with your file

sunnycher 02-02-2007 01:55 AM

LOL I found it, thank you!!!

blind-eddie 02-02-2007 02:01 AM

Quote:

Originally Posted by Lionel (Post 1172663)
It's already possible to add an image with your file

If you zip it up, you can add what you want, or are you asking to add images per Catagory. Look at my site.

Lionel 02-02-2007 02:04 AM

I was not asking for anything, I was replying to his thread :-)

progaming 02-02-2007 04:59 PM

Quote:

Originally Posted by Lionel (Post 1172650)
you mean somethink like that?

How is that done?:up:

Ev!L ErN!E 02-02-2007 08:49 PM

Quote:

Originally Posted by Lionel (Post 1172650)
you mean somethink like that?

I would like to have this as well.... info plz

Also is there a way to add in the "Whats going on" section the total number of downloads you have in your download section? like total members = 100 , total posts = 100, total downloads avalible = 100

Lionel 02-02-2007 09:42 PM

1 Attachment(s)
Quote:

Originally Posted by progaming (Post 1173085)
How is that done?:up:

easy. In includes/class_downloads.php look for

PHP Code:

function update_latest_files() 

To grab URL, replace the $statslatestfiles_q with this

PHP Code:

$statslatestfiles_q $db->query_read("SELECT name, id, url FROM " TABLE_PREFIX "dl_files WHERE `purgatory`='0' ORDER BY `date` DESC LIMIT ".$this->statslatestfiles.""); 

and right below, in the while loop, add (please note I only get the first name of the extension as in my case they are unique. Like f for flv, m for mp3, p for pdf. If yours are not unique, like mp3 or mov both start with "m" then you need the substring method to get full extension name)

PHP Code:

$fname=$latest['url'];
$ficon=$fname{strlen($fname)-3};
    if (
$ficon=='f'){$icon="<img src=\"/forums/images/icons/icon_video.gif\" alt=\"video\">";}else if ($ficon=='m'){$icon="<img src=\"/forums/images/music.png\" alt=\"mp3\">";}else{$icon="";} 

do the similar for the function function update_popular_files()
SELECT `id`,`name`,`downloads`,`url`

then add $icon in template

I did some more nifty tricks with downloads, like allowing people to pick and choose songs to add to a playlist (icon changes to "remove" if they were added, then play all of them.

Lionel 02-02-2007 09:54 PM

1 Attachment(s)
Quote:

Originally Posted by Ev!L ErN!E (Post 1173253)
Also is there a way to add in the "Whats going on" section the total number of downloads you have in your download section? like total members = 100 , total posts = 100, total downloads avalible = 100

total downloads available should be very easy. I don't have time do do the plugin but I could post some code that I am using for something else that read how many files of certain defined extensions there are in folder. I do this for another folder somewhere else with a vbadvanced module.

Zia 02-03-2007 02:45 AM

its good...

but still waiting for the intigration with vbux..

any update news????


All times are GMT. The time now is 01:57 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.04250 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_php_printable
  • (5)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