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

Kirk Y 09-01-2005 09:28 PM

Nice... I adapted it to my index, looks fantastic. I'm trying to get the description of the item to be displayed on a mouseover, like a tooltip; using the "title=" tag. Any ideas? I tried including the downloads.php page and then using the variable $description, but that won't work because it superimposes itself over the index.

Deska 09-10-2005 03:21 PM

I try this one on vB3.0.7 and vBadvanced v2.0.0 and not work :(
All downloads URL not showup, links download have link to forum url, not download url.
Anyone know how to fix it?

Thank's...

MiniMo 09-11-2005 01:05 PM

Quote:

Originally Posted by Deska
I try this one on vB3.0.7 and vBadvanced v2.0.0 and not work :(
All downloads URL not showup, links download have link to forum url, not download url.
Anyone know how to fix it?

Thank's...

Edit the file ecdownloads.php

1. Change all instances of $url to $biturl
2. Make sure the $biturl value points to your downloads.php file
3. Upload the ecdownloads.php file again.

Example:

Original: $url = "downloads.php?do=file&id=$id";
Changed: $biturl = "forums/downloads.php?do=file&id=$id";

Deska 09-11-2005 03:07 PM

It's work now :D
Thank's a lots MiniMo...

divided_by_fear 10-29-2005 11:18 PM

sorry im still new to all this but when i went to add the new module i got this message..
You already have a Module with an identifier of ''. Please select a different identifier.
what could i do to fix this sorry im still new...

Ron1n 11-12-2005 12:13 PM

Quote:

Originally Posted by divided_by_fear
sorry im still new to all this but when i went to add the new module i got this message..
You already have a Module with an identifier of ''. Please select a different identifier.
what could i do to fix this sorry im still new...

This is more of a question for the vbadvanced creator - not me.

Rhoads 11-12-2005 07:27 PM

Hi Ronin, I have installed this addon, but when I push on de link in the ecDownloads Statistics module, I go to /member.php instead of /forum/member.php

Where can I edit that.

Rhoads 11-17-2005 06:55 PM

Bump :ermm:

junaid 11-18-2005 09:07 PM

I have no option to upload file cold you explain mor

ZGeek 11-18-2005 10:36 PM

Quote:

Originally Posted by drl2005
Hi Ronin, I have installed this addon, but when I push on de link in the ecDownloads Statistics module, I go to /member.php instead of /forum/member.php

Where can I edit that.

I need this too

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

Mudvayne 12-24-2005 08:58 AM

Okiz.. I'm having same problem.. All links show www.domainname.com/downloads.php.. which supposed to b www.domainname.com/forum/downloads.php.. So i edited the php file.. Anywayz I uploaded it.. replace ur older php with tht n it 'll work fine :) At least mine works :P

Robbed 12-27-2005 02:17 PM

I'm using vbadvanced and it says these templates are not cached?

Uncached templates: adv_portal_ecdownloads (1)
Uncached templates: downloads_panel_bit (12)

How would you get them to cache...Thanks.

Also for the latest files it's not showing the number of downloads...it's just showing 7 for all of them.

divided_by_fear 12-27-2005 02:18 PM

in the "templates used" field enter adv_portal_ecdownloads, downloads_panel_bit

Robbed 12-27-2005 02:25 PM

ahh that was simple I had ' ' around the template names.

What about the latest files problem: it's not showing the number of downloads...it's just showing 7 for all of them.

divided_by_fear 12-27-2005 02:27 PM

i had the same problem i dont think there is a fix for that i have tried all the fixes cleaned out everything started over and no matter what it still does it i just removed the number for now

Robbed 12-27-2005 02:36 PM

I wonder if it's because we changed the coding so we can have more popular files listed.

divided_by_fear 12-27-2005 02:50 PM

nah i didnt change no coding even stock it does that after so long

Robbed 12-27-2005 11:35 PM

What code did you remove, to get rid of the numbers and what about that weird background color.

http://img410.imageshack.us/img410/5683/vba8mi.jpg

divided_by_fear 12-28-2005 01:20 AM

nah my background was fine but all i did for now was remove the number look in the php file that comes with this open it up only like 9-10 lines down look at //$value = remove the //

divided_by_fear 12-28-2005 03:07 AM

i was just looking i dont even think itssuppose to show numbers on the latest files... cause look on your main downloads page it done show it there so i have no clue why it would try on the module im going to look at the code a bit more but it has to be how he has it set up on the the main downloads that it gives numbers there cause all its using is the same calls as used in the top block on the downloads main page


All times are GMT. The time now is 04: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.01280 seconds
  • Memory Usage 1,844KB
  • 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
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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