vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Home Enhancements - Total Threads Made by User (https://vborg.vbsupport.ru/showthread.php?t=282375)

exel 05-02-2012 10:00 PM

Total Threads Made by User
 
1 Attachment(s)
https://vborg.vbsupport.ru/external/2012/05/55.png

Product: vBulletin
Hook Location: global_start
Title: Total Threads Made by User
Execution Order: 5
Plugin PHP Code:
PHP Code:

$querythread $db->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "thread WHERE postuserid = " $vbulletin->userinfo['userid'] . " AND visible = '1'");
// Brought to you by Exel from Elite-Source.com
$totalthread vb_number_format($querythread['count']); 

Template code (Add it wherever you want it to show):
HTML Code:

<b>Threads:</b> <a href="search.php?do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">$totalthread</a>

LouiseWilson 05-03-2012 05:19 PM

at the moment its blank and i've re checked the code I've entered :(

exel 05-03-2012 05:34 PM

Where are you trying to show it?
Does your forum database have a prefix?

Boofo 05-03-2012 05:35 PM

Ouch! That is gonna add a query for every page as well as every post on the page of a thread.

Xp.Warrior 05-03-2012 06:29 PM

Brother Tell Us Step By Step I Cannot Understand

exel 05-03-2012 06:34 PM

Quote:

Originally Posted by Boofo (Post 2325910)
Ouch! That is gonna add a query for every page as well as every post on the page of a thread.

Yeah, hence 'global.'

Least you're able to add it wherever you want.

exel 05-03-2012 08:26 PM

Quote:

Originally Posted by the-rulez (Post 2325921)
Brother Tell Us Step By Step I Cannot Understand

Admin Control Panel > Plugins & Products > Add New Plugin

Boofo 05-03-2012 08:47 PM

Quote:

Originally Posted by exel (Post 2325923)
Yeah, hence 'global.'

Least you're able to add it wherever you want.

Yes, but the disadvantages far out way that advantage. ;)

exel 05-03-2012 09:49 PM

Quote:

Originally Posted by Boofo (Post 2325973)
Yes, but the disadvantages far out way that advantage. ;)

Indeed, sorry, didn't mean to sound like an +++++++ or anything, but still, most users are normal, don't really care/know users, so meh.

yarmaa 05-15-2012 02:23 PM

Not working.
Empty fields, where it should be a number of threads.

Prorockz 05-15-2012 07:53 PM

how can i add like you did at profile?

exel 05-16-2012 07:12 AM

Quote:

Originally Posted by yarmaa (Post 2329583)
Not working.
Empty fields, where it should be a number of threads.

Does your database have a prefix?

Quote:

Originally Posted by Prorockz (Post 2329670)
how can i add like you did at profile?

You want to add it to the user profile page or postibit?

Mine shows in my sidebar.

https://vborg.vbsupport.ru/external/2012/05/19.png

Prorockz 05-22-2012 08:51 AM

not working from my side.
my DB don't use any prefixes.
and also i want to show it to postbit like yours and in uper than profile:)


All times are GMT. The time now is 05:49 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.01123 seconds
  • Memory Usage 1,738KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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