Previous Thread
Next Thread
Print Thread
Rate Thread
#236703 02/17/2003 11:19 AM
Joined: Feb 2001
Posts: 169
Member
Member
Offline
Joined: Feb 2001
Posts: 169
Description: This will show user's Avatar in the Who is online screen

Author: Rutto

Credits:
Dalantech (Tips about how to resize an image in PHP);
Omegatron (Hacked online.tmpl creating an additional column for the Avatar)

Features:
Show the Avatar of an user in the Who is online screen;
If a user do not have an Avatar shows the "nopicture.gif" image;
Avatar's height and width are customizable (Keep it small for a better looking);

Working under:
UBB.Threads 6.2.2

Files altered:
online.php
online.tmpl

Database Altered:
None

Demo: http://www.inpiega.com/Forum/online.php

Screenshot:
[]http://www.inpiega.com/Allegati/Pictures.jpg[/]

Known bugs & limitations:
Images where height and width are not the same are forced to have the choosen height and width;
The word "Avatar" is not in any language files;

Notes: I'm not good in programming php so this hack could still have a lot of bugs.
I hope someone will like it
Attachments
69409-Avatars_in_Who_is_online.txt (0 Bytes, 63 downloads)

Last edited by Rutto; 02/22/2003 5:36 AM.
Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Thanks for sharing!

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thank you Rutto!

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Rutto,

You might want to check your online.php file you have uploaded to a base one for the exact changes. I had a few ideas for you so I was going to rework some thing however the way the hack is written up as posted above it does not work and throws everything off in the list

Joined: Feb 2001
Posts: 169
Member
Member
Offline
Joined: Feb 2001
Posts: 169
[]omegatron said:
the way the hack is written up as posted above it does not work and throws everything off in the list [/]

Thanks I'll doublecheck and post a correct version !

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Cool when you do that I will look at it and run a few changes by you that you might like

Joined: Feb 2001
Posts: 169
Member
Member
Offline
Joined: Feb 2001
Posts: 169
[]omegatron said:
Cool when you do that I will look at it and run a few changes by you that you might like [/]

Done, re-uploaded (a corrected and tested version this time ).
Waiting to see you're changes

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay I did not change too much. I just made sure you added the field instead of replacing status field. I added avatar one

Instructions attached.

Screenshot:
[]http://mywebpages.comcast.net/omegatron/screenshot.gif[/]
Attachments
69444-onlineimage.txt (0 Bytes, 30 downloads)

Joined: Feb 2001
Posts: 169
Member
Member
Offline
Joined: Feb 2001
Posts: 169
[]omegatron said:
Okay I did not change too much. I just made sure you added the field instead of replacing status field. I added avatar one[/]

Ooooh ! Now it is really good
I tried to do this but I wasn't able... now I have understood the use of .tmpl files

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
First thing you need to do is redo the hacking. The only difference in the online.php file you notice is that you are not replacing the status fields.

Now the template is pretty easy. I can post the template since it is not code. Here you go I will attach the working template in case thats where you have your problem understanding things.
Attachments
69459-online.tmpl (0 Bytes, 36 downloads)

Sponsored Links
Joined: Feb 2001
Posts: 169
Member
Member
Offline
Joined: Feb 2001
Posts: 169
Ok, updated the main post (And added align="center" to Avatar's fields), thank you soooo much !

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
No problem. Templating things makes things highly customizable.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Good job Rutto and Omegatron!

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Great work you too. Omegatron, you are becoming the template master.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL Nah thats Dalantech

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Oops.. that should have said "Great work you two".


Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
LOL, omega, that is the best screenshot I've ever seen. It is literally a SHOT of your SCREEN

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL Why yes it is.

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Nice one guys. Well done. Chuck I love the screen SHOT! LOL


Nikos

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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
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
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)