• [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 327727 times)

0 Members and 1 Guest are viewing this topic.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #195 on: August 09, 2006, 04:04:27 PM »
yes... i donīt know when i modified the control panel... i think i donīt have any mod about the profile... please... could you help me? in what files it could be the failure?   what archives are related to SQL and the Control Panel? Please... I donīt know... I open a new topic in Discussion & Troubleshooting forum... ---> http://www.4homepages.de/forum/index.php?topic=14022.0
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #196 on: August 11, 2006, 10:35:02 PM »
the problem seems to be that if i change something of the profile, which I want is to change the table of phpbb profile and then apparently does not leave me because I put information different…

Then with this mod i canīt save the change because i donīt modified phpbb table for your mod.. could you help me to do it? only i have to overwrite 4images to phpbb??? the prefix from my gallery and forum..

help me please..
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #197 on: August 26, 2006, 03:19:58 AM »
How make it show for Guests/Users/Admin , since this didnŦt show the usepic at guests....

Quote
//--------------------------------------
//--- Random Userpic Images ------------
//--------------------------------------

$sql = "

SELECT DISTINCT ".get_user_table_field("", "user_id"). get_user_table_field(", ", "user_name"). get_user_table_field(", ", "user_level").", userpic
FROM ".USERS_TABLE."
WHERE ".get_user_table_field("", "user_level")." >= '".USER."'
ORDER BY RAND()
LIMIT 1

";

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

if (!$result) {

$userpic_img = $lang['no_random_userpic'];

} else {

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

$userpic_img = ($config['userpic'] && @file_exists(ROOT_PATH."data/userpic/".$row['userpic']) && $user_info['user_level'] >= USER) ? "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['user_id']."&user_name=".$row['user_name'])."\"><img src=\"".ROOT_PATH."data/userpic/".$row['userpic']."\" width=\"".$config['userpic_width']."\" height=\"".$config['userpic_height']."\" border=\"0\"></a>" : $lang['no_random_userpic'];
$user_name = ($config['userpic'] && @file_exists(ROOT_PATH."data/userpic/".$row['userpic']) && $user_info['user_level'] >= USER) ? "<br /><a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['user_id']."&user_name=".$row['user_name'])."\">".$row['user_name']."</a>" : "<br /><br /><a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['user_id']."&user_name=".$row['user_name'])."\">".$row['user_name']."</a>";

} ###### End of while statement.

if ($user_info['user_level'] >= USER) {

$site_template->register_vars(array(
"user_name" => $user_name,
"userpic_img" => $userpic_img,
"lang_no_random_userpic" => $lang['no_random_userpic'],
"lang_random_userpic_images_title" => $lang['random_userpic_images_title']
));
} ###### End of if statement.
} ###### End of if statement.

unset ($userpic_img);
unset ($user_name);

 :?:

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.1 by V@no
« Reply #198 on: August 26, 2006, 09:55:43 AM »
I dont understand the quesiton...guests cant have user pic...
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 Silversand

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #199 on: August 26, 2006, 02:39:35 PM »
Hello,

can someone post the userpic_install.php again? it doesn't seem to be available.

Thanks!

SIlver

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #200 on: August 29, 2006, 02:35:12 PM »
yes.. my problem was in phpbb integration.. I uninstalled that mod and now i install member personal photo and it works correctly thanks for this great mod!! :D

but i have any questions.. i need more than a userpic in member profile.. can I do this if i change the name "user_pic" to "banner" (for example) in all steps???  Because i need add a banner for user websites. I will need to do a link with the url in this image, do you know how to do this??

I have another question.. i would like to add the userpic in user_logininfo, could u help me please?

how can i make a option for users upload from a URL ?

i mean external web address ... keeping both options

1 - upload from machine (default)
2 - from url (external web address)

 :?:
How can i make this in editprofile???

@Silversand.. yesterday i downloaded this mod, and it runs!!! :D
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #201 on: September 08, 2006, 08:16:26 PM »
I am stuck with an issue.

I want to show the userpic on a template (index.php?template=XXX), how do i do this? I tried include it into the page_header, index.php and then use {userpic} - dont work.

Can someone please give me a hand on this :) thanks


Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #202 on: September 08, 2006, 08:50:48 PM »
yes.. my problem was in phpbb integration.. I uninstalled that mod and now i install member personal photo and it works correctly thanks for this great mod!! :D

but i have any questions.. i need more than a userpic in member profile.. can I do this if i change the name "user_pic" to "banner" (for example) in all steps???  Because i need add a banner for user websites. I will need to do a link with the url in this image, do you know how to do this??

I have another question.. i would like to add the userpic in user_logininfo, could u help me please?

how can i make a option for users upload from a URL ?

i mean external web address ... keeping both options

1 - upload from machine (default)
2 - from url (external web address)

 :?:
How can i make this in editprofile???

@Silversand.. yesterday i downloaded this mod, and it runs!!! :D

well i'm trying know how :D

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #203 on: September 09, 2006, 12:53:07 AM »
I am stuck with an issue.

I want to show the userpic on a template (index.php?template=XXX), how do i do this? I tried include it into the page_header, index.php and then use {userpic} - dont work.

Can someone please give me a hand on this :) thanks



maybe you didn't understand me: The persons userpic (who is logged in) has to be shown on a template like config.html, something like the user-avatar on the left side.
I know its possible and its easy, but after 3 hours of trieng i'am depending on you  :?

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.1 by V@no
« Reply #204 on: September 09, 2006, 01:58:52 AM »
I tried include it into the page_header, index.php and then use {userpic} - dont work.
It depence on what did you try to include and where...
if you add proper code into page_header.php in proper place, then it will be available on any custom templates.
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 trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #205 on: September 09, 2006, 11:02:54 AM »
It depence on what did you try to include and where...
if you add proper code into page_header.php in proper place, then it will be available on any custom templates.

Can you be a little more specific ;) I really can't get it to work  :?

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #206 on: September 09, 2006, 04:39:40 PM »
Using it at page_header.php would be nice , how do it ? :roll:

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #207 on: September 10, 2006, 02:55:26 PM »
tried

Code: [Select]
  $userpic = ($config['userpic'] && (@file_exists(ROOT_PATH."data/userpic/".$row['userpic'])) && $row['userpic']) ? "<img src=\"".ROOT_PATH."data/userpic/".$row['userpic']."\" width=\"100".$userpic_width."\" border=\"0\">" : "<img src=\"".get_gallery_image("nouserpic.jpg")."\" width=\"100".$userpic_width."\">";

but i get broken images.

tried

Code: [Select]
  "userpic" => ($config['userpic'] && (@file_exists(ROOT_PATH."data/userpic/".$row['userpic'])) && $row['userpic']) ? "<img src=\"".ROOT_PATH."data/userpic/".$row['userpic']."\" width=\"100".$userpic_width."\" border=\"0\">" : "<img src=\"".get_gallery_image("nouserpic.jpg")."\" width=\"100".$userpic_width."\">",

..ibut i get the image, when a user dont have an image. I give up, hopefully someone posts the right code  :?

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.1 by V@no
« Reply #208 on: September 10, 2006, 07:02:03 PM »
you are going in the right direction ;) just its not $row but $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 trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] Member personal photo v1.1.1 by V@no
« Reply #209 on: September 10, 2006, 07:16:49 PM »
you are going in the right direction ;) just its not $row but $user_info ;)

oh of course it is :) Thanks!

PS: I understand why you didn't post the solution in the first time - you want us to learn to think logicly, to try to understand by ourself things we used to just don't understand - but it works ;) Thanks.