PDA

View Full Version : Image in profile


Zzed
05-04-2002, 10:00 PM
This hack was requested by NerdNations.

Here is what you need to do to add a image field to user profiles.

That's it. ;)

Zzed
05-05-2002, 06:53 AM
Here is a sample screen shot of my profile: http://www.ls1.com/forums/member.php?action=getinfo&userid=4112

Also note that if the image is larger than 640x480, the code will automatically scale it to fit witin a 640x480 area. ;)

Floris
05-05-2002, 09:56 AM
Thank you! I will look into it. Very nice :)

TECK
05-05-2002, 10:03 AM
nice car ed.. :) the hack also.

inetd
05-05-2002, 10:14 AM
i want this car :)
Zzed, gift me, please :D :lol:

Hack also cool ;) And I have one question:
If user don't post Picture, field picture showed in profile or not?

RDX1
05-05-2002, 10:27 AM
i already know how to do the picture, like this

<add this to postbit>


<tr>
<td bgcolor="#13486D"><normalfont><b>User Picture:</b></normalfont></td>
<td bgcolor="#13486D"><normalfont><img src="$userinfo[field7]" width="" height=""></normalfont></td>
</tr> replace #13486d with { firstaltcolor }, since for some reason it keeps replacing it with that color code


i wanted to know how to do it like sitepoint, where if there isnt a picture submited it will put a blank image in its place

Zzed
05-05-2002, 11:40 AM
Thank you guys for the kind words. :)

inetd, If the user does not enter a vlaue, the field still shows up, but it will be empty.

Here is a sample of one of my alter egos on my site: http://www.ls1.com/forums/member.php?action=getinfo&userid=24578

Chris M
05-05-2002, 12:24 PM
Very nice Zzed...

I am glad you released it...

:tup:

Satan

Zzed
05-05-2002, 02:46 PM
Thank you hellsatan.

Slynderdale
05-05-2002, 02:48 PM
nice hack, but ill stick with the one i made

https://vborg.vbsupport.ru/showthread.php?s=&threadid=37851

Chris M
05-05-2002, 03:11 PM
I still prefer Zzed's...

Btw :

Zzed - For the Image, you have to enter a url right? So...Is there any way to add like a description to it?

What I mean is : in HTML, you use the tag :

alt="yourtext"

To make your image have a hover-over text...

Could that be done for your hack?

Satan

Chris M
05-05-2002, 03:39 PM
Here is a Screenshot of my Forums...

@Zzed - When I tried to add a profile field above the Picture field, I got an error saying :

No Valid Link specified :

Why is that?

Satan

Tungsten
05-05-2002, 04:09 PM
Originally posted by Slynderdale
nice hack, but ill stick with the one i made

https://vborg.vbsupport.ru/showthread.php?s=&threadid=37851

Release it for general use and some of us might use it too. ;)

RDX1
05-05-2002, 06:10 PM
Originally posted by Zzed
If the user does not enter a vlaue, the field still shows up, but it will be empty.


but im making a custom user profile html layout, and i want it to be the same size if there is a picture or not.. kinda like sitepointforums.com does

MrLister
05-05-2002, 07:28 PM
nice car.. i'm betting my mx-6 could take you :)

Custom installed body kit (fiber-glass)
greddy dual exhaust
16 psi
basch platinum plugs
strut tower bars
2 inch koniing adjustable coilovers
Magnecor Wires
JL Audio 12W6 Subs
Cone Filter
new cold air intake.

hehe ok i'm getting carried away. think vB. btw no i don't have a picture at the moment.

Tungsten
05-05-2002, 11:24 PM
How much horsepower did the subwoofers add? Just wondering... I mean, they're listed right there with the other, um, "performance" mods. ;)

Zzed
05-05-2002, 11:57 PM
Originally posted by MrLister
nice car.. i'm betting my mx-6 could take you :)

Custom installed body kit (fiber-glass)
greddy dual exhaust
16 psi
basch platinum plugs
strut tower bars
2 inch koniing adjustable coilovers
Magnecor Wires
JL Audio 12W6 Subs
Cone Filter
new cold air intake.

hehe ok i'm getting carried away. think vB. btw no i don't have a picture at the moment. Mr Lister, My web page is not up to date. Check out this link + my sig on the latest stats on my car. ;)

http://www.ls1.com/forums/showthread.php?threadid=89870

Zzed
05-05-2002, 11:58 PM
Originally posted by hellsatan
I still prefer Zzed's...

Btw :

Zzed - For the Image, you have to enter a url right? So...Is there any way to add like a description to it?

What I mean is : in HTML, you use the tag :

alt="yourtext"

To make your image have a hover-over text...

Could that be done for your hack?

Satan Ok, I will make the changes.

I will also look into the other problem with the image. :)

MrLister
05-06-2002, 01:32 PM
Originally posted by Tungsten
How much horsepower did the subwoofers add? Just wondering... I mean, they're listed right there with the other, um, "performance" mods. ;)
375 hp, 362 tq

MrLister
05-06-2002, 01:34 PM
Originally posted by Zzed
Mr Lister, My web page is not up to date. Check out this link + my sig on the latest stats on my car. ;)

http://www.ls1.com/forums/showthread.php?threadid=89870
Damn, you win by a bit. Maybe your car is heavy and I could still squeez in the win :D anyways that's a great car you've got. I dressed my MX-6 up to look like a rx-7 and then yellow and black are the colors with tinted windows.

Chris M
05-06-2002, 02:20 PM
Thanks Zzed...

:tup:

Satan

Zzed
05-06-2002, 02:50 PM
Originally posted by MrLister

375 hp, 362 tq Is that at the flywheel or front wheels?

Mine are rear wheel numbers.

MartynJ
05-12-2002, 08:16 PM
Seems like an excellent hack, but all I get when I try to use it is:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in C:\Program Files\Apache Group\Apache2\htdocs\member.php on line 2

Parse error: parse error, unexpected T_STRING in C:\Program Files\Apache Group\Apache2\htdocs\member.php on line 2

Is this the revenge of PHP4.2?

NSeXcellent
06-01-2002, 02:33 PM
Originally posted by MrLister
nice car.. i'm betting my mx-6 could take you :)

Custom installed body kit (fiber-glass)
greddy dual exhaust
16 psi
basch platinum plugs
strut tower bars
2 inch koniing adjustable coilovers
Magnecor Wires
JL Audio 12W6 Subs
Cone Filter
new cold air intake.

hehe ok i'm getting carried away. think vB. btw no i don't have a picture at the moment.

I'll take a piece of that action! And now you all see where i get this username from... :D

https://vborg.vbsupport.ru/

Keith
06-24-2002, 02:04 PM
I'm using 2.2.5, only the URL is coming up and I've double checked the location. What am I missing?

Keith
06-24-2002, 02:10 PM
nevermind, I'm an idiot!! Loaded up the member.php file into the wrong directory (portals root) by mistake. Works great, thanks for the hack!!

globalwin
06-24-2002, 05:35 PM
this might be daft, but how do I link an image? I cant seem the guess the syntax :(

Zzed
06-24-2002, 08:40 PM
Originally posted by globalwin
this might be daft, but how do I link an image? I cant seem the guess the syntax :( It's just a URL, no BB tags are needed.

Keith
06-26-2002, 05:59 PM
Zzed, this is the weirdest thing. The hack worked great when I installed it yesterday, I input my URL and it appears. I tried to input the info myself as admin level access into 2 users profile. the reason is, one of them put a URL in and it just showed the white box with an x. When I checked their URL, it was fine.

I then saw this error when I tried to save his record:

Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: SELECT userid
FROM user
WHERE username='bsurguy'
AND userid <>
mysql error: You have an error in your SQL syntax near '' at line 4

mysql error number: 1064

The referring script is listed as ..../forums/forums/admin/user.php

I only have 1 forums directory, so it should be ...forums/admin/user.php Where might I find the problem here? Confused.

Great hack by the way!

Keith
06-26-2002, 07:16 PM
From that user.php file, here's the code, but this doesn't appear to be a problem:

if ($exists=$DB_site->query_first("SELECT userid
FROM user
WHERE username='".addslashes(htmlspecialchars($ausername))."'
AND userid <> $userid")) {
echo "There is already an ".makelinkcode('user',"user.php?do=edit&userid=$exists[userid]",1)." named <b>".htmlspecialchars($ausername)."</b>";
exit;
}

I replaced the member.php with my original, and deleted the field in the template, but still get the same error now. Any ideas?

Zzed
06-26-2002, 07:59 PM
Keith, See this thread for the Mysql error: http://www.vbulletin.com/forum/showthread.php?s=&threadid=49081&highlight=mysql+error+1064 :)

Keith
06-26-2002, 08:09 PM
Zzed, I cannot believe I missed that. Geezus, thanks. The irony is Smachol just pointed me to the patch a few seconds ago.

The link he gave me is for registered license users in the members section, won't work for everyone, so I've edited it out from this thread. The other is public I'm assuming.

Many thanks, I'm installing it now.

UPDATE: The patch fixed my probs.

Bro_Joey_Gowdy
06-27-2002, 03:52 PM
that link you gave said your account was banned

Xelation
07-03-2002, 05:36 PM
how can I make it so that I can use something like this $profilepic and then I can put it anywhere I want... because I have a customized profile layout. thanks

Zzed
07-03-2002, 06:04 PM
Originally posted by Bro_Joey_Gowdy
that link you gave said your account was banned

I am the site admin on LS1.com. I picked that title for myself as a joke. :D My name is listed in the forum leaders page: http://www.ls1.com/forums/showgroups.php?

Zzed
07-03-2002, 06:05 PM
Originally posted by Xelation
how can I make it so that I can use something like this $profilepic and then I can put it anywhere I want... because I have a customized profile layout. thanks I'll get back to you on this. :)

Xelation
07-03-2002, 06:09 PM
Originally posted by Zzed
I'll get back to you on this. :)

thanks, much appreciated

Vivi Ornitier
07-03-2002, 07:13 PM
i haven't read any replies before me, i was just looking at the code and :p, index 3 of getimagesize contains the correct html height and width code. You don't have to use ysize of xsize.

Zzed
07-03-2002, 08:30 PM
Originally posted by Vivi Ornitier
i haven't read any replies before me, i was just looking at the code and :p, index 3 of getimagesize contains the correct html height and width code. You don't have to use ysize of xsize.

I know, but I need the numeric values for the width and the height so I can scale down the image if it is larger than 640x480.

The index 3 value shows up like this: width="xxx" height="xxx", which means I have to further parse into it to extract those values, whereas I can just grab them from index 0 and 1. ;)

Xelation
07-03-2002, 09:02 PM
I dont want to push you Zzed, but do you think you could have the new code done by sometime tomorrow at the latest? if you cant i understand

Zzed
07-03-2002, 09:08 PM
Actually, all you have to do is to assign $profilefield[value] to a global variable and use it in your template. Be sure to do this after it has been assigned the proper HTML value.

Please note that if the image URL is an invalid link or not a picture, $profilefield[value] will say Invalid image link:....

Hope this helps. :)

Xelation
07-03-2002, 09:12 PM
how would I do that? I'm not good at php at all so I wouldnt know how to do it sorry :(

Zzed
07-03-2002, 09:35 PM
$profilefieldname="field$profilefield[profilefieldid]";
if(strstr($profilefield[title], "Picture") and $userinfo[$profilefieldname]) {
error_reporting(0);
$img_info = getimagesize($userinfo[$profilefieldname]);
if($img_info[0]) {
if(($img_info[0] <= 640) and ($img_info[1] <= 480)) {
$profilefield[value]="<img src=\"$userinfo[$profilefieldname]\">";
}
else {
$xratio = $img_info[0] / 640;
$yratio = $img_info[1] / 480;
$factor = $xratio;
if($yratio > $xratio) {
$factor = $yratio;
}
$xsize = intval($img_info[0] / $factor);
$ysize = intval($img_info[1] / $factor);
$profilefield[value]="<img src=\"$userinfo[$profilefieldname]\" width=\"$xsize\" height=\"$ysize\">";
}
}
else {
$profilefield[value]="Invalid image link: <a href=\"$userinfo[$profilefieldname]\">$userinfo[$profilefieldname]</a>";
}

$profilepic = $profilefield[value];

}
else {
$profilefield[value]=$userinfo[$profilefieldname];
}

eval("\$customfields .= \"".gettemplate("getinfo_customfields")."\";");


Then you can use $profilepic in your template.

Xelation
07-04-2002, 12:59 AM
if I wanted a second pic, for a car pic, could I jsut add another one of those below it and change the variables?

Xelation
07-04-2002, 01:07 AM
ok, it works... but I cant get rid of them if I make it hidden it doesnt show up for me... if I make it viewable there are 2

Xelation
07-04-2002, 04:14 AM
here this should explain things for you....

Zzed
07-04-2002, 06:41 AM
Can you post your template here? or Email it to me at edwink@seebeyond.com

Xelation
07-04-2002, 04:22 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$bbtitle - View Profile</title>
$headinclude
<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrol lbars=no,width=175,height=275,resizeable=yes,statu s=no")
}
// -->
</script>
</head>
<body>
$header
<p> </p>
<p> </p>
<table cellpadding="0" cellspacing="0" border="0" width="779" align="center" style="border: 1 solid #000000"><tr><td>
<table cellpadding="4" cellspacing="0" border="0" width="779">
<tr>
<td bgcolor="#485363" background="skin/images/profiletopbg.gif" colspan="2" align="center">
<normalfont><b>Viewing profile for user <i>$userinfo[username]</i>
</b> <font size="1" face="Arial, Helvetica, sans-serif"><b>Profile viewed $userinfo[profileviews]
times</b></font></normalfont>
</td>
</tr>
<tr><td bgcolor="#242F3D" valign="top">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" bgcolor="#2F3948" background="skin/images/profilebars.gif" valign="top" style="border: 1 solid #000000" width="48%"><normalfont><b>Picture</b></normalfont></td>
<td align="center" valign="top" style="border: 0 solid #000000" width="4%">&nbsp;</td>
<td align="center" bgcolor="#2F3948" background="skin/images/profilebars.gif" valign="top" style="border: 1 solid #000000" width="48%"><normalfont><B>Avatar</B></normalfont></td>
</tr>
<tr>
<td align="center" valign="middle" width="48%" Height="80">$profilepic</td>
<td align="center" valign="middle" width="4%" Height="80">&nbsp;</td>
<td align="center" valign="middle" width="48%" Height="80"><img src="$userinfo[avatarurl]" border="0" align="middle"></td>
</tr>
</table>
</td><td bgcolor="#242F3D" rowspan="2" valign="top">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr><td align="center" bgcolor="#2F3948" background="skin/images/profilebars.gif" valign="top" style="border: 1 solid #000000"><normalfont><B>User Info</B></normalfont></td></tr>
<tr><td valign="top">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr><td valign="top"><smallfont><B>Registered: </B></smallfont></td><td valign="top"><smallfont>$userinfo[datejoined]</smallfont></td></tr>
<tr><td valign="top"><smallfont><B>Status: </B></smallfont></td><td valign="top"><smallfont><b>$userinfo[usertitle]</b></smallfont></td></tr>
<tr><td valign="top"><smallfont><B>Posts: </B></smallfont></td><td valign="top"><smallfont>$userinfo[posts]<BR><b>[</b> $postsperday posts per day / $percentoftotalposts% of total posts<b>]</b><BR><a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userinfo[userid]">Search for all posts by this user.</a><br></smallfont></td></tr>
<tr>
<td valign="top"><smallfont><b>Last Post:</b></smallfont></td>
<td valign="top"><smallfont>$lastpostdate $lastposttime<br>
<a href="$lastposturl">$lastposttitle</a>$nolastpost</smallfont></td>
</tr>

<tr><td valign="top"><smallfont><B>Website: </B></smallfont></td><td valign="top"><smallfont><a href="$userinfo[homepage]" target="_blank">$userinfo[homepage]</a></smallfont></td></tr>
$referrals
$birthday
$customfields
<smallfont>
<tr><td valign="top" colspan="2"><smallfont><img src="skin/images/plus.gif" border="0"> <a href="member2.php?s=$session[sessionhash]&action=addlist&userlist=buddy&userid=$userinfo[userid]"><font color="#ffffff">Add to buddy list</font></a><BR>
<img src="skin/images/minus.gif" border="0"> <a href="member2.php?s=$session[sessionhash]&action=addlist&userlist=ignore&userid=$userinfo[userid]"><font color="#ffffff">Add to ignore list</font></a>
</smallfont>
</td></tr>
</td></tr>
</table>
</td></tr>
</td></tr></table>
<tr><td bgcolor="#242F3D" valign="top">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr><td align="center" bgcolor="#2F3948" background="skin/images/profilebars.gif" valign="top" style="border: 1 solid #000000"><normalfont><B>User Contact</B></normalfont></td></tr>
<tr><td align="center" valign="top">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr><td valign="top"><smallfont><B>E-Mail: </B></smallfont></td><td valign="top"><smallfont><a href="member.php?s=$session[sessionhash]&action=mailform&userid=$userinfo[userid]">Click here to email $userinfo[username]</a></smallfont></td></tr>
<tr><td valign="top"><smallfont><B>Private Message: </B></smallfont></td><td valign="top"><smallfont>$userinfo[sendpm]</smallfont></td></tr>
<tr><td valign="top"><smallfont><B>ICQ: </B></smallfont></td><td valign="top"><smallfont>$userinfo[icq]</smallfont></td></tr>
<tr><td valign="top"><smallfont><B>AIM: </B></smallfont></td><td valign="top"><smallfont>$userinfo[aim]</smallfont></td></tr>
<tr><td valign="top"><smallfont><B>YAHOO: </B></smallfont></td><td valign="top"><smallfont>$userinfo[yahoo]</smallfont></td></tr>
</table>
</td></tr>
</table>
</td></tr>
</td></tr></table>
</td></tr></table>

<br>

<table cellpadding="2" cellspacing="0" border="0" width="779" align="center">
<tr>
<td align="center"><smallfont><b>
Administrative Options: <a href="moderator.php?s=$session[sessionhash]&action=useroptions&userid=$userinfo[userid]">User Options</a>
</b></smallfont></td>
</tr>
</table>

$footer

</body>
</html>

concept
09-16-2002, 09:44 AM
excellent hack.. great work

poolking
10-10-2002, 11:32 AM
When I try to install this hack I get a parse error in member.php around line 1487.

Rand M
10-18-2002, 03:41 PM
Installed on v2.2.8..... so far so good!
Many thanks for the hack.

Jacko
10-29-2002, 12:51 PM
i dont get anything...

when i enter the URL to the image in the "customfield" i get nothing on my getinfo template when i view a users profile..

any help at all??

Jacko
10-29-2002, 08:36 PM
i un-installed this hack as it didnt work with my board.

i am using 2.2.8

anyone help me at all.. i added the info the install file told me to in member.php and added the profile field but it didnt work..

the problem was that i didnt get any images at all showing in my users profiles. but there was no errors either..!

stuck.!

DrkFusion
10-29-2002, 08:38 PM
Lol, I install thi, but never actually used it, this works great on my friends board, modified it a bit, but users really like it.

-Arunan

Chris M
10-29-2002, 08:40 PM
I might re-install this;)

I had problems with it the last time:(

Satan

DrkFusion
10-29-2002, 08:42 PM
It would be great on your forum HellSatan, put some restrictions on it though ;) I know the members you have.

Good luck Satan ;)
-Arunan

Jacko
10-30-2002, 06:18 AM
got it working on my board now.. so i installed it again.. works a treat..

cheers

Jacko
10-30-2002, 06:25 AM
i have the same problem with Xelation can anyone help me please???

i followed the original install and the addon where i can add $profilepic. but now i get the custom field at the bottom and i dont want to show that field..

if i hide it i lose the picture and if i delete it i allso hide the picture...

any way round this?

Zzed
10-30-2002, 09:55 AM
Originally posted by Jacko
i have the same problem with Xelation can anyone help me please???

i followed the original install and the addon where i can add $profilepic. but now i get the custom field at the bottom and i dont want to show that field..

if i hide it i lose the picture and if i delete it i allso hide the picture...

any way round this?

In your admin CP where you create and modify the user profile fields, set the display order for the picture field to a large number like 100. This will guarantee that the picture field will always be the last one to show. ;)

alkatraz
11-17-2002, 01:40 AM
Originally posted by Xelation
ok, it works... but I cant get rid of them if I make it hidden it doesnt show up for me... if I make it viewable there are 2


I was looking for a solution for this too so I just decided to give it a shot myself and came out lucky! Here is my code below. If anyone sees anything wrong with this let me know, I'm NOT much of a programmer. =)


$profilefieldname="field$profilefield[profilefieldid]";
if(strstr($profilefield[title], "Picture") and $userinfo[$profilefieldname]) {
error_reporting(0);
$img_info = getimagesize($userinfo[$profilefieldname]);
if($img_info[0]) {
if(($img_info[0] <= 640) and ($img_info[1] <= 480)) {
$profilefield[value]="<img src=\"$userinfo[$profilefieldname]\">";
}
else {
$xratio = $img_info[0] / 640;
$yratio = $img_info[1] / 480;
$factor = $xratio;
if($yratio > $xratio) {
$factor = $yratio;
}
$xsize = intval($img_info[0] / $factor);
$ysize = intval($img_info[1] / $factor);
$profilefield[value]="<img src=\"$userinfo[$profilefieldname]\" width=\"$xsize\" height=\"$ysize\">";
}
}
else {
$profilefield[value]="Invalid image link: <a href=\"$userinfo[$profilefieldname]\">$userinfo[$profilefieldname]</a>";
}

$profilepic = $profilefield[value];
$profilefield[value] = "See below"; // or above

}
else {
$profilefield[value]=$userinfo[$profilefieldname];
}

eval("\$customfields .= \"".gettemplate("getinfo_customfields")."\";");

Hurricane
11-17-2002, 05:51 AM
:( All I get is "Invalid image link:" and then the URL. The link works when I click on it though. Please let me know what you think it might be. This looks like a great hack!

Zzed
11-17-2002, 07:13 AM
Originally posted by Hurricane
:( All I get is "Invalid image link:" and then the URL. The link works when I click on it though. Please let me know what you think it might be. This looks like a great hack!

I suspect that you are using the URL or IMG tag with the link. They are not necessary...

Also it is possible that your image link is pointing to a location where they are using MOD rewrite and they don't allow hotlinks.

Hurricane
11-19-2002, 08:29 PM
Originally posted by Zzed


I suspect that you are using the URL or IMG tag with the link. They are not necessary...

Also it is possible that your image link is pointing to a location where they are using MOD rewrite and they don't allow hotlinks.

Nope. :( I am using the link of http://orl.dsmforum.com/misc/hgs.j p g (without the spaces in the jpg) and it gives me: .....

Never mind. I just looked at it again and it is working! Not sure how, but it works. Thanks for the reply!

Great hack! Marked installed!

andera
03-07-2003, 03:54 PM
i am still getting the "not valid url" thing.....i know it is a valid link and i know the img and url tags are not being added???

Anyone PLEASE!!!!

Tony

Xyphen
03-07-2003, 11:42 PM
Is it possible to display the Picture Box where ever we want? I have a customized Profile, one with seprate boxes, so how can I, how can I add it with a seprate box?

Xyphen
03-09-2003, 04:39 PM
What I meant was, instead of using custom fields, can I use a template? like getinfo_desktop to display the desktop image?

ericwirtanen
03-10-2003, 03:21 PM
occasionally receiving an "invalid image link" error for profiles after upgrading to version 2.3.0.

the weird thing is, half the time the pictures show, and the other half it says "invalid image link."

andera
03-10-2003, 03:24 PM
anyone have an idea...now i don't know hardly any SQL so......

on how to add a field to the member listing that would show if a picture was loaded or not....

i have an off-roading site and the picture area is for their vehicle, i know a lot of people like to search around and see the different vehicles so i was thinking i could add a field to the member listing so you know who added a picture at a glance....

anyone have ideas and/or code on how to do this...

Tony

esquared
06-02-2003, 10:17 PM
How would you restrict this to just certain user groups and not allow it to all members?

mbaskett
06-03-2003, 04:29 AM
Good hack! I like how the image is not associated with the server (url linking). Bet that helps keep the server load down. I'd install it, but I litterally just finished installing a different version of this same concept...

Keep on hackin Zed!

Take a peek at this if you want:

http://www.torquecentral.com/member.php?s=&action=getinfo&userid=6

I don't want to steal your thunder, as your hack is great, and I love how it's lightweight. I know with you membercount, things like that REALLY count.

If you ever wanna share some code, I'll let you take a peek at some of the things we're doing over on Torquecentral!

Catch you later!

Zzed
06-03-2003, 07:51 AM
Thank you for your kind words Matt. :)

That actually sounds like an attractive offer. I'll send you an Email. ;)

Splitfyre
06-22-2003, 03:18 AM
I get the following error..

Parse error: parse error, unexpected T_ELSE in member.php on line 358

When I look at the line this is what it says:

} else { // Not Required

Any suggestions on how I can fix this?

Splitfyre
06-22-2003, 03:51 AM
Re-hacked. Works like a charm :)

Harlequin
09-17-2003, 03:20 PM
How in the heck can you call this up to display the image in the usercp as a preview?

VPREATR
12-25-2003, 06:39 AM
Has anyone encountered problems with this hack under vB 2.3.3. I've upgraded, installed the hack, however the image is not display as in the previous version of vB (2.3.0)

Thanks!

JustAskJulie
04-02-2004, 11:43 PM
I just installed it under 2.3.4 and it went fine.

I'm wondering tho is there any way to add a user pic to a profile and allow them to upload it?

iogames
05-29-2007, 02:59 AM
there's not a 3.6.7 version for this? :confused: