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 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 Offline

Wizard

Registered: 01/10/00
Posts: 5354
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 & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

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

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks