UBB.Dev
Posted By: qasic [6.2x] External Defined Avatars - 01/07/2002 12:57 AM
Hack Name: Externall Defined Avatars v0.1

Author: qasic

Description: Allows a user to specific a picture to be associated with himself/herself when he/she posts and in his/her profile. This picture must come from an externally defined URL. Works on UBB 6.1.x AND UBB 6.2.x although it's officially supported only on UBB 6.2.x

Download: http://www.qasic.net/main.cgi?action=details;file=avtr_ext62
Posted By: gohaku Re: [6.2x] External Defined Avatars - 01/07/2002 1:48 AM
can't download.... got a main.cgi file.
Posted By: Variables Re: [6.2x] External Defined Avatars - 01/07/2002 2:28 AM
Wonderfull Qasic! I know, it's a pro/contra thing but can it be modified so that swf can be displayed?

Maybe a small line of extra code under the jpg?
Posted By: Caspe7 Re: [6.2x] External Defined Avatars - 01/07/2002 3:32 AM
quote:
Originally posted by gohaku:
can't download.... got a main.cgi file.


I know.. i hate it when people make it dl threw the .cgi. Because on mac os 9 exporer, it thinks the file to download is the .cgi file and :- just a hasle to go to windows dl the file transfer it to the other computer.

Anyway, nice hack smile
Posted By: qasic Re: [6.2x] External Defined Avatars - 01/07/2002 6:43 AM
That's weird .. it should recognize the Content-type header that is sent. No worries though, just rename the file to .zip and StuffIt Expander should expand it with no problems!

qasic
Posted By: Variables Re: [6.2x] External Defined Avatars - 01/18/2002 9:02 AM
Qasic, i have modified this hack so that it can point to flash swf avatars.

It is not a replacement (if/else), the avatar can only be displayed when the avatar-image is turned off. But i'm sure this could be done to.

Further...it uses one of the extra custom profilefields. Only with your permission, i make it public with all the info in a zip or textfile.

[ 01-18-2002 01:22 AM: Message edited by: Variables ]
Posted By: maurice Re: [6.2x] External Defined Avatars - 01/18/2002 11:16 AM
does this work together with the normal avatar hack?
Posted By: Variables Re: [6.2x] External Defined Avatars - 01/18/2002 11:49 AM
Yes it does but it needs another profilefield and the $this_img renamed.

[ 01-18-2002 03:53 AM: Message edited by: Variables ]
Posted By: maurice Re: [6.2x] External Defined Avatars - 01/18/2002 11:56 AM
Thanks Variables, I will give it a shot
Posted By: Danbeas Re: [6.2x] External Defined Avatars - 01/30/2002 6:35 AM
Is there a way to make the avatar be 64 x 64?
Posted By: Lord Dexter Re: [6.2x] External Defined Avatars - 01/30/2002 7:17 AM
Sounds good, I might give it a try later. laugh
Posted By: JonNJapan Re: [6.2x] External Defined Avatars - 01/30/2002 7:42 AM
quote:
Originally posted by Danbeas:
Is there a way to make the avatar be 64 x 64?

Yeah, Dan and I were wondering the same thing. Is there a way?

~Jon
Posted By: omegatron Re: [6.2x] External Defined Avatars - 01/30/2002 4:07 PM
Qasic you going to port over your regular avatar hack as well?
Posted By: qasic Re: [6.2x] External Defined Avatars - 01/31/2002 11:45 PM
Sure, send me the SWF version and I'll post it on my site.

I'll try to port over the Avatar hack to 6.2 on Saturday but no gurantees. I know of one individual on use the regular Avatar hack on 6.2 ... very easy fix smile It all depends on the schedule of free them I have (which is very limited right now).

qasic
Posted By: Variables Re: [6.2x] External Defined Avatars - 02/01/2002 1:00 AM
I've send it by mail Qasic, PM was not possible. wink
Posted By: star Re: [6.2x] External Defined Avatars - 02/02/2002 4:46 PM
hi smile

very nice hack , thanks qasic smile

==============
Danbeas , JonNJapan :

try these smile

find

code:
   chomp($user_profile[20]);
$user_profile[20] = "" if (($user_profile[20] eq 'http://')
Posted By: star Re: [6.2x] External Defined Avatars - 02/02/2002 4:53 PM
hi smile

very nice hack , thanks qasic smile

==============
Danbeas , JonNJapan :

try these smile

find

code:
  

chomp($user_profile[20]);
$user_profile[20] = "" if (($user_profile[20] eq 'http://')
Posted By: qasic Re: [6.2x] External Defined Avatars - 02/02/2002 9:17 PM
Variables,

I never received it. E-mail it to qasic(at)qasic.com

qasic
Posted By: LK Re: [6.2x] External Defined Avatars - 02/02/2002 9:34 PM
I added the regular avatar hack to 2 6.2 boards -- don't forget to hack public_register_form.pl
Posted By: qasic Re: [6.2x] External Defined Avatars - 02/03/2002 1:12 AM
Like I said ... easy smile

qasic
Posted By: Galipabi Re: [6.2x] External Defined Avatars - 02/03/2002 1:41 AM
quote:
Originally posted by JonNJapan:
quote:
Originally posted by Danbeas:
Is there a way to make the avatar be 64 x 64?

Yeah, Dan and I were wondering the same thing. Is there a way?

~Jon

I made the avatars display to 80x80
code:
   chomp($user_profile[20]);
$user_profile[20] = "" if (($user_profile[20] eq 'http://')
Posted By: Galipabi Re: [6.2x] External Defined Avatars - 02/03/2002 1:46 AM
sorry something gone wrong with the post

code:
chomp($user_profile[20]);
$user_profile[20] = "" if (($user_profile[20] eq 'http://')
Posted By: Variables Re: [6.2x] External Defined Avatars - 02/03/2002 1:46 AM
quote:
Originally posted by qasic:
Variables,

I never received it. E-mail it to qasic(at)qasic.com

qasic

???! Ow, let's try again. Mail send, PM send (just in case). wink
Posted By: Galipabi Re: [6.2x] External Defined Avatars - 02/03/2002 2:06 AM
to use the images as big as you want

http://balder.prohosting.com/~galip/exav.txt

here is the solution

sorry for the mess on recent posts i couldnt be able to use the code tags. Pls moderators delete those corrupt messages
Posted By: LK Re: [6.2x] External Defined Avatars - 02/03/2002 2:07 PM
Code
[/code]This / should be in the end, and it's not XHTML compatible...

[code]
[edit: misspelling]

BTW, what's wrong with your [code] tags? They work fine here...
Posted By: Galipabi Re: [6.2x] External Defined Avatars - 02/04/2002 3:13 AM
Thanx for correction LK... but it also works on the first one also
Posted By: JonNJapan Re: [6.2x] External Defined Avatars - 02/04/2002 11:56 AM
Well, Galipali's works fine, so I'm using it right now. But I'll change the LK's code later.... wink

~Jon
Posted By: qasic Re: [6.2x] External Defined Avatars - 02/05/2002 5:20 AM
I would recommend you use LK's version. It's XHTML compliant and that's what we're striving for.

qasic
Posted By: JonNJapan Re: [6.2x] External Defined Avatars - 02/05/2002 10:00 AM
quote:
Originally posted by qasic:
I would recommend you use LK's version. It's XHTML compliant and that's what we're striving for.

qasic

Ok. I'll go ahead and change it now. =)

~Jon
Posted By: ssilenthill Re: [6.2x] External Defined Avatars - 02/08/2002 1:09 PM
Man i hate it when you guys post all this code and dont label it correctly

How in theheck do i get this to work with the regualr avatar hack so you can choose one from the list or input your avatar from a URL

like ya could in the old 6.05 version?
Posted By: maurice Re: [6.2x] External Defined Avatars - 02/08/2002 1:39 PM
HI ssilenthill,

You are right it is anoying throwing different codes in.

I used another profile number instead of 20 I used 17 then go to your registration settings and chance Custom Registration Field # 2: make it a optional field and put in Avatar url:

In the public_topic_page.pl do not forget to chance the $this_img to $this_extimg.

One irritating thing is that if a user select a avatar AND an external avatar you will see two avatars.

Hope that helps
Posted By: ssilenthill Re: [6.2x] External Defined Avatars - 02/08/2002 1:45 PM
Thank you...
Posted By: qasic Re: [6.2x] External Defined Avatars - 02/09/2002 10:59 PM
quote:
like ya could in the old 6.05 version
This was impossible on the Qasic.NET edition of avatar hack.

qasic
Posted By: ssilenthill Re: [6.2x] External Defined Avatars - 02/10/2002 3:00 PM
Whats so special about Qais.NET beside that you rock lol

i dont understand why that ahs anything to do with why that was impossible.

i could understand if this version of the UBB was so drasticly different that it wasnt possible lmao

and if so why not just say so
Posted By: qasic Re: [6.2x] External Defined Avatars - 02/14/2002 10:55 PM
I meant that unless you added the code yourself, you didn't have an option to enter a URL or select a picture from the list. You must have had to added code into my hack to allow you to do the above.

The Qasic.NET hack never had this functionality and that's why it remains the same in the 6.2 version as well.

qasic
Posted By: Tonycrew Re: [6.2x] External Defined Avatars - 02/26/2002 11:58 AM
Hi, i have the Standard Avatar Hack installed and also have installed the External Avatar Hack.
But when i try to view a post after adding External Hack i get this Error.

quote:
public_topic_page: syntax error at /home/total-am/public_html/ubb/Templates/public_topic_page.pl line 129, near "6) "

Please inform the board administration of this error so that they may fix the problem. Thank you!

Anyone know what this is..??
Thanx for any help. smile
Posted By: enricoeur Re: [6.2x] External Defined Avatars - 02/26/2002 1:43 PM
but this is one UPGRADE for Avatar Hack 1.0 ?

if no please make one upgrade for it..

thx
Posted By: Boss-Hog Re: [6.2x] External Defined Avatars - 02/26/2002 7:26 PM
Great hack, qasic.

Boss
Posted By: Tonycrew Re: [6.2x] External Defined Avatars - 02/28/2002 2:04 AM
What does this mean..? I have installed Avatar normal hack and External hack and it don't seem to work together. Do i need to do this.. ? Cause all i get is 2 avatars ahowing at same time but NO avatar from URL..?
quote:
Originally posted by maurice:
HI ssilenthill,

You are right it is anoying throwing different codes in.

I used another profile number instead of 20 I used 17 then go to your registration settings and chance Custom Registration Field # 2: make it a optional field and put in Avatar url:

In the public_topic_page.pl do not forget to chance the $this_img to $this_extimg.

One irritating thing is that if a user select a avatar AND an external avatar you will see two avatars.

Hope that helps

Posted By: Tonycrew Re: [6.2x] External Defined Avatars - 02/28/2002 2:11 AM
Well i changed the above and when you choose external avatar you get No avatar..?
I wouldn't mind this is only a small hack.
So does it work with normal Avatar hack.??
© UBB.Developers