vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   ecDownloads vBAdvanced addon (https://vborg.vbsupport.ru/showthread.php?t=93771)

Ron1n 08-06-2005 10:00 PM

ecDownloads vBAdvanced addon
 
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

CompuJonathan 08-07-2005 05:24 AM

Would you please provide a demo or screen shot? :ninja:

- Compu

Ian Emu-UK 08-07-2005 10:30 AM

I think someone forgot to attach ecdownloads.php ;)

bigcurt 08-07-2005 12:49 PM

Yea you might want to do that bud xD.

~Curt

Ron1n 08-07-2005 01:32 PM

Quote:

Would you please provide a demo or screen shot?
Look at any page in your downloads section.

Quote:

I think someone forgot to attach ecdownloads.php
Yea, sorry. Added it.

Ian Emu-UK 08-07-2005 05:00 PM

The template caused all the other blocks on the side I put it to be placed at the bottom of the page with vBadvance 2.0 rc2.

But that was soon fixed by removing
Code:

<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%" align="center">
 <tr>
  <td>
  <table cellpadding="6" cellspacing="1" border="0" width="100%">

from the top and
Code:

  </table>
  </td>
 </tr>
</table>
<br />

from the bottom.

I also changed this
Code:

<td class="tcat" width="25%"><span class="smallfont"><strong>$vba_options[portal_blockbullet] ecDownloads Statistics</strong></span></td>
to this
Code:

<td class="$bgclass"><span class="smallfont"><strong>$vba_options[portal_blockbullet] ecDownloads Statistics</strong></span></td>
Great addition to my homepage, thanks Ron1n

Ron1n 08-07-2005 09:32 PM

Quote:

Originally Posted by Ian Emu-UK
Great addition to my homepage, thanks Ron1n

K, Np! I released this without testing or looking. :x

Brinnie 08-08-2005 01:20 PM

Quote:

Originally Posted by Ron1n
K, Np! I released this without testing or looking. :x

I like dohnuts... yes i do :o

djsydeburnz 08-21-2005 01:27 AM

is there a template i can use with 3.0.7? This one seems to display at 100% width and the cell header doesnt follow suit to the theme.

thanks in advance.

Gizmo5h1t3 09-01-2005 06:01 AM

works a treat


All times are GMT. The time now is 01:47 PM.

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.01142 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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