OZONE Asylum
Forums
Server-Side Scripting - Oh my!
outlining a website help please
This page's ID:
29290
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Thanks for that. zavaboy, I must have looked all over the place for that and couldn't find it :p [quote] [b]Tyberius Prime said:[/b] ok, hope you don't mind me answering here, CPrompt. [/quote] not at all. Another note. I have decided on basically using the GD library to make the Business card. This way the user can see the card being built. Font's don't seem to be an issue anymore since (like TP said), GD can use TrueType fonts. However, I got a snag. When the user fills out the info that places onto the card, I can't seem to figure out how to get the image on the page with the form to "refresh" with the users input text. It just calls the page that I have the GD functions in. All the text is there but I would rather the image stay on the same page. Does that make sense? Here is the script that makes the image (I'll clean it up later) [code] <? /* ** Draw text over a base image */ $baseImg = "images/bcard_template3.jpg"; //base image $baseFont = "fonts/timesbd.ttf"; //base font (will be able to change these later) $uNamefontSize = 16; //font size for the users name $uTitlefontSize = 10; //fonts size for the users Title $angle = 0; //username info $uNameX = 142; $uNameY = 20; $uName = $_POST['userName']; //user Title info //box 1 $uTitle1X = 142; //keep it in line with the name $uTitle1Y = 40; //bring it below the name $uTitle1 = $_POST['userTitle']; //user Title info //box 2 $uTitle2X = 142; $uTitle2Y = 55; $uTitle2 = "For Assistant Vice Chancellor"; //create a image and set some colors $image = imagecreatefromjpeg($baseImg); $colorYellow = imagecolorallocate($image,0xFF,0xFF,0x99); //the colors will be selectable. $colorGrey = imagecolorallocate($image,0xCC,0xCC,0xCC); $colorBlack = imagecolorallocate($image,0,0,0); //output the name and titles $uNameBox = imagettftext($image, $uNamefontSize,$angle,$uNameX,$uNameY,$colorGrey,$baseFont,$uName); $uTitleBox1 = imagettftext($image, $uTitlefontSize,$angle,$uTitle1X,$uTitle1Y,$colorBlack,$baseFont,$uTitle1); $uTitleBox2 = imagettftext($image, $uTitlefontSize,$angle,$uTitle2X,$uTitle2Y,$colorBlack,$baseFont,$uTitle2); //red rover - red rover - send the image on over header('Content-type:image/png'); imagepng($image); ?> [/code] The page that calls this script it just a form with the action="bcardtemplate.php" Later, C:\
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail