vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   ecDownloads 3.2 Legacy (https://vborg.vbsupport.ru/showthread.php?t=75198)

memobug 03-28-2005 06:01 AM

Quote:

Originally Posted by Rids
The stats page is just showing one member (same one for every day) and the same date (03-25-05) day after day and no other figures. I checked the cron job setup and its the same as in the screenshot so I currently have no idea why its not working.

I have exactly this same problem but I did not want to mention it for fear that Ron1n might think I was trying to rip the hack, which I think is a great hack.

But I can confirm the problem.

Also, I became aware of this hack from another site which has the same thing displayed. I don't have any users downloading anything or any files to download, but I see the same user 3 times as downloading yesterday.

Regards,

Matt

Ron1n 03-28-2005 01:48 PM

I miscoppied the statsbit into the installer script.

downloads_util_stats_bit:

Code:

<tr><td class="alt1">{$stat['date']}</td><td class="alt1">{$stat['downloads']}</td></tr>
Quote:

The stats thing has a little bug where it will report top [uploaders] as people who have never [uploaded] anything, so the query should probably be adjusted to not report people who haven't [uploaded] anything.

Similarly it will report [the most popular files as files that] don't have any downloads.
This is not a bug, and I do not think it needs to be fixed. When I was making this I also considered making no numbers (0's) show up if the board had fewer than 4 members, but doing things like that is just a complete waste of time. The stats work perfectly if the following are true: the board has more than 4 users, more than 4 files, more than 4 users with uploads, more than 4 files with downloads. Since no boards except for test boards are in this situation, its pointless.

About the 'headers already sent' errors, 99% of users on the web aren't effected by it. You should use FireFox (the best browser) www.getfirefox.com.

The following is an example of one of the smaller pages on a website I made, and as you can see, I print as follows: HTML - php generated content - HTML and it works fine for every user who has viewed it so far. If it hadn't I would have been contacted as I know everyone who has gone to this website.
Code:

<?
switch($_GET['do']) {
        case 'hw':
                $content = '<strong>Harbor Walk Association Resources</strong>
                                  <br>
                                  <br>
                                <a href="files/HWA of Incorporation.pdf">HWA Articles of Incorporation (pdf doc)</a>
                                  <br>
                                <a href="files/HWA By Laws.pdf">HWA By Laws (pdf doc)</a>
                                  <br>
                                <a href="files/HWA Joint Venture Declaration.pdf">HWA Joint Venture Declaration (pdf doc)</a>
                                  <br>';
                break;
        default:
                $content = '<strong>Community Association Resources</strong>
                                  <br>
                                  <br>
                                <a href="files/OCA By Laws.doc">OCA By Laws(word doc)</a>
                                  <br>
                                <a href="files/OCA Covenants.doc">OCA Covenants (word doc)</a>
                                  <br>';
                break;
}
?>
               
<HTML><!-- InstanceBegin template="/Templates/single.dwt" codeOutsideHTMLIsLocked="false" -->
<HEAD>
<!-- InstanceBeginEditable name="Title" --><TITLE>Resources</TITLE><!-- InstanceEndEditable -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<style type="text/css">
<!--
td {
        text-align: left;
        vertical-align: top;
        font-family:Tahoma;
        font-size:10px;
        color:#7E7E7E;
}
form
{
        margin:0px;
}
a {
        text-decoration: underline;
                color:#7E7E7E;
}
a.1 {
        text-decoration: none;
        color:#7E7E7E;
}
a.2 {
        text-decoration: none;
        color:#4F6B75;
}

a.m1 {
        text-decoration: none;
        color:#ffffff;
}
.t11 {
        font-family: Tahoma;
        font-size: 11px;
        font-style: normal;
}

-->
</style>

<script language="JavaScript" type="text/JavaScript">
<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<A.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].SRC=a[i];}}
}
//-->
</script>





</HEAD>
<BODY BGCOLOR=#F0F0F0 LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN="0" BOTTOMMARGIN="0" MARGINWIDTH=0 MARGINHEIGHT=0>
<CENTER>
<TABLE WIDTH=766 BORDER=0 CELLPADDING=0 CELLSPACING=0>
  <TR>
        <TD><IMG SRC="images/structure/1.jpg" WIDTH=766 HEIGHT=18 ALT=""></TD>
  </TR>
  <TR>
        <TD>
          <TABLE WIDTH=766 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR>
          <TD> <IMG SRC="images/structure/6.jpg" WIDTH=18 HEIGHT=249 ALT=""></TD>
          <TD VALIGN="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="249" height="249">
            <param name="movie" value="flash/menu.swf">
            <param name="quality" value="high">
            <embed SRC="flash/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" WIDTH="249" height="249"></embed>
            </object></TD>
          <TD> <IMG SRC="images/structure/7.jpg" WIDTH=17 HEIGHT=249 ALT=""></TD>
          <TD>
                        <TABLE WIDTH=463 BORDER=0 CELLPADDING=0 CELLSPACING=0>
              <TR>
                <TD><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="463" height="116">
                  <param name="movie" value="flash/big.swf">
                  <param name="quality" value="high">
                  <embed SRC="flash/big.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" WIDTH="463" height="116"></embed>
                  </object></TD>
              </TR>
              <TR>
                <TD> <IMG SRC="images/structure/10.jpg" WIDTH=463 HEIGHT=17 ALT=""></TD>
              </TR>
              <TR>
                <TD BACKGROUND="images/structure/2t1.jpg" WIDTH=463 HEIGHT=35 ALT="">
                                  <TABLE WIDTH="463"  BORDER="0" CELLSPACING="0" CELLPADDING="0">
                                          <TR>
                                          <TD WIDTH="240"><DIV STYLE="padding-top:15px;padding-left:16px "><IMG SRC="images/structure/2text1.jpg"></DIV></TD>
                                      <TD WIDTH="223"></TD>
                                      </TR>
                                  </TABLE>
                                </TD>
              </TR>
              <TR>
                      <TD>
                                  <TABLE WIDTH=463 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                          <TR>
                      <TD BACKGROUND="images/structure/bak2.jpg" WIDTH=4 HEIGHT=77 ALT=""></TD>
                      <TD bgcolor="#F5F5F5" width=453 height=77 alt=""><DIV STYLE="padding-left:0px;padding-top:2px; padding-right:2px; padding-bottom:2px ">
                        <iframe frameBORDER="0" SRC="inews.php"  WIDTH="453px" height="72px"></iframe></DIV></TD>
                      <TD BACKGROUND="images/structure/bak4.jpg" WIDTH=4 HEIGHT=77 ALT=""></TD>
                    </TR>
                  </TABLE>
                                </TD>
              </TR>
              <TR>
                <TD> <IMG SRC="images/structure/2t2.jpg" WIDTH=463 HEIGHT=4 ALT=""></TD>
              </TR>
            </TABLE>
              </TD>
          <TD> <IMG SRC="images/structure/8.jpg" WIDTH=19 HEIGHT=249 ALT=""></TD>
        </TR>
      </TABLE>
        </TD>
  </TR>
  <TR>
        <TD> <IMG SRC="images/structure/2.jpg" WIDTH=766 HEIGHT=17 ALT=""></TD>
  </TR>
   
   
          <TR>
                <TD BACKGROUND="images/structure/1t1.jpg" WIDTH=766 HEIGHT=35 ALT="">
                  <TABLE WIDTH="766"  BORDER="0" CELLSPACING="0" CELLPADDING="0">
                        <TR>
                          <td WIDTH="481"><DIV STYLE="padding-top:16px;padding-left:16px "><IMG SRC="images/structure/1text4.jpg"></DIV></TD>
                          <td WIDTH="285"><DIV STYLE="padding-top:16px;padding-left:33px "><IMG SRC="images/structure/1text3.jpg"></DIV></TD>
                        </TR>
                  </TABLE>
                </TD>
          </TR>
          <TR>
                <TD BACKGROUND="images/structure/1bak1.jpg" WIDTH=766 HEIGHT=210 ALT="">
                  <TABLE WIDTH="766" height="100%"  BORDER="0" CELLSPACING="0" CELLPADDING="0">
                        <TR>
                          <td WIDTH="18">&nbsp;</TD>
                          <td WIDTH="249"><DIV STYLE="padding-top:15px;padding-left:17px ; padding-right:12px">
                          <!-- InstanceBeginEditable name="Navigation_SS" -->
                  <img src="images/structure/spacer.gif" height="10px"><br>
                  <strong><img src="images/structure/arr2.jpg" align="absmiddle">&nbsp;
                  <a href="resources.php" class="2">OCA</a></strong><br>
                  <img src="images/structure/spacer.gif" height="10px"><br>
                  <strong><img src="images/structure/arr2.jpg" align="absmiddle">&nbsp;
                  <a href="resources.php?do=hw" class="2">Harbor Walk</a></strong><br>
                          <!-- InstanceEndEditable -->
                                  <br><br>
                                  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="229" height="185">
                    <param name="movie" value="flash/picture.swf">
                    <param name="quality" value="high">
                    <embed src="flash/picture.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="229" height="185"></embed></object>
                                <br><br>
                                </DIV></TD>
                          <td WIDTH="17">&nbsp;</TD>
                          <td WIDTH="482" CELLPADDING="2"><DIV STYLE="padding-top:15px;padding-left:15px; padding-right:30px ">
                          <!-- InstanceBeginEditable name="Content_SS" -->
                          <? echo $content ?>
                          <!-- InstanceEndEditable -->
                                </DIV></TD>
                        </TR>
                  </TABLE>
                </TD>
          </TR>
          <TR>
                <TD  WIDTH=766 HEIGHT=4 ALT=""><IMG SRC="images/structure/1t3.jpg"></TD>
          </TR>
          <TR>
                <TD> <IMG SRC="images/structure/1t2.jpg" WIDTH=766 HEIGHT=17 ALT=""></TD>
      </TR>
   
   
  <TR>
        <TD BACKGROUND="images/structure/5.jpg" WIDTH=766 HEIGHT=34 ALT=""><DIV STYLE="padding-top:9px; padding-left:300px; color: #FFFFFF;"><strong><A HREF="index.html" CLASS="m1">home</A>&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;<A HREF="about.php" CLASS="m1">about
      us </A> &nbsp; &nbsp;:&nbsp;&nbsp;&nbsp;<A HREF="associations.php" CLASS="m1">associations</A>&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;<A HREF="neighbors.php" CLASS="m1">neighbors</A>
      &nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; <A HREF="resources.php" CLASS="m1">resources</A>&nbsp;&nbsp;&nbsp;:
      &nbsp;&nbsp;<A HREF="information.php" CLASS="m1">information</A></strong></DIV></TD>
  </TR>
  <TR>
        <TD BACKGROUND="images/structure/bak1.jpg" WIDTH=766 HEIGHT=51 ALT=""><DIV STYLE="padding-top:10px; padding-left:300px " ><A HREF="#" CLASS="2">-.com</A>
      &copy; 2004 &bull; <A HREF="mailto:-" CLASS="2">Contact</A> &bull;
            <A HREF="sitemap.html" CLASS="2">Site Map</A></DIV></TD>
  </TR>
</TABLE>
</CENTER>
</BODY>
<!-- InstanceEnd --></HTML>


Rids 03-28-2005 03:24 PM

thats odd, my board has over 1000 users, there are well over a hundred files in the download section, there have been over 7000 downloads and at least 20 people have uploaded files. I'm wondering if its because the upload count got zeroed when I reinstalled and imported the tables?

Ron1n 03-28-2005 05:45 PM

Quote:

Originally Posted by Rids
thats odd, my board has over 1000 users, there are well over a hundred files in the download section, there have been over 7000 downloads and at least 20 people have uploaded files. I'm wondering if its because the upload count got zeroed when I reinstalled and imported the tables?

just change the downloads_util_stats_bit template

Rids 03-28-2005 10:46 PM

alrighty, that sorted the layout nicely but the figure for the daily downloads is always zero and it should be at least a couple of hundred per day.

Blam Forumz 03-29-2005 08:05 AM

Could it be possible to upload an image for each download

and one thing ineed desperately, i have alot of subcategories, and it says "0 Files" for each of my main categories, but I have subcats, and i want all the downloads within those to appear

intrigue 03-29-2005 12:10 PM

thanks works a treat
.matt

ShawnV 03-29-2005 02:23 PM

I’m sure this has been asked before, and I didn’t have time to dig though 27 pages today while at work 

How do you have it recalculate the download file if you delete old ones, we have no downloads at the moment yet it says:

We have a total of 3 files in 10 categories.

Thanks in advance for any help.

Ron1n 03-29-2005 03:45 PM

Quote:

Originally Posted by Rids
alrighty, that sorted the layout nicely but the figure for the daily downloads is always zero and it should be at least a couple of hundred per day.

the downloads per day takes a full runthrough to actually get correct data. if it has been more than 1 day and you still have a zero then type the location of your dl script and I will check it out.

Quote:

Originally Posted by Blam Forumz
Could it be possible to upload an image for each download

and one thing ineed desperately, i have alot of subcategories, and it says "0 Files" for each of my main categories, but I have subcats, and i want all the downloads within those to appear

i thought it did... ill check it out (it does on my own personal one, but im not sure about the released version) www.elitecoders.org

about the images: read the main post

Quote:

Originally Posted by ShawnV
I?m sure this has been asked before, and I didn?t have time to dig though 27 pages today while at work 

How do you have it recalculate the download file if you delete old ones, we have no downloads at the moment yet it says:

We have a total of 3 files in 10 categories.


Thanks in advance for any help.

Does it recount the # of files in the category view (i.e. tells you that the category has the correct number of files). I might have forgotten to reset total files, but I think they are recounted after files are uploaded.

Thanks for bringing this to my attention.

lasto 03-29-2005 03:52 PM

the stats bar on the downloaders nav menu is this for an updated version as at moment all my stats are empty even though i have some downloads

Date Downloads
Today
Today

thats all i see - nothing else - also the boxes aint aligned up proper


All times are GMT. The time now is 10:08 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.02877 seconds
  • Memory Usage 1,817KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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