Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Acmlmboard support?.
Acmlm's Board - I2 Archive - Acmlmboard support? - Need Help With PHP Image | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
TheGreatWhiteDope

Koopa
Banned
Level: 16

Posts: 59/108
EXP: 19462
For next: 794

Since: 01-05-05

Since last post: 8 days
Last activity: 4 days
Posted on 09-16-05 12:08 AM Link | Quote
EDIT- WTF, its all glitchy, I thought it was my layout so I removed it....
EDIT2- Fixed, ignore the bold...

I was making a php image that when you type text in it prints it as an image (The same as numgfx except with letters and numbers), but I get this error:

Warning imagecreate(): Invalid image dimensions in /home/romendob/public_html/board/test.php on line 10
Warning imagecopy(): supplied argument is not a valid Image resource in /home/romendob/public_html/board/test.php on line 11
Warning imagecolortransparent(): supplied argument is not a valid Image resource in /home/romendob/public_html/board/test.php on line 79
Warning imagepng(): supplied argument is not a valid Image resource in /home/romendob/public_html/board/test.php on line 80


Here is the code I used and here is the picture I used. Each character is 6 x 7. Please help me..


(edited by TheGreatWhiteDope on 09-15-05 03:08 PM)
(edited by TheGreatWhiteDope on 09-15-05 03:09 PM)
(edited by TheGreatWhiteDope on 09-15-05 03:22 PM)
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 539/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-16-05 12:47 AM Link | Quote
Didn't I give you the code I used for my custom title at Googie's board? If not, I can give it to you to look over...



Spoiler:







I made them by editing numgfx.php. Unfortunatly, none of them support line breaks, as I don't know how to do that.
TheGreatWhiteDope

Koopa
Banned
Level: 16

Posts: 60/108
EXP: 19462
For next: 794

Since: 01-05-05

Since last post: 8 days
Last activity: 4 days
Posted on 09-16-05 01:57 AM Link | Quote
Yeah, you gave it to me, I fixed it for you and then I deleted it and remade it from the other code today but it doesn't work... Can you give me one of your newer ones then? They seem to work fine, linebreaks should be defined as somthing like...

$br="copyimage(blah blah blah)";

Except you need to have it down the images hieght * 2, it shouldn't be too hard, its just like the part that makes sure the spacing between each letter is right, except its a line space, but you may need to define it in the title as somthing like $br and add that to the if's.
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 542/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-16-05 02:00 AM Link | Quote
OK, you just confused me. Me am not PHP smart.

Which one did you want?
TheGreatWhiteDope

Koopa
Banned
Level: 16

Posts: 61/108
EXP: 19462
For next: 794

Since: 01-05-05

Since last post: 8 days
Last activity: 4 days
Posted on 09-16-05 02:03 AM Link | Quote
Yeah, I need to work that better, like have text.php?d=text here $br (or whatever you want it set as) and now text after a line break. It can be done, except you would need to type $br for every line break.

Can I have your FFT one since thats what my font is based of off. Its my own version of edited FFT, but Im just looking for a working code.
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 543/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-16-05 02:18 AM Link | Quote
The whole $br thing is confusing me... Would I use text.php?n=text_here$br_new_line or text.php?n=text_here&br=new_line
TheGreatWhiteDope

Koopa
Banned
Level: 16

Posts: 62/108
EXP: 19462
For next: 794

Since: 01-05-05

Since last post: 8 days
Last activity: 4 days
Posted on 09-16-05 02:27 AM Link | Quote
It depends on how you set it up, but, not that I think about it, maybe you just need to have enter since it would count the others as single chars.

Anyways, it STILL doesn't work which leads to one problem > my site. BUT, all of the numgfx work properly. I used you php images before and they worked fine a few motnhs ago but recently they havn't been working and nither have the Acmlm Board's status.php. My own codes work fine though such as my screenname.php and my new status.php, this is confusing as hell,could it be because we upgraded to php5?
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 545/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-16-05 03:12 AM Link | Quote
Maybe. Are you getting the dreaded red X, or is it not showing all the text? If it's not showing all the text, it's because you need to use _ for spaces. No idea why...
TheGreatWhiteDope

Koopa
Banned
Level: 16

Posts: 64/108
EXP: 19462
For next: 794

Since: 01-05-05

Since last post: 8 days
Last activity: 4 days
Posted on 09-16-05 03:19 AM Link | Quote


Warning imagecreate(): Invalid image dimensions in /home/romendob/public_html/board/test.php on line 9



Warning imagecopy(): supplied argument is not a valid Image resource in /home/romendob/public_html/board/test.php on line 10



Warning imagepng(): supplied argument is not a valid Image resource in /home/romendob/public_html/board/test.php on line 94
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 546/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-16-05 03:23 AM Link | Quote
OK, are you using the image I included, or your own image? If it's your image, did you edit the file to match the image dimentions?
TheGreatWhiteDope

Koopa
Banned
Level: 16

Posts: 65/108
EXP: 19462
For next: 794

Since: 01-05-05

Since last post: 8 days
Last activity: 4 days
Posted on 09-16-05 03:26 AM Link | Quote
Its your file, I think I need to $define the dementions though, I think having it multiply in the imagecopy is messing it up??? I dont know...
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 547/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-16-05 04:38 AM Link | Quote
Well, if you didn't modify my file, and you put the image in your /numgfx/ dir, then it should work. It may very well be php5 then. There's another thread around here somewhere that says AcmlmBoard doesn't seem to work right with php5...
TheGreatWhiteDope

Koopa
Banned
Level: 16

Posts: 66/108
EXP: 19462
For next: 794

Since: 01-05-05

Since last post: 8 days
Last activity: 4 days
Posted on 09-16-05 06:51 AM Link | Quote
That shouldn't be the problem with the directory. I tried it on my funpic storage account too > same error.
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 550/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-16-05 12:34 PM Link | Quote
It's coded to look in /numgfx/... line 8 says: $gfx=ImageCreateFromPNG("numgfx/fft.png");. The problem has to be either how you're calling the image, or your server, because as you can see from my first post, and now this post:

You are doing it like this, right:

<img src=fftgfx.php?n=Text_to_display_here>

Otherwise, it probably won't work...
TheGreatWhiteDope

Koopa
Banned
Level: 16

Posts: 67/108
EXP: 19462
For next: 794

Since: 01-05-05

Since last post: 8 days
Last activity: 4 days
Posted on 09-17-05 03:33 AM Link | Quote
Wow, I'm retarded, I was using d=blah. Thanks for helping me though.
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 514/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 09-17-05 06:32 AM Link | Quote
Hehehe! Probably becuase d is the var you used in your own code, so by habit, you used it with mine. I've done that plenty of times.

Enjoy it!
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Acmlmboard support? - Need Help With PHP Image | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.034 seconds.