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: 134
Loc: Orlando, FL
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
Developer

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: 134
Loc: Orlando, FL
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 Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

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: 85
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 Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
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 Owner

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: 85
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 
Who's Online
0 registered (), 27 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks