Previous Thread
Next Thread
Print Thread
Rate Thread
#148578 11/16/2001 5:42 AM
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
This is a really small adaptation of the ubb 5 version.

You must have one of Qasic's Avatar Mod installed. You must have the module Size.pm installed in your server if you want to control image types and sizes, this can be found at http://www.cpan.org .

Description: Lets any user upload an image to be used as his avatar. You can set width x height and maximum file sizes. The script sends an e-mail to the administrator when someone upload an avatar, if desired.

Download: http://banco.jogosonline.com.br/ubbmods/ubb6mods/uploadavatar.txt and http://banco.jogosonline.com.br/avatars/uploadavatar.htm

Install: Edit the file uploadavatar.txt to choose your options. Edit the file uploadavatar.htm as you see fit, changing the url in the

>> after

# UBB EDIT PROFILE PAGE

>> place

$shouldilinkupload = 'yes';

>> after

print<
>> place after editing url

Code
code:

>> open avatar_list.pl from the ubb cgi-bin dir
>> find

Code
code:

>> place after

Code
code:

>> after (in the same line)

$wordlets_avatar{avatar_explain} $listtext

>> place

$uploadnote

Upload this files, then upload the html file.

I believe the new versions of the avatar mod still accept this same changes as the one im currently using. If not, its just a matter of minor avatar_list.pl code adjustments, and im sure someone from this forum can help.

Sponsored Links
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
sorry i didnt have the time to make this more user-friendly. anyone who wants to take it from here, or rewrite one of his own using this as base, is welcome.

[ 11-16-2001: Message edited by: CopyCat ]

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Nice hack, I'll try it out soon. smile

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
I'll add a CP and wordlets extension tonight


Do you believe in love at first sight,
or should I walk by again?
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
There is only an avatarlist.cgi, not a pl.

Can it be used in 6.1.0.2 ?

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I couldn't find this for 6.xx. So does this work on 6.05?

Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
Quote
quote:
yes. this one is actually for 6.05. i thougth qasics new avatar code would still be unchanged. i didnt use the new code, so i dont know where to modify. its for Avatar Hack v0.0007 i think, the first final avatar code.

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
The code similar to the one in avatar_list.pl is in the ubb_avatar.cgi from the avatar pull down hack for 6.1 I tried to implement your code there but it doesn't work.

Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
Quote
quote:
whats the thread for the avatar mod you are using?

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371

Sponsored Links
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
gimme a few minutes, ill see what i can do.

Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
hi

yes, ubb_avatar.cgi has the same purpose of the avatar_list.pl file.

instead

$wordlets_avatar{avatar_explain} $listtext

find

$vars_wordlets_avatar{avatar_explain} $listtext

that should work, i think. drop a note if it doesnt work. the other code is the same, just for a few different spaces/enters.

[ 11-18-2001: Message edited by: CopyCat ]

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
That was already placed at that spot. I hope someone get's this to work.

In ubb 6.0 there was a url avatar mod. with the option to use flash (swf). Maybe it could be working for 6.1 to with some modifications.

Joined: Oct 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 13
changed the ubb_avatar.cgi file,..

got this message:
Code
code:

in public_edit_profile line 212:
&AvatarGutsProfile($user_profile[20]);

thx!

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Quote
quote:
Great, I'll try it out soon on my 6.05 then.

Joined: Jul 2001
Posts: 272
Member
Member
Offline
Joined: Jul 2001
Posts: 272
If this hack has proper code documentation then I'll try it soon. Currently trying to figure out why my avatar settings get set back to nothing when a user goes to edit their profile.


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
isaac
isaac
California
Posts: 1,157
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 20221218)