UBB.Dev
Posted By: 411-Penguin No Image posting until (x) amount of posts - 05/15/2007 10:04 PM
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?
Posted By: Ian_W Re: No Image posting until (x) amount of posts - 05/19/2007 9:11 AM
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.
Posted By: Gizmo Re: No Image posting until (x) amount of posts - 05/19/2007 9:52 AM
It sounds like a great feature sugguestion
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
© UBB.Developers