Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
DownloadsII ver 5.0 vbAdvanced Add-On Details »»
DownloadsII ver 5.0 vbAdvanced Add-On
Version: 1.0.1, by CyberRanger CyberRanger is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.8 Rating:
Released: 03-11-2006 Last Update: 10-30-2006 Installs: 300
Additional Files  
No support by the author.

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 (free).
Also vBadvanced CMPS (a vBulletin 3.5.x or 3.6.x version) is required. You can find it here (free).



Installation
  1. Upload downloads2.php to the module directory of vBadvanced CMPS
  2. 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)
  3. 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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 03-21-2007, 11:57 AM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by phpdevrus View Post
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:
PHP Code:
$name addslashes($latest['name']); 
REPLACE with:
PHP Code:
$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).
Reply With Quote
  #63  
Old 03-21-2007, 03:32 PM
Jay... Jay... is offline
 
Join Date: Jan 2006
Location: Sunderland, UK
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CyberRanger View Post
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:
PHP Code:
$name addslashes($latest['name']); 
REPLACE with:
PHP Code:
$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
Reply With Quote
  #64  
Old 03-21-2007, 04:22 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jay... View Post
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.
Reply With Quote
  #65  
Old 03-21-2007, 04:57 PM
Jay... Jay... is offline
 
Join Date: Jan 2006
Location: Sunderland, UK
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

spot on cheers mate!
Reply With Quote
  #66  
Old 04-04-2007, 02:32 PM
rowlandc rowlandc is offline
 
Join Date: Jan 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possiable to only have Latest Files and Most Popular Files?

Could i take away the Top Contributors?

Best regards,
Clem
Reply With Quote
  #67  
Old 04-04-2007, 02:37 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rowlandc View Post
Is it possiable to only have Latest Files and Most Popular Files?

Could i take away the Top Contributors?

Best regards,
Clem
If 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.
Reply With Quote
  #68  
Old 04-04-2007, 02:39 PM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's very easy to do, just edit the adv_portal_ecdownloads template.

Remove this part of the code:
HTML 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
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.
Reply With Quote
  #69  
Old 04-04-2007, 02:50 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RS_Jelle View Post
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.
Reply With Quote
  #70  
Old 04-08-2007, 07:09 PM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #71  
Old 04-08-2007, 10:16 PM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's possible, just change the adv_portal_ecdownloads template to what you want

This should work:
HTML Code:
    <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>
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04830 seconds
  • Memory Usage 2,332KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (4)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete