vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Attachment and avatar hotlinking protection (1.0.1) (https://vborg.vbsupport.ru/showthread.php?t=47306)

Smoothie 01-03-2003 05:19 PM

excuse my ignorance, but how does one link an attachment or avatar via the [ img ] tag?

DrkFusion 01-03-2003 05:21 PM

Let me try and show you

fury 01-03-2003 05:21 PM

Right click on an attachment or avatar at your site. Go to Properties

You will see a URL in the Address (IE) or Location (Mozilla) box. Select it and hit Ctrl+C.

Then place the URL inside [ IMG][/IMG] tags.

DrkFusion 01-03-2003 05:23 PM

http://forum.noxmedia.net/link.html
Right click on the properties and check the url :)

Smoothie 01-03-2003 05:30 PM

If I use that url in the [img tag] it does not display the avatar. here's the url i get:
https://vborg.vbsupport.ru/attachmen...&postid=338025

fury 01-03-2003 05:43 PM

Hmm, weird, guess vBulletin.org doesn't like them

NTLDR 01-03-2003 05:48 PM

I expect vB.org has it set to know to allow dynamic images, ie images with ? in the URL.

nuno 01-03-2003 05:55 PM

Quote:

Originally posted by fury
Avatar hotlinking seems to be working fine for me on both localhost and live server... :confused:

Try this: Move this line
Code:

set_magic_quotes_runtime(0);
to just above
Code:

$c_url = parse_url($GLOBALS[HTTP_REFERER]);

nope :(
I'm running php4.3.0 locally and php4.2.3 at live forums.

nuno 01-03-2003 06:10 PM

hmm
seems to be working now
fix is attached

fury 01-03-2003 06:14 PM

Odd, the one you posted doesn't work on my localhost.

Well, I'll put a link directly to your post in the original post for people who have the same problem as you did. Hopefully either solution will work :)


All times are GMT. The time now is 01:23 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.01080 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete