Ford Focus Forum banner
1 - 8 of 8 Posts

MrPotatoes

· Wanna touch my tots?
Joined
·
8,424 Posts
Discussion starter · #1 ·
alright, i've seen the code to vBulletin but i dunno where it is but here is my suggestion

whever it is that you have to enter your sig in the user control panel AFTER the $_POST you check the $_POST data for '\n" new lines. if it's more than 6 lines than it's not allowed and throw a header and redirect them to the last page or do a javascript back. this way you don't have to bother with checking the sigs anymore :thumbup:

Code:
	$page 	= 'signature_edit_page.php';
	$success 	= 'sig_edit_sucess.php';
	$lines 	= 6;
	$error 	= 'sorry bitch, you can\'t have more than' .  $lines .'lines in your sig'

	if (isset($_POST['signature_submit']))
	{
		$i = 0;
		while( /* your array isn't empty */ )
		{
			if ($data_in_post == '\n')
				$i++;
		}

		if ($i >= 6)
		{
			throwError($error);
			header("Location: " . $page);
		}
	}
	else
		header("Location: " . $page);
BAM. done.

i left the other things empty but that's because i don't know the actual data structures so i wouldn't be able to do it for you. sorry.

now, if you do this there is no reason you would have to bother with bugging members about sigs anymore because it's automated. of course, this is no real error checking or security but i'm pretty sure you people would know better than i about that
 
Discussion starter · #3 ·
02_smurf said:
Why can't people just follow the rules? They agreed to them when they signed up? :rant:
well i posted something up to make your lives easier. you can complain and keep checking (if you like to mico manage) or you can do a simple check. it'snot hard to impliment. this i could do myself in about a half hour (if i had access to code).

oh, also, food for thought. they disabled avatars and file uploading and i know for a fact that vBulletin has that feature in thier system. :thumbup:

i know your gripe but this would make one less task for the mods/admins to worry about. i don't know, i think it would make things easier. i see the 6 lines thing constantly being over worked by people and i remind them. this would just keep it in check

well, either way. it doens't hurt me if you take it or not. it's just a simple check, backup your files for an upgrade down the line and BAM! you have a working version of this simple hack :D
 
1 - 8 of 8 Posts