• [Mod] Avatar v2.01 5 0 5 1
Currently:  

Author Topic: [Mod] Avatar v2.01  (Read 539516 times)

0 Members and 1 Guest are viewing this topic.

Offline harv_e

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #75 on: May 31, 2003, 12:37:06 AM »
You where right about the space causing the header error.  It took me three times to find it.  The other error is still there and im trying to resolve.  I may have to start over.
Parse error: parse error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/harv_e/public_html/4images/includes/upload.php on line 336

Fatal error: Cannot instantiate non-existent class: upload in /home/harv_e/public_html/4images/member.php on line 546

It happens when you try to upload a image.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Avatar v2.01
« Reply #76 on: May 31, 2003, 12:47:49 AM »
check all closing } in/around the part u edited in member.php
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline brandkanne

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://www.jan-hendrik.com
Re: [Mod] Avatar v2.01
« Reply #77 on: May 31, 2003, 02:10:39 AM »
hi,

thanx for this great mod!

but i've 3 problems:

1. there is no check of the image size (width + height) at upload
    (users can upload all sizes, i set it to 50x50 pixel)

2. after upload, there are two "custom" entries

3. how i can remove "none" in menu
    (i set default in database to a picture...)

cu
I do not have anything against it, if you try all possible out on my side, but please announce you on not with TESTACCOUNT's to test purposes... Thank you for the understanding.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Avatar v2.01
« Reply #78 on: May 31, 2003, 02:46:20 AM »
Quote from: brandkanne
1. there is no check of the image size (width + height) at upload
    (users can upload all sizes, i set it to 50x50 pixel)
perhaps u missed something during installation.

Quote from: brandkanne
2. after upload, there are two "custom" entries
yes, I've seen this myself on some "sertain" systems. Not sure why this happens, also, its only show twice "custom" when u upload your avatar, but next time u upen control panel, it will be just ones...I dont have an answer for that :(

Quote from: brandkanne
3. how i can remove "none" in menu
    (i set default in database to a picture...)
search for blank.gif
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline brandkanne

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://www.jan-hendrik.com
Re: [Mod] Avatar v2.01
« Reply #79 on: May 31, 2003, 03:14:23 AM »
Quote
1. perhaps u missed something during installation.

yes, i found my mistake in step 1.2.
i added it after not above...

Quote
2. yes, I've seen this myself on some "sertain" systems. Not sure why this happens, also, its only show twice "custom" when u upload your avatar, but next time u upen control panel, it will be just ones...I dont have an answer for that  

yes, i realized, i can live with that...

Quote
3. search for blank.gif

already done,

thank you for this great mod !!!
I do not have anything against it, if you try all possible out on my side, but please announce you on not with TESTACCOUNT's to test purposes... Thank you for the understanding.

Offline spoiledRHOtten

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #80 on: June 12, 2003, 08:08:14 PM »
hi! Can someone please help?
I uploaded this mod. and for some reason, I can see the avatar in the member_editprofile.php . but when I login as another user, i can't see it in the profile. :(

Can someone please help? I have {user_avatar_current} on the profile page. It's just not showing.

THank you for any help!

Offline spoiledRHOtten

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #81 on: June 14, 2003, 08:39:18 PM »
can someone please help?

Offline spoiledRHOtten

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #82 on: June 14, 2003, 09:32:57 PM »
Quote from: V@no
sure, in memberlist.php find:
Code: [Select]
   $userlist .= "<td valign=\"top\" align=\"center\">".$user_name."</td>\n";

And replace with:
Code: [Select]
$user_avatar = (!$user_row['user_avatar'] || $user_row['user_avatar'] == "blank.gif") ? "" : "<img src=\"".TEMPLATE_PATH."/avatars/".$user_row['user_avatar']."\">";
    $userlist .= "<td valign=\"top\" align=\"center\">".$user_name."<br/ >".$user_avatar."</td>\n";


when i did this...I was able to view the user custom photo in the memberlist...HOWEVER, I'm still not able to see it in the member profile...is anyone around to help?

Offline spoiledRHOtten

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #83 on: June 14, 2003, 11:13:26 PM »
Hi! I was wondering if it would be possible to show the avatars on the site as random with the user's name and link to profile just like the random pic mod is.......so I guess this is a Mod Request.

Thank ya!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Avatar v2.01
« Reply #84 on: June 14, 2003, 11:21:00 PM »
Quote from: spoiledRHOtten
Hi! I was wondering if it would be possible to show the avatars on the site as random with the user's name and link to profile just like the random pic mod is.......so I guess this is a Mod Request.

not sure what do u mean, but showing random avatar on home page?
maybe show a random username?
or username with random avatar? avatars belong to users, not that users belong to avatars :lol:
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline spoiledRHOtten

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #85 on: June 14, 2003, 11:28:49 PM »
Quote from: V@no
Quote from: spoiledRHOtten
Hi! I was wondering if it would be possible to show the avatars on the site as random with the user's name and link to profile just like the random pic mod is.......so I guess this is a Mod Request.

not sure what do u mean, but showing random avatar on home page?
maybe show a random username?
or username with random avatar? avatars belong to users, not that users belong to avatars :lol:



okay...let's try this......

What if there was a Random User Mod where we could format it like this:

{user_name}
{user_avatar_current}
{user_joindate}

but it would be on the home.html page

Offline spoiledRHOtten

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #86 on: June 21, 2003, 07:55:07 PM »
oaky...I figured out why my user's avatar wasnt showing in their profile. I had put the "lang_user_avatar" in the Edit Profile portion instead of in the show user profile portion. And I didnt figure this out until I was working on showing user's comments and V@no suggested it to someone else.

Anyways.....if anyone cares...problem solved.

Offline insomnoid

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • http://www.insomnoid.de
Re: [Mod] Avatar v2.01
« Reply #87 on: March 11, 2005, 12:30:58 PM »
hi,

got a small problem:

user has uploaded an avatar - after aving it is shown in the user profile - ok.

but when i try to upload a diferent image, the old one is still shown.

just after logging out an login again the new pic is shown.

can someone help?

thx,

o.

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [Mod] Avatar v2.01
« Reply #88 on: March 11, 2005, 07:15:11 PM »
how can I show user image in user_logininfo.html ?
using same code as in comments didn`t work, i see something like that


and what to do to escape these: http://www.pramoga.net/details.php?image_id=2533
Now all users are with avatar from first user
« Last Edit: March 13, 2005, 10:52:52 AM by universal »
Again this addres?!
http://www.funny.lt

Offline oswald

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #89 on: March 16, 2005, 01:42:48 PM »
Hmmm... guess I somehow messed up something cause the avater option does not really look like what it should look like!?
Some php-tags are visible.... and what is with those two "custom" entries..... I only have the blnak.gif... no other pic in the folders..

What went wrong?