Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
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

Sponsored Links
Joined: Oct 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 20
can't download.... got a main.cgi file.

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
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?

Joined: Oct 2001
Posts: 55
Member
Member
Offline
Joined: Oct 2001
Posts: 55
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


">,.-~*´¨¯¨`*·~-.¸-(_Çã§Pe®_)-,.-~*´¨¯¨`*·~-.¸
Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
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

Sponsored Links
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
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 ]

Joined: Feb 2001
Posts: 251
Member
Member
Offline
Joined: Feb 2001
Posts: 251
does this work together with the normal avatar hack?

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
Yes it does but it needs another profilefield and the $this_img renamed.

[ 01-18-2002 03:53 AM: Message edited by: Variables ]

Joined: Feb 2001
Posts: 251
Member
Member
Offline
Joined: Feb 2001
Posts: 251
Thanks Variables, I will give it a shot

Joined: Apr 2001
Posts: 18
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 18
Is there a way to make the avatar be 64 x 64?

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Sounds good, I might give it a try later. laugh

Joined: Jun 2001
Posts: 572
Member
Member
Offline
Joined: Jun 2001
Posts: 572
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

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Qasic you going to port over your regular avatar hack as well?

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
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

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
I've send it by mail Qasic, PM was not possible. wink

Joined: May 2001
Posts: 6
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 6
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://')

Joined: May 2001
Posts: 6
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 6
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://')

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Variables,

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

qasic

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I added the regular avatar hack to 2 6.2 boards -- don't forget to hack public_register_form.pl

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Like I said ... easy smile

qasic

Joined: Apr 2001
Posts: 78
Member
Member
Offline
Joined: Apr 2001
Posts: 78
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://')

Joined: Apr 2001
Posts: 78
Member
Member
Offline
Joined: Apr 2001
Posts: 78
sorry something gone wrong with the post

code:
chomp($user_profile[20]);
$user_profile[20] = "" if (($user_profile[20] eq 'http://')

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
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

Joined: Apr 2001
Posts: 78
Member
Member
Offline
Joined: Apr 2001
Posts: 78
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

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
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...

Joined: Apr 2001
Posts: 78
Member
Member
Offline
Joined: Apr 2001
Posts: 78
Thanx for correction LK... but it also works on the first one also

Joined: Jun 2001
Posts: 572
Member
Member
Offline
Joined: Jun 2001
Posts: 572
Well, Galipali's works fine, so I'm using it right now. But I'll change the LK's code later.... wink

~Jon

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
I would recommend you use LK's version. It's XHTML compliant and that's what we're striving for.

qasic

Joined: Jun 2001
Posts: 572
Member
Member
Offline
Joined: Jun 2001
Posts: 572
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

Joined: Nov 2001
Posts: 33
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 33
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?

Joined: Feb 2001
Posts: 251
Member
Member
Offline
Joined: Feb 2001
Posts: 251
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

Joined: Nov 2001
Posts: 33
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 33
Thank you...

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
quote:
like ya could in the old 6.05 version
This was impossible on the Qasic.NET edition of avatar hack.

qasic

Joined: Nov 2001
Posts: 33
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 33
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

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
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

Joined: Feb 2002
Posts: 42
Member
Member
Offline
Joined: Feb 2002
Posts: 42
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

Joined: Jan 2002
Posts: 36
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 36
but this is one UPGRADE for Avatar Hack 1.0 ?

if no please make one upgrade for it..

thx

Joined: May 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 14
Great hack, qasic.

Boss

Joined: Feb 2002
Posts: 42
Member
Member
Offline
Joined: Feb 2002
Posts: 42
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


Joined: Feb 2002
Posts: 42
Member
Member
Offline
Joined: Feb 2002
Posts: 42
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.??


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
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)