vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Importing an image (https://vborg.vbsupport.ru/showthread.php?t=215585)

Html33 06-07-2009 08:45 PM

Importing an image
 
Right, i have a little issue i was using this image to tell me the status of my server;

http://www.runelocus.com/tools/statu...biz&port=43594

But i have decided that i want my own one so i can customise it for the forum. The URL for mine is

https://vborg.vbsupport.ru/external/2009/06/128.jpg

Although, with the old one i used to be able to embed it into the page using
Quote:

<img src="http://dhgaming.com/status/rspserver/index.php?ip=dhgaming.no-ip.biz&port=43594">
But with my one i can't [ just outputs a blank / missing image although when you go to the link it is there]. So i was wondering how would i get the image to display on the page? I was figuring i would need to use plugins

the code in my script is;

PHP Code:

<?php error_reporting (E_ALL E_NOTICE); ?>
<?php
$ip 
"$_GET[ip]"
$port"$_GET[port]"
$online '<img src="online.gif">'
$offline '<img src="offline.gif">';   
if (! 
$sock = @fsockopen($ip$port$num$error5)) 
{
echo 
"$offline"
echo 
"</font>";
}
else
{
echo 
"$online";
echo 
" </font>";
}
?>


Dismounted 06-08-2009 05:04 AM

You must generate an image file using the PHP image functions (or just send file type and data). What you are doing is sending actual HTML there, which cannot be "included" using HTML IMG tags.

Html33 06-08-2009 07:32 AM

Quote:

Originally Posted by Dismounted (Post 1825467)
You must generate an image file using the PHP image functions (or just send file type and data). What you are doing is sending actual HTML there, which cannot be "included" using HTML IMG tags.

Would somone mind doing that? It took me long enough to make this! :@ [looks around]

I understand what you mean, but i dont know how on earth i would do it. Would you mind doing it for me?

Dismounted 06-08-2009 09:54 AM

Have a look in vBulletin's image.php - pick out the bits you need.

No, I am not here to code for you.

Html33 06-08-2009 06:22 PM

Cheers for the help, although you put that quite harsh.

Any one else willing to help me? :P


All times are GMT. The time now is 05:23 PM.

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.01003 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete