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

Reply
 
Thread Tools
ecDownloads vBAdvanced addon Details »»
ecDownloads vBAdvanced addon
Version: 3.x, by Ron1n Ron1n is offline
Developer Last Online: Jun 2008 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 08-06-2005 Last Update: 08-06-2005 Installs: 34
Uses Plugins Template Edits
Additional Files  
No support by the author.

This is to install an addon to vBAdvanced AND ecDownloads (both are required). It creates a stat panel similar to the sidepanel of the normal download system.


Add template adv_portal_ecdownloads with this content:


Code:
    <tr align="center">
     <td class="$bgclass"><span class="smallfont"><strong>$vba_options[portal_blockbullet] ecDownloads Statistics</strong></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>
     </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> 
     <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>

Upload ecdownloads.php to the module directory of vbadvanced


Create the new module using the drop down menu to select ecdownloads.php, and in the "templates used" field enter adv_portal_ecdownloads, downloads_panel_bit


Update your index pages to show the new module

Show Your Support

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

Comments
  #22  
Old 11-18-2005, 10:45 PM
ZGeek ZGeek is offline
 
Join Date: Jan 2003
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is how I changed the URL in the ecdownloads.php downloads file.
PHP Code:
<?php

require_once("./includes/class_downloads.php");
$dl = new vB_Downloads();

for(
$i 1$i <= 4$i++) {
    
$name $dl->stats['latest['.$i.']'];
    
$id $dl->stats['latestid['.$i.']'];
    
//$value = vbdate($vboptions['dateformat'],$main['latestval['.$i.']'],true);
    
$url "http://forums.zgeek.com/downloads.php?do=file&id=$id";
    if (
$id 0)
    eval(
'$dpanel_latest_bits .= "' fetch_template('downloads_panel_bit') . '";');
}
for(
$i 1$i <= 4$i++) {
    
$name $dl->stats['popular['.$i.']'];
    
$id $dl->stats['popularid['.$i.']'];
    
$value vb_number_format($dl->stats['popularval['.$i.']']);
    
$url "http://forums.zgeek.com/downloads.php?do=file&id=$id";
    if (
$id 0)
    eval(
'$dpanel_popular_bits .= "' fetch_template('downloads_panel_bit') . '";');
}
for(
$i 1$i <= 4$i++) {
    
$name $dl->stats['contrib['.$i.']'];
    
$id $dl->stats['contribid['.$i.']'];
    
$value vb_number_format($dl->stats['contribval['.$i.']']);
    
$url "http://forums.zgeek.com/member.php?u=$id";
    if (
$id 0)
    eval(
'$dpanel_contrib_bits .= "' fetch_template('downloads_panel_bit') . '";');
}

eval(
'$home[$mods[\'modid\']][\'content\'] .= "' fetch_template('adv_portal_ecdownloads') . '";');

?>
Reply With Quote
  #23  
Old 11-18-2005, 11:08 PM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thnx ZGeek, that was the trick :squareeyed:
Reply With Quote
  #24  
Old 11-21-2005, 09:17 PM
divided_by_fear's Avatar
divided_by_fear divided_by_fear is offline
 
Join Date: Oct 2005
Posts: 451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok question on this when i add a new download its keeping the same download amounts for the newest files how can i fix this?

Latest Files
Nurses 12
Hot college lesbians 12
ProductionsDotMaker 12
Hardcore Online Checker 12


Most Popular Files
TwatWackv-4 112
JarHead 2005 86
Y_Multi_Messenger-7.0 70
Fate_Of_The_Dragon 34


Top Contributors
spanky 111
MindWalker 42
NicK 0
ViCiOuS__ 0

no one even downloaded the newest file yet and its reading that... everything else on that block works great just that part... it was working great then it just stopped and keep the same amout on the latest
Reply With Quote
  #25  
Old 11-22-2005, 09:40 AM
Stachel Stachel is offline
 
Join Date: Jun 2004
Location: US
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

demo link?
Reply With Quote
  #26  
Old 11-22-2005, 06:42 PM
divided_by_fear's Avatar
divided_by_fear divided_by_fear is offline
 
Join Date: Oct 2005
Posts: 451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

demo link for what?
Reply With Quote
  #27  
Old 11-29-2005, 03:04 AM
SMO's Avatar
SMO SMO is offline
 
Join Date: Sep 2005
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant get any of the text to be Hlinks or have stuff in them. is it not supposed to be?
Reply With Quote
  #28  
Old 11-29-2005, 10:52 AM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works this with ec 3.2 and vba 2.0?
Reply With Quote
  #29  
Old 12-12-2005, 04:32 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can someone show me wha tit looks like.....i dont think i understand well what that does...
Reply With Quote
  #30  
Old 12-12-2005, 04:55 PM
divided_by_fear's Avatar
divided_by_fear divided_by_fear is offline
 
Join Date: Oct 2005
Posts: 451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its basicly a addon module for you vbadvanced... it will show the downloads just like on downloads.php but in block form on vbadvanced main page
Reply With Quote
  #31  
Old 12-12-2005, 05:49 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by divided_by_fear
its basicly a addon module for you vbadvanced... it will show the downloads just like on downloads.php but in block form on vbadvanced main page
thx dear!!!
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 05:01 AM.


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.06013 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)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