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

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

0 Members and 1 Guest are viewing this topic.

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #480 on: February 17, 2011, 07:33:46 PM »
i added that to page_header..  but it only shows default avatar i mean blank.gif.. it dont show the avatar in use??

i added in

$site_template
->register_vars(array(


is there something im missing?

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 #481 on: February 17, 2011, 07:36:51 PM »
Oh, my bad, I missed another thing you need to change: replace $user_row with $user_info
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 haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #482 on: February 17, 2011, 07:48:28 PM »
  "user_avatar_header" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_info['user_avatar'] == "") ? "blank.gif" $user_info['user_avatar'])."\" name=\"new\" width=\"100\" height=\"100\" border=\"0\" alt=\"\">" "",


Awesome..its working great sir..Many thanks.. just needed to change the name too cuz when in control panel i did selected a avatar the change was appearing on top..so i changed the name field from icons to new.. and its working fine..

Many Many Many THanks..you are the boss..Superb Thanks..

Kind Regards
Haider

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [Mod] Avatar v2.01
« Reply #483 on: February 18, 2011, 10:31:06 AM »
I`m too have a little Modification for this MOD. With this modification you will be possible to show image owner avatar, on details page or somewhere else!

1. In details.php find first SQL:

$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description,

Replace it with:

$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, u.user_avatar

1.1 Find below:

$cat_id = (isset($image_row['cat_id'])) ? $image_row['cat_id'] : 0;

Insert below:

$user_avatar_image = ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($image_row['user_avatar'] == "") ? "blank.jpg" $image_row['user_avatar'])."\" name=\"new\" width=\"50\" border=\"0\" alt=\"\">" "";
$site_template->register_vars(array(
"user_avatar_image" => $user_avatar_image,
));


2. Open details.html and insert this {user_avatar_image} where you want!

That`s All!

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #484 on: March 03, 2011, 10:37:32 PM »
Hello V@no sir.

Please can you do little modifications in this Mod.. that when user upload avatar , it automatically resizes the avatar..

if it is not possible..so is it possible a pop up appears to show user that he/she must upload the avatar to the defined width and height??

Sir.. having very much issue with avatar..  Please find a way to solve the resizing problem..if resizing not possible ..then please tell how to show user the popup error of avatar..

Looking forward to your response.

Kind Regards,
Haider

Offline lisandru

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #485 on: March 14, 2011, 03:36:25 AM »
tnx v@no it really works on me .

Offline Hugo27

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #486 on: May 31, 2011, 08:37:19 AM »
Hello

can I have since built a mod now I have the problem that when an avatar wants upladen is a white page what are the

mfg

Offline Hawkeye1975

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #487 on: July 20, 2011, 07:56:45 PM »
Hallo,

zum einen funktioniert bei mir irgendwie die Pixelbeschränkung nicht. Und zum anderen hätte ich die Avatar-Vorschau gerne neben der Leiste und nicht darunter.
Kann mir vielleicht jemand sagen, was ich da ändern muss?
Vielen Dank.

Gruß,
Olli

Rembrandt

  • Guest
Re: [Mod] Avatar v2.01
« Reply #488 on: July 20, 2011, 10:47:33 PM »
.....
zum einen funktioniert bei mir irgendwie die Pixelbeschränkung nicht. Und zum anderen hätte ich die Avatar-Vorschau gerne neben der Leiste und nicht darunter.
...
zu der Vorschau, suche im Code  step 10.):
Code: [Select]
              <select name="user_avatar" size="6" onkeypress="if(window.event.keycode==13){ this.form.submit(); }" onchange="document.images.icons.src='{template_url}/avatars/'+this.value;">{user_avatar_images}</select>
              <TABLE width="100%" height="100" border="0">
                <TR>
                  <TD align="center">
                    {user_avatar_current}
                  </TD>
                </TR>
              </TABLE>
ersetze es mit:
Code: [Select]
              <table width="100%" height="100" border="0">
                <tr>
                  <td align="left" width="130">
                    <select name="user_avatar" size="6" onkeypress="if(window.event.keycode==13){ this.form.submit(); }" onchange="document.images.icons.src='{template_url}/avatars/'+this.value;">{user_avatar_images}</select>
                  </td>
                  <td align="left">
                    {user_avatar_current}
                  </td>
                </tr>
              </table>

zur Beschränkung, hast du das als User oder Admin getestet, als Admin gibt es keine Beschränkung.

mfg Andi

Offline Hawkeye1975

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #489 on: July 20, 2011, 10:59:26 PM »
Hi,

das mit dem Layout habe ich, danke!
Ich habe es tatsächlich als Admin getestet. Habe aber jetzt komischerweise auch eine Beschränkung als Admin?!
Wie bekomme ich die jetzt wieder raus? ^^

Gruß,
Olli

Rembrandt

  • Guest
Re: [Mod] Avatar v2.01
« Reply #490 on: July 21, 2011, 05:18:10 AM »
...Wie bekomme ich die jetzt wieder raus? ^^
..
so gar nicht, ganz ehrlich wozu auch?

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #491 on: July 25, 2011, 09:28:59 AM »
Hello SIr.
   Im using your Mod.. its really nice feature in 4images. But i just want to ask from you please can you add one more feature in this mod, i mean user cant add image if its not the right size they need to use photoshop or other software to resize their image.
so is there any chance you add auto resize in this mod to like you added for images uploads.

Please it will be really Helpful.


Kind Regards
Haider

Offline marcinos

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #492 on: December 17, 2011, 10:11:02 PM »
I have a question how to add an avatar in details.html information so that the one who added the picture wrote:

username: Admin [avatar.gif 50x50]

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 #493 on: December 18, 2011, 01:01:06 AM »
Do you want just the text or see actual avatar like this?

username: Admin
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 marcinos

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #494 on: December 18, 2011, 12:15:16 PM »
He wants to rewrite the file details.html so that it looked
Photo: for example, 500x500 and next to the right

Avatar 50x50 |  avatar adding picture (no viewer)

just like the picture number. 1

or picture 2

 

Post your comments here