Previous Thread
Next Thread
Print Thread
Rate Thread
#120473 06/20/2001 1:44 PM
Joined: Jun 2001
Posts: 76
Member
Member
Offline
Joined: Jun 2001
Posts: 76
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

Sponsored Links
#120474 06/20/2001 4:19 PM
Joined: Jun 2001
Posts: 62
Eel Offline
Member
Member
Offline
Joined: Jun 2001
Posts: 62
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

#120475 06/20/2001 4:39 PM
Joined: Jun 2001
Posts: 76
Member
Member
Offline
Joined: Jun 2001
Posts: 76
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

#120476 06/20/2001 4:50 PM
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
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...

#120477 06/20/2001 4:57 PM
Joined: Jun 2001
Posts: 62
Eel Offline
Member
Member
Offline
Joined: Jun 2001
Posts: 62
Quote
quote:
ah yeah.. its all in the directions.. read em and follow them!

[ June 20, 2001 04:59 PM: Message edited by: Eel ]

Sponsored Links
#120478 06/20/2001 5:09 PM
Joined: Jun 2001
Posts: 76
Member
Member
Offline
Joined: Jun 2001
Posts: 76
i thought the FIND ment! for the cgi script to do something ok thanks alot!
laugh


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)