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)

YLP1 01-30-2007 11:02 PM

Firstly I would like to say thank you to developers of this product. I am not a coder but I certainly appreciate the hard work that developers put into creating the mods/products.

I run a local community forum/web site where I upload several council meeting videos (swf, wmv, flv formats), documents (pdf), video snippets, graphics (jpg, gif).

I am looking at this product mainly to house my videos. I am not that good on PHP yet so when I add something, it takes me a bit and I am hesitent to change once I have a product installed.

Will this product handle my video collection?

Thanks in advance.

Lionel 01-30-2007 11:08 PM

Quote:

Originally Posted by YLP1 (Post 1170921)
I run a local community forum/web site where I upload several council meeting videos (swf, wmv, flv formats), documents (pdf), video snippets, graphics (jpg, gif).
I am looking at this product mainly to house my videos. I am not that good on PHP yet so when I add something, it takes me a bit and I am hesitent to change once I have a product installed.
Will this product handle my video collection?
Thanks in advance.

I have the very same thing and I am using this to: play mp3, allow users to click on a link that adds to a private playlist which they can later on play all selected songs.

Adding videos should be fairly simple. If you want to allow them to play it, I would recommand using wimpy wasp. It's very simple to embed the code in the template and with conditionals, it would display only for specific videos categories (no need to display for documents) and with a one line code of javascript, they could play video before downloading it.

YLP1 01-31-2007 12:21 AM

Quote:

Originally Posted by Lionel (Post 1170926)
I have the very same thing and I am using this to: play mp3, allow users to click on a link that adds to a private playlist which they can later on play all selected songs.

Adding videos should be fairly simple. If you want to allow them to play it, I would recommand using wimpy wasp. It's very simple to embed the code in the template and with conditionals, it would display only for specific videos categories (no need to display for documents) and with a one line code of javascript, they could play video before downloading it.

Hi Lionel, thank you for the response.

I own WimpyAV and use that currently for my council meeting videos. I don't know anything about conditionals. Can you show me how to to setup my video as you described?

Thanks in advance.

Lionel 01-31-2007 01:23 AM

Quote:

Originally Posted by YLP1 (Post 1170969)
Can you show me how to to setup my video as you described?

I use wimpy wasp

upload wasp.js in the clientscript folder

Between the <head></head> of the DOWNLOADS template put

Quote:

<script language='clientscript/javascript' src='wasp.js'></script>
and in the template downloads file, put in

Quote:

<script>
waspEmbed('downloads/{$file['url']}', 250, 188);
</script>
250 and 188 are width and height of video size and you need to adjust according to your need.

I would put it above the download button. I would even remove the big download button since we have been provided with links if all you do is videos.

Now if you have other categories which are not videos, like pdf or zip, this is where it gets tricky. You'll need to edit the downloads.php file , do a left join to get category parent so you could do your conditional <if condition="$parent=='XX'">display video, don't display download button<else />just display download button</if>

ab4u 01-31-2007 06:38 AM

Hi,

I'm using vJukebox v 0.9.0 Alpha every thing is good but I have one problem with Message editor it does not work when I want to add new media but it's work when I want to add comment? also it's work when I want to add post or replay in my forum, that problem with the editor message occure also when I use DownloadsII to add new file with description!! How can I solve this problem?

try to add new comment to see the problem http://ab4u.net/vb/jukebox.php?do=add&type=media



https://vborg.vbsupport.ru/attachmen...6&d=1154030011

deltagsm 01-31-2007 12:28 PM

Hi,

how to enable download resume?

akulion 01-31-2007 01:01 PM

working wonderfully with 3.6.4

I just have 1 question - is there another way for the person who submits the file to upload a preview or thumbnail for the download?

Because leaving the 'upload image' option enabled in the permissions allows everyone to add images even to an already submitted download which kinda looks strange

aku

Simetrical 02-01-2007 04:59 PM

When I try to update counters at my site, it appears to time out and everything is stuck at zero. Could you implement the hack they use in the official vB counters, i.e., the paging thing? Could I run some queries manually on mysql, or use some other workaround?

sunnycher 02-02-2007 01:24 AM

This ROCKS! Thank you for providing it for us!
I'd like to also know if there is a way to put an image as a sample of the files (image files) somewhere.

Thank you!!!!

Lionel 02-02-2007 01:28 AM

1 Attachment(s)
Quote:

Originally Posted by sunnycher (Post 1172649)
I'd like to also know if there is a way to put an image as a sample of the files (image files) somewhere.

you mean somethink like that?

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????

akulion 02-03-2007 05:30 AM

by the way here is a better looking download button

https://vborg.vbsupport.ru/external/2007/02/35.gif

feel free to use :up:

i have some color variations for it too ill post them up a bit later once i find them lol

Lionel 02-03-2007 05:36 AM

Quote:

Originally Posted by akulion (Post 1173481)
by the way here is a better looking download button

https://vborg.vbsupport.ru/external/2007/02/35.gif

feel free to use :up:

i have some color variations for it too ill post them up a bit later once i find them lol

Thanks. That matches my site perfectly. Looking forward for other ones :D

YLP1 02-04-2007 08:06 PM

Hi Lionel and thank you for helping me with this but I am stuck.

I added the wasp.js in the clientscript folder and I put the js link to it between the head on the downloads template.

Where do I put this and is it in the downloads template or the downloads.php file?
<script>
waspEmbed('downloads/{$file['url']}', 250, 188);
</script>

I am completely lost and don't know what to do with the following instruction:
[QUOTE]
Now if you have other categories which are not videos, like pdf or zip, this is where it gets tricky. You'll need to edit the downloads.php file , do a left join to get category parent so you could do your conditional <if condition="$parent=='XX'">display video, don't display download button<else />just display download button</if>

The only documents that I will be using are PDF, EXCEL, WMV, FLV and SWF files.


Leave it to me to break something LOL LOL

Thanks in advance.

MimeSong Erk 02-05-2007 03:07 AM

This is fantastic stuff. I will be playing around with the settings and I'll be sure to post back here when I know more about what kind of mods I can do. In the meantime I have a question:

The number 1 resource I am sharing with my download manager is image files. I would like a thumbnail to be automatically generated when the file uploaded is an image itself... eg if I upload a 1200x256 image I want it to automatically create a shrunk-down version as the first thumbnail on the list. It is a hassle to have to manually add a thumbnail every time. Is there an easy way to do this?

GH84 02-05-2007 12:45 PM

Are there any information when the next version (v6.0) will be released ?
Thanks for answer...

DementedMindz 02-05-2007 03:31 PM

Quote:

Originally Posted by GH84 (Post 1175175)
Are there any information when the next version (v6.0) will be released ?
Thanks for answer...


Im not sure hopefully soon but CyberRanger nor RS_Jelle have really replied to this anymore.

CyberRanger 02-05-2007 07:47 PM

Quote:

Originally Posted by DementedMindz (Post 1175273)
Im not sure hopefully soon but CyberRanger nor RS_Jelle have really replied to this anymore.

For me, January = crappy month for coding due to a bunch of R/L BS. I'll try to catch-up with Jelle on IM this week and see where he stands.

:(

T_Richardson 02-06-2007 01:53 AM

I'm getting this error when trying to import through admincp.
Quote:

Warning: Invalid argument supplied for foreach() in /admincp/downloadadmin.php on line 337
I seen that there were some that had the same error, but, I didn't see a solution to the problem yet.

Any suggestions?

Thanks.

vBadvanced CMPS v2.2.1 - vBulletin 3.6.4

Server Type Linux
Web Server Apache v1.3.37
PHP 4.4.4 Posts to Moderate
PHP Max Post Size 8.00 MB
PHP Maximum Upload Size 2.00 MB
MySQL Version 4.1.21-standard
MySQL Packet Size 1.00 MB

carpzone 02-07-2007 11:02 AM

After upgrading, downloads don't work anymore,

I get the following error when pushing de download buton ...

Code:

Warning: copy() [function.copy]: SAFE MODE Restriction in effect. The script whose uid is 10187 is not allowed to access /home/httpd/vhosts/carpzone.be/httpdocs/downloads/ec_tmp owned by uid 48 in /downloads.php on line 690

Warning: copy(./downloads///ec_tmp/Volledige Visserijwetgeving 1_1_06.rar) [function.copy]: failed to open stream: No such file or directory in /downloads.php on line 690
ERROR: File not found.

I have vb 3.6.4
and latest update from Donwloads 2

blind-eddie 02-07-2007 11:16 AM

check your path for the download,

carpzone 02-07-2007 11:27 AM

Quote:

Originally Posted by blind-eddie (Post 1176713)
check your path for the download,

All my files are under the downloads map but the error shows that he takes the file from
ec_tmp with tripple slash ??

There are no files stored under the map ec_tmp

My path to the downloads is ./downloads/

blind-eddie 02-07-2007 11:40 AM

change path & see what you get.

carpzone 02-07-2007 11:56 AM

Quote:

Originally Posted by blind-eddie (Post 1176727)
change path & see what you get.


When i change it

I get the following message :

The download directory do not exist

carpzone 02-07-2007 12:03 PM

Ok it works now,

I had to put a index.htm file into the ec_tmp folder

Because after chmod the ec_tmp to 777 , it always switched back to 755
Now the problem is solved.

Tnx for additional help !

GH84 02-08-2007 09:21 AM

Quote:

Originally Posted by CyberRanger (Post 1175434)
For me, January = crappy month for coding due to a bunch of R/L BS. I'll try to catch-up with Jelle on IM this week and see where he stands.

:(

Thanks :)

Stifmeister2 02-08-2007 04:00 PM

Quote:

Originally Posted by carpzone (Post 1176741)
Ok it works now,

I had to put a index.htm file into the ec_tmp folder

Because after chmod the ec_tmp to 777 , it always switched back to 755
Now the problem is solved.

Tnx for additional help !

That didn't help me. :( I still have this error:

Code:

Warning: copy() has been disabled for security reasons in /downloads.php on line 690
ERROR: File not found.

./downloads/ and ./ec_tmp/ folder are both chmod 777.

Linked downloads work fine. I have this problem only with uploaded downloads.

EDIT: I took a look at our PHP info and it says
disable_functions: system, exec, shell_exec, passthru, shell, show_source, copy, proc_open, symlink, popen

Maybe that has something to do with it?

CyberRanger 02-09-2007 12:08 PM

Quote:

Originally Posted by Stifmeister2 (Post 1177641)
That didn't help me. :( I still have this error:

Code:

Warning: copy() has been disabled for security reasons in /downloads.php on line 690
ERROR: File not found.

./downloads/ and ./ec_tmp/ folder are both chmod 777.

Linked downloads work fine. I have this problem only with uploaded downloads.

EDIT: I took a look at our PHP info and it says
disable_functions: system, exec, shell_exec, passthru, shell, show_source, copy, proc_open, symlink, popen

Maybe that has something to do with it?

Yes, I believe that is exactly your problem. Also, if you have command line access, change the owner of the downloads.php script to be the same as the owner of ec_tmp folder.

Stifmeister2 02-09-2007 02:28 PM

Quote:

Originally Posted by CyberRanger (Post 1178317)
Yes, I believe that is exactly your problem. Also, if you have command line access, change the owner of the downloads.php script to be the same as the owner of ec_tmp folder.

How can I do that? Is it possible to do with ftp programs?

CyberRanger 02-09-2007 02:30 PM

Quote:

Originally Posted by Stifmeister2 (Post 1178405)
How can I do that? Is it possible to do with ftp programs?

No, you can't do that with an ftp program. You'll need shell access or else you'll need to have your host do it. But, I think you need "copy" removed from the disabled_functions. Your host will need to do that unless you can edit php.ini yourself.

Staxed 02-09-2007 02:32 PM

Cyb, I have a very large idea for this mod....i was going to post it in the paid requests forum...but thought i'd ask if you wanted to do it yourself and release it for everyone before i went the other route...

mind if I send you a PM?


All times are GMT. The time now is 02:43 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.03156 seconds
  • Memory Usage 1,856KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (22)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