php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#259381 - 10/26/03 05:14 PM Re: Discouraging people from certain forums? How? [Re: jbiz]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
<img src="http://www.ubbdev.com/forum/images/graemlins/yay.gif" alt="" /> for Google. <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
Sponsored Links
Sponsor
      

Top  
#259382 - 12/09/03 10:50 AM Re: Discouraging people from certain forums? How? [Re: Daine]
Mirez Offline
Lurker

Registered: 12/08/03
Posts: 2
Josh, implemented the code on our site (threads 6.4b1) and can't get it to work?<br /><br /> // Up their totalposts by 1 <br /> // Hack implemented Tue 9th Dec by Mirez<br /> // don't increase the post count in certain forums <br />if ($Board == 'UBB5') { <br /> $Totalposts = $user['U_Totalposts'];<br /> $CurrTitle = $user['U_Title']; <br /> $Color = $user['U_Color']; <br /> } <br /> else { <br /> $Totalposts = $user['U_Totalposts'] + 1; <br /> $CurrTitle = $user['U_Title']; <br /> $Color = $user['U_Color']; <br /> } <br /><br /><br />As above, the forums key if deffo UBB5 but it still increments 1 each time??

Top
#259383 - 12/22/03 12:58 PM Re: Discouraging people from certain forums? How? [Re: calabash23]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
It should work...the only thing I could imagine is write<br />if ($Board == "UBB5") { <br />instead of<br />if ($Board == 'UBB5') {

Top
#259384 - 01/26/04 08:23 AM Re: Discouraging people from certain forums? How? [Re: domain123]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
Still havent got this hack to work Josh. <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" /> Mirez is an administrator on my site, he had a go as you can see above, but nothing seems to happen.

Top
#259385 - 01/26/04 03:50 PM Re: Discouraging people from certain forums? How? [Re: Luka_dup1]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
Are you sure that UUB5 is the keyword for that board. I'm pretty sure that it is case sensative, so even it is ubb5 instead UBB5, that would be enough of a difference.

Top
#259386 - 01/26/04 05:50 PM Re: Discouraging people from certain forums? How? [Re: BrokenToy]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
UBB5 would be the keyword. That is the base for anyone converting from UBB
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#259387 - 01/27/04 01:27 AM Re: Discouraging people from certain forums? How? [Re: calabash23]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Actually - in a recent version the code got changed..... I'm going to report it as a threads bug, as it makes the existing code redundant. But you'll also need to find this:<br />
Code:
<br />        UPDATE {$config['tbprefix']}Users<br />        SET    U_Totalposts = U_Totalposts + 1,<br />               U_Laston     = '$date',<br />               U_Title      = '$UserTitle_q'<br />        WHERE  U_Number   = '{$user['U_Number']}'<br />
<br /><br />Change to this:<br />
Code:
<br />        UPDATE {$config['tbprefix']}Users<br />        SET    U_Totalposts = $Totalposts,<br />               U_Laston     = '$date',<br />               U_Title      = '$UserTitle_q'<br />        WHERE  U_Number   = '{$user['U_Number']}'<br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#259388 - 01/27/04 06:41 AM Re: Discouraging people from certain forums? How? [Re: Daine]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
I get this error when installing the hack. The hack seems to work, but i get the error. Also, it doesnt allow post count in any forum, so i need to tweak the code to only let it miss out certain ones yeah?<br /><br />[]<br /><br />SQL ERROR: Tue, Jan 27 2004 07:36:48 -0500 Unable to do_query: UPDATE w3t_Users SET U_Totalposts = Totalposts, U_Laston = '1075225008', U_Title = 'Webmaster' WHERE U_Number = '2' <br />Unknown column 'Totalposts' in 'field list' <br /><br />[/]

Top
#259389 - 01/27/04 07:01 AM Re: Discouraging people from certain forums? How? [Re: Luka_dup1]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
=$Totalposts <br />has to be <br />='$Totalposts'

Top
#259390 - 05/19/04 07:26 AM Re: Discouraging people from certain forums? How? [Re: domain123]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
just like to say, finally got this working. nice little hack, thanks everyone.

Top
Page 2 of 2 < 1 2

Shout Box

Latest Posts
Web 2.0 Design
by fifalove
04/14/14 08:42 AM
Facelift for UBB Threads 6.5
by fifalove
04/14/14 08:41 AM
[7.5.7] Stop Forum Spam - Login Detection
by GeoffM1968
03/28/14 02:34 PM
[7.5.8] Better URL Sanitization for SEO
by Gremelin
03/18/14 03:30 AM
(Views)Popular Topics
Known public proxy servers 2209001
Slash UBB 1284543
Integrated Index Page (IIP) 5.3.1 812510
Q & A 720161
Finished-[6.5.2] Games Arcade Deluxe v1.9 658409
[6.0x] Who's Online 4.0.0 [Finished] 596193
Integrated Index Page (IIP) 5.1.1 528550
TLD Bv2.1 Released - Threads Links Directory 503208
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 436591
[6.3.x] [beta] Hit Hack 2.0 283857
Featured Member
Registered: 01/10/00
Posts: 5434
Forum Stats
13693 Members
60 Forums
37219 Topics
295895 Posts

Max Online: 1000 @ 12/18/13 04:32 AM

 

 

 
fusionbb message board php hacks