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)

RS_Jelle 10-21-2006 04:47 PM

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 10-21-2006 04:52 PM

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 10-21-2006 07:43 PM

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 10-31-2006 03:10 PM

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 10-31-2006 03:18 PM

Quote:

Originally Posted by Rexster
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 11-06-2006 08:17 AM

Is there an addon for vbportal CMPS?

scotsmist 11-06-2006 08:52 AM

I don't mind converting this one if that's okay.

RS_Jelle 11-06-2006 09:43 AM

Quote:

Originally Posted by scotsmist
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 11-06-2006 01:16 PM

Sweat!!! I really like this addon :)

NiTRoN 01-20-2007 08:39 AM

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 01-27-2007 07:16 PM

color me stupid but I can't find where to add categories? I bet it's staring me right in the face too!

akulion 01-31-2007 12:42 PM

how to add for the latest vb advanced? using 3.6.4vb

sunnycher 01-31-2007 12:57 PM

Ignore my other post! I was in the wrong thread anyway :)

Loving this, thank you!

akulion 01-31-2007 12:59 PM

never mind got it working :D

thanks

phpdevrus 02-10-2007 02:11 AM

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 02-10-2007 06:07 AM

nice, installed perfectly.

Jay... 02-21-2007 03:36 PM

is there anyway i can have this working but have the other one not show up on the downloads.php page?

CyberRanger 02-21-2007 04:46 PM

Quote:

Originally Posted by Jay... (Post 1187562)
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:
PHP Code:

    eval('$dpanel = "' fetch_template('downloads_panel_side') . '";');
    eval(
'$dmain = "' fetch_template('downloads_wrapper_side') . '";'); 

REPLACE with:
PHP Code:

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

Around line 1980, look for:

PHP Code:

    if ($dl->statslatestfiles OR $dl->statstopcontributers 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:
PHP Code:

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

That should do the trick!

Jay... 02-21-2007 04:49 PM

Quote:

Originally Posted by CyberRanger (Post 1187617)
Yes, you'll need to edit downloads.php to make that happen.

Around line 393, look for:
PHP Code:

    eval('$dpanel = "' fetch_template('downloads_panel_side') . '";');
    eval(
'$dmain = "' fetch_template('downloads_wrapper_side') . '";'); 

REPLACE with:
PHP Code:

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

Around line 1980, look for:

PHP Code:

    if ($dl->statslatestfiles OR $dl->statstopcontributers 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:
PHP Code:

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

That should do the trick!

That worked a treat that mate! Cheers :up:

Jay... 03-20-2007 08:03 PM

Quote:

Originally Posted by NiTRoN (Post 1163317)
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 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>


DementedMindz 04-08-2007 10:21 PM

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

Quote:

Originally Posted by DementedMindz (Post 1222915)
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 04-18-2007 01:15 PM

Thank you, worked a treat :)

Jesakos 05-26-2007 05:48 PM

is that work on CMPS v3.0 RC1 ? and 3.6.7PL1 forum ?

thx

RS_Jelle 05-26-2007 05:52 PM

Quote:

Originally Posted by Jesakos (Post 1255073)
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 05-26-2007 08:08 PM

thnx it works fine ;) :up:

robca 05-27-2007 02:04 PM

is there a way to change the language of this hack? where can i find these words?

Neoszion 05-28-2007 03:57 PM

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:

PHP Code:

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 05-28-2007 04:09 PM

Quote:

Originally Posted by RS_Jelle (Post 1222913)
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>



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 05-31-2007 08:07 PM

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

I got this code up:

PHP Code:

 <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


All times are GMT. The time now is 02:33 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.01709 seconds
  • Memory Usage 1,919KB
  • 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
  • (3)bbcode_html_printable
  • (14)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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