vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - DownloadsII ver 5.0 vbAdvanced Add-On (https://vborg.vbsupport.ru/showthread.php?t=110122)

CyberRanger 03-21-2007 11:57 AM

Quote:

Originally Posted by phpdevrus (Post 1178865)
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).

Jay... 03-21-2007 03:32 PM

Quote:

Originally Posted by CyberRanger (Post 1208730)
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

CyberRanger 03-21-2007 04:22 PM

Quote:

Originally Posted by Jay... (Post 1208873)
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... 03-21-2007 04:57 PM

spot on cheers mate!

rowlandc 04-04-2007 02:32 PM

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

Could i take away the Top Contributors?

Best regards,
Clem

CyberRanger 04-04-2007 02:37 PM

Quote:

Originally Posted by rowlandc (Post 1219695)
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.

RS_Jelle 04-04-2007 02:39 PM

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 :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-04-2007 02:50 PM

Quote:

Originally Posted by RS_Jelle (Post 1219699)
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 04-08-2007 07:09 PM

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 04-08-2007 10:16 PM

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>



All times are GMT. The time now is 07:43 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.01179 seconds
  • Memory Usage 1,774KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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