PDA

View Full Version : Profile line removal: where?


Rich
02-08-2005, 10:14 PM
Hello,
I want to remove the option for members to upload their profile picture through hotlinking. I use the member photos hack, and images that are hotlinked from outside sites do not display. To remedy this, I want to remove that option all together. What exactly do I need to remove and from where?

Andreas
02-08-2005, 10:40 PM
I don't get what you want to do ...

Profile pictures are stored locally, no matter if Users upload from their PC or enter an URL.
So if you want to "prevent" (this is not possible) hotlinking then make mod_rewrite rules to check the referer.

Rich
02-09-2005, 10:46 AM
Hello,
Attached is an image that depicts what I am trying to do. The arrow is pointing to a field. I want to remove that field completely from that page. This is the page that allows you to change your profile picture.

Here is the screenshot:

Andreas
02-09-2005, 11:05 AM
Edit Template modifyprofilepic

In functions_upload.php FIND

function process_image_upload($type, $url = '', $userinfo = 0)
{


BELOW that ADD

if ($type == 'profilepic' AND $url)
{
return false;
}


But I still don't understand why ...
If users want to use an image from http://www.somesite.com/image.jpg they can just download it to their computer and upload it again to your site.

Marco van Herwaarden
02-09-2005, 11:06 AM
In template modifyprofilepic

Find and remove:
<td>
$vbphrase[enter_profile_picture_url]:<br />
<input type="text" class="bginput" name="avatarurl" value="http://www." onchange="check_yes('profilepic_yes')" size="50" />
</td>

Rich
02-10-2005, 04:23 AM
Hello,
Thanks! That looks like the stuff! I want to remove it because it doesn't work with a hack I am using. Profile images that are linked don't appear in the member gallery. Instead, their name shows up and the picture doesn't. Uploaded images work though.

Andreas
02-10-2005, 05:52 AM
All images are being uploaded, no matter if the users upload them from their computer or enter an URL

Rich
02-11-2005, 11:14 PM
Hello,

Everything went great! Thanks.

I want to remove the option for members to upload their profile picture through hotlinking.

Thats my very first line of this thread. If you read it, you would have noticed that I used upload and hotlinking (which means linking to something on another server) in the same sentence. Thats because I was aware that all images are uploaded. But I only wanted to remove uploads from hotlinking, as I stated.

Don't know why I bothered to respond to you, but "wannabe" know-it-alls erk me to no end. Please read the entire thread before you respond to people. It makes everything so much easier than you trying to make others look dumb.

Andreas
02-12-2005, 04:27 AM
Honestly, I read the whole thread and I didn't "want to make others look dumb".
I just didn't (and still don't) understand your intention:
"Hotlinkling" (at least this is the definition I am aware of) means continueing usage of resources (mainly images) from other servers by directly linking to them (<IMG>-Tags, etc.).
But as there will be only one download when the users clicks submit, this has nothing to do with hotlinking - and that's what kept/keeps confusing me.

Nevertheless, your request seems to be solved so all is OK :)

Rich
02-12-2005, 10:07 PM
Hello,
I am running the hack that pulls images from the profiles and places them in a member photo gallery. When a member uses an image that is hotlinked off another site, it doesn't appear in the gallery. When they directly upload from their pc, it appears fine. By removeing the text box that allows them to use a hotlink, I don't have to see names with an empty space for their profile. Instead, the only way they can upload an image is off their computer. Since this method works with the hack, we don't get empty spaces, and the gallery looks much better. Hopefully that explains the reasoning for its removal.