vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   How many attachments for member (https://vborg.vbsupport.ru/showthread.php?t=52115)

all-the-vb 04-24-2003 10:00 PM

How many attachments for member
 
Hack: How many attachments for member
Hacked By: All-the-vb

This hack viewing in postbit the number of attachments that user posted.
Tested with: vB 2.2.8, 2.2.9, and 2.3.0

Files to edit: (1)admin/functions.php
Templates to edit: (1) postbit templates/postbit
Time to install: 1 minute


Don't forget to click on install

all-the-vb 04-25-2003 12:09 PM

SCREENSHOT:

Arabs Emperor 04-25-2003 12:14 PM

WoW good work dude
what do you mean from--------> (0)nada

Red Blaze 04-25-2003 01:25 PM

lol I was wondering what you meant by that Arabs, until I read the instructions.

nada = spanish for nothing.

Good hack btw. will install. :)

all-the-vb 04-25-2003 01:31 PM

:p

Quote:

nada = spanish for nothing.
eng = none

arabic = ??????

Red Blaze 04-25-2003 01:55 PM

Hey I was close *shrugs*

Anyway, that gave me a database error. It worked on some forums, but in the art forum there was database errors on every thread. So I took it off. Might work with someone else though, dunno. Maybe it's just me.

Mony@k 04-25-2003 02:02 PM

Quote:

Queries to Run: (0)nada
PHP Code:

Above past this

//start user attachment add By All-the-vb
global $DB_site;
$attachment $DB_site->query_first("SELECT COUNT(attachmentid) AS total FROM attachment WHERE userid=$post[userid] ");
$attachcoun $attachment[total];
//end user attachment add By All-the-vb 

This code doesn't contain any query? :D

Boofo 04-25-2003 02:06 PM

Nice idea but this will add a query for every user on the page.

all-the-vb 04-25-2003 02:07 PM

Mony@k



:p

i wrote this while i am in rush

Ryu 04-25-2003 05:56 PM

Nice hack
But i think it Released

Sun Boy 04-27-2003 11:11 PM

Nice !

Link14716 04-28-2003 01:01 AM

Never, EVER add a query to the postbit function. By doing that, you add a query for EVERY SINGLE POST. Youy are better off adding a new field to the user table, and everytime someone posts an attachment, update that field.

Nice hack, I'll install when the changes above have been made ;)

alkatraz 04-30-2003 02:29 AM

cool idea!

ranger2kxlt 04-30-2003 03:37 PM

What about limiting the number of attachments a user can have??

!!! 05-03-2003 01:12 PM

This doesn't seem to work anyway...any reason? Perhaps because of attachment database or attachments in PMs?

Kane Da Don 07-26-2003 03:26 AM

yeah this aint working for me either with vbulletin 2.3.0 could some one help


All times are GMT. The time now is 03:50 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.01107 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete