|
Joined: Sep 2005
Posts: 136
Journeyman
|
Journeyman
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.
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
Admin Emeritus
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.
|
|
|
|
Joined: Sep 2005
Posts: 136
Journeyman
|
Journeyman
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,835 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,835 Likes: 20 |
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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?  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
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
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! 
|
|
|
|
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: $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. $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__); }
|
|
|
|
Joined: Nov 2003
Posts: 329
Beta Tester
|
Beta Tester
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)  I think i would then give it a go 
BOOM 7.6.+ rocks....
|
|
|
|
Joined: Jan 2000
Posts: 5,835 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,835 Likes: 20 |
This isn't smarty, this is pure php my friend... if($Board != ENTERBOARDNUMBERHERE){ Change to: if($Board != ENTERBOARDNUMBERHERE || $Board != ENTERBOARDNUMBERHERE){ Walah, 2 forums ignored 
|
|
|
|
Joined: Nov 2003
Posts: 329
Beta Tester
|
Beta Tester
Joined: Nov 2003
Posts: 329 |
Thought it was that pipe thing, but dont trust my self enough with lookups  Nice one gizmo for the extra's and nice one chillin for the hack  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....
|
|
|
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.
|
|
Posts: 449
Joined: February 2008
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|