vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Total vBShout Shouts on Postbits and Member's Profile (https://vborg.vbsupport.ru/showthread.php?t=102920)

derekivey 12-13-2005 10:00 PM

Total vBShout Shouts on Postbits and Member's Profile
 
Total vBShout Shouts on Postbits and Member's Profile
Developers: derekivey
Version: 1.0.0
vBulletin Version: 3.5.2
File Edits: 0
Template Edits: 3
New Phrases: 1 (1 Global Phrase)
Uses Plugins: Yes!
Difficulty: Easy

Description: This hack shows the total number of shouts a user has on the postbit templates, and the user's profile. This addon requires Zero Tolerance's [AJAX] vBShout hack.

*** Special Thanks to Zero Tolerance for making this great Shoutbox hack! ***

I have added screen shots of this hack in action below.

Please click https://vborg.vbsupport.ru/ If you installed this hack.

Thanks!

Daniel 12-14-2005 02:00 AM

Great modification, nicely done.

/me clicks install

Tidy 12-14-2005 02:26 AM

Installed And Working Perfectly on 3.5.2 Great Hack

/me Clicks Install

The Chief 12-14-2005 03:20 AM

Installed and works great!! Someone had to think about it, and you did, great job!!

*Clicks install

Cyricx 12-14-2005 11:59 AM

Hmm, a script to update someones shout posts would be awesome. That like checked the table and then updated the userfield.

It would only be needed for the first install, but would be very sweet to get things going.

derekivey 12-14-2005 06:44 PM

You would have to rewrite Zero Tolerence's hack a lot to do that. The number of shouts isn't stored in any tables. He just uses mysql's num_rows function I believe (which is what I used also for my addon I made).

derekivey 12-14-2005 06:45 PM

Quote:

Originally Posted by Tidy
Installed And Working Perfectly on 3.5.2 Great Hack

[high]* Tidy Clicks Install[/high]

Doesn't look like you clicked install :p

Cyricx 12-14-2005 08:35 PM

Not really, you'd just need a script to query the shouts by a userid, then update the shout field with the number of rows per userid.

Run the script once to "populate" it, and then from there on, your code will keep it going :)

*EDIT*

I think I found a way, found this post over on photopost

http://www.photopost.com/forum/showp...8&postcount=46

With a script to do similiar for counting the number of photos a person has uploaded.

Cyricx 12-15-2005 12:28 PM

Ooohh I see how your doing it.

Okay, your doing it to count the rows each time. But then if you prune the shoutbox periodically to keep the space down, users shout count will go down too.. Hmm.

I'd rather fiddle with the code that adds to the post count and and have it add to a field called "shouts" in the user table. Then if you pruned it wouldn't affect their count.

Snake 12-15-2005 05:16 PM

Thanks but can you do for FORUMHOME page, too? Yes, for the board stats, that's what I mean.


All times are GMT. The time now is 01:55 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.01000 seconds
  • Memory Usage 1,734KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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