View Full Version : vBDownloads 2.0 Module for CMPS
wirewolf
04-29-2005, 11:11 AM
Repackage the CMPS module.
This module will work for vBDownloads 2.0 by Ron1n, Version: 2.0f (http://www.vbulletin.org/forum/showthread.php?t=75198), vbulletin v3.0.7 (and I assume earlier versions), and CMPS v1.0.0
See example - Ship Modeling Forum - Portal (http://shipmodeling.net/cmps_index.php?), right side, middle of page (Latest Uploaded Files).
Zip file (about 3k) includes:
1 - lastest_downloads.php file
2 - adv_portal_downloads - template file
(with an optional adv_portal_downloads template that splits to two smaller modules. One for Latest, and one for Popular.
3 - downloads_portal_bit - template file
4 - edit_line4.txt file
5 - readme.txt file
Download zip file and apply.
Enjoy, John
PS; The original coding for the lastest_downloads.php file is from Ron1n's downloads add on. I just reworked some of his code and created two templates.
May 17th, 2005
Updated zip file to include instructions on changing the amount of files displayed in the module. Also see this post:
http://www.vbadvanced.com/forum/showpost.php?p=45667&postcount=15
Slave
04-29-2005, 01:58 PM
thanks :)
Vevina
04-29-2005, 06:02 PM
Sweet installed :)
LEAD_WEIGHT
04-29-2005, 08:36 PM
This module will work for vBDownloads 2.0 by Ron1n, Version: 2.0f (http://www.vbulletin.org/forum/showthread.php?t=75198), vbulletin v3.0.7 (and I assume earlier versions), and CMPS v1.0.0
See example - Ship Modeling Forum - Portal (http://shipmodeling.net/cmps_index.php?), right side, middle of page (Latest Uploaded Files).
Zip file includes:
1 - lastest_downloads.php file
2 - adv_portal_downloads - template file
3 - downloads_portal_bit - template file
4 - edit_line4.txt file
5 - readme.txt file
Download zip file and apply.
Enjoy, John
Did u get permission from Ron1n to place the file here at this site , cause I thought anything posted at vb.org stays there unless other wise said so! :confused:
Slave
04-30-2005, 04:34 AM
Did u get permission from Ron1n to place the file here at this site , cause I thought anything posted at vb.org stays there unless other wise said so! :confused:
Err .. that's not right is it? .. While Ron1n did the main hack, there is nothing to stop anyone else doing an addon for the hack.
I agree that if someone tried to publish a hack they hadn't done, that's bad form. But that isn't the case here as wirewolf wrote the add on himself.
mholtum
04-30-2005, 05:16 AM
Err .. that's not right is it? .. While Ron1n did the main hack, there is nothing to stop anyone else doing an addon for the hack.
I agree that if someone tried to publish a hack they hadn't done, that's bad form. But that isn't the case here as wirewolf wrote the add on himself.
I think you are right. As long as you don't post the original hack, you can post addons. At least that is how I understood it.
tomshawk
04-30-2005, 11:20 AM
Err .. that's not right is it? .. While Ron1n did the main hack, there is nothing to stop anyone else doing an addon for the hack.
I agree that if someone tried to publish a hack they hadn't done, that's bad form. But that isn't the case here as wirewolf wrote the add on himself.
I tend to agree, this is an addon to Ron1n's hack, if we cant post hacks to addon's why are we creating hacks for vbAdvanced, or even vbulletin for that matter? If we had to get Brian, or the vbulletin teams permission, for every hack we make, I bet alot of people would not be making the hacks we make.
It's a seperate hack, that works with and requires Ron1n's Addon, but it is still seperate.
FattyPimp
05-04-2005, 05:25 AM
Damn I want this lol wth :(
LEAD_WEIGHT
05-04-2005, 09:47 PM
I tend to agree, this is an addon to Ron1n's hack, if we cant post hacks to addon's why are we creating hacks for vbAdvanced, or even vbulletin for that matter? If we had to get Brian, or the vbulletin teams permission, for every hack we make, I bet alot of people would not be making the hacks we make.
It's a seperate hack, that works with and requires Ron1n's Addon, but it is still seperate.
Did u even download it. I think two downloads were use one for addon another for hack. Should only had link for hack & download for addon.
In whole or in part a hack from someone else still needs the permission of the owner of the hack or an acknowledgment mention which was made in the hack.
wirewolf
05-04-2005, 11:11 PM
I added a small little feature to the CMPS module. Let me repackage the hack and I'll post it tomorrow. Here and over at vb.org. I wrote to Ron1n about four days ago and I haven't heard from him. But I think it's ok to post this hack. It's not as if I wrote this from scratch. I just took his original coding and reworked it for the CMPS module. The credit for the coding still goes to him.
John
LEAD_WEIGHT
05-04-2005, 11:44 PM
I added a small little feature to the CMPS module. Let me repackage the hack and I'll post it tomorrow. Here and over at vb.org. I wrote to Ron1n about four days ago and I haven't heard from him. But I think it's ok to post this hack. It's not as if I wrote this from scratch. I just took his original coding and reworked it for the CMPS module. The credit for the coding still goes to him.
John
Just edit your first post with the download of your CMP Module & a link to vb.org of your post at that site.
FattyPimp
05-05-2005, 02:35 AM
Thanks for posting this man! :)
wirewolf
05-05-2005, 10:09 AM
Thanks for posting this man! :)You're quite welcome. :)
Slave
05-17-2005, 09:58 AM
wirewolf .. how would I go about getting the module to only pull downloads from just the one (or perhaps 2) categories?
wirewolf
05-17-2005, 10:45 AM
wirewolf .. how would I go about getting the module to only pull downloads from just the one (or perhaps 2) categories?Easy:
In the latest_downloads.php file, find:// --------------------------------------------------------------------
// Construct the Latest File Bits
// --------------------------------------------------------------------
$amt = 'Uploaded on -';
for($i = 1; $i <= 3; $i++) {Change the '3' to 1, 2 or 4, and find:// --------------------------------------------------------------------
// Construct the Popular File Bits
// --------------------------------------------------------------------
$amt = 'Number of Downloads -';
for($i = 1; $i <= 3; $i++) {Change the '3' to 1, 2 or 4.
In both cases, don't go higher than '4' . The way the table is structured for the lastest and popular files is for up to four records each.
I'll update the zip file in the first post the include these instructions.
John
Slave
05-17-2005, 10:58 AM
heh .. thanks for that .. but you're talking about how many downloads show ..
I'm talking about only showing downloads from certain categories .. :p
wirewolf
05-17-2005, 11:35 AM
Whoops!, sorry about that. Read too fast.
That involves a lot more coding, as the category id's are kept in a different table in the database. If you have a lot of categories, it could get pretty crowded with a lot of querys.
John
Slave
05-17-2005, 02:06 PM
Well .. all it needs is a "AND cat.id = X" type statement doesn't it? ..
I just don't know where to put it within the module .. maybe it needs a new query too, but I wouldn't of thought it would put a big strain on things?
sydeburnz
05-20-2005, 02:41 AM
i feel dumb here....i cant make sense out of this line:
B - adv_portal_downloads (added to the adv_portal group)
Group??? adv_portal???
Slave
05-20-2005, 04:40 AM
i feel dumb here....i cant make sense out of this line:
B - adv_portal_downloads (added to the adv_portal group)
Group??? adv_portal???
That just means you need to create a new template called adv_portal_downloads ..
It will get added to the grouping of adv_portal templates automatically .. :)
Siemens
07-24-2005, 06:18 PM
Thx working great
Siemens
08-03-2005, 08:37 AM
Sorry for the second post but is there a way to show the download stats about this thinks:
Categories: 6
Files: 12
Posts: 0
Downloads: 140
Diskspace: 1,72 MB
looks like the gallery stats some one include in the portal stats
otto0815
02-24-2006, 03:39 PM
Hello,
i have ecdownloads 3.3 , cmps 2.0.0 and vb 3.5.1 - how can i view on the portal the "latest x downloads"?
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.