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)

ZGeek 11-18-2005 10:45 PM

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') . '";');

?>


Rhoads 11-18-2005 11:08 PM

Thnx ZGeek, that was the trick :squareeyed:

divided_by_fear 11-21-2005 09:17 PM

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

Stachel 11-22-2005 09:40 AM

demo link?

divided_by_fear 11-22-2005 06:42 PM

demo link for what?

SMO 11-29-2005 03:04 AM

I cant get any of the text to be Hlinks or have stuff in them. is it not supposed to be?

Hoffi 11-29-2005 10:52 AM

Works this with ec 3.2 and vba 2.0?

MissKalunji 12-12-2005 04:32 PM

can someone show me wha tit looks like.....i dont think i understand well what that does...

divided_by_fear 12-12-2005 04:55 PM

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

MissKalunji 12-12-2005 05:49 PM

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!!!


All times are GMT. The time now is 06:21 AM.

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.01088 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_php_printable
  • (1)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