![]() |
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! |
Great modification, nicely done.
/me clicks install |
Installed And Working Perfectly on 3.5.2 Great Hack
/me Clicks Install |
Installed and works great!! Someone had to think about it, and you did, great job!!
*Clicks install |
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. |
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).
|
Quote:
|
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. |
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. |
Thanks but can you do for FORUMHOME page, too? Yes, for the board stats, that's what I mean.
|
^ to have something like "total shouts" ?
perhaps like Total shouts today this week this year ? Most shouts ever by X person |
great addition ty :D
|
Quote:
|
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?
|
Does this work with 3.5.3?
|
Yes it does.
|
this works on 3.5.4 in case anyone wants to know.
|
great addon thanks. :)
|
|
derek, is it possible to add the "X shouts per day" and "Last shout" features too, please? :) I'd really appreciate that.
|
Sure. I will look into adding those. Also what do you mean by Last shout features?
|
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 |
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 ^_^ |
How many queries does this add?
|
It adds one to showthread.php and one to member.php. I am currently looking into ways to make it add none.
|
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... |
Quote:
|
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.
|
too many queries for me lol, thanks for the hack, I'm pretty sure many will find it useful :)
|
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 |
Works with 3.60 gold and with the new vbshout from vbhackers. :) thx!
|
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? |
Try adding this after it...
PHP Code:
|
Quote:
|
Nice Thanks It also works on v3.6.5
|
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 .... |
doesnt work in 3.7
|
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 |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|