|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
I'm surprised that shouts in the shout box don't count towards the post count. Since you have to create a forum for the shout box to use, why don't shouts affect the post count? Hmmmm.
I like to type hmmmm. I don't know why.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Because it uses it's own script to add them (rather than addpost.php) and simply doesn't have the step in it. Can you imageine.  Navaho would have 2 billion posts for sure. 
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
Speaking of Nav. Why does he have 2 different numbers for his post count?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
He changes it regularly. 
|
|
|
|
Joined: Oct 2000
Posts: 2,223
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,223 |
My real post count, and Josh's "navaho's deflated post count" post count.
Picture perfect penmanship here.
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
Is the one in the user list accurate?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
|
|
|
|
Joined: Oct 2000
Posts: 2,223
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,223 |
Userlist?  JOSH!!!!!!!!!!
Picture perfect penmanship here.
|
|
|
|
Joined: Oct 2000
Posts: 2,223
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,223 |
Oh, that userlist. It says the same thing that <<<< that post count shows when I look at it.
Picture perfect penmanship here.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
 Why do I always get blamed. Gardener! 
|
|
|
|
Joined: Oct 2000
Posts: 2,223
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,223 |
Oh, you're right, it's Gardener's turn to take the blame. 
Picture perfect penmanship here.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
LOL  I got busted. 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
|
|
|
|
Joined: Oct 2000
Posts: 2,223
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,223 |
How do I always know?
crontab -l
1 * * * * * grep navaho /path/to/threadsdev > JOSH!!!DOH!!! 2 * * * * * grep JOSH!!DOH!! | mail -s " he did it again" navaho
( ok, I made all that up, didn't I? )
Picture perfect penmanship here.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
|
|
|
|
Joined: Jan 2003
Posts: 45
User
|
User
Joined: Jan 2003
Posts: 45 |
Hey, my Today's Top Posters window (I use custombox1pal.php) count towards the post count from shout box.
Why is that? What I have to do so it doesn't do that?
Thanks!
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
That box, since it has to use counts from the post table would also include the shout box since the shoutbox really just uses a hidden forum. But these posts are purged after x number of shouts in the shoutbox (whatever you have configured). You could add whatever the keyword for your shoutbox board to exclude it from the query if you wanted. 
|
|
|
|
Joined: Jan 2003
Posts: 45
User
|
User
Joined: Jan 2003
Posts: 45 |
Yeah, I could do that.  Thanks again!
|
|
|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
what is the query details that I need to do Josh? I am having the same problem.
How would I exclude shout box fomr the top posters query?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
At the top of my script - there is a place to exclude up to 3 boards from the count. <br /> // Do you have a forum you want to exclude? Like a test forum.<br /> // If so put the board's keyword here. If you have no foum you wish to exclude<br /> // then leave them blank.<br /> $exclude1 = "test";<br /> $exclude2 = "junk";<br /> $exclude3 = ""; <br /> Put whatever your shoutbox board keyword is in one of those values. This would have been the keyword you chose for the shoutbox board when you installed IIP. If you need to see all the boards you have and their keywords, do this query. SELECT * FROM w3t_Boards
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Correction - The shoutbox requires the keyword to be "shoutboxpal" so just put that keyword on your exclude list. 
|
|
|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
what script do I insert this at? I think You are saying the toppostersxxx.xxx file inside the PALS folder.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
No top posters does not count the shoutbox. I thought you were asking about my mod for top posters Today.... which would be one of your custom boxes.
|
|
|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
Hmmm?
Well in the users profile it says he has 24 posts, but in the top posters vox it claims he has 89.
Whats up with that?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Are you using the top posters box that comes with threads, the one that comes with IIP or the one that comes with my mod?
|
|
|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
The one that comes in the IIP.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Oh looking back it was someone else who asked about my mod.
The one that comes with IIP should be the same number as their profile. Not quite sure how that one is done.
That should all be pulling from the same place.
The query is the same: SELECT U_Username,U_Totalposts,U_Number FROM {$config['tbprefix']}Users WHERE U_Number > 1 ORDER BY U_Totalposts DESC
Just taking the total that in U_Totalposts.
|
|
|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
so this is a query I run and not something I add to a script right? I think I am getting ahead on this whole modding and hacking things and then something like this pops up. 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
No that's the query that the script is using.... same as show profile. I don't know how it could show a different number for the same user.
Each user has a U_Totalposts field in the database.
I'm confused as to what your issue was as you kind of jumped into a thread where we were talking about a different mod.
What kind of query are you asking for?
|
|
|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
I am sorry for that. I did a search for "top posters" and "posts" and this came up and the first opic it showed seemed to fit. Please forgive me.
In my IIP as it comes "right out of the box", that it no mods added to it yet and the IIP sidebar panel is not installed either.
The "Top xx active posters in the last xx days" box counts the entries into the shout box. I verified this today by looking at my own posts i my profile and then saying something in the shout bow; the number went up.
My challenge is to get this behavior to stop as one of the new members has only about 25 posts but the "top posters" box, which counts the Shouts, says he has 89 posts now.
Again, I am sorry for the confusion.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
I just tested on a clean install of IIP - It's not really possible. No problem, I just was getting confused because I think 3 people asked about different things and I was thinking everyone was talking about the same. The post count is stored in the w3t_Users table in the U_Totalposts field. The script which adds shouts to the shout box only updates the w3t_Posts table. If you are simply entering shouts into the shoutbox in the sidebar or on the home page (like here) the Users table does not get incrimented. Likewise the script which displays top posters deals only with the w3t_Users table. The only way that number gets incrimented is by entering a post like normal... as it's the addpost.php script which inciments this number. The version we use here is a bit different. Instead of using the number in the user's profile... it counts entries today in the Posts table. So shouts do show up in my modified "Todays Top Posters". But that's a separate download. But those scripts are playing in 2 completely different database tables, unless a modification somewhere has thrown something out of wack. You can look for yourself. /pals/shoutboxaddpal.php does no UPDATE to the w3t_Users table. And /pals/opposterspal.php does no SELECT to the w3t_Posts table. Do all groups have "NO ACCESS" to the shoutboxpal forum per the instructions. Posts would count if this forum were accessible via the main index and posts were made through the normal channels. A link, version number etc.... might help. Otherwise we're guessing. 
|
|
|
|
Joined: Aug 2003
Posts: 160
Junior Member
|
Junior Member
Joined: Aug 2003
Posts: 160 |
thanks... 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|