I'm using ftp.freepgs.com is that bad?
The "Support Requests" forum is now viewable by guests.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: nq2h on December 09, 2005, 02:00:27 AM
But updating IE requires WORK. Don't you know that Microsoft hires programmers that sit in the office all day and say
Fred: "Oh, we could do that. Get Bob to do it."
Bob replies "That's a good idea, put Fred on it".
Besides, IE 7 is supposed to be released with Windows Vista.
Quote from: brainiac744 on December 08, 2005, 10:29:27 PM
<?php
//define some vars
if(!isset($_GET['size'])) $_GET['size'] = "26";
if(!isset($_GET['text'])) $_GET['text'] = "Text";
if(!isset($_GET['font'])) $_GET['font'] = "arial.ttf";
if(!isset($_GET['stroke'])) $_GET['stroke'] = "1";
//find the x and y sizes
$size = imagettfbbox($_GET['size'], 0, $_GET['font'], $_GET['text']);
$xsize = abs($size[0]) + abs($size[2] + 2);
$ysize = abs($size[5]) + abs($size[1] + 2);
//create an image
$image = imagecreate($xsize, $ysize);
//set the background color
$blue = imagecolorallocate($image, 0, 0, 255);
//makes the background color transparent
imagecolortransparent($image, $blue);
//set the text color
if (isset($_GET['r']) && isset($_GET['g']) && isset($_GET['b'])){
$font_color = ImageColorAllocate($image, $_GET['r'], $_GET['g'], $_GET['b']);
}
else {
$font_color = ImageColorAllocate($image, 255,255,255);
}
//set the outline color
if (isset($_GET['or']) && isset($_GET['og']) && isset($_GET['ob'])){
$stroke_color = ImageColorAllocate($image, $_GET['or'], $_GET['og'], $_GET['ob']);
}
else {
$stroke_color = ImageColorAllocate($image, 0, 0, 0);
}
// now draw out the outline (stroke) on the text
$stroke = $_GET['stroke'];
for ($ox = -$stroke; $ox <= $stroke; $ox++) {
for ($oy = -$stroke; $oy <= $stroke; $oy++) {
imagettftext($image, $_GET['size'], 0, abs($size[0])+$ox, abs($size[5])+$oy, -$stroke_color, $_GET['font'], $_GET['text']);
}
}
//print the text
imagettftext($image, $_GET['size'], 0, abs($size[0]), abs($size[5]), -$font_color, $_GET['font'], $_GET['text']);
//set the type of image
// header("Content-type: image/gif");
//barf out the image
imagegif($image);
//free up memory
imagedestroy($image);
?>
Just pasted the whole file.
You'll need to upload a ttf font and set it at the top or add it to the query like:
?font=something.ttf&text=blahblah&size=12&stroke=2
Obviously, you'll want to just set the defaults at the top to what you typically use.
Quote from: brainiac744 on December 08, 2005, 04:13:56 AM
Correct me if I'm wrong, but in an external stylesheet there's no need for the <style type="text/css">, or the </style> lines. That may be your problem.
Quote from: nq2h on December 08, 2005, 03:52:03 PM
Something like this?
It's a BBCode on the forums, so it's gotta be possible. I'll look up in the source how its done.
Edit: It's done with this CSS:filter: Glow(color=red, strength=2);
Edit again: You've already tried it... well, I don't think there's another way, and if there is I don't know.
Quote from: brainiac744 on December 08, 2005, 05:38:56 PM
I had this exact same problem. What I ended up doing was writing a PHP script that generates a gif image with an outline around the text. If you want I can go and get the part of the code that outlines the text.
Quote from: webzone on December 07, 2005, 10:54:37 PMQuotebut that looks a bit cheap and amatureish
That's why you could also use the rewrite code I wrote about a few posts above.
Why do you want your site to be in a subdirectory anyway?
Quote from: fizznos on December 08, 2005, 01:25:18 AM
What are the odds of being able to get the min word length for mysql fulltext set to 2 letters? I know this is a pretty big deal but I thought I would ask just in case!
Quote from: webzone on December 07, 2005, 10:56:38 PM
A line around? That's possible.
You could use border (CSS 1).
Example: border:1px solid red;
Quote from: webzone on December 07, 2005, 10:48:28 PM
Text-shadow is a CSS 2.1 property that is actually only supported by the KHTML engine (Safari and Konqueror).
It is in the specs, but nobody has bothered to implement it in a browser yet.
I'm not sure I well understand what you want though. Do you want a shadow, a line through your text, or one around it (outline)?
Quote from: webzone on December 07, 2005, 09:36:03 PM
filter is a proprietary extension of Internet Explorer (Windows only). It is not implemented by any other browser.
stroke is designed to be used with SVG (Graphics Language), not with HTML.
Are you looking for text-decoration:line-through ?
Quote from: webzone on December 07, 2005, 09:40:24 PM
Files you include using a CSS file (like a background image) are looked up relatively to the stylesheet's path.
To make it simple, if you had placed your CSS in the /style folder, but your page and the image in the root directory, then the browser tried to find the image inside the /style directory and failed.
Quote
<style type="text/CSS">
BODY {font-family:Century Gothic Bold;font-size:35px;font-weight:bold;color:ffffff;scrollbar-face-color:009800;background-image:url('BG_TEMP.jpg'); background-attachment:fixed;background-repeat:no-repeat;background-position:center;}
.ttl {color:af9090;font-size:25px;font-family:Century Gothic Bold;font-weight:bold;}
.area {background-color:cf5544;}
.title {color:00ff00;text-decoration:underline;font-size:30px;font-family:Century Gothic; }
.content {color:3333df;text-decoration:none;font-size:25px;}
A:link {color:000000;text-decoration:underline overline;font-size:17px;font-family:Century Gothic Bold;background-color:dd3333}
A:hover {color:000000;text-decoration:underline;font-size:17px;font-family:Century Gothic Bold;background-color:ffff00}
A:active {color:000000;text-decoration:underline overline;font-size:17px;font-family:Century Gothic Bold;background-color:000000}
A:visited {color:000000;text-decoration:underline overline;font-size:17px;font-family:Century Gothic Bold;background-color:ff7878}
.COPYINFO {color:000000; text-align: center; font-size:12px;font-family:Century Gothic;stroke:#000000;stroke-width:1}
TABLE {border-color:af7500;}
TD {border-color:af7500}
.button {background-color:df9800;border-color:984511}
</style>
Quote from: webzone on December 06, 2005, 08:32:59 PM
Including the CSS stylesheet in every page makes your page heavier and uses more bandwidth. This can be troublesome for users on dial-up. Howver, if you only use the <link> tag, the browser can keep a copy of the CSS file in its cache and speed up the page load time. The downside is that you may have to clean your cache if you change your CSS often.
Important : doing an include like this "include("http://yourdomanname.com/stylesheet.css");" will slow down the server. If you use that, PHP will need to lookup the DNS records for your domain name, then it will connect using TCP to the appropriate server (which is itself incidentally) to request the file. In a nutshell, this means that, for each page requested on your website, you will use two server threads simultaneously instead of one.
If you really need to include your CSS in your page, you should use the absolute path to the file (/fpgs/fpgshttpd/username/). This will speed up the process.
Please also note that preventing browsers from caching your pages using the No-Cache header will use more bandwidth.