Environment image

Started on the old forum in March 2006 · view the original in the archive · old links redirect here

37 replies · 5,657 views · started 20 years ago · 1 min read

TL;DR · summary of 37 replies
  • subzero asked how to add more text under the browser description in the environment image script.
  • naveen-PHP LEARNER suggested storing the site name in a variable and drawing it on an image using GD library.
  • subzero wanted to include IP, phone numbers, and his site's name on the image like Opera 200.22.33.1 topsite.6te.net.
  • naveen-PHP LEARNER provided code for generating a black image with text but not for modifying it further.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

2 participants
subzero Super moderator Fellow · 3,954 posts #21

ImageString ($im, 0, 3, 39, "topsite.6te.net", $text_5); is to long bro

also the list off them http://topsite.6te.net/phimg.wml

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #23

i made alot lol all i need the colors made to change lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

juice #24

i made alot lol all i need the colors made to change lol

The colours are about the hardest things to get right, I managed to get white but I need the basic colours - red, yelow, green, etc. here is what I have so far image How do I increase the size of the words/numbers?

subzero Super moderator Fellow · 3,954 posts #25

ImageString ($im, 3, 4, 1, "$browser[0]", $text_color);

($im, 3, 5, 1, posten, size, where,

its easy make sure

it fits the sreen $im = @ImageCreate ( 80, 50)

thats to sreen

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

CLINT #27

Any1 know how to make the text in an image align="center"??

subzero Super moderator Fellow · 3,954 posts #28
<?php

$browser = explode ('/', $HTTP_USER_AGENT);

$im = @ImageCreate ( 80, 50)
or die;
$background_color = ImageColorAllocate ($im, 555, 0, 0);
$text_color = ImageColorAllocate ($im, 0, 255, 255);
ImageString ($im, 0, 25, 1, "$browser[0]", $text_color);
ImageString ($im, 0, 10, 10, "$REMOTE_ADDR", $text_color);
ImageString ($im, 0, 25, 20, "".date("H:i")."", $text_color);
ImageString ($im, 0, 10, 29, "".date("D d M y")."", $text_color);
ImageString ($im, 0, 3, 39, "topsite.6te.net", $text_color);

header('Content-Type: image/gif');
Imagegif ($im);

?>

http://topsite.6te.net/3.php

External image (may be gone) External image (may be gone) i need the color lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

CLINT #29

I can see how u did that but I mean I want users to be able to add their own text on an image and I wondered if there was a special code to make text align center.

wapkralj Developer · 237 posts #30

I want users to be able to add their own text on an image me too need this,search little bit net,and link that you give to,or we can wait for GumSlone if he want's to answer

CLINT #31

I want users to be able to add their own text on an image me too need this,search little bit net,and link that you give to,or we can wait for GumSlone if he want's to answer

To allow users to add their own text or their own site name to the script already given, here is the code

<?php

$browser = explode ('/', $HTTP_USER_AGENT);

$im = @ImageCreate ( 80, 50)
or die;
$background_color = ImageColorAllocate ($im, 555, 0, 0);
$text_color = ImageColorAllocate ($im, 0, 255, 255);
ImageString ($im, 0, 25, 1, "$browser[0]", $text_color);
ImageString ($im, 0, 10, 10, "$REMOTE_ADDR", $text_color);
ImageString ($im, 0, 25, 20, "".date("H:i")."", $text_color);
ImageString ($im, 0, 10, 29, "".date("D d M y")."", $text_color);
ImageString ($im, 0, 3, 39, "$text", $text_color);

header('Content-Type: image/gif');
Imagegif ($im);

?>

Now link to YourSite.com/image.php?text=Something

subzero Super moderator Fellow · 3,954 posts #33

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

juice #34

Some colours for you guys. white - 225, 225, 225 black - 0, 0, 0 red - 225, 0, 0 green - 0, 225, 0 yellow - 225, 225, 0 blue - 0, 0, 225

Hope this helps External image (may be gone)

subzero Super moderator Fellow · 3,954 posts #36
<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>

<card title="Registration">

<p align="center">
[size="1"]

free image with your name when made copy link :)

----

site[/size]

<input type="text" name="code" maxlength="20"/>

[size="1"]<anchor>Register
<go href="imgco.php?code=$code" method="post">

<postfield name="bmonth" value="$code"/>
</go></anchor>

[url="../index.php"]Main Menu[/url][/size]
</p>
</card>
</wml>
<?php

$browser = explode ('/', $HTTP_USER_AGENT);

$im = @ImageCreate ( 80, 50)
or die;
$background_color = ImageColorAllocate ($im, 555, 0, 0);
$text_color = ImageColorAllocate ($im, 0, 255, 255);
ImageString ($im, 0, 25, 1, "$browser[0]", $text_color);
ImageString ($im, 0, 10, 10, "$REMOTE_ADDR", $text_color);
ImageString ($im, 0, 25, 20, "".date("H:i")."", $text_color);
ImageString ($im, 0, 10, 29, "".date("D d M y")."", $text_color);
ImageString ($im, 0, 3, 39, "$code", $text_color);

header('Content-Type: image/gif');
Imagegif ($im);

?>

thats works great lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

lamar-wap #37

its pretty cool.....................

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close