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

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

0 Members and 1 Guest are viewing this topic.

Offline Alex_Ok

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #180 on: January 27, 2006, 03:31:13 PM »
Уважаемый V@no плиз... подкинте ссылочку на дополнение инфы пользователями (город, дата рождения, тел и т.д) А то я скопировал и перевёл уже все странички форума, но так и не увидел того что мне нужно)

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 #181 on: January 27, 2006, 03:38:20 PM »
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 Peterpl

  • Pre-Newbie
  • Posts: 8
  • I am from Polish :-)
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #182 on: January 27, 2006, 03:44:07 PM »
I do not understand what Bug Fixes.
I did all with instructions with first point peaceably.
I am from Polish. :-)
My English is not the best ale I have hope that you understand ... :-)

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 #183 on: January 28, 2006, 12:34:19 AM »
I do not understand what Bug Fixes.
I did all with instructions with first point peaceably.
:roll:
Look in my signature
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 Peterpl

  • Pre-Newbie
  • Posts: 8
  • I am from Polish :-)
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #184 on: January 28, 2006, 08:40:56 AM »
And what is in your signature, because nothing special I did not find it walks, about section
Bug Fix ?
I am from Polish. :-)
My English is not the best ale I have hope that you understand ... :-)

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 #185 on: January 28, 2006, 05:07:38 PM »
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 Peterpl

  • Pre-Newbie
  • Posts: 8
  • I am from Polish :-)
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #186 on: January 28, 2006, 05:28:03 PM »
they do not fit to my situation no of these mistakes.
can this something of different be ??
I am from Polish. :-)
My English is not the best ale I have hope that you understand ... :-)

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 #187 on: January 28, 2006, 06:15:43 PM »
they do not fit to my situation no of these mistakes.
Did you apply ALL of them before you stated that? I dont think so.
These are the fixes for the bugs in 4images, if you dont wish to fix your 4images then dont cry that it doesnt work properly.
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 Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #188 on: January 29, 2006, 06:34:59 PM »
Any way to make it work on PMS ? (pms_view.html) ?

would be great see it work there  8)

Note: Show the avatar of the user of who have send  :mrgreen:

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #189 on: January 29, 2006, 11:33:31 PM »
Hi V@no again! ;) Hope you remember me :P

I've installed this mod, it works fine! Great Mod!

I have installed dreamboard and I would like to put the user's avatar in the showthread.php... I know is an addon you didn't make, but, I suppose you can give me some code to put in order to recover the user's current avatar, and then show it in the php file.

TheOracle tried a few code but the code puts an image in the first post where an user dont have avatar... so I hope you can put a the correct code, actually:

Code: [Select]
         while ($user = mysql_fetch_array($posts)) {
             $post_count = $user['user_posts'];
$user_id = $user['user_id'];
$user_rank = $user['user_level'];
             $date_registered =(isset($user['user_joindate'])) ? format_date($boardconfig['date_format'], $user['user_joindate']) : REPLACE_EMPTY;
             $signature = format_boardtext ($user['user_signature'],$boardconfig['html_board'], $boardconfig['wordwrap_board'], $boardconfig['bb_board'], $boardconfig['bb_image_board'],1);
$user_avatar = $user_info['user_avatar'];
$user_avatar_current = ($config['avatar_use'] && @file_exists(TEMPLATE_PATH."/avatars/".$user_avatar)) ? "<img src=\"".TEMPLATE_PATH."/avatars/".$user_avatar."\">" : get_gallery_image("blank.gif");


          }

But the avatar shown don't correspond to user, any idea?

Many thanks :)

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 #190 on: January 30, 2006, 12:24:43 AM »
Try use
Code: [Select]
$user_avatar = $user['user_avatar'];instead of
Code: [Select]
$user_avatar = $user_info['user_avatar'];if it doesnt work, then you'll need add user_avatar into the $sql query.
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 crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #191 on: January 30, 2006, 12:43:04 AM »
Doesn't seem to work :(

What happens: If a post have no replies, the avatar shows ok, if there are replies, for example: USER1 who has no avatar writes a post ME reply, and USER reply again, my avatar shows at the first post, in USER1

The complete sentence is:

Code: [Select]
$posts = mysql_query ("SELECT user_posts,user_id,user_name,user_level,
user_joindate,user_signature,user_avatar
FROM ".USERS_TABLE."  WHERE user_id ='$thrstarter_id' ");
         while ($user = mysql_fetch_array($posts)) {
             $post_count = $user['user_posts'];
$user_id = $user['user_id'];
$user_rank = $user['user_level'];
             $date_registered =(isset($user['user_joindate'])) ? format_date($boardconfig['date_format'], $user['user_joindate']) : REPLACE_EMPTY;
             $signature = format_boardtext ($user['user_signature'],$boardconfig['html_board'], $boardconfig['wordwrap_board'], $boardconfig['bb_board'], $boardconfig['bb_image_board'],1);
$user_avatar = $user_info['user_avatar'];
$user_avatar_current = ($config['avatar_use'] && @file_exists(TEMPLATE_PATH."/avatars/".$user_avatar)) ? "<img src=\"".TEMPLATE_PATH."/avatars/".$user_avatar."\">" : get_gallery_image("blank.gif");


          }

You see something anormal?

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #192 on: January 30, 2006, 12:49:28 AM »
I think I was the one who state the $user_avatar string ... this is a dreamboard MOD code ... why is it in the avatar MOD's topic ? ...

The user_avatar field has already been discussed there.

However, change the above with :

Code: [Select]

$posts = "

SELECT ".get_user_table_field("", "user_id"). get_user_table_field(",", "user_name"). get_user_table_field(",", "user_level")." user_posts, user_joindate, user_signature, user_avatar
FROM ".USERS_TABLE." 
WHERE ".get_user_table_field("", "user_id")." = ".$thrstarter_id;

$result = $site_db->query($posts);

while ($user = $site_db->fetch_array($result)) {

$post_count = $user['user_posts'];
$user_id = $user['user_id'];
$user_rank = $user['user_level'];
$date_registered = (isset($user['user_joindate'])) ? format_date($boardconfig['date_format'], $user['user_joindate']) : REPLACE_EMPTY;
$signature = format_boardtext ($user['user_signature'],$boardconfig['html_board'], $boardconfig['wordwrap_board'], $boardconfig['bb_board'], $boardconfig['bb_image_board'], 1);
$user_avatar = $user['user_avatar'];
$user_avatar_current = ($config['avatar_use'] && @file_exists(TEMPLATE_PATH."/avatars/".$user_avatar)) ? "<img src=\"".TEMPLATE_PATH."/avatars/".$user_avatar."\">" : get_gallery_image("blank.gif");

}


Note: Code edited above.

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #193 on: January 30, 2006, 12:56:14 AM »
Yes, the code is of Dreamboard...

TheOracle I followed all the thread there, and at the end, you will give a solution for the avatar question... By the way, Avatars Mod is from V@no, so, I asked him in order to know his point of view, but sorry, I apologize ;)

About the sql code, doesn't work, know, thre is no picture shown now :(

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #194 on: January 30, 2006, 12:58:59 AM »
Quote

About the sql code, doesn't work, know, thre is no picture shown now


I followed V@no's suggestion for switching from $user_info['user_avatar'] to $user['user_avatar'] ... doesn't it show the avatar images for each users (+ the fact the user_avatar field was, indeed, added into the $posts SQL query) ?

In the mean time, please take note the code has been edited above. ;)