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.

Mathiau 12-21-2005 06:09 PM

^ to have something like "total shouts" ?

perhaps like

Total shouts today
this week
this year
?
Most shouts ever by X person

YOimYO 12-24-2005 01:49 AM

great addition ty :D

Snake 12-25-2005 04:33 PM

Quote:

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

Well?

derekivey 12-25-2005 07:09 PM

Sorry, I don't quite understand what you mean. You want the number of shouts to be added to the box that shows the number of users, posts, threads etc?

forumsoup.com 02-06-2006 01:20 AM

Does this work with 3.5.3?

derekivey 02-06-2006 07:05 PM

Yes it does.

Oddjob 03-19-2006 05:14 PM

this works on 3.5.4 in case anyone wants to know.

Baudman 04-07-2006 09:45 PM

great addon thanks. :)

Snake 04-28-2006 12:57 PM

Thanks for the hack. I have it installed on my forums. :)

www.bonethugsforums.com

Snake 04-29-2006 03:20 PM

derek, is it possible to add the "X shouts per day" and "Last shout" features too, please? :) I'd really appreciate that.

derekivey 04-29-2006 04:45 PM

Sure. I will look into adding those. Also what do you mean by Last shout features?

Snake 04-29-2006 06:33 PM

Well mainly it should display the latest shout that user has made and that it links to it, just like the "Last post" on my forums.

http://www.bonethugsforums.com/membe...il_ripsta.html

Neo_Angelo 05-29-2006 05:01 PM

Erm it replaces my Post with Shouts i don't get my post count showing, and i followed it correctly.

EDIT: nevermind i got it, *clicks install* awsome job ^_^

PennylessZ28 05-29-2006 05:03 PM

How many queries does this add?

derekivey 05-29-2006 07:26 PM

It adds one to showthread.php and one to member.php. I am currently looking into ways to make it add none.

derekivey 05-29-2006 08:48 PM

Actually I just noticed its one query per post on showthread.php. I am looking into making it only add no queries right now. I'll see what I can come up with and release a new version soon.

Derek

EDIT: Nevermind, I don't think it's possible to do that. I will leave it like it is for now, maybe I can figure it out later. They are really small queries so it shouldn't have much of an effect on performance...

PennylessZ28 05-29-2006 10:06 PM

Quote:

Originally Posted by derekivey
Actually I just noticed its one query per post on showthread.php. I am looking into making it only add no queries right now. I'll see what I can come up with and release a new version soon.

Derek

EDIT: Nevermind, I don't think it's possible to do that. I will leave it like it is for now, maybe I can figure it out later. They are really small queries so it shouldn't have much of an effect on performance...

One query isn't bad, but one query per post could be an issue.

derekivey 05-30-2006 02:06 AM

Yup. I am thinking about adding a field to the user table called shouts and when you upgrade the hack maybe having it see how many shouts each user has and put that number in the newly created field, and edit the vBshout hack to increase it by one every time the user posts. Then it would add 0 queries to those pages. I'm still looking into this, it should work though.

Polo 07-03-2006 03:40 PM

too many queries for me lol, thanks for the hack, I'm pretty sure many will find it useful :)

derekivey 07-03-2006 04:50 PM

Once I get some time I'm going to find a way to get rid of all the queries. I will probably just add a column to the user table and have it update when they make a shout. I've just been so busy lately.

Derek

Muellmann 08-09-2006 05:48 PM

Works with 3.60 gold and with the new vbshout from vbhackers. :) thx!

VTXCafe.com 09-05-2006 04:05 AM

Great, installed.

I have a question, my site has the info in small boxes, I have the post working but can't get the shouts to work. Here is how the post are coded:

<if condition="$post['posts']"><div class="userinfo"><b>$vbphrase[posts]:</b> $post[posts]</div></if>

How should this be structured to show the shouts, I have tried but nothing shows up?

derekivey 09-07-2006 08:33 PM

Try adding this after it...

PHP Code:

<div class="userinfo"><b>$vbphrase[vbshout_shouts]:</b$totalshouts</div

Derek

FreshFroot 04-30-2007 11:57 PM

Quote:

Originally Posted by Muellmann (Post 1048493)
Works with 3.60 gold and with the new vbshout from vbhackers. :) thx!

I'll try it out on 3.6.5 and hope it works :)

iorkara 05-04-2007 10:38 PM

Nice Thanks It also works on v3.6.5

C2Systems 09-18-2007 03:12 AM

will this work with the new Inferno vBShout?

I upgraded from VBShout 2.1 but its still like 2 separate shoutboxes and doesn't record the new shouts to the counter ....

turbo.:R 04-29-2008 06:03 PM

doesnt work in 3.7

johnrizz 05-04-2008 06:44 PM

Update would be great for 3.7! the effect it has on my forum is that it gives me an error when trying too view members profiles..... This is just an update to let ppl know if they wind up with the same error....

Fatal error: Call to a member function on a non-object in /home/XXXXXXXXXXXX/public_html/includes/functions.php(1385) : eval()'d code on line 13

jilly 05-16-2008 04:47 AM

it's not working for me on 3.7 either.


All times are GMT. The time now is 01:06 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.01242 seconds
  • Memory Usage 1,802KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)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