Previous Thread
Next Thread
Print Thread
Rate Thread
#311172 08/10/2006 11:11 AM
Joined: Sep 2005
Posts: 136
Journeyman
Journeyman
Offline
Joined: Sep 2005
Posts: 136
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.

Sponsored Links
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
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.

Ron M #311265 08/13/2006 8:05 AM
Joined: Sep 2005
Posts: 136
Journeyman
Journeyman
Offline
Joined: Sep 2005
Posts: 136
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.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #312279 12/16/2006 5:38 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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
Sponsored Links
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
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__);
}


chillin #313308 03/01/2007 11:22 AM
Joined: Nov 2003
Posts: 329
Beta Tester
Beta Tester
Offline
Joined: Nov 2003
Posts: 329
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


BOOM 7.6.+ rocks....
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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 - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #313320 03/02/2007 12:34 PM
Joined: Nov 2003
Posts: 329
Beta Tester
Beta Tester
Offline
Joined: Nov 2003
Posts: 329
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.


BOOM 7.6.+ rocks....
Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)