UBB.Dev
Posted By: AshtarRose Posts do not count - 08/10/2006 6:11 PM
Also another hack I use is the feature that allows me to turn post counts off in certain forums. This has to do with calling my posts exp points and referring to having so many of them before you can earn an avatar. I use it to prevent players from spamming the out of character forum to 'catch up' fast enough with unimportant posts.
Posted By: Ron M Re: Posts do not count - 08/11/2006 5:56 AM
If you have the original text file for the hack, I could put it on my To Do list for porting to Threads 7 (attach it here). If not, I could probably rewrite it when I get a chance.

Hack Notes:
Starting Point - /scripts/addpost.inc.php, Line 566 (Beta 3 Scripts)
CP Integration or hijack the Manage Forum Dropdown to accomplish this

If there was an API that existed post-addpost, you this could be accomplished without modifying the base code.
Posted By: AshtarRose Re: Posts do not count - 08/13/2006 3:05 PM
It was an option that the hack could add to the CPanel.. hmm I'll have to dig around and see if I still have it or not, it was under the old UbbDev mod forum.
Posted By: Gizmo Re: Posts do not count - 08/13/2006 11:42 PM
Posts Don't Count
Posted By: ADWOFF Re: Posts do not count - 12/17/2006 12:38 AM
Originally Posted by Gizmo

This would be a mod I'd love to see--as I have, well, I'll be polite--some members who post just to drive up their numbers.

Pretty juvenile, but what do you do? smashpc

BTW--if this has been addressed as a mod, and I've been bad about checking to see if it has--I'm sorry!

Posted By: ADWOFF Re: Posts do not count - 01/04/2007 4:25 PM
Me again.

I just faced some more stupidity in my forums that really, really makes me hope someone will be able to create this mod once the newest version of Threads is released.

~Sue <<-- sometimes wonders about her community! doh
Posted By: chillin Re: Posts do not count - 01/04/2007 8:56 PM
Sue-
If it is just one forum that you want to not have posts count, do this:

/scripts/addpost.inc.php
FIND:
PHP Code

// --------------------------------------
// Now update some stuff in their profile
$query = "
UPDATE
{$config['TABLE_PREFIX']}USER_PROFILE
SET USER_TOTAL_POSTS = USER_TOTAL_POSTS + 1,
USER_TITLE = ?
WHERE USER_ID = ?
"
;
$dbh -> do_placeholder_query($query,array($UserTitle,$user['USER_ID']),__LINE__,__FILE__);


and change it to the following... but be sure to replace ENTERBOARDNUMBERHERE with the board number where you don't want post count to be increased.

PHP Code

// --------------------------------------
// Now update some stuff in their profile
$query = "
UPDATE
{$config['TABLE_PREFIX']}USER_PROFILE
SET USER_TOTAL_POSTS = USER_TOTAL_POSTS + 1,
USER_TITLE = ?
WHERE USER_ID = ?
"
;
if(
$Board != ENTERBOARDNUMBERHERE){
$dbh -> do_placeholder_query($query,array($UserTitle,$user['USER_ID']),__LINE__,__FILE__);
}

Posted By: Mark_S Re: Posts do not count - 03/01/2007 6:22 PM
How could you code in more than one forum to protect?

Sorry i dont know the smarty stuff? (look up) frown

I think i would then give it a go smile
Posted By: Gizmo Re: Posts do not count - 03/02/2007 4:58 AM
This isn't smarty, this is pure php my friend...
Code
 if($Board != ENTERBOARDNUMBERHERE){

Change to:
Code
 if($Board != ENTERBOARDNUMBERHERE || $Board != ENTERBOARDNUMBERHERE){

Walah, 2 forums ignored wink
Posted By: Mark_S Re: Posts do not count - 03/02/2007 7:34 PM
Thought it was that pipe thing,
but dont trust my self enough with lookups smile

Nice one gizmo for the extra's
and nice one chillin for the hack smile

Its way easier than i imagined / as in i was dredding it
to be lots of diffrent files to hack.

Thanks.
© UBB.Developers