• [MOD] Member personal photo v1.1.3 by V@no (2011-10-23) 4 0 5 1
Currently:  

Author Topic: [MOD] Member personal photo v1.1.3 by V@no (2011-10-23)  (Read 326240 times)

0 Members and 1 Guest are viewing this topic.

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] Member personal photo v1.1 by V@no
« Reply #45 on: April 22, 2005, 04:00:50 AM »
yes, its filtered by WHERE userpic = '' ;)
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 ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Member personal photo v1.1 by V@no
« Reply #46 on: April 22, 2005, 04:05:47 AM »
 It worked perfect!!! this is really cool now the profiles look nicer all of them with a pictures and in the comments i can see also the no image pic thanks V@no :) I think that this mod now its like the avatar one

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] Member personal photo v1.1 by V@no
« Reply #47 on: April 22, 2005, 04:13:44 AM »
yes, you are right, but the original idea of this mod was to show member's personal photos in their profile only, and avatar is for comments ;)
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 ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Member personal photo v1.1 by V@no
« Reply #48 on: April 22, 2005, 04:22:11 AM »
Some time ago I asked this but nobody responded it. V@no can u just say me what is required to make this modification
Hi I'm here again :P as I asked you in MOD Avatar is there any why for the user to upload their avartar when they register, so I ask u the same here with the personal picture when they register, you said me in the MOD Avatar that the register.php should be changed and I got with some help becuase I don't know to much of php (I would say anthing)

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] Member personal photo v1.1 by V@no
« Reply #49 on: April 22, 2005, 04:39:47 AM »
maybe u could try use the same code from Step 1.1 ?
in register.php find:
Code: [Select]
  if (isset($HTTP_POST_VARS['user_name'])) {Scroll down untill u find
Code: [Select]
    if (!empty($additional_user_fields)) {Above that line insert:
Code: [Select]
    if (!$error)
    {
      <code from Step 1.1 goes here>
    }

Obviosly u'll need udjust register_form.html template as well...
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 ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Member personal photo v1.1 by V@no
« Reply #50 on: April 22, 2005, 09:03:19 PM »
Thanks that worked

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] Member personal photo v1.1 by V@no
« Reply #51 on: April 23, 2005, 12:38:04 AM »
It did? that's good to hear :D
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 universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] Member personal photo v1.1 by V@no
« Reply #52 on: April 23, 2005, 01:29:49 PM »
I thought, maybe there is possible to do a thing like, random member photo in index.php?

Something like:

User name
[ photo ]
PM to this member!

And something like link to user photos:
Show me more user photos!

Will be great if this was possible :) So is it? I think something like memberlist.php
Again this addres?!
http://www.funny.lt

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Member personal photo v1.1 by V@no
« Reply #53 on: April 23, 2005, 06:12:57 PM »
Yeah!!! i thought something like you but nobody awnser my question :? maybe it is dificult, i know that for me is imposible lol

Hi, I was looking the other day in the userp c folder the users that have upload their personal picture and I saw that the name of the pic is the same of the user id, is there any way to show a list of the profiles that have a personal pictures?

For example

Profiles with personal picture:

- user 1 --> link: http://www.yourdomain/4images/member.php?action=showprofile&user_id=1
- user 2 --> link: http://www.yourdomain/4images/member.php?action=showprofile&user_id=2
- user 3 --> link: http://www.yourdomain/4images/member.php?action=showprofile&user_id=3

It would something like the MOD that shows the Last users online. if u have any idea of what files i have to changes or any idea of what i should do or u know how to doit please tell me it is really important for me

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Member personal photo v1.1 by V@no
« Reply #54 on: April 26, 2005, 08:17:59 PM »
ascanio, yes, u can...the easiest and the fastest way without modifying any code is add path to that image into each member's profile, who doesnt have any personal photo.
Did I just hear someone said "Are you out of your mind? You call that the fastest way???"
Well, it is, through your favorite mysql manager (phpmyadmin) ;)
Here is the mysql query that u need execute
Quote
UPDATE 4images_users SET userpic = 'noimage.png' WHERE userpic = '';
ALTER TABLE 4images_users CHANGE userpic userpic VARCHAR( 255 ) DEFAULT 'noimage.png' NOT NULL
it will use  data/userpic/noimage.png image (u can name it whatever u want, just update the name in the mysql query).

P.S. the second line is changing the structure of the userpic field, so u dont have to run this query for each new member on your site ;)

Hi V@no I think that the users can delete this picture cuz each day is not in the folder and i have to upload over and over again ... how can I prevent that?

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] Member personal photo v1.1 by V@no
« Reply #55 on: April 27, 2005, 12:28:32 AM »
oh, crap! you are right, I didnt think about that...:oops:
well, ok, first, restore the database with this query:
Code: [Select]
UPDATE 4images_users SET userpic = '' WHERE userpic = 'noimage.png';
ALTER TABLE 4images_users CHANGE userpic userpic VARCHAR( 255 ) DEFAULT '' NOT NULL

Then in member.php find:
Code: [Select]
      "userpic_img" => ($config['userpic'] && $user_row['userpic']) ? ROOT_PATH."data/userpic/".$user_row['userpic'] : "", Replace it with:
Code: [Select]
      "userpic_img" => ($config['userpic'] && $user_row['userpic']) ? ROOT_PATH."data/userpic/".$user_row['userpic'] : ROOT_PATH."data/userpic/noimage.png",
Then find:
Code: [Select]
    "userpic_img" => ($user_info['userpic']) ? ROOT_PATH."data/userpic/".$user_info['userpic'] : "",Replace it with:
Code: [Select]
    "userpic_img" => ($user_info['userpic']) ? ROOT_PATH."data/userpic/".$user_info['userpic'] : ROOT_PATH."data/userpic/noimage.png",Place your noimage.png image into data/userpic/ folder.
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 ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Member personal photo v1.1 by V@no
« Reply #56 on: April 27, 2005, 12:41:57 AM »
thanks V@no :) I hope not to upload that pic again :P

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] Member personal photo v1.1 by V@no
« Reply #57 on: April 27, 2005, 12:58:42 AM »
thanks V@no :) I hope not to upload that pic again :P
how many times did u say "WTF?????" and cursing while uploading again that image? ;) :)
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 ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Member personal photo v1.1 by V@no
« Reply #58 on: April 27, 2005, 01:06:08 AM »
I upload that pic like 15 times lol

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Member personal photo v1.1 by V@no
« Reply #59 on: April 28, 2005, 12:48:48 PM »
Hi everybody

The tags {userpic_max_size}, {userpic_max_width} and {userpic_max_height} are not interpreted on my homepage.
That means, there is no value displayed.

Thats the code in my main.php

Code: [Select]
$lang['userpic_upload'] = "Maximum Filegrösse: {userpic_max_size}.<br />Bilder grösser {userpic_max_width}x{userpic_max_height} werden in der Grösse angepasst";
What did I wrong?

Please let me now, if you need more informations.
Thank you for helping me.

Serge