PDA

View Full Version : Add-On Releases - DownloadsII ver 5.0 vbAdvanced Add-On


CyberRanger
12 Mar 2006, 03:16
DownloadsII vBadvanced CMPS Add-On
Version 1.0.1

The DownloadsII vBadvanced CMPS Add-On, is not a stand-alone mod. It requires DownloadsII 5.0.1 or higher. You can find it here (http://www.vbulletin.org/forum/showthread.php?t=120122) (free).
Also vBadvanced CMPS (a vBulletin 3.5.x or 3.6.x version) is required. You can find it here (http://www.vbadvanced.com/products.php?do=productinfo&p=4) (free).

https://www.vbulletin.org/forum/external/2010/10/30.jpg

Installation


Upload downloads2.php to the module directory of vBadvanced CMPS
Create the new module using the drop down menu to select downloads2.php
In the "templates used" field enter 'adv_portal_ecdownloads, downloads_panel_bit' (without the quotation marks ofcourse)
Update your index pages(s) to show the new module

Done!

Changelog

Version 1.0.0
CyberRanger
- Initial Release

Version 1.0.1
Jelle
- Small code cleanup
- Renamed the module to downloads2.php
- Added a changelog and readme/install text file to the package

CyberRanger
12 Mar 2006, 03:17
(reserved)

Barakat
12 Mar 2006, 03:48
installed .... thanks

Hornstar
12 Mar 2006, 04:01
Yeah nice work, once I get this system up I will install this for my portal. Thanks

SMO
12 Mar 2006, 04:46
Im getting the "White page of Death" on home page with that module active..

any thoughts West?

CyberRanger
12 Mar 2006, 04:48
Im getting the "White page of Death" on home page with that module active..

any thoughts West?

Have you installed ecDownloads ver 4.0.1?

Zia
12 Mar 2006, 05:34
:) Nice Man...

every thing is together..

gothicuser
12 Mar 2006, 06:12
Thankyou :D :D

SMO
12 Mar 2006, 06:51
Have you installed ecDownloads ver 4.0.1?

yes, that works wonderfully...ty

just the module isnt going to well for me. the 3.3 version did just fine

Mudvayne
12 Mar 2006, 10:42
Same here :).. getting White blank page in IE & can see a totally messy things in Opera.. Heres the screenshot!! :confused:.. I hav to disable it for temp :(..

EvilHawk
12 Mar 2006, 12:25
Im getting the "White page of Death" on home page with that module active..

any thoughts West?

Same here :).. getting White blank page in IE & can see a totally messy things in Opera.. Heres the screenshot!! :confused:.. I hav to disable it for temp :(..

Remove any empty spaces after ?> at the ecdownloads.php and it will be ok! ;)

CyberRanger
12 Mar 2006, 13:17
Remove any empty spaces after ?> at the ecdownloads.php and it will be ok! ;)
Oops! You are correct. I had an extra space after the last ?>. Either edit your ecdownloads.php file to remove it or upload the corrected file. (I've replaced the original file with the corrected file in my first post.)

Mudvayne
12 Mar 2006, 14:57
:).. Thnx to both of u.. Thnx a lot.. Now its works..

SMO
12 Mar 2006, 17:42
yep..that did the trick. ty

Drakah
14 Mar 2006, 00:56
Is there a way to have the downloads section list as a "page" module in CMPS instead of going directly to a whole new page? I would like to keep my CMPS parts on the left with the Downloads on the right. I couldn't figure out how to get that to work. Any help would be appreciated.

I figured to post in here since it is CMPS related.

Robbed
17 Mar 2006, 02:52
Is there a way to limit how many show up on the homepage.

I show 15 of each, I only want to show 5 of each on the homepage.

CyberRanger
17 Mar 2006, 11:18
Is there a way to limit how many show up on the homepage.

I show 15 of each, I only want to show 5 of each on the homepage.

The settings for how many "tops" to show (set via admincp) apply to both ecDownloads and the vba addon.

Ron1n
19 Mar 2006, 06:28
Please update this to link with 4.1

CyberRanger
19 Mar 2006, 12:25
Please update this to link with 4.1
Link in first post updated to point to 4.1

MustangLisa
18 Apr 2006, 16:07
Perfectly installed. Thanks!

Brandon Sheley
22 May 2006, 03:19
wonderful work.

/me clicks install

bahattab
10 Jun 2006, 10:21
hi
i am trying to upload the files but i did not know how.
there is no browser botton to upload

:surprised: :confused:

bahattab
12 Jun 2006, 09:16
hi
dose any one know how to upload files in this system :surprised:
is there any instraction about useing this system :tired:
thenk

bahattab
12 Jun 2006, 12:42
can any one help me

Emad Bahattab :knockedout:

bahattab
12 Jun 2006, 12:43
hi
i fond the answre for how to upload the file :banana:
what you have to do is : :tired:

http://www.yourdomin.com/vb/downloads.php

you will get a page has the download control panel.

thanks
Regards
Emad Bahattab :knockedout:

CyberRanger
27 Jul 2006, 20:59
Be sure you have upgraded to ecDownloadII version 5.0.1 : http://www.vbulletin.org/forum/showthread.php?t=120122. It contains many important fixes.:)

cookiepants
01 Aug 2006, 17:06
love this! Thaks so much

Black Tiger
09 Sep 2006, 03:10
I have 3.6 and vbA, downloads II v5.02 and this v5.0 add-on installed. I would like the width of this module to be the same width as the other modules like "stats" and "calender" etc. But this module is wider. How can I fix this?

You can have a look at www.satellitefun.org then you will see what I mean (left side column, scroll down a little bit).

RS_Jelle
09 Sep 2006, 10:11
It's just because of the large name of one of your files ;)
Josje3.3HOT2.0NLgemonteerd
Add some spaces to it and it will be fixed :)

For example:
Josje3.3HOT2.0NL gemonteerd
should be enough to fix it, so "gemonteerd" comes on a new line.

Black Tiger
09 Sep 2006, 17:20
Ah great thanks! That solved the problem!:)

chorton
18 Sep 2006, 00:50
In the most downloaded box is it possible to do:

Last downloaded for a period of time? Example would be Top downloads for past 24 hours or top downloads for last week?

RS_Jelle
18 Sep 2006, 06:27
In the most downloaded box is it possible to do:

Last downloaded for a period of time? Example would be Top downloads for past 24 hours or top downloads for last week?
Not at this moment, but we are looking into this already for the next big release ;)

dholt
18 Sep 2006, 13:39
what do I put in the identifier Box, sorry for being a noob Great MOD

chorton
18 Sep 2006, 13:42
Not at this moment, but we are looking into this already for the next big release ;)


Any idea of when this will be?

Also it would be great to have last 5 contributers rather then top contributers. Would this be possible?

RS_Jelle
18 Sep 2006, 16:21
what do I put in the identifier Box, sorry for being a noob Great MOD
Just an identifier you choose yourself, for example downloads or something else :)

@churton: I don't see the purpose of such a feature? When you compare it with your forums: you aren't going to create a list of the 5 people who posted the latest forum posts, but it's normal to create a top posters ranking.
There's no ETA, it will be ready when it's ready. But we will keep you informed in the DownloadsII thread (http://www.vbulletin.org/forum/showthread.php?t=120122) ;)

Hel_Sir
04 Oct 2006, 10:47
Ok 2 things. 1) Can it work / be ported to work with vbPortal 3.6.0 ?
2) Can the info about latest files be put in the center, above latest threads in forum (www.glhelp.org). And then have top contributors and such on the side blocks.

Hel_Sir
12 Oct 2006, 08:02
Ok, changed to vbadvanced, almost there... I would like the description of the file also.. and download link.. how to do?
So it would look sorta like www.glhelp.org in the center there, now I achive this with first add the download, then add it to the forum with attachement, and use the news module to update the portal.. that sucks..

phill2003
21 Oct 2006, 16:52
Hi,


My block is posting the info twice in each catagory? any idea why.

Black Tiger
21 Oct 2006, 17:01
It isn't twice. Have a good look. 1 time it's most recent and 1 time it's most popular.
There is a significant difference between recent and popular files.:)

DementedMindz
21 Oct 2006, 18:16
It isn't twice. Have a good look. 1 time it's most recent and 1 time it's most popular.
There is a significant difference between recent and popular files.:)

you need to have a good look cause it is posting twice on his image.

RS_Jelle
21 Oct 2006, 18:47
Strange, I never saw an issue like this :ermm:

Try the Update Counters link in the DownloadsII navigation (downloads.php), maybe that solves the problem. If it doesn't, please create a new admin account on your site and pm me the info, also the FTP login would be useful to check your files :)

Black Tiger
21 Oct 2006, 18:52
I had this once too, but this was because I uploaded the file twice. First time I didn't see I had to approve, so I saw already an issue like this.
That's a little problem that uploading the exact file twice is possible, there is no check. Maybe this could be fixed in a future version too?

If you didn't upload twice then I think you have to do what RS Jelle is saying.

phill2003
21 Oct 2006, 21:43
I fixed it, the problem occured because i had 2 blocks. The first one i made would not show up no matter what i did so i made another.

Anyway the block that showed up also seemed to include the data for the first invisible block as so had 2 lots of the same info in it.

I just deleted the invisible block and the data is back to normal.

Thanks for looking and helping me.

All the best

sybaris.

Rexster
31 Oct 2006, 17:10
How can i Exclude members from the "Top Contributors" section ? For example i have abunch of older files that i want to move from my older dowload system to this one from various users but i dont want to be seen as the top Contributor . Also the same goes for "Latest Files" How can i keep these older files from being seen on the "latest files" section ?

CyberRanger
31 Oct 2006, 17:18
How can i Exclude members from the "Top Contributors" section ? For example i have abunch of older files that i want to move from my older dowload system to this one from various users but i dont want to be seen as the top Contributor . Also the same goes for "Latest Files" How can i keep these older files from being seen on the "latest files" section ?
There's no way to do that right now. The only thing that even comes close is you could use the "Assign Uploader" function to change the Contributer from you to the real Contributer.

fosman
06 Nov 2006, 10:17
Is there an addon for vbportal CMPS?

scotsmist
06 Nov 2006, 10:52
I don't mind converting this one if that's okay.

RS_Jelle
06 Nov 2006, 11:43
I don't mind converting this one if that's okay.
That's okay, because me and CyberRanger aren't using vBPortal (it isn't free, so we can't test it), so we only create/support a vBadvanced CMPS module :)

fosman
06 Nov 2006, 15:16
Sweat!!! I really like this addon :)

NiTRoN
20 Jan 2007, 10:39
is there any way to make this to truncate long file names with (...) without prentecies on main page lets say after 10 caracters?.

Sometimes I have long filenames and this screws up front page layout badly...

Any help would be greatly appreciated.

sunnycher
27 Jan 2007, 21:16
color me stupid but I can't find where to add categories? I bet it's staring me right in the face too!

akulion
31 Jan 2007, 14:42
how to add for the latest vb advanced? using 3.6.4vb

sunnycher
31 Jan 2007, 14:57
Ignore my other post! I was in the wrong thread anyway :)

Loving this, thank you!

akulion
31 Jan 2007, 14:59
never mind got it working :D

thanks

phpdevrus
10 Feb 2007, 04:11
how do i limit the displayed file name? some of my file names are long and it messes up my template on vba index.

thnx

phpdevrus
10 Feb 2007, 08:07
nice, installed perfectly.

Jay...
21 Feb 2007, 17:36
is there anyway i can have this working but have the other one not show up on the downloads.php page?

CyberRanger
21 Feb 2007, 18:46
is there anyway i can have this working but have the other one not show up on the downloads.php page?Yes, you'll need to edit downloads.php to make that happen.

Around line 393, look for:
eval('$dpanel = "' . fetch_template('downloads_panel_side') . '";');
eval('$dmain = "' . fetch_template('downloads_wrapper_side') . '";');

REPLACE with:
eval('$dmain .= "' . fetch_template('downloads_wrapper_top') . '";');

Around line 1980, look for:

if ($dl->statslatestfiles > 0 OR $dl->statstopcontributers > 0 OR $dl->statsmostpopularfiles > 0)
{
eval('$dpanel = "' . fetch_template('downloads_panel_side') . '";');
eval('$dmain .= "' . fetch_template('downloads_wrapper_side') . '";');
}
else
{
eval('$dmain .= "' . fetch_template('downloads_wrapper_none') . '";');
}

REPLACE with:
eval('$dmain .= "' . fetch_template('downloads_wrapper_none') . '";');

That should do the trick!

Jay...
21 Feb 2007, 18:49
Yes, you'll need to edit downloads.php to make that happen.

Around line 393, look for:
eval('$dpanel = "' . fetch_template('downloads_panel_side') . '";');
eval('$dmain = "' . fetch_template('downloads_wrapper_side') . '";');

REPLACE with:
eval('$dmain .= "' . fetch_template('downloads_wrapper_top') . '";');

Around line 1980, look for:

if ($dl->statslatestfiles > 0 OR $dl->statstopcontributers > 0 OR $dl->statsmostpopularfiles > 0)
{
eval('$dpanel = "' . fetch_template('downloads_panel_side') . '";');
eval('$dmain .= "' . fetch_template('downloads_wrapper_side') . '";');
}
else
{
eval('$dmain .= "' . fetch_template('downloads_wrapper_none') . '";');
}

REPLACE with:
eval('$dmain .= "' . fetch_template('downloads_wrapper_none') . '";');

That should do the trick!

That worked a treat that mate! Cheers :up:

Jay...
20 Mar 2007, 22:03
is there any way to make this to truncate long file names with (...) without prentecies on main page lets say after 10 caracters?.

Sometimes I have long filenames and this screws up front page layout badly...

Any help would be greatly appreciated.

this is what i want to do. any ideas?

CyberRanger
21 Mar 2007, 13:57
how do i limit the displayed file name? some of my file names are long and it messes up my template on vba index.

thnx
The only way to do this is to edit includes/class_downloads.php. Once you do that, the name displayed in the "tops" will be truncated on both the DownloadsII pages and on the VBA pages.

If you still want to do that, make these changes:

Around line 144 FIND:
$name = addslashes($latest['name']);

REPLACE with:
$name = addslashes(substr($latest['name'],0,xxx))." ... ";

Replace the xxx with how long you want the name to be. Follow the same procedure on line 174 (identical to above).

Jay...
21 Mar 2007, 17:32
The only way to do this is to edit includes/class_downloads.php. Once you do that, the name displayed in the "tops" will be truncated on both the DownloadsII pages and on the VBA pages.

If you still want to do that, make these changes:

Around line 144 FIND:
$name = addslashes($latest['name']);

REPLACE with:
$name = addslashes(substr($latest['name'],0,xxx))." ... ";

Replace the xxx with how long you want the name to be. Follow the same procedure on line 174 (identical to above).

that works for the most popular but not the latest files. take a look http://www.donkproject.net/index.php?page=home

bottom left hand corner

CyberRanger
21 Mar 2007, 18:22
that works for the most popular but not the latest files. take a look http://www.donkproject.net/index.php?page=home

bottom left hand corner
Do an "Update Counters" That will probably fix it.

Jay...
21 Mar 2007, 18:57
spot on cheers mate!

rowlandc
04 Apr 2007, 16:32
Is it possiable to only have Latest Files and Most Popular Files?

Could i take away the Top Contributors?

Best regards,
Clem

CyberRanger
04 Apr 2007, 16:37
Is it possiable to only have Latest Files and Most Popular Files?

Could i take away the Top Contributors?

Best regards,
ClemIf you set "Top Contributors" to 0 (that's a zero) in vbadmin -> Downloads -> Settings -> Number of "Top Contributors" to Display then the Top Contributors will not display.

RS_Jelle
04 Apr 2007, 16:39
That's very easy to do, just edit the adv_portal_ecdownloads template.

Remove this part of the code:
<if condition="$dl->statstopcontributers > 0">
<tr align="center">
<td class="thead" width="25%"><span class="smallfont">Top Contributors</span></td>
</tr>
<tr align="center">
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Top Contributors</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
$dpanel_contrib_bits
</table>
</div>
</fieldset>
</td>
</tr>
</if>

Edit: CyberRanger was a bit faster :p
His method is easier to do, but then you also remove the Top Contributors stats from the downloads.php pages. With editing this template, you only remove it from the vBadvanced CMPS module.

CyberRanger
04 Apr 2007, 16:50
That's very easy to do, just edit the ... With editing this template, you only remove it from the vBadvanced CMPS module.Right, depending on your overall goal, use on of these two methods. :p

DementedMindz
08 Apr 2007, 21:09
any way to have this on a vbadvanced page as a center block and not have them on top of each other but side by side?

RS_Jelle
09 Apr 2007, 00:16
That's possible, just change the adv_portal_ecdownloads template to what you want :)

This should work:
<tr align="center">
<td class="thead" width="25%"><span class="smallfont">Latest Files</span></td>
<td class="thead" width="25%"><span class="smallfont">Most Popular Files</span></td>
<td class="thead" width="25%"><span class="smallfont">Top Contributors</span></td>
</tr>
<tr align="center">
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Latest Files</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td width="100%">
<table cellpadding="2" cellspacing="{$stylevar['cellspacing']}" border="0" width="100%">
$dpanel_latest_bits
</table>
</td>
</tr>
</table>
</div>
</fieldset>
</td>
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Most Popular Files</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td width="100%">
<table cellpadding="2" cellspacing="{$stylevar['cellspacing']}" border="0" width="100%">
$dpanel_popular_bits
</table>
</td>
</tr>
</table>
</div>
</fieldset>
</td>
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Top Contributors</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
$dpanel_contrib_bits
</table>
</div>
</fieldset>
</td>
</tr>

DementedMindz
09 Apr 2007, 00:21
yeah I figured that out now thanks I couldnt get it to work so I been messing with it since and now its finally showing I just have it set up to show Latest Files, Most Popular Files made a new php file and all to test it couldnt figure out what was going on and it was I was using the old template in the php file also why is downloads_panel_bit needed in the templates to cache?

RS_Jelle
09 Apr 2007, 00:55
yeah I figured that out now thanks I couldnt get it to work so I been messing with it since and now its finally showing I just have it set up to show Latest Files, Most Popular Files made a new php file and all to test it couldnt figure out what was going on and it was I was using the old template in the php file also why is downloads_panel_bit needed in the templates to cache?

That's every item shown by the module, the actual data template :)

rowlandc
18 Apr 2007, 15:15
Thank you, worked a treat :)

Jesakos
26 May 2007, 19:48
is that work on CMPS v3.0 RC1 ? and 3.6.7PL1 forum ?

thx

RS_Jelle
26 May 2007, 19:52
is that work on CMPS v3.0 RC1 ? and 3.6.7PL1 forum ?

thx

This works fine with vBulletin 3.6.7 PL1, but I didn't upgraded to vBa CMPS 3.0 since it's only a first RC release (not a final one). But as we are only using basic vBa functionality, I would be very suprised if it wasn't compatible (so 99,99% chance it works).

Jesakos
26 May 2007, 22:08
thnx it works fine ;) :up:

robca
27 May 2007, 16:04
is there a way to change the language of this hack? where can i find these words?

Neoszion
28 May 2007, 17:57
Great Mod just have one problem im trying to style it so that it looks like its in a table (each line starts a new style) here is the style im trying to use:

style="
color: #999999;
font-size: 12px;
font-family: Tahoma, Verdana, sans-serif;
background-color: #272729;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 4px;
BORDER-TOP: 1px solid #111111;
BORDER-LEFT: 1px solid #111111;
border-bottom: 1px solid #323232;
BORDER-RIGHT: 1px solid #323232;"

Just trying to figure out where to put it?

rowlandc
28 May 2007, 18:09
That's possible, just change the adv_portal_ecdownloads template to what you want :)

This should work:
<tr align="center">
<td class="thead" width="25%"><span class="smallfont">Latest Files</span></td>
<td class="thead" width="25%"><span class="smallfont">Most Popular Files</span></td>
<td class="thead" width="25%"><span class="smallfont">Top Contributors</span></td>
</tr>
<tr align="center">
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Latest Files</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td width="100%">
<table cellpadding="2" cellspacing="{$stylevar['cellspacing']}" border="0" width="100%">
$dpanel_latest_bits
</table>
</td>
</tr>
</table>
</div>
</fieldset>
</td>
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Most Popular Files</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td width="100%">
<table cellpadding="2" cellspacing="{$stylevar['cellspacing']}" border="0" width="100%">
$dpanel_popular_bits
</table>
</td>
</tr>
</table>
</div>
</fieldset>
</td>
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Top Contributors</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
$dpanel_contrib_bits
</table>
</div>
</fieldset>
</td>
</tr>


Sorry for being such a nub but do I have to copy in this code in adv_portal_ecdownloads section deleteing what was there first then. Saving? or do I have to replace this with something?

rowlandc
31 May 2007, 22:07
I couldn't wait so I gave it a try :p

I got this code up:

<if condition="$dl->statslatestfiles > 0">
<tr align="center">
<td class="thead" width="25%"><span class="smallfont">Latest Files</span></td>
<td class="thead" width="25%"><span class="smallfont">Most Popular Files</span></td>
<tr align="center">
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Latest Files</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td width="100%">
<table cellpadding="2" cellspacing="{$stylevar['cellspacing']}" border="0" width="100%">
$dpanel_latest_bits
</table>
</td>
</tr>
</table>
</div>
</fieldset>
</td>
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Most Popular Files</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td width="100%">
<table cellpadding="2" cellspacing="{$stylevar['cellspacing']}" border="0" width="100%">
$dpanel_popular_bits
</table>
</td>
</tr>
</table>
</div>
</fieldset>
</td>
</tr> </if>


Only problem i'm getting is that the border at the top isn't filling up :eek:

Anyone know what I need to add to the code to fix it?

http://www.animegunshuu.com/show.jpg

RS_Jelle
01 Jun 2007, 06:38
is there a way to change the language of this hack? where can i find these words?

That's indeed not phrased yet.
You can change it in the adv_portal_ecdownloads template ;)

Great Mod just have one problem im trying to style it so that it looks like its in a table (each line starts a new style) here is the style im trying to use:

style="
color: #999999;
font-size: 12px;
font-family: Tahoma, Verdana, sans-serif;
background-color: #272729;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 4px;
BORDER-TOP: 1px solid #111111;
BORDER-LEFT: 1px solid #111111;
border-bottom: 1px solid #323232;
BORDER-RIGHT: 1px solid #323232;"

Just trying to figure out where to put it?

As it IS in a table, you can do this pretty easier :D
In each case: you have to change the adv_portal_ecdownloads template.

Change (two times)
<table cellpadding="2" cellspacing="{$stylevar['cellspacing']}" border="0" width="100%">
to
<table cellpadding="2" cellspacing="{$stylevar['cellspacing']}" border="1" width="100%">

For the Top Contributors, the table is slightly different:
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
But again, just set the border attribute to 1 :)

I couldn't wait so I gave it a try :p

Only problem i'm getting is that the border at the top isn't filling up :eek:

Anyone know what I need to add to the code to fix it?

That's normal as there are more columns now (normally there's just one), so the table header needs to have a colspan attribute as it's only one column. This is very easy with vBa CMPS, just change the module "Title Row Colspan" setting. Set its value to 3 :)

rowlandc
01 Jun 2007, 09:21
Works a treat :)

Thanks Jelle

Mrdby
08 Jun 2007, 03:28
You already have a Module with an identifier of ''. Please select a different identifier. i followed the directions but i got that message.

RS_Jelle
08 Jun 2007, 13:06
You already have a Module with an identifier of ''. Please select a different identifier. i followed the directions but i got that message.

Just do what it says: give the new module a unique identifier name :)
Choose for example downloads2 as the identifier.

PeteBlume
03 Jul 2007, 20:51
Hello,

I'm from germany. I even tryed to install the mod on vBullten 3.6.7 PL. Before I've installed the newest version of vbadvanced.

I have tryed to upload the file downloads2.php abut the acp. Then I got this error message:

The file you have uploaded is not a valid module file.

What can I do?
I hope you can help and understand me and sorry for my bad english - school its longtime ago. :(

A|X
08 Jul 2007, 06:24
Hi,

I like to know how to change the Download body size?
See attachment. I want the Current Poll same size with Downloads.

What should i do?

RS_Jelle
08 Jul 2007, 09:42
Hello,

I'm from germany. I even tryed to install the mod on vBullten 3.6.7 PL. Before I've installed the newest version of vbadvanced.

I have tryed to upload the file downloads2.php abut the acp. Then I got this error message:

The file you have uploaded is not a valid module file.

What can I do?
I hope you can help and understand me and sorry for my bad english - school its longtime ago. :(

You can't upload it using the AdminCP :D
You need to upload it using FTP to your /forums/modules/ folder, where all the PHP files of the vBa CMPS modules are located. The AdminCP upload feature is meaned for .module files, but we don't use that.

Hi,

I like to know how to change the Download body size?
See attachment. I want the Current Poll same size with Downloads.

What should i do?

That's because of the too long file names in the module. You can change some things in the adv_portal_ecdownloads template, but that won't solve it complete.

To solve it complete you need to edit some PHP:
Open /includes/class_downloads.php
Find $name = addslashes($latest['name']); (two times)
Change to $name = substr(addslashes($latest['name']), 0, 15); (two times)
Save and upload the file to your forums.
This will remove all characters after the 15th one. You can change the 15 to what you want ofcourse to fit to your site.

A|X
08 Jul 2007, 10:33
i have change the code 2 times below but still not working...


function update_latest_files()
{
global $db, $vbulletin;

if ($this->statslatestfiles > 0)
{
$statslatestfiles_q = $db->query_read("SELECT name, id FROM " . TABLE_PREFIX . "dl_files WHERE `purgatory`='0' ORDER BY `date` DESC LIMIT ".$this->statslatestfiles.""); // added by Brent to dynamically get the latest files loaded

while ($latest = $db->fetch_array($statslatestfiles_q)) // for section added by Brent to show a dynamic number of files
{
$name = substr(addslashes($latest['name']), 0, 10); $id = $latest['id'];
$url = $vbulletin->options['bburl']."/downloads.php?do=file&amp;id=$id";

if ($id > 0)
{
eval('$dpanel_latest_bits .= "' . fetch_template('downloads_panel_bit') . '";');
}
}

A|X
08 Jul 2007, 10:45
---------------


It's working now... :D Thanks.

Noctavia
10 Jul 2007, 14:53
Is there a way to have the downloads section list as a "page" module in CMPS instead of going directly to a whole new page? I would like to keep my CMPS parts on the left with the Downloads on the right. I couldn't figure out how to get that to work. Any help would be appreciated.

I figured to post in here since it is CMPS related.


I think this is also what I want to do. I'd like to have the actual downloads section (ie the right column of the downloads.php page showing as a vBadvanced page more than the top stats.

RS_Jelle
13 Jul 2007, 20:49
I think this is also what I want to do. I'd like to have the actual downloads section (ie the right column of the downloads.php page showing as a vBadvanced page more than the top stats.

On the vBadvanced site, you can find integration instructions for v2 of it: http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6
I didn't tests v3 yet, as I didn't have the time for it and it's not yet a final release (it's an RC, Release Candidate).

Then you only need to turn off the column in the DownloadsII options. But for removing them from the home page of DownloadsII, you need to edit downloads.php (at the end of the file).

There you will find:
if ($dl->statslatestfiles > 0 OR $dl->statstopcontributers > 0 OR $dl->statsmostpopularfiles > 0)
{
eval('$dpanel = "' . fetch_template('downloads_panel_side') . '";');
eval('$dmain .= "' . fetch_template('downloads_wrapper_side') . '";');
}
else
{
eval('$dmain .= "' . fetch_template('downloads_wrapper_none') . '";');
}
Replace this with:
eval('$dmain .= "' . fetch_template('downloads_wrapper_none') . '";');

HarryBO
19 Aug 2007, 22:58
Works fine, but how can I translate the stats into german? I canīt find anything in the phrases or in the templates!

mlucek
27 Aug 2007, 19:39
Nice !! *** INSTALLED ***

VB 3.6.7 (yeah I know, haven't updated to 3.6.8 yet)
CMPS 3.0 RC1

RS_Jelle
28 Aug 2007, 00:01
Works fine, but how can I translate the stats into german? I canīt find anything in the phrases or in the templates!

They are hardcoded in the adv_portal_ecdownloads template at the moment ;)

AudioFX
15 Sep 2007, 02:23
Coolin, very useful, thanx!

ang2el
27 Sep 2007, 17:21
the contents of top contributors and latest files are not showing up. How should I fix this? Please goto http://www.xenomed.com/forums/downloads.php to see this problem.

CyberRanger
28 Sep 2007, 13:32
the contents of top contributors and latest files are not showing up. How should I fix this? Please goto http://www.xenomed.com/forums/downloads.php to see this problem.

Try running "Update Counters".

Zellbet
04 Oct 2007, 01:18
1. I am trying to modify the VBadanced module to show only one category. IE I want one module to show the most popular files, and another module to show the latest files. Not sure what I am doing wrong here, but this is the image i get

https://www.vbulletin.org/forum/

This is the code. I would like it to just say in the module the names of the files. And not include most popular files 2 times, and remove the lines around it.

<if condition="$dl->statsmostpopularfiles > 0">
<tr align="center">
<td class="thead" width="25%"><span class="smallfont">Most Popular Files</span></td>
</tr>
<tr align="center">
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Most Popular Files</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td width="100%">
<table cellpadding="2" cellspacing="{$stylevar['cellspacing']}" border="0" width="100%">
$dpanel_popular_bits
</table>
</td>
</tr>
</table>
</div>
</fieldset>
</td>
</tr>
</if>

scotsmist
08 Oct 2007, 11:41
That's okay, because me and CyberRanger aren't using vBPortal (it isn't free, so we can't test it), so we only create/support a vBadvanced CMPS module :)

Hi, if vbportal was free to you, would you test with it ?

RS_Jelle
18 Oct 2007, 08:01
1. I am trying to modify the VBadanced module to show only one category. IE I want one module to show the most popular files, and another module to show the latest files. Not sure what I am doing wrong here, but this is the image i get

http://www.ozoneplanet.net/images/pic.jpg

This is the code. I would like it to just say in the module the names of the files. And not include most popular files 2 times, and remove the lines around it.

<if condition="$dl->statsmostpopularfiles > 0">
<tr align="center">
<td class="thead" width="25%"><span class="smallfont">Most Popular Files</span></td>
</tr>
<tr align="center">
<td class="alt1">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<legend>Most Popular Files</legend>
<div style="padding:0px">
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%">
<tr>
<td width="100%">
<table cellpadding="2" cellspacing="{$stylevar['cellspacing']}" border="0" width="100%">
$dpanel_popular_bits
</table>
</td>
</tr>
</table>
</div>
</fieldset>
</td>
</tr>
</if>

That's because the same templated is used two times. For the second module, create a new template next to adv_portal_ecdownloads, for example adv_portal_ecdownloads2.
Then open /modules/downloads2.php and change adv_portal_ecdownloads in it to your other template and give the module another name (for example downloads3.php), so you have two modules :)

Hi, if vbportal was free to you, would you test with it ?

That's an interesting offer :D
Then I would certainly experiment with it and try to port the module.

scotsmist
20 Oct 2007, 18:16
Hi Jelle,

The offer is there to yourself and any other coders. Drop by phpportals.com so we can set something up for you.

S7rik3R
26 Dec 2007, 16:18
Very nice this is what I needs ...

Thanks ~

Jay...
09 Jan 2008, 15:38
is there a way to reset the downloads count? mine hasnt been used yet it shows

' Downloads: 4294967166'

CyberRanger
09 Jan 2008, 18:43
is there a way to reset the downloads count? mine hasnt been used yet it shows

' Downloads: 4294967166'Run "Update Counters" located on your downloads.php page in the navigation area

cookiepants
21 Jan 2008, 02:03
I love this mod, and have a question. I would like to add a graphic to the page, but can't seem to find where to add it in. I'd like it in this box, replacing the word navigation.

Navigation
Main | Category Tree | Stats | Search | Add | My Files | Manage Files | Update Counters


Thank you!
Nutmeg

RS_Jelle
21 Jan 2008, 08:13
That's a vB Phrase, so you can edit it using AdminCP -> Languages & Phrases
The phrase variable of it is ecdownloads_navigation

Or you can edit the downloads_wrapper_none, downloads_wrapper_side and downloads_wrapper_top templates, where it is used in ({$vbphrase['ecdownloads_navigation']}).

cookiepants
21 Jan 2008, 18:30
thanks!

REVHEAD
04 Feb 2008, 12:01
Installed this mod is awsome

pHluid13
18 Feb 2008, 04:26
Since I only want certain members to see the block on the side after they log in. Which I have done already. I was also wondering one of two things. In the Site Navigation module, is it possible to have one of the links inside of that module only viewable to a certain usergroup. If not, is there a way that I can make the header of the Downloads block a link to the downloads.php page?

For Example: I titled the Downloads module "File Cabinet". Is it possible to make the words File Cabinet" at the top of the module block into a link that goes to downloads.php. This way only those people with permissions to visit the File Cabinet may see the link to get there. This way I don't have to make a new button for the navbar at the top. Which actually, I would like to do but don't know how to edit the navbar buttons for usergroup permissions. Any of the solutions, would be great.

Edit: Nevermind on the link in the module. I figured it out. I just changed the title of the module to "<a href="http://www.hswaves.com/forum/downloads.php">File Cabinet</a>"

and so it became a link. So now my next project is to make a button in the navbar appear only to specific usergroups. Anyone know how to do that?

RS_Jelle
18 Feb 2008, 08:41
In the Site Navigation module, is it possible to have one of the links inside of that module only viewable to a certain usergroup.

That's not possible with vBadvanced CMPS.

Btw: please click the install link if you use this mod.

Edit: Nevermind on the link in the module. I figured it out. I just changed the title of the module to

There's a better way to do this with vBa CMPS. Each module has a "Module Link" setting, where you can put such links :)

and so it became a link. So now my next project is to make a button in the navbar appear only to specific usergroups. Anyone know how to do that?

You can use template conditionals:
<if condition="is_member_of($bbuserinfo, 6)">
If in group 6, show this...
<else />
...or else, show this.
</if>

Easier:
<if condition="is_member_of($bbuserinfo, 6)">
If in group 6, show this...
</if>

Multiple groups:
<if condition="is_member_of($bbuserinfo, 6, 9, 10)">
If in group 6, show this...
<else />
...or else, show this.
</if>

masterweb
16 Mar 2008, 16:38
Installed and working on my 3.6.8 forum. Thanks mate

R1lover
17 Mar 2008, 06:23
Installed on 3.7 Beta 6 and working well so far.

LilSniper
22 Mar 2008, 06:11
NEVERMIND.

thanks...this is awesome

Goomzee
05 Apr 2008, 12:42
can you plz tell me which vba Modules should i add php,Templete or BBC

RS_Jelle
05 Apr 2008, 14:20
can you plz tell me which vba Modules should i add php,Templete or BBC

A PHP module as you are using /modules/downloads2.php ;)

Goomzee
06 Apr 2008, 18:21
i added but it's not working strange

RS_Jelle
07 Apr 2008, 07:15
i added but it's not working strange

Have you filled in all fields correctly (like on this screenshot (http://www.vbulletin.org/forum/attachment.php?attachmentid=55347&d=1162332411) and in the instructions)?

Goomzee
08 Apr 2008, 19:33
i upload downloads2.phpin forums/modules direcotry then go to edit modules here attachment by the way how do i update the my index pages(s) to show the new module?

RS_Jelle
10 Apr 2008, 07:37
i upload downloads2.phpin forums/modules direcotry then go to edit modules here attachment by the way how do i update the my index pages(s) to show the new module?

"Templates used" looks wrong, you've got this there:

field enter 'adv_portal_ecdownloads, downloads_panel_bit'

which should become:

adv_portal_ecdownloads, downloads_panel_bit

For adding it to the pages you want, just use the edit page feature and enable the downloads2 module.

Goomzee
10 Apr 2008, 10:27
i also did this but same problem it;s not working

RS_Jelle
12 Apr 2008, 15:11
i also did this but same problem it;s not working

If you pm me an AdminCP login for your forum, I will take a look.

amirlol
12 Apr 2008, 19:16
install ! thanks

maf1973
03 May 2008, 13:00
Updated for 3.7 ?

RS_Jelle
03 May 2008, 13:21
Updated for 3.7 ?

No need for any updates, it works fine with vB 3.7 :)

j-n
04 May 2008, 22:36
thank you

karel1985
13 May 2008, 19:33
No need for any updates, it works fine with vB 3.7 :)

so u can add it in the 3.7 zone? i think much more people would take a look at this

Thanks again for the great addon

Karel

Drakah
13 May 2008, 20:07
Works well for me with 3.7 after all of the configuration settings were done, usergrp permissions, and all of that.

Just wish I had the option to add in custom fields to the file listings (ie: Version, Compatible with ___, etc.), as well as thumbnails to match the forum scheme.

You can see how I did it at www.shakahr.com

RS_Jelle
13 May 2008, 21:24
so u can add it in the 3.7 zone? i think much more people would take a look at this

Thanks again for the great addon

Karel

There will be a new add-on for v6, which will be vB 3.7 only :)

Works well for me with 3.7 after all of the configuration settings were done, usergrp permissions, and all of that.

Just wish I had the option to add in custom fields to the file listings (ie: Version, Compatible with ___, etc.), as well as thumbnails to match the forum scheme.

You can see how I did it at www.shakahr.com

What do you mean by "as well as thumbnails to match the forum scheme"? The lightbox viewer?

Jay...
03 Jun 2008, 19:43
Just wondering... will this ever be made to work with a points system?

CyberRanger
04 Jun 2008, 05:17
Just wondering... will this ever be made to work with a points system?
The hooks are in place within DownloadsII for any developer to write add-on modules to connect to any points system. We are just waiting for someone to do it.

Hitterman
14 Sep 2008, 05:27
Is it compatible with vbulletin 3.7.

bollie
14 Sep 2008, 11:43
Is it compatible with vbulletin 3.7.

yes

freni32
21 Nov 2008, 15:07
Can this work with vbadvanced dynamics as well?

I tried to upload this module into dynamics and get this message:

"The file you have uploaded is not a valid module file."


Also I am trying to edit the categories for the downloads module, the downloads options only appear in admincp - vbulletin options - downloads II

how do you get it to appear like it should in

admin cp - downloads ??

laercioaugusto
02 Jan 2009, 17:37
installed .... thanks:up::up:

Vaupell
12 Jan 2009, 03:19
mm nice works fine with

Vbulletin 3.8
Vbadvanced 3.1

yay, lovely.

arashjaf
16 Jan 2009, 05:50
thank you so much guys

great add-on, I love it

arashjaf
16 Jan 2009, 05:58
That worked a treat that mate! Cheers :up:
has it been removed completely?

arashjaf
16 Jan 2009, 06:00
Yes, you'll need to edit downloads.php to make that happen.

Around line 393, look for:
eval('$dpanel = "' . fetch_template('downloads_panel_side') . '";');
eval('$dmain = "' . fetch_template('downloads_wrapper_side') . '";');

REPLACE with:
eval('$dmain .= "' . fetch_template('downloads_wrapper_top') . '";');

Around line 1980, look for:

if ($dl->statslatestfiles > 0 OR $dl->statstopcontributers > 0 OR $dl->statsmostpopularfiles > 0)
{
eval('$dpanel = "' . fetch_template('downloads_panel_side') . '";');
eval('$dmain .= "' . fetch_template('downloads_wrapper_side') . '";');
}
else
{
eval('$dmain .= "' . fetch_template('downloads_wrapper_none') . '";');
}

REPLACE with:
eval('$dmain .= "' . fetch_template('downloads_wrapper_none') . '";');

That should do the trick!

great thanks, I did that, and now it does not show it when I go to the download section (that is what i want), but it does show it when I go to category Tree, stats ... how can I make sure the new files block do not show at all in my downlaod section.

regards

zushiba
12 May 2009, 17:01
So I'm guessing this just isn't being updated any longer for the latest versions of Download II/VB/VBCMPS?

I tried and all I seem to get is a blank module.

csrober055
21 May 2009, 09:49
Wonderful! Downloaded and installed seamlessly! Brilliant work!

Thank you,

csrober055

cowcowcow
13 Jul 2009, 12:32
EDIT: jelle posted the solution on page 7, opps i missed it. Thanks!


Have to first declare I love this mod, great work guys =)

Now theres a slight problem i run into. When i use this add on, im displaying the "latest downloads/top contributors etc block" on the left side of my main homepage, which wraps around my whole forum and this is the look i want to keep when pple go from page to page.

When i click to go to my downloads.php area, (which i integrated) i see a duplicate(which makes total sense) - theres the "latest downloads/top contributors etc block" from the wrapper on the left, and again on the main download page.

Since i already had the "latest downloads/top contributors etc block" in my wrapper and dont need it to display again on the downloads main page, is there a way to stop it from displaying and just display the categories?

Thanks in advance Jelle/CyberRanger and much appreciated!

RS_Jelle
13 Jul 2009, 13:41
So I'm guessing this just isn't being updated any longer for the latest versions of Download II/VB/VBCMPS?

I tried and all I seem to get is a blank module.

It's fully updated. It should work fine with the latest versions of vB, DL II and vBa CMPS.

cowcowcow
13 Jul 2009, 13:42
jelle i used ur code on page 7, turns out i need to remove another batch of code cause when i click on a category, the "top block" gets displayed again. i tried looking in the downloads.php file but i honestly have no clue what to remove.

nvm fixed with this

Open downloads.php

Find
PHP Code:
eval('$dmain_jr = "' . fetch_template('downloads_cat') . '";');
eval('$dpanel = "' . fetch_template('downloads_panel_side') . '";');
eval('$dmain = "' . fetch_template('downloads_wrapper_side') . '";');
Replace with
PHP Code:
eval('$dmain_jr = "' . fetch_template('downloads_cat') . '";');
if ($vbulletin->options['ecdownloads_tops'])
{
eval('$dpanel = "' . fetch_template('downloads_panel_side') . '";');
eval('$dmain = "' . fetch_template('downloads_wrapper_side') . '";');
}
else
{
eval('$dmain .= "' . fetch_template('downloads_wrapper_top') . '";');
}
v6 will have the left column on a per page (home, cat, file, search, ...) basis.

Saviour
11 Aug 2009, 14:31
Fantastic mod!

Installed and working flawlessly on vB 3.8.3.

archaosus
14 Dec 2009, 01:22
Ignore this post - wrong thread.

Llandy
21 Jan 2010, 01:51
Works like a charm, installed.

NiTRoN
11 Feb 2010, 18:06
Can this be ported to vbadvanced v4.x ?

RS_Jelle
11 Feb 2010, 18:26
Can this be ported to vbadvanced v4.x ?

Yes, it will, but it's only beta 2 at the moment :)

NiTRoN
11 Feb 2010, 18:59
thanks

stunod
28 Jun 2010, 05:26
Any updates on the 4.x version yet?

Thanks,
Adam

DaPro
23 Jul 2010, 13:35
Could really use this for my new web site :(, but needs to be or vB4.x

NokStar
06 Sep 2010, 15:48
need 4.x version for vBadvanced

Stefanus
09 Oct 2010, 13:59
Can this be ported to vbadvanced v4.x ?

Yes, it will, but it's only beta 2 at the moment :)

Any progress on this? :erm:

NokStar
26 Oct 2010, 11:09
Any progress on this? :erm:

Yes really in need of this

angkor408
06 Nov 2010, 11:00
I tried on VB4.0.7 it say invalid module file.

AlBundy
04 Feb 2011, 22:05
I search this addon for 4.1.0 :/
can anyone help me? thx

gnrx
04 Mar 2011, 00:32
The same problem, I need this addon for 4.1.2.
It's possible? Can help me?

Thanks and regards!!

daveb47
18 Apr 2011, 15:18
The same problem, I need this addon for 4.1.2

Need this as well please

i.s.s.w
14 May 2011, 21:21
please upgrade your mod for vBadvanced CMPS

Chris-777
01 Jul 2011, 19:15
It's working with 3.8 here. :)

Thanks!