News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu
Menu

Show posts

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 Menu

Messages - sixthcrusifix

#166
Support Requests / Re: Net2FTP having problems?
December 09, 2005, 02:38:47 AM
I'm using ftp.freepgs.com is that bad?
#167
Quote 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.

Vista? Sounds like some damned beach softdrink. is that the new OS? VERY gay sounding I hate it. But it will probably be better than XP and I'll have to upgrade because the new Adobe software will only be availale on it....

I hope somone breaks the window one of these days.
#168
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($image00255);
//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($image255,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($image000);
}

// 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'], 0abs($size[0])+$oxabs($size[5])+$oy, -$stroke_color$_GET['font'], $_GET['text']);
}
}

//print the text
    
imagettftext($image$_GET['size'], 0abs($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.

awsomeness! YAY! By the way, if you want a certain font for your website, is there a way you can upload the ttf to your website so that even people who don't have teh font installed can see it??? Otherwise I've just been having to make images for stuff to be in cool fonts. (It'd be easy if Internet Explorer, the most popular browser, had better PNG support) .

Why isn't there an Internet Explorer 7.0 with full PNG transparency support, tabbed browsing, The Latest CSS and personalized security? You can get plugins for some of it but microsoft is so big I feel like they owe it to me to give me a better browser. I wish everyone in the world would just switch to firefox!
#169
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.

oh . . . dont' I feel likea dumbass. Lemmie try and fix it  . . .
#170
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.

-Yea it only works in IE and on my IE it didn't even work (I've got 6 . . . )


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.


hey that would be awsome.
#171
Support Requests / Re: Domain name for sub-directory
December 08, 2005, 08:00:32 AM
Quote from: webzone on December 07, 2005, 10:54:37 PM
Quotebut 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?

he may have 2 domain names for 2 sites but doesn't want to get more hosting so he can just use his 1 freepgs.com account to host teh files for both sites.
#172
Support Requests / Re: MySQL Fulltext minimum word length
December 08, 2005, 07:54:46 AM
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!



what is it for. If it's a form could you just make sure it was 2+ characters with PHP? I have no idea how you would do it but I have a theory; Explode the string into an array and then make a loop that adds 1 to a variable for each item in the array, if the variable is 2 or more then the code will continue, else it will give you a "too short" message.
#173
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;

no no no no no no no my loves, my dears my darlings. What I'm looking for is called a stroke in technical terms. Lemmie open photoshop and give you an image. I want to type in black text and get this:





That is black text with a red stroke (Stroke, border, outline -whatever you wanna call it)

Not trying to sound mean it's just that people keep misunderstanding me.

Thanks for reading you guys. :D
#174
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)?

a line around it, outline. but I can't find that either.

And damn them! Microsoft and Mozilla need to get off their ass in implement it! Shadow would be cool too.
#175
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 ?

No, I want teh text to be outlines in a different color. like glow but solid, I thought that would be a basic funtion of CSS.


And even worse I just got this:

text-shadow:ffffff,3px,3px,3px;


from W3.org and it didn't work either! They should be kicked in the ass for giving me crap that doesn't work! What the hell!?
#176
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.

but that's the thing, both style.css and BG_TEMP.jpeg ARE in the same folder. And like I said it didn't even work when I used http://nebulamystic.com/BG_TEMP.jpg -the whole URL.
#177
Support Requests / Re: Domain name for sub-directory
December 07, 2005, 09:18:40 PM
there are so many weird replies I can read them.


But as for the first questions Yes and no, if you have a control panel with the people you bought your domain from you could use domain forwarding to get to the subdirectory when people typed in the URL. Unfortunately you'd still see http://freepgs.com/username/subdirectory.

I think the post above me has the best answer.
#178
Support Requests / CSS wont' work! Damn stroke attribute
December 07, 2005, 09:10:09 PM
I have tried using:

filter:glow(color=000000;strength=4);

(maybe not that exactly but it was the right syntax, I got it off of a CSS website

And I've tried this:

stroke:000000;stroke-weight:0.3px;


And on Mozilla and IE niether of them work at all! I just want me damed text to have stroke so that I can see it next to my complicated background. (The reason is because a little bit of the text dissapears in a black spot)


Why aren't these working??? here's my style.css file if you need it:

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>
#179
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.


Before the fire I thought we always had to use /fpgs/fpgshttpd/username/ (Actually before the fire it was drive2/fpgshttd/username [somethign similar]) but now I can inlcude php files without it. I did think of it, that's much better than the other way.

But include shouldn't way your page down too much unless you've got realy big CSS files, and then again you might. I'm just anti-caché and as we head into the 2010's dial up connections get fewer and further between. Taking consideration for dial-up users will be an inconvenience of the past. BUT we're not there yet so I guess you should use the <link> tag like webzone says.


One question, how come this:

<style type="text/CSS">
BODY {background-image:url('BG_TEMP.jpg'); background-attachment:fixed}

</style>

worked fine ON the page but when I used the <link> tag my background dissapeard. I know it wasn't my tag because there was otehr stuf like text colors and link attributes and they all worked, just the background didn't work anymore and the CSS file was in the same directory as the BG_TEMP.jpg and it didn't even work when I included the full URL. I HAD to use include.
#180
I had a similar problem. Well maybe similar. When I trie dto link to my style.css file it no longer showd the backgrounf properties and some other stuff was missing. It kepts showing me old images that I had deleted. if you're linking to a style sheet try including it with PHP instead, this will be better than linking to it with HTML because it's like physically adding the file to your page without the cllutter.


<?php
include("http://yourdomanname.com/stylesheet.css");
?>

and if the CSS file's in the same directory you don't have to include the http: . . . obviously.

This may help if your'e having Cache issues.



in my opinion if you have a constantly changing site you should ALWAYS start every page with :

<?php
Header("Cache-Control:No-Cache");
?>

to prevent the problem. Unfortunatey you should do it from teh start if you simply edit a page your browser might still view the Cached page before you put that header in. I find it interesting that IE sometimes refuses to literaly refresh a page, and even when you push the refresh button you get the Cached page.

Cache is also really spelled Caché because it's French for "to hide" or "to store" More literally it is a noun that means "a hiding place". And I think it's dumb that we always spell it Chache, before I was hip to internet lingo I used to call it "Catch-ee". loll. I still call PNGs "Pee En Gee" s instead of the correct "Ping", but Ping is gay I like Pee En Gee.