Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-08-2005, 10:14 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Profile line removal: where?

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?
Reply With Quote
  #2  
Old 02-08-2005, 10:40 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-09-2005, 10:46 AM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Attached Images
File Type: jpg profilepic.jpg (17.4 KB, 0 views)
Reply With Quote
  #4  
Old 02-09-2005, 11:05 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit Template modifyprofilepic

In functions_upload.php FIND
PHP Code:
function process_image_upload($type$url ''$userinfo 0)

BELOW that ADD
PHP Code:
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.
Reply With Quote
  #5  
Old 02-09-2005, 11:06 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In template modifyprofilepic

Find and remove:
Code:
					<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>
Reply With Quote
  #6  
Old 02-10-2005, 04:23 AM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-10-2005, 05:52 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All images are being uploaded, no matter if the users upload them from their computer or enter an URL
Reply With Quote
  #8  
Old 02-11-2005, 11:14 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Everything went great! Thanks.

Quote:
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.
Reply With Quote
  #9  
Old 02-12-2005, 04:27 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 02-12-2005, 10:07 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:45 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
  • Page Generation 0.04253 seconds
  • Memory Usage 2,273KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete