php forum
php mysql forum
php mysql smarty
 
Topic Options
#42854 - 01/25/01 11:02 AM Custom Image
Nidoreno Offline
Junior Member

Registered: 01/17/01
Posts: 5

   Custom Image to Del.icio.us Add to del.icio.us
  Digg Custom Image Digg it
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.

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

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:

<TR $AltColumnColor2>
<TD><FONT SIZE="$TextSize" FACE="$FontFace"><B>ICQ Number</B></FONT></TD>
<TD><INPUT TYPE="TEXT" NAME="ICQnum" VALUE="" SIZE=7 MAXLENGTH=20>
</TD></tr>

Replace with:

<TR $AltColumnColor2>
<TD><FONT SIZE="$TextSize" FACE="$FontFace"><B>Custom Image</B></font>
<FONT SIZE="1" FACE="$FontFace">$CustomImageWording</FONT></TD>
<TD><INPUT TYPE="TEXT" NAME="CustomImageURL" VALUE="http://" SIZE=30 MAXLENGTH=999>
</TD></tr>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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:

<tr $AltColumnColor1>
<td>
<B><FONT SIZE="$TextSize" FACE="$FontFace">ICQ Number</FONT></B>
</td>
<td>
<INPUT TYPE="TEXT" NAME="ICQnum" VALUE="$ICQnumber" SIZE=7 MAXLENGTH=20>
</td></tr>

Replace with:

<tr $AltColumnColor1>
<td>
<B><FONT SIZE="$TextSize" FACE="$FontFace"><B>Custom Image</B></font>
<FONT SIZE="1" FACE="$FontFace">$CustomImageWording</FONT>
</td>
<td><INPUT TYPE="TEXT" NAME="CustomImageURL" VALUE="$CustomImage" SIZE=30 MAXLENGTH=999>
</td></tr>

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

Find:

<TR $AltColumnColor1>
<td><FONT SIZE="$TextSize" FACE="$FontFace"><B>ICQ Number:</B></font></td>
<td><FONT SIZE="$TextSize" FACE="$FontFace" COLOR="$LinkColor">$ICQline</font>
</td></tr>

Replace with:

<TR $AltColumnColor1>
<td valign="top"><FONT SIZE="$TextSize" FACE="$FontFace"><B>Custom Image</B></font></td>
<td><FONT SIZE="$TextSize" FACE="$FontFace" COLOR="$LinkColor"><img src=$thisprofile[13]></font>
</td></tr>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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="
<img src="$thisprofile[13]" alt="$thisline[2]">";
} else {
$ThisImage="";
}


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

<FONT SIZE="$TextSize" face="$FontFace"><B>$thisline[2]</B></font>
<FONT SIZE="1" face="$FontFace">$ThisStatus $AuthorExtra</FONT>


Replace with:

<FONT SIZE="$TextSize" face="$FontFace"><B>$thisline[2]</B></font>
<FONT SIZE="1" face="$FontFace">$ThisStatus $AuthorExtra $ThisImage</FONT>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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.", "<INPUT TYPE="RADIO" NAME="SuspendRegister" VALUE="true" $SRTrue> Do not accept new registrations.

<INPUT TYPE="RADIO" NAME="SuspendRegister" VALUE="false" $SRFalse> Allow new registrations.");
&InputRadioRow("#f7f7f7", "Use Registration Fields for Your BB", "Always leave this option set to Yes unless <u>none</u> of your forums require registration. If you do not plan to use registration options anywhere, you may set this to NO.", "<INPUT TYPE="RADIO" NAME="DisplayRegistration" VALUE="YES" $DisplayRegYes> Yes

<INPUT TYPE="RADIO" NAME="DisplayRegistration" VALUE="NO" $DisplayRegNo> 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.", "<INPUT TYPE="RADIO" NAME="SuspendRegister" VALUE="true" $SRTrue> Do not accept new registrations.

<INPUT TYPE="RADIO" NAME="SuspendRegister" VALUE="false" $SRFalse> Allow new registrations.");
&InputRadioRow("#F7F7F7", "Custom Images", "", "<INPUT TYPE="RADIO" NAME="CustomImages" VALUE="ON" $CustomImageOn> Allow Images

<INPUT TYPE="RADIO" NAME="CustomImages" VALUE="OFF" $CustomImageOff> 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 <u>none</u> of your forums require registration. If you do not plan to use registration options anywhere, you may set this to NO.", "<INPUT TYPE="RADIO" NAME="DisplayRegistration" VALUE="YES" $DisplayRegYes> Yes

<INPUT TYPE="RADIO" NAME="DisplayRegistration" VALUE="NO" $DisplayRegNo> 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

Top


Who's Online
2 Registered (Gizmo, blaaskaak), 27 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 12
blaaskaak 8
tackaberry 7
FREAK1 5
Gizmo 4
Mike L_dup1 4
Chris Bale 4

 

 

 
fusionbb message board php hacks