php forum
php mysql forum
php mysql smarty
 
Topic Options
#311172 - 08/10/06 11:11 AM Posts do not count
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 137
Loc: Columbus, OH
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.
_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top
#311190 - 08/10/06 10:56 PM Re: Posts do not count [Re: AshtarRose]
Ron M Offline
Admin Emeritus

Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
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.
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#311265 - 08/13/06 08:05 AM Re: Posts do not count [Re: Ron M]
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 137
Loc: Columbus, OH
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.
_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top
#311276 - 08/13/06 04:42 PM Re: Posts do not count [Re: AshtarRose]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#312279 - 12/16/06 04:38 PM Re: Posts do not count [Re: Gizmo]
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
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!

_________________________
Sue
adwoff.com

Top
#312485 - 01/04/07 08:25 AM Re: Posts do not count [Re: ADWOFF]
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
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

Top
#312488 - 01/04/07 12:56 PM Re: Posts do not count [Re: ADWOFF]
chillin Offline
Journeyman

Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
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__);
		}
 
_________________________
i see threads people
http://www.chinooktc.com

Top
#313308 - 03/01/07 10:22 AM Re: Posts do not count [Re: chillin]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 86
Loc: UK
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

Top
#313309 - 03/01/07 08:58 PM Re: Posts do not count [Re: Mark_S]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
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
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#313320 - 03/02/07 11:34 AM Re: Posts do not count [Re: Gizmo]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 86
Loc: UK
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.

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks