UBB.Dev
Posted By: slayer60 Post count and the shout box - 05/31/2003 2:17 AM
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.
Posted By: JoshPet Re: Post count and the shout box - 05/31/2003 2:25 AM
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.
Posted By: slayer60 Re: Post count and the shout box - 05/31/2003 2:45 AM
Speaking of Nav. Why does he have 2 different numbers for his post count?
Posted By: JoshPet Re: Post count and the shout box - 05/31/2003 2:47 AM
He changes it regularly.
Posted By: navaho Re: Post count and the shout box - 05/31/2003 2:47 AM
My real post count, and Josh's "navaho's deflated post count" post count.
Posted By: slayer60 Re: Post count and the shout box - 05/31/2003 2:47 AM
Is the one in the user list accurate?
Posted By: JoshPet Re: Post count and the shout box - 05/31/2003 2:48 AM
Posted By: navaho Re: Post count and the shout box - 05/31/2003 2:48 AM
Userlist?

JOSH!!!!!!!!!!
Posted By: navaho Re: Post count and the shout box - 05/31/2003 2:49 AM
Oh, that userlist. It says the same thing that <<<< that post count shows when I look at it.
Posted By: JoshPet Re: Post count and the shout box - 05/31/2003 2:50 AM


Why do I always get blamed.

Gardener!
Posted By: navaho Re: Post count and the shout box - 05/31/2003 2:54 AM
Oh, you're right, it's Gardener's turn to take the blame.

Posted By: JoshPet Re: Post count and the shout box - 05/31/2003 2:58 AM
LOL

I got busted.
Posted By: JoshPet Re: Post count and the shout box - 05/31/2003 2:59 AM
How did you know?
Posted By: navaho Re: Post count and the shout box - 05/31/2003 3:19 AM
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? )
Posted By: JoshPet Re: Post count and the shout box - 05/31/2003 4:17 AM
You kill me. :LOL:
Posted By: luuker Re: Post count and the shout box - 09/09/2003 9:10 PM
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!
Posted By: JoshPet Re: Post count and the shout box - 09/10/2003 1:30 AM
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.
Posted By: luuker Re: Post count and the shout box - 09/10/2003 2:00 PM
Yeah, I could do that.

Thanks again!
Posted By: ST Re: Post count and the shout box - 09/11/2003 6:25 AM
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?
Posted By: JoshPet Re: Post count and the shout box - 09/11/2003 6:39 AM
At the top of my script - there is a place to exclude up to 3 boards from the count.

Code
<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
Posted By: JoshPet Re: Post count and the shout box - 09/11/2003 6:40 AM
Correction -

The shoutbox requires the keyword to be "shoutboxpal" so just put that keyword on your exclude list.
Posted By: ST Re: Post count and the shout box - 09/12/2003 1:36 AM
what script do I insert this at? I think You are saying the toppostersxxx.xxx file inside the PALS folder.
Posted By: JoshPet Re: Post count and the shout box - 09/12/2003 1:41 AM
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.
Posted By: ST Re: Post count and the shout box - 09/12/2003 2:49 AM
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?
Posted By: JoshPet Re: Post count and the shout box - 09/12/2003 2:57 AM
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?
Posted By: ST Re: Post count and the shout box - 09/12/2003 3:16 AM
The one that comes in the IIP.
Posted By: JoshPet Re: Post count and the shout box - 09/12/2003 3:24 AM
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.
Posted By: ST Re: Post count and the shout box - 09/12/2003 3:49 AM
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.
Posted By: JoshPet Re: Post count and the shout box - 09/12/2003 4:08 AM
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?
Posted By: ST Re: Post count and the shout box - 09/12/2003 7:14 AM
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.
Posted By: JoshPet Re: Post count and the shout box - 09/12/2003 8:18 AM
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.
Posted By: ST Re: Post count and the shout box - 09/13/2003 2:03 AM
thanks...
© UBB.Developers