![]() |
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. :) |
how would I do that? I'm not good at php at all so I wouldnt know how to do it sorry :(
|
PHP Code:
|
if I wanted a second pic, for a car pic, could I jsut add another one of those below it and change the variables?
|
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
|
here this should explain things for you....
|
Can you post your template here? or Email it to me at edwink@seebeyond.com
|
<!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=n o,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%"> </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"> </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=$userinf o[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> |
excellent hack.. great work
|
When I try to install this hack I get a parse error in member.php around line 1487.
|
Installed on v2.2.8..... so far so good!
Many thanks for the hack. |
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?? |
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.! |
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 |
I might re-install this;)
I had problems with it the last time:( Satan |
It would be great on your forum HellSatan, put some restrictions on it though ;) I know the members you have.
Good luck Satan ;) -Arunan |
got it working on my board now.. so i installed it again.. works a treat..
cheers |
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? |
Quote:
|
Quote:
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. =) Code:
$profilefieldname="field$profilefield[profilefieldid]"; |
:( 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!
|
Quote:
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. |
Quote:
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! |
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 |
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?
|
What I meant was, instead of using custom fields, can I use a template? like getinfo_desktop to display the desktop image?
|
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." |
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 |
How would you restrict this to just certain user groups and not allow it to all members?
|
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....tinfo&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! |
Thank you for your kind words Matt. :)
That actually sounds like an attractive offer. I'll send you an Email. ;) |
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: Code:
} else { // Not Required |
Re-hacked. Works like a charm :)
|
How in the heck can you call this up to display the image in the usercp as a preview?
|
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! |
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? |
there's not a 3.6.7 version for this? :confused:
|
All times are GMT. The time now is 04:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|