PDA

View Full Version : My first hack. :p


10-12-2001, 10:00 PM
Well, I do not know if this has been done before, but oh well.

This hack was made using vBulletin 2.0.3. I have no idea if it works with earlier versions.

Download the index.php (index.php3) file and make a backup of it.

Look for the line that says.
$forumbits=makeforumbit(intval($forumid), 1, $permissions);

Now add this right below it.
$uaec='';
if($bbuserinfo[usergroupid]==3) {
eval("standarderror(\"".gettemplate("forumhome_uaec")."\");");
}

It should be right above this line.
$unregwelcomemessage='';
if ($bbuserinfo['userid']==0) {
eval("\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");
}

Now make a template called forumhome_uaec. And put any message you want in it. Use $username so it will post that persons name. :p

Now upload the index.php file.

This is just some stupid little thing that makes it so the Users Awaiting E-Mail Conformation or whatever it's called not able to view the forum until they activate their account. They can still view everything else, just not the main forum. Not what I was trying to make, but it'll do for now. :p.

jrwap
10-13-2001, 12:38 AM
Hey, this is very cool and seems to work well.

Thanks,

-JRW

ubje
10-13-2001, 02:49 PM
looks kewl m8

Neo
10-13-2001, 07:48 PM
:D good job. nice hack