php forum
php mysql forum
php mysql smarty
 
Topic Options
#314106 - 05/15/07 03:04 PM No Image posting until (x) amount of posts
411-Penguin Offline
Lurker

Registered: 05/15/07
Posts: 1
Our site has recently had problems with people registering just to post images which would be offensive to our members.

I'm just a mod there, not an admin, and I don't know what version we are currently on. However, I know we are thinking of upgrading to 7.x

I've looked around and can't find any mods on the site now which do this. Does anyone know of a way which we could restrict image posting to members who only have, say, 1000 posts?

Top
#314141 - 05/19/07 02:11 AM Re: No Image posting until (x) amount of posts [Re: 411-Penguin]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
You can find out the version by hovering over the copyright in the footer.

Sorry I am not aware of such a mod - however similar suggestions have been made over at ubbcentral.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#314143 - 05/19/07 02:52 AM Re: No Image posting until (x) amount of posts [Re: Ian_W]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
It sounds like a great feature sugguestion
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#314175 - 05/22/07 02:32 PM Re: No Image posting until (x) amount of posts [Re: Gizmo]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Open /libs/ubbthreads.inc.php

Find:
Code:
function do_markup( $body = "", $type = "", $convert = "" ) {


Add after:

Code:
global $user;


Then, find:
Code:
if( ($config['ALLOW_IMAGE_MARKUP'] && $type != "sig") || ( $config['IMAGE_MARKUP_IN_SIGS'] && $type == "sig" ) ) {


Replace it with:
Code:
if( ($user['USER_ID'] != 1 && $user['USER_TOTAL_POSTS'] > 1000) && ($config['ALLOW_IMAGE_MARKUP'] && $type != "sig") || ( $config['IMAGE_MARKUP_IN_SIGS'] && $type == "sig" ) ) {


Then, find:
Code:
$Query .= "t1.USER_DISPLAY_NAME,t1.USER_PASSWORD,t1.USER_SESSION_ID, t1.USER_MEMBERSHIP_LEVEL, t2.USER_TOTAL_PM, t1.USER_ID, t1.USER_IS_BANNED,t1.USER_IS_UNDERAGE, t2.USER_STYLE,t2.USER_HIDE_LEFT_COLUMN,t2.USER_HIDE_RIGHT_COLUMN,t2.USER_LANGUAGE,t2.USER_MOOD,t2.USER_RELATIVE_TIME";


Replace with:
Code:
$Query .= "t1.USER_DISPLAY_NAME,t1.USER_PASSWORD,t1.USER_SESSION_ID, t1.USER_MEMBERSHIP_LEVEL, t2.USER_TOTAL_PM, t1.USER_ID, t1.USER_IS_BANNED,t1.USER_IS_UNDERAGE, t2.USER_STYLE,t2.USER_HIDE_LEFT_COLUMN,t2.USER_HIDE_RIGHT_COLUMN,t2.USER_LANGUAGE,t2.USER_MOOD,t2.USER_RELATIVE_TIME,t2.USER_TOTAL_POSTS";


Untested, but I see no reason it won't work
_________________________
Code monkey like Fritos

Top


Moderator:  sirdude 
Who's Online
0 registered (), 20 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 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
Truth, David DelMonte, nick1, Begbie, cenk
13364 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