UBB.Dev
Posted By: import Help! - 06/20/2001 8:44 PM
I am trying to add the "avatar"hack to my site,(so members have icons! under there name)and i uploaded everything, but when it asks to enter the stuff in my cp.cgi file and others i have no idea where to put the hack codes at, so i added them to the bottom of the script, then my board doesn't work at all! where am i suppose to put those codes at, in my origanl ubb cgi files? please help! confused
Posted By: Eel Re: Help! - 06/20/2001 11:19 PM
Can you clarify what part of the directions you're unsure of? I just installed this hack successfully a few days ago, so I think I can help you. wink
Posted By: import Re: Help! - 06/20/2001 11:39 PM
thanks for replying,
The part after you
::::::: CODE HACKING SECTION ::::::::

**********
cp.cgi
**********
then there is a code for each section of the ubb templates and stuff where do i put those codes! i tried putting then at the very end of the ubb cp.cgi script ans alos the other they have listed like
eg:
*******************
ubb_profile.cgi
*******************

FIND:

$lc_old_email = lc($old_email);

AFTER PUT:

# validate avatar
$in{picture} = "" if ($in{picture} =~ m/(blank.gif)$/);
require "$vars_config{CGIPath}/avatar_list.pl";
&ValidateAvatar($in{picture});

FIND:

else { $picture = $in{picture}; }

AFTER PUT:

$picture = "" unless ($picture =~ m/(.gif|.jpg)/);
LIKE THAT ONE THERE, i opened the file and put that at the end of my ubb script, do you understand?
confused
Posted By: Matt Jacob Re: Help! - 06/20/2001 11:50 PM
You have to find the text that it says, then put the new text where it says. You can't just add it in wherever you want...
Posted By: Eel Re: Help! - 06/20/2001 11:57 PM
Quote
quote:
ah yeah.. its all in the directions.. read em and follow them!

[ June 20, 2001 04:59 PM: Message edited by: Eel ]
Posted By: import Re: Help! - 06/21/2001 12:09 AM
i thought the FIND ment! for the cgi script to do something ok thanks alot!
laugh
© UBB.Developers