UBB.Dev
Posted By: Nidoreno Custom Image - 01/25/2001 7:02 PM
Well, I had a friend write this code up.. Its just like the user Image hack but slightly different. Heres the code, I know it doesnt work and it has some few bugs but Im hoping someone can help fix up the hack. [Linked Image]

--------------------

The Fabled Legandary Image hack written by Spa¢e Cadet,
the womanizer of Asians. Requires UBB 5.46 or above
WARNING: Incompatible with any ICQ related hack
Also, this hack is not from scratch... I used bits and
pieces of other existing hacks and made it work how I
wanted. Have fun!

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
register_lib.pl --->

Find:

&StandardHTML("Sorry, we are not accepting new registrations currently.");


Paste underneath:

$CustomImageWording="Images will appear under your name in posts. STATUS: Image Hack is $CustomImages. $CustomImagesRules";

----------------------------------------------------------------------------------

Find:


ICQ Number



Replace with:


Custom Image
$CustomImageWording




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ubbmisc.cgi --->


Find:

$ICQnumber = $thisprofile[13];

Replace with:

$CustomImage = $thisprofile[13];

----------------------------------------------------------------------------------

Find:

print MEMBERSHIP ("$in{'ICQnum'}n");

Replace with:

print MEMBERSHIP ("$in{'CustomImageURL'}n");

%%%NOTE: DO THIS TO BOTH OCCURANCES OF THE CODE

----------------------------------------------------------------------------------

Find:

sub ProcessEdit {

Paste underneath:

$CustomImageWording="Images will appear under your name in posts. STATUS: Image Hack is $CustomImages. $CustomImagesRules";

----------------------------------------------------------------------------------

Find:



ICQ Number





Replace with:



Custom Image
$CustomImageWording




----------------------------------------------------------------------------------

Find:


ICQ Number:
$ICQline


Replace with:


Custom Image



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ubb_library2.pl --->


Find:

if ($DisplayRegistration eq "NO") {
$EmailString = " ";
$ThisStatus = "";
$ProfileString = " ";
}

Paste _ABOVE_:

if (($CustomImages eq "ON") && ($thisprofile[13] ne "") && ($thisprofile[13] ne "http://")){
$ThisImage="
$thisline[2]";
} else {
$ThisImage="";
}


----------------------------------------------------------------------------------
Find:

$thisline[2]
$ThisStatus $AuthorExtra


Replace with:

$thisline[2]
$ThisStatus $AuthorExtra $ThisImage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cpanel2.cgi --->


Find:

elsif ($DateFormat eq "USX") {
$DateUSX = "CHECKED";
} else {
$DateUS = "CHECKED";
}

Paste underneath:

if ($CustomImages eq "ON"){
$CustomImageOn="CHECKED";
} else {
$CustomImageOff="CHECKED";
}

----------------------------------------------------------------------------------

Find:

&InputRadioRow("#dedfdf", "Suspend Registration", "If you would like to temporarily (or permanently) prevent anyone new from registering, you can do so. Anyone attempting to register will be told that you are not accepting new registrations at this time.", " Do not accept new registrations.

Allow new registrations.");
&InputRadioRow("#f7f7f7", "Use Registration Fields for Your BB", "Always leave this option set to Yes unless none of your forums require registration. If you do not plan to use registration options anywhere, you may set this to NO.", " Yes

No");

Replace with:

&InputRadioRow("#dedfdf", "Suspend Registration", "If you would like to temporarily (or permanently) prevent anyone new from registering, you can do so. Anyone attempting to register will be told that you are not accepting new registrations at this time.", " Do not accept new registrations.

Allow new registrations.");
&InputRadioRow("#F7F7F7", "Custom Images", "", " Allow Images

Disallow Images");
&InputAreaRow("#dedfdf", "Rules for Images", "Enter image rules here", "CustomImagesRules", "30", "5");
&InputRadioRow("#f7f7f7", "Use Registration Fields for Your BB", "Always leave this option set to Yes unless none of your forums require registration. If you do not plan to use registration options anywhere, you may set this to NO.", " Yes

No");

And now you are done. Make sure to TURN IMAGES ON IN THE GENERAL SETTINGS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
If you don't, then you're just not l33t
© UBB.Developers