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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2001, 06:31 AM
bbaddons's Avatar
bbaddons bbaddons is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, I know this may have been covered and some of it has not but I was wondering if someone could tell me how to do the following:

- Total Attachments (in all forums)
- Total Downloads Made (from all forums)
- Active Members
- Non-Active Members/Non-Posters

I know this can be done as I have seen it in the forums below but I was hoping tha FireFly or Sinecure could help me out with this. Help is much appreciated by anyone that helps out.

The forum I see this done in was:

http://forums.hololith.com/

Please help me out and tell me how this can be done and what code I need to place in my forums to accomplish this (the code is what is needed most, I know to stick it in the index.php file on the root forums directory).

Thanks in advance
Reply With Quote
  #2  
Old 12-11-2001, 06:35 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:
https://vborg.vbsupport.ru/showthrea...ighlight=stats
Reply With Quote
  #3  
Old 12-11-2001, 06:54 AM
bbaddons's Avatar
bbaddons bbaddons is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I have seen that but I wanted it to be on my site like on the Hololith forums (the same way they have it)

Total Post:..... | Active Members:..... | Non-Active:... |

ect.....


Do you think you could tell me how to do that? Please?

Thank you for your sugestion though, but I would rather have it that way if you are willing to help.
Reply With Quote
  #4  
Old 12-11-2001, 08:34 PM
bbaddons's Avatar
bbaddons bbaddons is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help?
Reply With Quote
  #5  
Old 12-12-2001, 05:27 AM
bbaddons's Avatar
bbaddons bbaddons is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FireFly, can you please help me out, this one is on the board here so I hope that you can tell me how you did it.

I would like to have the following on my board if you would be kind enough to help me out:

- Top Submitter (like your top hacker - counting all forums)
- Total Submissions ( like total hacks - all forums)

If you would please help it would be appreciated.

Thanks in advance
Reply With Quote
  #6  
Old 12-12-2001, 05:43 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So:
Top Submitter = top thread poster?
Total Submissions = total threads?
Reply With Quote
  #7  
Old 12-12-2001, 06:24 AM
bbaddons's Avatar
bbaddons bbaddons is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, I mean as you have it here at vBhacks.com, I allow people to submit zip files, ect like this board does to my board and I need it to display the Top Submitter (the one who has submitted the most files)

The other needs to display the number of total files submitted (the total zip or .txt files submitted in all forum)

Can you help me with this?
Reply With Quote
  #8  
Old 12-12-2001, 06:35 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I have here is total threads, not attachments.

Anyway, try this code in index.php:
Code:
$gettotalattach=$DB_site->query_first("SELECT COUNT(*) AS count FROM attachment WHERE filename LIKE '%.zip' OR filename LIKE '%.txt'");
$totalattach=$gettotalattach[count];
$gettopattach=$DB_site->query_first("SELECT userid,COUNT(attachmentid) AS count FROM attachment WHERE filename LIKE '%.zip' OR filename LIKE '%.txt' GROUP BY userid ORDER BY count DESC LIMIT 1");
$topattacher=getuserinfo($gettopattach[userid]);
$topattacher[count]=$gettopattach[count];
Then use:
$totalattach for total submissions.
$topattacher[userid], [username], etc. for top submitter info.
$topattacher[count] for total submisions the top submitter has.
Reply With Quote
  #9  
Old 12-12-2001, 06:52 AM
bbaddons's Avatar
bbaddons bbaddons is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Chen, this is just what was needed. I appreciate you help with this.

Thanks again,
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 12:59 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04100 seconds
  • Memory Usage 2,242KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete