Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 12-20-2004, 06:20 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, here you go. I pulled some of this info from the statistics mod and made it work with this.

In index.php find this: (I know I always use this section but it's the best place)
PHP Code:
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ### 
Above it add:
PHP Code:
//Total Space Used
    
$total_hits $DB_site->query_first("
        SELECT COUNT(*) AS attaches
        FROM " 
TABLE_PREFIX "attachment
        "
);
        
$total_hits  =   intval($total_hits ['attaches']);

   
$total_hits2 $DB_site->query_first("
        SELECT SUM(filesize) AS size
        FROM " 
TABLE_PREFIX "attachment
        "
);
            
$total_hits2_in_kb =@substr($total_hits2['size']/1024,0,7);     // Attachments in KB
            
$total_hits2_in_mb =@substr($total_hits2['size']/1048576,0,4);     // Attachments in MB
//Total Space Used 
If you are using the mod here then use this
In FORUMHOME template find:
Code:
<div>$vbphrase[server_attach_total]: $total_attach[count]<br />
Add below:
Code:
Memory used by Attachments:
			$total_hits2_in_kb kb ($total_hits2_in_mb mb)
If you want to add it to your current stats use this
In FORUMHOME template find:
Code:
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
<br />
Add below:
Code:
Memory used by Attachments:
			$total_hits2_in_kb kb ($total_hits2_in_mb mb)
Just discovered the php tag, sweet!
Reply With Quote
  #22  
Old 12-20-2004, 06:34 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one m8 and thanks for help on this
Reply With Quote
  #23  
Old 12-20-2004, 08:15 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I may be on to something here, I have decided that since there is a new table for that stats on the forum home that I would try to fill it up. I think I may have even figured out how to get how many downloads from the last 24 hours. Have a look at the screenshot.
Attached Images
File Type: jpg attach_stats.JPG (14.8 KB, 0 views)
Reply With Quote
  #24  
Old 12-20-2004, 08:21 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

keep it up m8

[high]* lasto bookmarks this thread [/high]
Reply With Quote
  #25  
Old 12-20-2004, 08:31 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lasto
keep it up m8

[high]* lasto bookmarks this thread [/high]
Tell you what I'll do. I will watch the stats for the downloaded in the last 24 hours and if it appears to be correct by tomorrow (resets it'self correctly) then I will consider it right. Like I said, I have nothing to compare it to so I will have to watch it to see.

Once that's done I will release the attachment stats box as a modification. Most of this can be done with other stats mods though, this will just be independent and display on the forumhome.
Reply With Quote
  #26  
Old 12-20-2004, 09:45 PM
DataVampire DataVampire is offline
 
Join Date: Mar 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work bro but just one thing the view my files hacks need to have its own template and work on its own to look more like this one here
https://vborg.vbsupport.ru/attachmen...chmentid=22422

also there is still the need of total downloads of the day

but i just wanna say good work
Reply With Quote
  #27  
Old 12-20-2004, 10:23 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DataVampire
good work bro but just one thing the view my files hacks need to have its own template and work on its own to look more like this one here
https://vborg.vbsupport.ru/attachmen...chmentid=22422

also there is still the need of total downloads of the day

but i just wanna say good work
About the total downloads of the day, we gotta get you to read through my posts all the way

I will work on the template to format it for the look you want, it pretty much does it now as it is thought.
Reply With Quote
  #28  
Old 12-21-2004, 07:16 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did it reset after 24 hrs m8 ?
Reply With Quote
  #29  
Old 12-21-2004, 08:45 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lasto
did it reset after 24 hrs m8 ?
It didn't workout, I have figured out how to add a query to the attachemntviews table to time stamp it though, I am working that out today.
Reply With Quote
  #30  
Old 12-21-2004, 10:11 PM
DataVampire DataVampire is offline
 
Join Date: Mar 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ericgtr
I think I may be on to something here, I have decided that since there is a new table for that stats on the forum home that I would try to fill it up. I think I may have even figured out how to get how many downloads from the last 24 hours. Have a look at the screenshot.

I see u have put an other item to the vb hack that i do like my self..
the part that says " Total Downoads: ????? " i would like to know the code for that little item ?
i also see that the refresh did not work on the " Total Downloaded Today: ???? "
im sure it will work out for you soon enough but the other part i would like to use on my site so when i start my new site it will be fresh :nervous:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10: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.07791 seconds
  • Memory Usage 2,287KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete