php forum
php mysql forum
php mysql smarty
 
Topic Options
#311387 - 08/31/06 08:27 AM Enabling PM for Established Members
aalhait Offline
Junior Member

Registered: 02/18/01
Posts: 15

   Enabling PM for Established Members to Del.icio.us Add to del.icio.us
  Digg Enabling PM for Established Members Digg it
Does anybody have a hack or mod to allow only existing Members (Let's say with post count > 30 for example) to use PM, otherwise disallow?

I had that hack in my UBB Classic before since I understand the code, but I just upgraded to UBB Threads recently, and I'm slow to understand the code still...

This could cut on what I call the selfish users who want to solve their problems, but do not wish to share it!

Top
#311388 - 08/31/06 01:09 PM Re: Enabling PM for Established Members [Re: aalhait]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25429
Loc: Texas
hmm.. I had a client with that. Let me see if I can dig up the code for you smile
_________________________
- Allen wavey
- What Drives You?

Top
#311395 - 09/01/06 05:28 PM Re: Enabling PM for Established Members [Re: AllenAyres]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25429
Loc: Texas


OK, the code I had wasn't like this, so I wrote it. Here you go, only minimally tested smile I have it set for 50 posts, you'll need to adjust that to whatever number you like.


mess_handler.php

Find:

Php Code:

$user = $userob -> authenticate("U_Groups,U_EReplies,U_TextCols,U_TextRows,U_Preview");
$Username = $user['U_Username'];
$Password = $user['U_Password'];
 

Replace with:
Php Code:

$user = $userob -> authenticate("U_Groups,U_EReplies,U_TextCols,U_TextRows,U_Preview,U_Totalposts");
$Username = $user['U_Username'];
$Password = $user['U_Password'];

	if ($user['U_Totalposts'] < "50" ) {
		$html = new html;
		$html -> not_right("You need 50 posts in the forum to send a private message,",$Cat);
	}
 





send_message.php


Find:
Php Code:

$user = $userob -> authenticate("U_Language,U_TextCols,U_TextRows");
$Username = $user['U_Username'];
 




Replace with:
Php Code:

$user = $userob -> authenticate("U_Language,U_TextCols,U_TextRows,U_Totalposts");
$Username = $user['U_Username'];

	if ($user['U_Totalposts'] < "50" ) {
		$html = new html;
		$html -> not_right("You need 50 posts in the forum to send a private message,",$Cat);
	}
 



send_private.php

Find:
Php Code:

$user = $userob -> authenticate("U_TextCols,U_TextRows,U_Preview,U_CoppaUser");
$Username =  $user['U_Username'];
 


Replace with:
Php Code:

$user = $userob -> authenticate("U_TextCols,U_TextRows,U_Preview,U_CoppaUser,U_Totalposts");
$Username =  $user['U_Username'];

	if ($user['U_Totalposts'] < "50" ) {
		$html = new html;
		$html -> not_right("You need 50 posts in the forum to send a private message,",$Cat);
	}
 

_________________________
- Allen wavey
- What Drives You?

Top
#311482 - 09/12/06 10:26 AM Re: Enabling PM for Established Members [Re: AllenAyres]
aalhait Offline
Junior Member

Registered: 02/18/01
Posts: 15
Allen, Thanks a bunch!

I just added it smile (It took me a while to do it, but it works great)

I think only through hacking the board will I learn how to do this well smile

That's how I learned UBB Classic and Actually picked up Perl 8 years ago smile

Thanks again.

Top
#311488 - 09/12/06 05:18 PM Re: Enabling PM for Established Members [Re: aalhait]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25429
Loc: Texas
You are welcome, it does take some time to learn. I'm glad it worked for you smile
_________________________
- Allen wavey
- What Drives You?

Top


Who's Online
0 Registered (), 43 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
Today at 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 18
blaaskaak 12
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 4

 

 

 
fusionbb message board php hacks